Skip to content

Commit 6d72bfc

Browse files
author
PureCloud Jenkins
committed
36.0.0
1 parent 92ef7a3 commit 6d72bfc

File tree

288 files changed

+29901
-700
lines changed

Some content is hidden

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

288 files changed

+29901
-700
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Example of getting the authenticated user's information:
5151

5252
~~~ python
5353
usersApi = PureCloudPlatformClientV2.UsersApi()
54-
print usersApi.get_me()
54+
print usersApi.get_users_me()
5555
~~~
5656

5757
## SDK Source Code Generation

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 96 additions & 1 deletion
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'] = '35.1.0'
115+
header_params['purecloud-sdk'] = '36.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/outbound_api.py

Lines changed: 86 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,14 +2393,15 @@ def get_outbound_campaigns(self, **kwargs):
23932393
:param str distribution_queue_id: Distribution queue ID
23942394
:param str edge_group_id: Edge group ID
23952395
:param str call_analysis_response_set_id: Call analysis response set ID
2396+
:param list[str] division_id: Division ID(s)
23962397
:param str sort_by: Sort by
23972398
:param str sort_order: Sort order
23982399
:return: CampaignEntityListing
23992400
If the method is called asynchronously,
24002401
returns the request thread.
24012402
"""
24022403

2403-
all_params = ['page_size', 'page_number', 'filter_type', 'name', 'id', 'contact_list_id', 'dnc_list_id', 'distribution_queue_id', 'edge_group_id', 'call_analysis_response_set_id', 'sort_by', 'sort_order']
2404+
all_params = ['page_size', 'page_number', 'filter_type', 'name', 'id', 'contact_list_id', 'dnc_list_id', 'distribution_queue_id', 'edge_group_id', 'call_analysis_response_set_id', 'division_id', 'sort_by', 'sort_order']
24042405
all_params.append('callback')
24052406

24062407
params = locals()
@@ -2439,6 +2440,8 @@ def get_outbound_campaigns(self, **kwargs):
24392440
query_params['edgeGroupId'] = params['edge_group_id']
24402441
if 'call_analysis_response_set_id' in params:
24412442
query_params['callAnalysisResponseSetId'] = params['call_analysis_response_set_id']
2443+
if 'division_id' in params:
2444+
query_params['divisionId'] = params['division_id']
24422445
if 'sort_by' in params:
24432446
query_params['sortBy'] = params['sort_by']
24442447
if 'sort_order' in params:
@@ -2476,6 +2479,84 @@ def get_outbound_campaigns(self, **kwargs):
24762479
callback=params.get('callback'))
24772480
return response
24782481

2482+
def get_outbound_campaigns_divisionview(self, campaign_id, **kwargs):
2483+
"""
2484+
Get a basic Campaign information object
2485+
This returns a simplified version of a Campaign, consisting of name and division.
2486+
2487+
This method makes a synchronous HTTP request by default. To make an
2488+
asynchronous HTTP request, please define a `callback` function
2489+
to be invoked when receiving the response.
2490+
>>> def callback_function(response):
2491+
>>> pprint(response)
2492+
>>>
2493+
>>> thread = api.get_outbound_campaigns_divisionview(campaign_id, callback=callback_function)
2494+
2495+
:param callback function: The callback function
2496+
for asynchronous request. (optional)
2497+
:param str campaign_id: Campaign ID (required)
2498+
:return: CampaignDivisionView
2499+
If the method is called asynchronously,
2500+
returns the request thread.
2501+
"""
2502+
2503+
all_params = ['campaign_id']
2504+
all_params.append('callback')
2505+
2506+
params = locals()
2507+
for key, val in iteritems(params['kwargs']):
2508+
if key not in all_params:
2509+
raise TypeError(
2510+
"Got an unexpected keyword argument '%s'"
2511+
" to method get_outbound_campaigns_divisionview" % key
2512+
)
2513+
params[key] = val
2514+
del params['kwargs']
2515+
2516+
# verify the required parameter 'campaign_id' is set
2517+
if ('campaign_id' not in params) or (params['campaign_id'] is None):
2518+
raise ValueError("Missing the required parameter `campaign_id` when calling `get_outbound_campaigns_divisionview`")
2519+
2520+
2521+
resource_path = '/api/v2/outbound/campaigns/divisionviews/{campaignId}'.replace('{format}', 'json')
2522+
path_params = {}
2523+
if 'campaign_id' in params:
2524+
path_params['campaignId'] = params['campaign_id']
2525+
2526+
query_params = {}
2527+
2528+
header_params = {}
2529+
2530+
form_params = []
2531+
local_var_files = {}
2532+
2533+
body_params = None
2534+
2535+
# HTTP header `Accept`
2536+
header_params['Accept'] = self.api_client.\
2537+
select_header_accept(['application/json'])
2538+
if not header_params['Accept']:
2539+
del header_params['Accept']
2540+
2541+
# HTTP header `Content-Type`
2542+
header_params['Content-Type'] = self.api_client.\
2543+
select_header_content_type(['application/json'])
2544+
2545+
# Authentication setting
2546+
auth_settings = ['PureCloud Auth']
2547+
2548+
response = self.api_client.call_api(resource_path, 'GET',
2549+
path_params,
2550+
query_params,
2551+
header_params,
2552+
body=body_params,
2553+
post_params=form_params,
2554+
files=local_var_files,
2555+
response_type='CampaignDivisionView',
2556+
auth_settings=auth_settings,
2557+
callback=params.get('callback'))
2558+
return response
2559+
24792560
def get_outbound_campaigns_divisionviews(self, **kwargs):
24802561
"""
24812562
Query a list of basic Campaign information objects
@@ -2495,14 +2576,15 @@ def get_outbound_campaigns_divisionviews(self, **kwargs):
24952576
:param int page_number: Page number
24962577
:param str filter_type: Filter type
24972578
:param str name: Name
2579+
:param list[str] id: id
24982580
:param str sort_by: Sort by
24992581
:param str sort_order: Sort order
25002582
:return: CampaignDivisionViewListing
25012583
If the method is called asynchronously,
25022584
returns the request thread.
25032585
"""
25042586

2505-
all_params = ['page_size', 'page_number', 'filter_type', 'name', 'sort_by', 'sort_order']
2587+
all_params = ['page_size', 'page_number', 'filter_type', 'name', 'id', 'sort_by', 'sort_order']
25062588
all_params.append('callback')
25072589

25082590
params = locals()
@@ -2529,6 +2611,8 @@ def get_outbound_campaigns_divisionviews(self, **kwargs):
25292611
query_params['filterType'] = params['filter_type']
25302612
if 'name' in params:
25312613
query_params['name'] = params['name']
2614+
if 'id' in params:
2615+
query_params['id'] = params['id']
25322616
if 'sort_by' in params:
25332617
query_params['sortBy'] = params['sort_by']
25342618
if 'sort_order' in params:

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,9 +2086,9 @@ def get_routing_queues(self, **kwargs):
20862086
callback=params.get('callback'))
20872087
return response
20882088

2089-
def get_routing_queues_search(self, **kwargs):
2089+
def get_routing_queues_divisionviews(self, **kwargs):
20902090
"""
2091-
Search for queues by name
2091+
Get a page of simplified queue objects, filterable by name, queue ID(s), or division ID(s).
20922092
20932093
20942094
This method makes a synchronous HTTP request by default. To make an
@@ -2097,7 +2097,7 @@ def get_routing_queues_search(self, **kwargs):
20972097
>>> def callback_function(response):
20982098
>>> pprint(response)
20992099
>>>
2100-
>>> thread = api.get_routing_queues_search(callback=callback_function)
2100+
>>> thread = api.get_routing_queues_divisionviews(callback=callback_function)
21012101
21022102
:param callback function: The callback function
21032103
for asynchronous request. (optional)
@@ -2121,14 +2121,14 @@ def get_routing_queues_search(self, **kwargs):
21212121
if key not in all_params:
21222122
raise TypeError(
21232123
"Got an unexpected keyword argument '%s'"
2124-
" to method get_routing_queues_search" % key
2124+
" to method get_routing_queues_divisionviews" % key
21252125
)
21262126
params[key] = val
21272127
del params['kwargs']
21282128

