@@ -158,8 +158,8 @@ def create_brand(self, account_id, **kwargs):
158158
159159 :param callback function: The callback function
160160 for asynchronous request. (optional)
161- :param str account_id: The external account number (int) or account ID Guid . (required)
162- :param Brand brand:
161+ :param str account_id: The external account number (int) or account id GUID . (required)
162+ :param Brand brand:
163163 :return: BrandsResponse
164164 If the method is called asynchronously,
165165 returns the request thread.
@@ -185,8 +185,8 @@ def create_brand_with_http_info(self, account_id, **kwargs):
185185
186186 :param callback function: The callback function
187187 for asynchronous request. (optional)
188- :param str account_id: The external account number (int) or account ID Guid . (required)
189- :param Brand brand:
188+ :param str account_id: The external account number (int) or account id GUID . (required)
189+ :param Brand brand:
190190 :return: BrandsResponse
191191 If the method is called asynchronously,
192192 returns the request thread.
@@ -1549,6 +1549,114 @@ def get_account_information_with_http_info(self, account_id, **kwargs):
15491549 _request_timeout = params .get ('_request_timeout' ),
15501550 collection_formats = collection_formats )
15511551
1552+ def get_account_settings_export (self , organization_id , result_id , ** kwargs ):
1553+ """
1554+ Retrieves an account settings comparison.
1555+ This method makes a synchronous HTTP request by default. To make an
1556+ asynchronous HTTP request, please define a `callback` function
1557+ to be invoked when receiving the response.
1558+ >>> def callback_function(response):
1559+ >>> pprint(response)
1560+ >>>
1561+ >>> thread = api.get_account_settings_export(organization_id, result_id, callback=callback_function)
1562+
1563+ :param callback function: The callback function
1564+ for asynchronous request. (optional)
1565+ :param str organization_id: (required)
1566+ :param str result_id: (required)
1567+ :return: None
1568+ If the method is called asynchronously,
1569+ returns the request thread.
1570+ """
1571+ kwargs ['_return_http_data_only' ] = True
1572+ if kwargs .get ('callback' ):
1573+ return self .get_account_settings_export_with_http_info (organization_id , result_id , ** kwargs )
1574+ else :
1575+ (data ) = self .get_account_settings_export_with_http_info (organization_id , result_id , ** kwargs )
1576+ return data
1577+
1578+ def get_account_settings_export_with_http_info (self , organization_id , result_id , ** kwargs ):
1579+ """
1580+ Retrieves an account settings comparison.
1581+ This method makes a synchronous HTTP request by default. To make an
1582+ asynchronous HTTP request, please define a `callback` function
1583+ to be invoked when receiving the response.
1584+ >>> def callback_function(response):
1585+ >>> pprint(response)
1586+ >>>
1587+ >>> thread = api.get_account_settings_export_with_http_info(organization_id, result_id, callback=callback_function)
1588+
1589+ :param callback function: The callback function
1590+ for asynchronous request. (optional)
1591+ :param str organization_id: (required)
1592+ :param str result_id: (required)
1593+ :return: None
1594+ If the method is called asynchronously,
1595+ returns the request thread.
1596+ """
1597+
1598+ all_params = ['organization_id' , 'result_id' ]
1599+ all_params .append ('callback' )
1600+ all_params .append ('_return_http_data_only' )
1601+ all_params .append ('_preload_content' )
1602+ all_params .append ('_request_timeout' )
1603+
1604+ params = locals ()
1605+ for key , val in iteritems (params ['kwargs' ]):
1606+ if key not in all_params :
1607+ raise TypeError (
1608+ "Got an unexpected keyword argument '%s'"
1609+ " to method get_account_settings_export" % key
1610+ )
1611+ params [key ] = val
1612+ del params ['kwargs' ]
1613+ # verify the required parameter 'organization_id' is set
1614+ if ('organization_id' not in params ) or (params ['organization_id' ] is None ):
1615+ raise ValueError ("Missing the required parameter `organization_id` when calling `get_account_settings_export`" )
1616+ # verify the required parameter 'result_id' is set
1617+ if ('result_id' not in params ) or (params ['result_id' ] is None ):
1618+ raise ValueError ("Missing the required parameter `result_id` when calling `get_account_settings_export`" )
1619+
1620+
1621+ collection_formats = {}
1622+
1623+ resource_path = '/v2/organization_exports/{organizationId}/account_settings/{resultId}' .replace ('{format}' , 'json' )
1624+ path_params = {}
1625+ if 'organization_id' in params :
1626+ path_params ['organizationId' ] = params ['organization_id' ]
1627+ if 'result_id' in params :
1628+ path_params ['resultId' ] = params ['result_id' ]
1629+
1630+ query_params = {}
1631+
1632+ header_params = {}
1633+
1634+ form_params = []
1635+ local_var_files = {}
1636+
1637+ body_params = None
1638+ # HTTP header `Accept`
1639+ header_params ['Accept' ] = self .api_client .\
1640+ select_header_accept (['application/json' ])
1641+
1642+ # Authentication setting
1643+ auth_settings = []
1644+
1645+ return self .api_client .call_api (resource_path , 'GET' ,
1646+ path_params ,
1647+ query_params ,
1648+ header_params ,
1649+ body = body_params ,
1650+ post_params = form_params ,
1651+ files = local_var_files ,
1652+ response_type = None ,
1653+ auth_settings = auth_settings ,
1654+ callback = params .get ('callback' ),
1655+ _return_http_data_only = params .get ('_return_http_data_only' ),
1656+ _preload_content = params .get ('_preload_content' , True ),
1657+ _request_timeout = params .get ('_request_timeout' ),
1658+ collection_formats = collection_formats )
1659+
15521660 def get_account_tab_settings (self , account_id , ** kwargs ):
15531661 """
15541662 Returns tab settings list for specified account
@@ -4667,7 +4775,7 @@ def update_brand_logo_by_type_with_http_info(self, account_id, brand_id, logo_ty
46674775 _request_timeout = params .get ('_request_timeout' ),
46684776 collection_formats = collection_formats )
46694777
4670- def update_brand_resources_by_content_type (self , account_id , brand_id , resource_content_type , ** kwargs ):
4778+ def update_brand_resources_by_content_type (self , account_id , brand_id , resource_content_type , file_xml , ** kwargs ):
46714779 """
46724780 Uploads a branding resource file.
46734781 This method makes a synchronous HTTP request by default. To make an
@@ -4676,25 +4784,26 @@ def update_brand_resources_by_content_type(self, account_id, brand_id, resource_
46764784 >>> def callback_function(response):
46774785 >>> pprint(response)
46784786 >>>
4679- >>> thread = api.update_brand_resources_by_content_type(account_id, brand_id, resource_content_type, callback=callback_function)
4787+ >>> thread = api.update_brand_resources_by_content_type(account_id, brand_id, resource_content_type, file_xml, callback=callback_function)
46804788
46814789 :param callback function: The callback function
46824790 for asynchronous request. (optional)
4683- :param str account_id: The external account number (int) or account ID Guid . (required)
4791+ :param str account_id: The external account number (int) or account id GUID . (required)
46844792 :param str brand_id: The unique identifier of a brand. (required)
4685- :param str resource_content_type: (required)
4793+ :param str resource_content_type: (required)
4794+ :param file file_xml: Brand resource XML file. (required)
46864795 :return: BrandResources
46874796 If the method is called asynchronously,
46884797 returns the request thread.
46894798 """
46904799 kwargs ['_return_http_data_only' ] = True
46914800 if kwargs .get ('callback' ):
4692- return self .update_brand_resources_by_content_type_with_http_info (account_id , brand_id , resource_content_type , ** kwargs )
4801+ return self .update_brand_resources_by_content_type_with_http_info (account_id , brand_id , resource_content_type , file_xml , ** kwargs )
46934802 else :
4694- (data ) = self .update_brand_resources_by_content_type_with_http_info (account_id , brand_id , resource_content_type , ** kwargs )
4803+ (data ) = self .update_brand_resources_by_content_type_with_http_info (account_id , brand_id , resource_content_type , file_xml , ** kwargs )
46954804 return data
46964805
4697- def update_brand_resources_by_content_type_with_http_info (self , account_id , brand_id , resource_content_type , ** kwargs ):
4806+ def update_brand_resources_by_content_type_with_http_info (self , account_id , brand_id , resource_content_type , file_xml , ** kwargs ):
46984807 """
46994808 Uploads a branding resource file.
47004809 This method makes a synchronous HTTP request by default. To make an
@@ -4703,19 +4812,20 @@ def update_brand_resources_by_content_type_with_http_info(self, account_id, bran
47034812 >>> def callback_function(response):
47044813 >>> pprint(response)
47054814 >>>
4706- >>> thread = api.update_brand_resources_by_content_type_with_http_info(account_id, brand_id, resource_content_type, callback=callback_function)
4815+ >>> thread = api.update_brand_resources_by_content_type_with_http_info(account_id, brand_id, resource_content_type, file_xml, callback=callback_function)
47074816
47084817 :param callback function: The callback function
47094818 for asynchronous request. (optional)
4710- :param str account_id: The external account number (int) or account ID Guid . (required)
4819+ :param str account_id: The external account number (int) or account id GUID . (required)
47114820 :param str brand_id: The unique identifier of a brand. (required)
4712- :param str resource_content_type: (required)
4821+ :param str resource_content_type: (required)
4822+ :param file file_xml: Brand resource XML file. (required)
47134823 :return: BrandResources
47144824 If the method is called asynchronously,
47154825 returns the request thread.
47164826 """
47174827
4718- all_params = ['account_id' , 'brand_id' , 'resource_content_type' ]
4828+ all_params = ['account_id' , 'brand_id' , 'resource_content_type' , 'file_xml' ]
47194829 all_params .append ('callback' )
47204830 all_params .append ('_return_http_data_only' )
47214831 all_params .append ('_preload_content' )
@@ -4739,6 +4849,9 @@ def update_brand_resources_by_content_type_with_http_info(self, account_id, bran
47394849 # verify the required parameter 'resource_content_type' is set
47404850 if ('resource_content_type' not in params ) or (params ['resource_content_type' ] is None ):
47414851 raise ValueError ("Missing the required parameter `resource_content_type` when calling `update_brand_resources_by_content_type`" )
4852+ # verify the required parameter 'file_xml' is set
4853+ if ('file_xml' not in params ) or (params ['file_xml' ] is None ):
4854+ raise ValueError ("Missing the required parameter `file_xml` when calling `update_brand_resources_by_content_type`" )
47424855
47434856
47444857 collection_formats = {}
@@ -4758,12 +4871,18 @@ def update_brand_resources_by_content_type_with_http_info(self, account_id, bran
47584871
47594872 form_params = []
47604873 local_var_files = {}
4874+ if 'file_xml' in params :
4875+ local_var_files ['file.xml' ] = params ['file_xml' ]
47614876
47624877 body_params = None
47634878 # HTTP header `Accept`
47644879 header_params ['Accept' ] = self .api_client .\
47654880 select_header_accept (['application/json' ])
47664881
4882+ # HTTP header `Content-Type`
4883+ header_params ['Content-Type' ] = self .api_client .\
4884+ select_header_content_type (['multipart/form-data' ])
4885+
47674886 # Authentication setting
47684887 auth_settings = []
47694888
0 commit comments