@@ -157,6 +157,127 @@ def create_v2_shared_secret_keys_with_http_info(self, create_shared_secret_keys_
157
157
_request_timeout = params .get ('_request_timeout' ),
158
158
collection_formats = collection_formats )
159
159
160
+ def create_v2_shared_secret_keys_verifi (self , v_ic_domain , create_shared_secret_keys_verifi_request , ** kwargs ):
161
+ """
162
+ Create Shared-Secret Keys as per verifi spec
163
+ Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
164
+ This method makes a synchronous HTTP request by default. To make an
165
+ asynchronous HTTP request, please define a `callback` function
166
+ to be invoked when receiving the response.
167
+ >>> def callback_function(response):
168
+ >>> pprint(response)
169
+ >>>
170
+ >>> thread = api.create_v2_shared_secret_keys_verifi(v_ic_domain, create_shared_secret_keys_verifi_request, callback=callback_function)
171
+
172
+ :param callback function: The callback function
173
+ for asynchronous request. (optional)
174
+ :param str v_ic_domain: domain (required)
175
+ :param CreateSharedSecretKeysVerifiRequest create_shared_secret_keys_verifi_request: (required)
176
+ :return: KmsV2KeysSymPost201Response
177
+ If the method is called asynchronously,
178
+ returns the request thread.
179
+ """
180
+
181
+ if self .api_client .mconfig .log_config .enable_log :
182
+ self .logger .info ("CALL TO METHOD `create_v2_shared_secret_keys_verifi` STARTED" )
183
+
184
+ kwargs ['_return_http_data_only' ] = True
185
+ if kwargs .get ('callback' ):
186
+ return self .create_v2_shared_secret_keys_verifi_with_http_info (v_ic_domain , create_shared_secret_keys_verifi_request , ** kwargs )
187
+ else :
188
+ (data ) = self .create_v2_shared_secret_keys_verifi_with_http_info (v_ic_domain , create_shared_secret_keys_verifi_request , ** kwargs )
189
+ return data
190
+
191
+ def create_v2_shared_secret_keys_verifi_with_http_info (self , v_ic_domain , create_shared_secret_keys_verifi_request , ** kwargs ):
192
+ """
193
+ Create Shared-Secret Keys as per verifi spec
194
+ Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
195
+ This method makes a synchronous HTTP request by default. To make an
196
+ asynchronous HTTP request, please define a `callback` function
197
+ to be invoked when receiving the response.
198
+ >>> def callback_function(response):
199
+ >>> pprint(response)
200
+ >>>
201
+ >>> thread = api.create_v2_shared_secret_keys_verifi_with_http_info(v_ic_domain, create_shared_secret_keys_verifi_request, callback=callback_function)
202
+
203
+ :param callback function: The callback function
204
+ for asynchronous request. (optional)
205
+ :param str v_ic_domain: domain (required)
206
+ :param CreateSharedSecretKeysVerifiRequest create_shared_secret_keys_verifi_request: (required)
207
+ :return: KmsV2KeysSymPost201Response
208
+ If the method is called asynchronously,
209
+ returns the request thread.
210
+ """
211
+
212
+ all_params = ['v_ic_domain' , 'create_shared_secret_keys_verifi_request' ]
213
+ all_params .append ('callback' )
214
+ all_params .append ('_return_http_data_only' )
215
+ all_params .append ('_preload_content' )
216
+ all_params .append ('_request_timeout' )
217
+
218
+ params = locals ()
219
+ for key , val in iteritems (params ['kwargs' ]):
220
+ if key not in all_params :
221
+ raise TypeError (
222
+ "Got an unexpected keyword argument '%s'"
223
+ " to method create_v2_shared_secret_keys_verifi" % key
224
+ )
225
+ params [key ] = val
226
+ del params ['kwargs' ]
227
+ # verify the required parameter 'v_ic_domain' is set
228
+ if ('v_ic_domain' not in params ) or (params ['v_ic_domain' ] is None ):
229
+ if self .api_client .mconfig .log_config .enable_log :
230
+ self .logger .error ("InvalidArgumentException : Missing the required parameter `v_ic_domain` when calling `create_v2_shared_secret_keys_verifi`" )
231
+ raise ValueError ("Missing the required parameter `v_ic_domain` when calling `create_v2_shared_secret_keys_verifi`" )
232
+ # verify the required parameter 'create_shared_secret_keys_verifi_request' is set
233
+ if ('create_shared_secret_keys_verifi_request' not in params ) or (params ['create_shared_secret_keys_verifi_request' ] is None ):
234
+ if self .api_client .mconfig .log_config .enable_log :
235
+ self .logger .error ("InvalidArgumentException : Missing the required parameter `create_shared_secret_keys_verifi_request` when calling `create_v2_shared_secret_keys_verifi`" )
236
+ raise ValueError ("Missing the required parameter `create_shared_secret_keys_verifi_request` when calling `create_v2_shared_secret_keys_verifi`" )
237
+
238
+
239
+ collection_formats = {}
240
+
241
+ path_params = {}
242
+
243
+ query_params = []
244
+
245
+ header_params = {}
246
+ if 'v_ic_domain' in params :
247
+ header_params ['v-ic-domain' ] = params ['v_ic_domain' ]
248
+
249
+ form_params = []
250
+ local_var_files = {}
251
+
252
+ body_params = None
253
+ if 'create_shared_secret_keys_verifi_request' in params :
254
+ body_params = params ['create_shared_secret_keys_verifi_request' ]
255
+ # HTTP header `Accept`
256
+ header_params ['Accept' ] = self .api_client .\
257
+ select_header_accept (['application/hal+json;charset=utf-8' ])
258
+
259
+ # HTTP header `Content-Type`
260
+ header_params ['Content-Type' ] = self .api_client .\
261
+ select_header_content_type (['application/json;charset=utf-8' ])
262
+
263
+ # Authentication setting
264
+ auth_settings = []
265
+
266
+ return self .api_client .call_api (f'/kms/v2/keys-sym/verifi' , 'POST' ,
267
+ path_params ,
268
+ query_params ,
269
+ header_params ,
270
+ body = body_params ,
271
+ post_params = form_params ,
272
+ files = local_var_files ,
273
+ response_type = 'KmsV2KeysSymPost201Response' ,
274
+ auth_settings = auth_settings ,
275
+ callback = params .get ('callback' ),
276
+ _return_http_data_only = params .get ('_return_http_data_only' ),
277
+ _preload_content = params .get ('_preload_content' , True ),
278
+ _request_timeout = params .get ('_request_timeout' ),
279
+ collection_formats = collection_formats )
280
+
160
281
def delete_bulk_symmetric_keys (self , delete_bulk_symmetric_keys_request , ** kwargs ):
161
282
"""
162
283
Delete one or more Symmetric keys
0 commit comments