21292129

21302130

2131-
resource_path = '/api/v2/routing/queues/search'.replace('{format}', 'json')
2131+
resource_path = '/api/v2/routing/queues/divisionviews'.replace('{format}', 'json')
21322132
path_params = {}
21332133

21342134
query_params = {}

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,7 @@ def put_user_outofoffice(self, user_id, body, **kwargs):
39133913
callback=params.get('callback'))
39143914
return response
39153915

3916-
def put_user_profileskills(self, user_id, **kwargs):
3916+
def put_user_profileskills(self, user_id, body, **kwargs):
39173917
"""
39183918
Update profile skills for a user
39193919
@@ -3924,12 +3924,12 @@ def put_user_profileskills(self, user_id, **kwargs):
39243924
>>> def callback_function(response):
39253925
>>> pprint(response)
39263926
>>>
3927-
>>> thread = api.put_user_profileskills(user_id, callback=callback_function)
3927+
>>> thread = api.put_user_profileskills(user_id, body, callback=callback_function)
39283928
39293929
:param callback function: The callback function
39303930
for asynchronous request. (optional)
39313931
:param str user_id: User ID (required)
3932-
:param list[str] body: Skills
3932+
:param list[str] body: Skills (required)
39333933
:return: list[str]
39343934
If the method is called asynchronously,
39353935
returns the request thread.
@@ -3951,6 +3951,9 @@ def put_user_profileskills(self, user_id, **kwargs):
39513951
# verify the required parameter 'user_id' is set
39523952
if ('user_id' not in params) or (params['user_id'] is None):
39533953
raise ValueError("Missing the required parameter `user_id` when calling `put_user_profileskills`")
3954+
# verify the required parameter 'body' is set
3955+
if ('body' not in params) or (params['body'] is None):
3956+
raise ValueError("Missing the required parameter `body` when calling `put_user_profileskills`")
39543957

39553958

39563959
resource_path = '/api/v2/users/{userId}/profileskills'.replace('{format}', 'json')

0 commit comments

Comments
 (0)