Skip to content

Commit c0627d1

Browse files
author
PureCloud Jenkins
committed
46.0.0
1 parent 667e415 commit c0627d1

File tree

1,783 files changed

+126493
-104957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,783 files changed

+126493
-104957
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 385 additions & 327 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __call_api(self, resource_path, method,
112112
header_params['Cookie'] = self.cookie
113113
if header_params:
114114
header_params = self.sanitize_for_serialization(header_params)
115-
header_params['purecloud-sdk'] = '45.1.0'
115+
header_params['purecloud-sdk'] = '46.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/billing_api.py

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,84 @@ def get_billing_reports_billableusage(self, start_date, end_date, **kwargs):
129129
auth_settings=auth_settings,
130130
callback=params.get('callback'))
131131
return response
132+
133+
def get_billing_trusteebillingoverview_trustor_org_id(self, trustor_org_id, **kwargs):
134+
"""
135+
Get the billing overview for an organization that is managed by a partner.
136+
Tax Disclaimer: Prices returned by this API do not include applicable taxes. It is the responsibility of the customer to pay all taxes that are appropriate in their jurisdiction. See the PureCloud API Documentation in the Developer Center for more information about this API: https://developer.mypurecloud.com/api/rest/v2/
137+
138+
This method makes a synchronous HTTP request by default. To make an
139+
asynchronous HTTP request, please define a `callback` function
140+
to be invoked when receiving the response.
141+
>>> def callback_function(response):
142+
>>> pprint(response)
143+
>>>
144+
>>> thread = api.get_billing_trusteebillingoverview_trustor_org_id(trustor_org_id, callback=callback_function)
145+
146+
:param callback function: The callback function
147+
for asynchronous request. (optional)
148+
:param str trustor_org_id: The organization ID of the trustor (customer) organization. (required)
149+
:param int billing_period_index: Billing Period Index
150+
:return: TrusteeBillingOverview
151+
If the method is called asynchronously,
152+
returns the request thread.
153+
"""
154+
155+
all_params = ['trustor_org_id', 'billing_period_index']
156+
all_params.append('callback')
157+
158+
params = locals()
159+
for key, val in iteritems(params['kwargs']):
160+
if key not in all_params:
161+
raise TypeError(
162+
"Got an unexpected keyword argument '%s'"
163+
" to method get_billing_trusteebillingoverview_trustor_org_id" % key
164+
)
165+
params[key] = val
166+
del params['kwargs']
167+
168+
# verify the required parameter 'trustor_org_id' is set
169+
if ('trustor_org_id' not in params) or (params['trustor_org_id'] is None):
170+
raise ValueError("Missing the required parameter `trustor_org_id` when calling `get_billing_trusteebillingoverview_trustor_org_id`")
171+
172+
173+
resource_path = '/api/v2/billing/trusteebillingoverview/{trustorOrgId}'.replace('{format}', 'json')
174+
path_params = {}
175+
if 'trustor_org_id' in params:
176+
path_params['trustorOrgId'] = params['trustor_org_id']
177+
178+
query_params = {}
179+
if 'billing_period_index' in params:
180+
query_params['billingPeriodIndex'] = params['billing_period_index']
181+
182+
header_params = {}
183+
184+
form_params = []
185+
local_var_files = {}
186+
187+
body_params = None
188+
189+
# HTTP header `Accept`
190+
header_params['Accept'] = self.api_client.\
191+
select_header_accept(['application/json'])
192+
if not header_params['Accept']:
193+
del header_params['Accept']
194+
195+
# HTTP header `Content-Type`
196+
header_params['Content-Type'] = self.api_client.\
197+
select_header_content_type(['application/json'])
198+
199+
# Authentication setting
200+
auth_settings = ['PureCloud Auth']
201+
202+
response = self.api_client.call_api(resource_path, 'GET',
203+
path_params,
204+
query_params,
205+
header_params,
206+
body=body_params,
207+
post_params=form_params,
208+
files=local_var_files,
209+
response_type='TrusteeBillingOverview',
210+
auth_settings=auth_settings,
211+
callback=params.get('callback'))
212+
return response

