@@ -4122,114 +4122,6 @@ def get_provisioning_with_http_info(self, **kwargs):
41224122 _request_timeout = params .get ('_request_timeout' ),
41234123 collection_formats = collection_formats )
41244124
4125- def get_reserved_domain_existence (self , account_id , email_domain , ** kwargs ):
4126- """
4127- Returns whether or not the specified email domain is reserved/claimed.
4128- This method makes a synchronous HTTP request by default. To make an
4129- asynchronous HTTP request, please define a `callback` function
4130- to be invoked when receiving the response.
4131- >>> def callback_function(response):
4132- >>> pprint(response)
4133- >>>
4134- >>> thread = api.get_reserved_domain_existence(account_id, email_domain, callback=callback_function)
4135-
4136- :param callback function: The callback function
4137- for asynchronous request. (optional)
4138- :param str account_id: The external account number (int) or account ID Guid. (required)
4139- :param str email_domain: (required)
4140- :return: ReservedDomainExistence
4141- If the method is called asynchronously,
4142- returns the request thread.
4143- """
4144- kwargs ['_return_http_data_only' ] = True
4145- if kwargs .get ('callback' ):
4146- return self .get_reserved_domain_existence_with_http_info (account_id , email_domain , ** kwargs )
4147- else :
4148- (data ) = self .get_reserved_domain_existence_with_http_info (account_id , email_domain , ** kwargs )
4149- return data
4150-
4151- def get_reserved_domain_existence_with_http_info (self , account_id , email_domain , ** kwargs ):
4152- """
4153- Returns whether or not the specified email domain is reserved/claimed.
4154- This method makes a synchronous HTTP request by default. To make an
4155- asynchronous HTTP request, please define a `callback` function
4156- to be invoked when receiving the response.
4157- >>> def callback_function(response):
4158- >>> pprint(response)
4159- >>>
4160- >>> thread = api.get_reserved_domain_existence_with_http_info(account_id, email_domain, callback=callback_function)
4161-
4162- :param callback function: The callback function
4163- for asynchronous request. (optional)
4164- :param str account_id: The external account number (int) or account ID Guid. (required)
4165- :param str email_domain: (required)
4166- :return: ReservedDomainExistence
4167- If the method is called asynchronously,
4168- returns the request thread.
4169- """
4170-
4171- all_params = ['account_id' , 'email_domain' ]
4172- all_params .append ('callback' )
4173- all_params .append ('_return_http_data_only' )
4174- all_params .append ('_preload_content' )
4175- all_params .append ('_request_timeout' )
4176-
4177- params = locals ()
4178- for key , val in iteritems (params ['kwargs' ]):
4179- if key not in all_params :
4180- raise TypeError (
4181- "Got an unexpected keyword argument '%s'"
4182- " to method get_reserved_domain_existence" % key
4183- )
4184- params [key ] = val
4185- del params ['kwargs' ]
4186- # verify the required parameter 'account_id' is set
4187- if ('account_id' not in params ) or (params ['account_id' ] is None ):
4188- raise ValueError ("Missing the required parameter `account_id` when calling `get_reserved_domain_existence`" )
4189- # verify the required parameter 'email_domain' is set
4190- if ('email_domain' not in params ) or (params ['email_domain' ] is None ):
4191- raise ValueError ("Missing the required parameter `email_domain` when calling `get_reserved_domain_existence`" )
4192-
4193-
4194- collection_formats = {}
4195-
4196- resource_path = '/v2.1/accounts/{accountId}/reserved_domains' .replace ('{format}' , 'json' )
4197- path_params = {}
4198- if 'account_id' in params :
4199- path_params ['accountId' ] = params ['account_id' ]
4200-
4201- query_params = {}
4202- if 'email_domain' in params :
4203- query_params ['email_domain' ] = params ['email_domain' ]
4204-
4205- header_params = {}
4206-
4207- form_params = []
4208- local_var_files = {}
4209-
4210- body_params = None
4211- # HTTP header `Accept`
4212- header_params ['Accept' ] = self .api_client .\
4213- select_header_accept (['application/json' ])
4214-
4215- # Authentication setting
4216- auth_settings = []
4217-
4218- return self .api_client .call_api (resource_path , 'GET' ,
4219- path_params ,
4220- query_params ,
4221- header_params ,
4222- body = body_params ,
4223- post_params = form_params ,
4224- files = local_var_files ,
4225- response_type = 'ReservedDomainExistence' ,
4226- auth_settings = auth_settings ,
4227- callback = params .get ('callback' ),
4228- _return_http_data_only = params .get ('_return_http_data_only' ),
4229- _preload_content = params .get ('_preload_content' , True ),
4230- _request_timeout = params .get ('_request_timeout' ),
4231- collection_formats = collection_formats )
4232-
42334125 def get_supported_languages (self , account_id , ** kwargs ):
42344126 """
42354127 Gets list of supported languages for recipient language setting.
@@ -5976,6 +5868,7 @@ def update_brand(self, account_id, brand_id, **kwargs):
59765868 for asynchronous request. (optional)
59775869 :param str account_id: The external account number (int) or account ID Guid. (required)
59785870 :param str brand_id: The unique identifier of a brand. (required)
5871+ :param str replace_brand:
59795872 :param Brand brand:
59805873 :return: Brand
59815874 If the method is called asynchronously,
@@ -6003,13 +5896,14 @@ def update_brand_with_http_info(self, account_id, brand_id, **kwargs):
60035896 for asynchronous request. (optional)
60045897 :param str account_id: The external account number (int) or account ID Guid. (required)
60055898 :param str brand_id: The unique identifier of a brand. (required)
5899+ :param str replace_brand:
60065900 :param Brand brand:
60075901 :return: Brand
60085902 If the method is called asynchronously,
60095903 returns the request thread.
60105904 """
60115905
6012- all_params = ['account_id' , 'brand_id' , 'brand' ]
5906+ all_params = ['account_id' , 'brand_id' , 'replace_brand' , ' brand' ]
60135907 all_params .append ('callback' )
60145908 all_params .append ('_return_http_data_only' )
60155909 all_params .append ('_preload_content' )
@@ -6042,6 +5936,8 @@ def update_brand_with_http_info(self, account_id, brand_id, **kwargs):
60425936 path_params ['brandId' ] = params ['brand_id' ]
60435937
60445938 query_params = {}
5939+ if 'replace_brand' in params :
5940+ query_params ['replace_brand' ] = params ['replace_brand' ]
60455941
60465942 header_params = {}
60475943
0 commit comments