@@ -3525,6 +3525,103 @@ def re_encrypt_with_http_info(self, body, **kwargs): # noqa: E501
35253525 _request_timeout = params .get ('_request_timeout' ),
35263526 collection_formats = collection_formats )
35273527
3528+ def replicate_key (self , body , ** kwargs ): # noqa: E501
3529+ """replicate_key # noqa: E501
3530+
3531+ This method makes a synchronous HTTP request by default. To make an
3532+ asynchronous HTTP request, please pass async_req=True
3533+ >>> thread = api.replicate_key(body, async_req=True)
3534+ >>> result = thread.get()
3535+
3536+ :param async_req bool
3537+ :param ReplicateKeyRequest body: (required)
3538+ :return: ReplicateKeyResponse
3539+ If the method is called asynchronously,
3540+ returns the request thread.
3541+ """
3542+ kwargs ['_return_http_data_only' ] = True
3543+ if kwargs .get ('async_req' ):
3544+ return self .replicate_key_with_http_info (body , ** kwargs ) # noqa: E501
3545+ else :
3546+ (data ) = self .replicate_key_with_http_info (body , ** kwargs ) # noqa: E501
3547+ return data
3548+
3549+ def replicate_key_with_http_info (self , body , ** kwargs ): # noqa: E501
3550+ """replicate_key # noqa: E501
3551+
3552+ This method makes a synchronous HTTP request by default. To make an
3553+ asynchronous HTTP request, please pass async_req=True
3554+ >>> thread = api.replicate_key_with_http_info(body, async_req=True)
3555+ >>> result = thread.get()
3556+
3557+ :param async_req bool
3558+ :param ReplicateKeyRequest body: (required)
3559+ :return: ReplicateKeyResponse
3560+ If the method is called asynchronously,
3561+ returns the request thread.
3562+ """
3563+
3564+ all_params = ['body' ] # noqa: E501
3565+ all_params .append ('async_req' )
3566+ all_params .append ('_return_http_data_only' )
3567+ all_params .append ('_preload_content' )
3568+ all_params .append ('_request_timeout' )
3569+
3570+ params = locals ()
3571+ for key , val in six .iteritems (params ['kwargs' ]):
3572+ if key not in all_params :
3573+ raise TypeError (
3574+ "Got an unexpected keyword argument '%s'"
3575+ " to method replicate_key" % key
3576+ )
3577+ params [key ] = val
3578+ del params ['kwargs' ]
3579+ # verify the required parameter 'body' is set
3580+ if self .api_client .client_side_validation and ('body' not in params or
3581+ params ['body' ] is None ): # noqa: E501
3582+ raise ValueError ("Missing the required parameter `body` when calling `replicate_key`" ) # noqa: E501
3583+
3584+ collection_formats = {}
3585+
3586+ path_params = {}
3587+
3588+ query_params = []
3589+
3590+ header_params = {}
3591+
3592+ form_params = []
3593+ local_var_files = {}
3594+
3595+ body_params = None
3596+ if 'body' in params :
3597+ body_params = params ['body' ]
3598+ # HTTP header `Accept`
3599+ header_params ['Accept' ] = self .api_client .select_header_accept (
3600+ ['application/json' ]) # noqa: E501
3601+
3602+ # HTTP header `Content-Type`
3603+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3604+ ['text/plain' ]) # noqa: E501
3605+
3606+ # Authentication setting
3607+ auth_settings = ['volcengineSign' ] # noqa: E501
3608+
3609+ return self .api_client .call_api (
3610+ '/ReplicateKey/2021-02-18/kms/get/text_plain/' , 'GET' ,
3611+ path_params ,
3612+ query_params ,
3613+ header_params ,
3614+ body = body_params ,
3615+ post_params = form_params ,
3616+ files = local_var_files ,
3617+ response_type = 'ReplicateKeyResponse' , # noqa: E501
3618+ auth_settings = auth_settings ,
3619+ async_req = params .get ('async_req' ),
3620+ _return_http_data_only = params .get ('_return_http_data_only' ),
3621+ _preload_content = params .get ('_preload_content' , True ),
3622+ _request_timeout = params .get ('_request_timeout' ),
3623+ collection_formats = collection_formats )
3624+
35283625 def restore_secret (self , body , ** kwargs ): # noqa: E501
35293626 """restore_secret # noqa: E501
35303627
@@ -4204,6 +4301,103 @@ def update_keyring_with_http_info(self, body, **kwargs): # noqa: E501
42044301 _request_timeout = params .get ('_request_timeout' ),
42054302 collection_formats = collection_formats )
42064303
4304+ def update_primary_region (self , body , ** kwargs ): # noqa: E501
4305+ """update_primary_region # noqa: E501
4306+
4307+ This method makes a synchronous HTTP request by default. To make an
4308+ asynchronous HTTP request, please pass async_req=True
4309+ >>> thread = api.update_primary_region(body, async_req=True)
4310+ >>> result = thread.get()
4311+
4312+ :param async_req bool
4313+ :param UpdatePrimaryRegionRequest body: (required)
4314+ :return: UpdatePrimaryRegionResponse
4315+ If the method is called asynchronously,
4316+ returns the request thread.
4317+ """
4318+ kwargs ['_return_http_data_only' ] = True
4319+ if kwargs .get ('async_req' ):
4320+ return self .update_primary_region_with_http_info (body , ** kwargs ) # noqa: E501
4321+ else :
4322+ (data ) = self .update_primary_region_with_http_info (body , ** kwargs ) # noqa: E501
4323+ return data
4324+
4325+ def update_primary_region_with_http_info (self , body , ** kwargs ): # noqa: E501
4326+ """update_primary_region # noqa: E501
4327+
4328+ This method makes a synchronous HTTP request by default. To make an
4329+ asynchronous HTTP request, please pass async_req=True
4330+ >>> thread = api.update_primary_region_with_http_info(body, async_req=True)
4331+ >>> result = thread.get()
4332+
4333+ :param async_req bool
4334+ :param UpdatePrimaryRegionRequest body: (required)
4335+ :return: UpdatePrimaryRegionResponse
4336+ If the method is called asynchronously,
4337+ returns the request thread.
4338+ """
4339+
4340+ all_params = ['body' ] # noqa: E501
4341+ all_params .append ('async_req' )
4342+ all_params .append ('_return_http_data_only' )
4343+ all_params .append ('_preload_content' )
4344+ all_params .append ('_request_timeout' )
4345+
4346+ params = locals ()
4347+ for key , val in six .iteritems (params ['kwargs' ]):
4348+ if key not in all_params :
4349+ raise TypeError (
4350+ "Got an unexpected keyword argument '%s'"
4351+ " to method update_primary_region" % key
4352+ )
4353+ params [key ] = val
4354+ del params ['kwargs' ]
4355+ # verify the required parameter 'body' is set
4356+ if self .api_client .client_side_validation and ('body' not in params or
4357+ params ['body' ] is None ): # noqa: E501
4358+ raise ValueError ("Missing the required parameter `body` when calling `update_primary_region`" ) # noqa: E501
4359+
4360+ collection_formats = {}
4361+
4362+ path_params = {}
4363+
4364+ query_params = []
4365+
4366+ header_params = {}
4367+
4368+ form_params = []
4369+ local_var_files = {}
4370+
4371+ body_params = None
4372+ if 'body' in params :
4373+ body_params = params ['body' ]
4374+ # HTTP header `Accept`
4375+ header_params ['Accept' ] = self .api_client .select_header_accept (
4376+ ['application/json' ]) # noqa: E501
4377+
4378+ # HTTP header `Content-Type`
4379+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
4380+ ['text/plain' ]) # noqa: E501
4381+
4382+ # Authentication setting
4383+ auth_settings = ['volcengineSign' ] # noqa: E501
4384+
4385+ return self .api_client .call_api (
4386+ '/UpdatePrimaryRegion/2021-02-18/kms/get/text_plain/' , 'GET' ,
4387+ path_params ,
4388+ query_params ,
4389+ header_params ,
4390+ body = body_params ,
4391+ post_params = form_params ,
4392+ files = local_var_files ,
4393+ response_type = 'UpdatePrimaryRegionResponse' , # noqa: E501
4394+ auth_settings = auth_settings ,
4395+ async_req = params .get ('async_req' ),
4396+ _return_http_data_only = params .get ('_return_http_data_only' ),
4397+ _preload_content = params .get ('_preload_content' , True ),
4398+ _request_timeout = params .get ('_request_timeout' ),
4399+ collection_formats = collection_formats )
4400+
42074401 def update_secret (self , body , ** kwargs ): # noqa: E501
42084402 """update_secret # noqa: E501
42094403
0 commit comments