build/PureCloudPlatformClientV2/apis/outbound_api.py

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3170,14 +3170,15 @@ def get_outbound_contactlists(self, **kwargs):
31703170
:param str filter_type: Filter type
31713171
:param str name: Name
31723172
:param list[str] id: id
3173+
:param list[str] division_id: Division ID(s)
31733174
:param str sort_by: Sort by
31743175
:param str sort_order: Sort order
31753176
:return: ContactListEntityListing
31763177
If the method is called asynchronously,
31773178
returns the request thread.
31783179
"""
31793180

3180-
all_params = ['include_import_status', 'include_size', 'page_size', 'page_number', 'filter_type', 'name', 'id', 'sort_by', 'sort_order']
3181+
all_params = ['include_import_status', 'include_size', 'page_size', 'page_number', 'filter_type', 'name', 'id', 'division_id', 'sort_by', 'sort_order']
31813182
all_params.append('callback')
31823183

31833184
params = locals()
@@ -3210,6 +3211,8 @@ def get_outbound_contactlists(self, **kwargs):
32103211
query_params['name'] = params['name']
32113212
if 'id' in params:
32123213
query_params['id'] = params['id']
3214+
if 'division_id' in params:
3215+
query_params['divisionId'] = params['division_id']
32133216
if 'sort_by' in params:
32143217
query_params['sortBy'] = params['sort_by']
32153218
if 'sort_order' in params:
@@ -5632,6 +5635,84 @@ def post_outbound_campaigns_progress(self, body, **kwargs):
56325635
callback=params.get('callback'))
56335636
return response
56345637

5638+
def post_outbound_contactlist_clear(self, contact_list_id, **kwargs):
5639+
"""
5640+
Deletes all contacts out of a list. All outstanding recalls or rule-scheduled callbacks for non-preview campaigns configured with the contactlist will be cancelled.
5641+
5642+
5643+
This method makes a synchronous HTTP request by default. To make an
5644+
asynchronous HTTP request, please define a `callback` function
5645+
to be invoked when receiving the response.
5646+
>>> def callback_function(response):
5647+
>>> pprint(response)
5648+
>>>
5649+
>>> thread = api.post_outbound_contactlist_clear(contact_list_id, callback=callback_function)
5650+
5651+
:param callback function: The callback function
5652+
for asynchronous request. (optional)
5653+
:param str contact_list_id: Contact List ID (required)
5654+
:return: None
5655+
If the method is called asynchronously,
5656+
returns the request thread.
5657+
"""
5658+
5659+
all_params = ['contact_list_id']
5660+
all_params.append('callback')
5661+
5662+
params = locals()
5663+
for key, val in iteritems(params['kwargs']):
5664+
if key not in all_params:
5665+
raise TypeError(
5666+
"Got an unexpected keyword argument '%s'"
5667+
" to method post_outbound_contactlist_clear" % key
5668+
)
5669+
params[key] = val
5670+
del params['kwargs']
5671+
5672+
# verify the required parameter 'contact_list_id' is set
5673+
if ('contact_list_id' not in params) or (params['contact_list_id'] is None):
5674+
raise ValueError("Missing the required parameter `contact_list_id` when calling `post_outbound_contactlist_clear`")
5675+
5676+
5677+
resource_path = '/api/v2/outbound/contactlists/{contactListId}/clear'.replace('{format}', 'json')
5678+
path_params = {}
5679+
if 'contact_list_id' in params:
5680+
path_params['contactListId'] = params['contact_list_id']
5681+
5682+
query_params = {}
5683+
5684+
header_params = {}
5685+
5686+
form_params = []
5687+
local_var_files = {}
5688+
5689+
body_params = None
5690+
5691+
# HTTP header `Accept`
5692+
header_params['Accept'] = self.api_client.\
5693+
select_header_accept(['application/json'])
5694+
if not header_params['Accept']:
5695+
del header_params['Accept']
5696+
5697+
# HTTP header `Content-Type`
5698+
header_params['Content-Type'] = self.api_client.\
5699+
select_header_content_type(['application/json'])
5700+
5701+
# Authentication setting
5702+
auth_settings = ['PureCloud Auth']
5703+
5704+
response = self.api_client.call_api(resource_path, 'POST',
5705+
path_params,
5706+
query_params,
5707+
header_params,
5708+
body=body_params,
5709+
post_params=form_params,
5710+
files=local_var_files,
5711+
response_type=None,
5712+
auth_settings=auth_settings,
5713+
callback=params.get('callback'))
5714+
return response
5715+
56355716
def post_outbound_contactlist_contacts(self, contact_list_id, body, **kwargs):
56365717
"""
56375718
Add contacts to a contact list.

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,5 @@ def to_debug_report(self):
238238
"OS: {env}\n"\
239239
"Python Version: {pyversion}\n"\
240240
"Version of the API: v2\n"\
241-
"SDK Package Version: 45.1.0".\
241+
"SDK Package Version: 46.0.0".\
242242
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)