@@ -158,8 +158,8 @@ def create_brand(self, account_id, **kwargs):
158
158
159
159
:param callback function: The callback function
160
160
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:
163
163
:return: BrandsResponse
164
164
If the method is called asynchronously,
165
165
returns the request thread.
@@ -185,8 +185,8 @@ def create_brand_with_http_info(self, account_id, **kwargs):
185
185
186
186
:param callback function: The callback function
187
187
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:
190
190
:return: BrandsResponse
191
191
If the method is called asynchronously,
192
192
returns the request thread.
@@ -1549,6 +1549,114 @@ def get_account_information_with_http_info(self, account_id, **kwargs):
1549
1549
_request_timeout = params .get ('_request_timeout' ),
1550
1550
collection_formats = collection_formats )
1551
1551
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
+
1552
1660
def get_account_tab_settings (self , account_id , ** kwargs ):
1553
1661
"""
1554
1662
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
4667
4775
_request_timeout = params .get ('_request_timeout' ),
4668
4776
collection_formats = collection_formats )
4669
4777
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 ):
4671
4779
"""
4672
4780
Uploads a branding resource file.
4673
4781
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_
4676
4784
>>> def callback_function(response):
4677
4785
>>> pprint(response)
4678
4786
>>>
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)
4680
4788
4681
4789
:param callback function: The callback function
4682
4790
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)
4684
4792
: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)
4686
4795
:return: BrandResources
4687
4796
If the method is called asynchronously,
4688
4797
returns the request thread.
4689
4798
"""
4690
4799
kwargs ['_return_http_data_only' ] = True
4691
4800
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 )
4693
4802
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 )
4695
4804
return data
4696
4805
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 ):
4698
4807
"""
4699
4808
Uploads a branding resource file.
4700
4809
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
4703
4812
>>> def callback_function(response):
4704
4813
>>> pprint(response)
4705
4814
>>>
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)
4707
4816
4708
4817
:param callback function: The callback function
4709
4818
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)
4711
4820
: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)
4713
4823
:return: BrandResources
4714
4824
If the method is called asynchronously,
4715
4825
returns the request thread.
4716
4826
"""
4717
4827
4718
- all_params = ['account_id' , 'brand_id' , 'resource_content_type' ]
4828
+ all_params = ['account_id' , 'brand_id' , 'resource_content_type' , 'file_xml' ]
4719
4829
all_params .append ('callback' )
4720
4830
all_params .append ('_return_http_data_only' )
4721
4831
all_params .append ('_preload_content' )
@@ -4739,6 +4849,9 @@ def update_brand_resources_by_content_type_with_http_info(self, account_id, bran
4739
4849
# verify the required parameter 'resource_content_type' is set
4740
4850
if ('resource_content_type' not in params ) or (params ['resource_content_type' ] is None ):
4741
4851
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`" )
4742
4855
4743
4856
4744
4857
collection_formats = {}
@@ -4758,12 +4871,18 @@ def update_brand_resources_by_content_type_with_http_info(self, account_id, bran
4758
4871
4759
4872
form_params = []
4760
4873
local_var_files = {}
4874
+ if 'file_xml' in params :
4875
+ local_var_files ['file.xml' ] = params ['file_xml' ]
4761
4876
4762
4877
body_params = None
4763
4878
# HTTP header `Accept`
4764
4879
header_params ['Accept' ] = self .api_client .\
4765
4880
select_header_accept (['application/json' ])
4766
4881
4882
+ # HTTP header `Content-Type`
4883
+ header_params ['Content-Type' ] = self .api_client .\
4884
+ select_header_content_type (['multipart/form-data' ])
4885
+
4767
4886
# Authentication setting
4768
4887
auth_settings = []
4769
4888
0 commit comments