Skip to content

Commit c49b393

Browse files
author
PureCloud Jenkins
committed
49.0.0
1 parent 0a0eeb4 commit c49b393

39 files changed

Lines changed: 857 additions & 412 deletions

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'] = '48.0.1'
115+
header_params['purecloud-sdk'] = '49.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/authorization_api.py

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,81 @@ def get_authorization_subjects_me(self, **kwargs):
16091609
callback=params.get('callback'))
16101610
return response
16111611

1612+
def get_authorization_subjects_rolecounts(self, **kwargs):
1613+
"""
1614+
Get the count of roles granted to a list of subjects
1615+
1616+
1617+
This method makes a synchronous HTTP request by default. To make an
1618+
asynchronous HTTP request, please define a `callback` function
1619+
to be invoked when receiving the response.
1620+
>>> def callback_function(response):
1621+
>>> pprint(response)
1622+
>>>
1623+
>>> thread = api.get_authorization_subjects_rolecounts(callback=callback_function)
1624+
1625+
:param callback function: The callback function
1626+
for asynchronous request. (optional)
1627+
:param list[str] id: id
1628+
:return: dict(str, object)
1629+
If the method is called asynchronously,
1630+
returns the request thread.
1631+
"""
1632+
1633+
all_params = ['id']
1634+
all_params.append('callback')
1635+
1636+
params = locals()
1637+
for key, val in iteritems(params['kwargs']):
1638+
if key not in all_params:
1639+
raise TypeError(
1640+
"Got an unexpected keyword argument '%s'"
1641+
" to method get_authorization_subjects_rolecounts" % key
1642+
)
1643+
params[key] = val
1644+
del params['kwargs']
1645+
1646+
1647+
1648+
resource_path = '/api/v2/authorization/subjects/rolecounts'.replace('{format}', 'json')
1649+
path_params = {}
1650+
1651+
query_params = {}
1652+
if 'id' in params:
1653+
query_params['id'] = params['id']
1654+
1655+
header_params = {}
1656+
1657+
form_params = []
1658+
local_var_files = {}
1659+
1660+
body_params = None
1661+
1662+
# HTTP header `Accept`
1663+
header_params['Accept'] = self.api_client.\
1664+
select_header_accept(['application/json'])
1665+
if not header_params['Accept']:
1666+
del header_params['Accept']
1667+
1668+
# HTTP header `Content-Type`
1669+
header_params['Content-Type'] = self.api_client.\
1670+
select_header_content_type(['application/json'])
1671+
1672+
# Authentication setting
1673+
auth_settings = ['PureCloud OAuth']
1674+
1675+
response = self.api_client.call_api(resource_path, 'GET',
1676+
path_params,
1677+
query_params,
1678+
header_params,
1679+
body=body_params,
1680+
post_params=form_params,
1681+
files=local_var_files,
1682+
response_type='dict(str, object)',
1683+
auth_settings=auth_settings,
1684+
callback=params.get('callback'))
1685+
return response
1686+
16121687
def get_user_roles(self, user_id, **kwargs):
16131688
"""
16141689
Returns a listing of roles and permissions for a user.

build/PureCloudPlatformClientV2/apis/integrations_api.py

Lines changed: 52 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ def get_integrations_action(self, action_id, **kwargs):
638638
:param callback function: The callback function
639639
for asynchronous request. (optional)
640640
:param str action_id: actionId (required)
641-
:param str expand: Indicates fields of the response which should be expanded.
642-
:param bool include_config: Show config when available
641+
:param str expand: Indicates a field in the response which should be expanded.
642+
:param bool include_config: Return config in response.
643643
:return: Action
644644
If the method is called asynchronously,
645645
returns the request thread.
@@ -722,8 +722,8 @@ def get_integrations_action_draft(self, action_id, **kwargs):
722722
:param callback function: The callback function
723723
for asynchronous request. (optional)
724724
:param str action_id: actionId (required)
725-
:param str expand: Indicates fields of the response which should be expanded.
726-
:param bool include_config: Show config when available
725+
:param str expand: Indicates a field in the response which should be expanded.
726+
:param bool include_config: Return config in response.
727727
:return: Action
728728
If the method is called asynchronously,
729729
returns the request thread.
@@ -1219,21 +1219,22 @@ def get_integrations_actions(self, **kwargs):
12191219
12201220
:param callback function: The callback function
12211221
for asynchronous request. (optional)
1222-
:param str category: Filter by category name
1223-
:param str secure: Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1224-
:param str include_auth_actions: Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
12251222
:param int page_size: The total page size requested
12261223
:param int page_number: The page number requested
1227-
:param str sort_by: variable name requested to sort by
1228-
:param list[str] expand: variable name requested by expand list
12291224
:param str next_page: next page token
12301225
:param str previous_page: Previous page token
1226+
:param str sort_by: Root level field name to sort on.
1227+
:param str sort_order: Direction to sort 'sortBy' field.
1228+
:param str category: Filter by category name
1229+
:param str name: Filter by action name. Provide full or just the first part of name.
1230+
:param str secure: Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1231+
:param str include_auth_actions: Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
12311232
:return: ActionEntityListing
12321233
If the method is called asynchronously,
12331234
returns the request thread.
12341235
"""
12351236

1236-
all_params = ['category', 'secure', 'include_auth_actions', 'page_size', 'page_number', 'sort_by', 'expand', 'next_page', 'previous_page']
1237+
all_params = ['page_size', 'page_number', 'next_page', 'previous_page', 'sort_by', 'sort_order', 'category', 'name', 'secure', 'include_auth_actions']
12371238
all_params.append('callback')
12381239

12391240
params = locals()
@@ -1252,24 +1253,26 @@ def get_integrations_actions(self, **kwargs):
12521253
path_params = {}
12531254

12541255
query_params = {}
1255-
if 'category' in params:
1256-
query_params['category'] = params['category']
1257-
if 'secure' in params:
1258-
query_params['secure'] = params['secure']
1259-
if 'include_auth_actions' in params:
1260-
query_params['includeAuthActions'] = params['include_auth_actions']
12611256
if 'page_size' in params:
12621257
query_params['pageSize'] = params['page_size']
12631258
if 'page_number' in params:
12641259
query_params['pageNumber'] = params['page_number']
1265-
if 'sort_by' in params:
1266-
query_params['sortBy'] = params['sort_by']
1267-
if 'expand' in params:
1268-
query_params['expand'] = params['expand']
12691260
if 'next_page' in params:
12701261
query_params['nextPage'] = params['next_page']
12711262
if 'previous_page' in params:
12721263
query_params['previousPage'] = params['previous_page']
1264+
if 'sort_by' in params:
1265+
query_params['sortBy'] = params['sort_by']
1266+
if 'sort_order' in params:
1267+
query_params['sortOrder'] = params['sort_order']
1268+
if 'category' in params:
1269+
query_params['category'] = params['category']
1270+
if 'name' in params:
1271+
query_params['name'] = params['name']
1272+
if 'secure' in params:
1273+
query_params['secure'] = params['secure']
1274+
if 'include_auth_actions' in params:
1275+
query_params['includeAuthActions'] = params['include_auth_actions']
12731276

12741277
header_params = {}
12751278

@@ -1318,19 +1321,19 @@ def get_integrations_actions_categories(self, **kwargs):
13181321
13191322
:param callback function: The callback function
13201323
for asynchronous request. (optional)
1321-
:param str secure: Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions.
13221324
:param int page_size: The total page size requested
13231325
:param int page_number: The page number requested
1324-
:param str sort_by: variable name requested to sort by
1325-
:param list[str] expand: variable name requested by expand list
13261326
:param str next_page: next page token
13271327
:param str previous_page: Previous page token
1328+
:param str sort_by: Root level field name to sort on.
1329+
:param str sort_order: Direction to sort 'sortBy' field.
1330+
:param str secure: Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
13281331
:return: CategoryEntityListing
13291332
If the method is called asynchronously,
13301333
returns the request thread.
13311334
"""
13321335

1333-
all_params = ['secure', 'page_size', 'page_number', 'sort_by', 'expand', 'next_page', 'previous_page']
1336+
all_params = ['page_size', 'page_number', 'next_page', 'previous_page', 'sort_by', 'sort_order', 'secure']
13341337
all_params.append('callback')
13351338

13361339
params = locals()
@@ -1349,20 +1352,20 @@ def get_integrations_actions_categories(self, **kwargs):
13491352
path_params = {}
13501353

13511354
query_params = {}
1352-
if 'secure' in params:
1353-
query_params['secure'] = params['secure']
13541355
if 'page_size' in params:
13551356
query_params['pageSize'] = params['page_size']
13561357
if 'page_number' in params:
13571358
query_params['pageNumber'] = params['page_number']
1358-
if 'sort_by' in params:
1359-
query_params['sortBy'] = params['sort_by']
1360-
if 'expand' in params:
1361-
query_params['expand'] = params['expand']
13621359
if 'next_page' in params:
13631360
query_params['nextPage'] = params['next_page']
13641361
if 'previous_page' in params:
13651362
query_params['previousPage'] = params['previous_page']
1363+
if 'sort_by' in params:
1364+
query_params['sortBy'] = params['sort_by']
1365+
if 'sort_order' in params:
1366+
query_params['sortOrder'] = params['sort_order']
1367+
if 'secure' in params:
1368+
query_params['secure'] = params['secure']
13661369

13671370
header_params = {}
13681371

@@ -1411,21 +1414,22 @@ def get_integrations_actions_drafts(self, **kwargs):
14111414
14121415
:param callback function: The callback function
14131416
for asynchronous request. (optional)
1414-
:param str category: Filter by category name
1415-
:param str secure: Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1416-
:param str include_auth_actions: Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
14171417
:param int page_size: The total page size requested
14181418
:param int page_number: The page number requested
1419-
:param str sort_by: variable name requested to sort by
1420-
:param list[str] expand: variable name requested by expand list
14211419
:param str next_page: next page token
14221420
:param str previous_page: Previous page token
1421+
:param str sort_by: Root level field name to sort on.
1422+
:param str sort_order: Direction to sort 'sortBy' field.
1423+
:param str category: Filter by category name
1424+
:param str name: Filter by action name. Provide full or just the first part of name.
1425+
:param str secure: Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions.
1426+
:param str include_auth_actions: Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions.
14231427
:return: ActionEntityListing
14241428
If the method is called asynchronously,
14251429
returns the request thread.
14261430
"""
14271431

1428-
all_params = ['category', 'secure', 'include_auth_actions', 'page_size', 'page_number', 'sort_by', 'expand', 'next_page', 'previous_page']
1432+
all_params = ['page_size', 'page_number', 'next_page', 'previous_page', 'sort_by', 'sort_order', 'category', 'name', 'secure', 'include_auth_actions']
14291433
all_params.append('callback')
14301434

14311435
params = locals()
@@ -1444,24 +1448,26 @@ def get_integrations_actions_drafts(self, **kwargs):
14441448
path_params = {}
14451449

14461450
query_params = {}
1447-
if 'category' in params:
1448-
query_params['category'] = params['category']
1449-
if 'secure' in params:
1450-
query_params['secure'] = params['secure']
1451-
if 'include_auth_actions' in params:
1452-
query_params['includeAuthActions'] = params['include_auth_actions']
14531451
if 'page_size' in params:
14541452
query_params['pageSize'] = params['page_size']
14551453
if 'page_number' in params:
14561454
query_params['pageNumber'] = params['page_number']
1457-
if 'sort_by' in params:
1458-
query_params['sortBy'] = params['sort_by']
1459-
if 'expand' in params:
1460-
query_params['expand'] = params['expand']
14611455
if 'next_page' in params:
14621456
query_params['nextPage'] = params['next_page']
14631457
if 'previous_page' in params:
14641458
query_params['previousPage'] = params['previous_page']
1459+
if 'sort_by' in params:
1460+
query_params['sortBy'] = params['sort_by']
1461+
if 'sort_order' in params:
1462+
query_params['sortOrder'] = params['sort_order']
1463+
if 'category' in params:
1464+
query_params['category'] = params['category']
1465+
if 'name' in params:
1466+
query_params['name'] = params['name']
1467+
if 'secure' in params:
1468+
query_params['secure'] = params['secure']
1469+
if 'include_auth_actions' in params:
1470+
query_params['includeAuthActions'] = params['include_auth_actions']
14651471

14661472
header_params = {}
14671473

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,12 +1940,14 @@ def get_routing_queue_wrapupcodes(self, queue_id, **kwargs):
19401940
:param callback function: The callback function
19411941
for asynchronous request. (optional)
19421942
:param str queue_id: Queue ID (required)
1943+
:param int page_size: Page size
1944+
:param int page_number: Page number
19431945
:return: WrapupCodeEntityListing
19441946
If the method is called asynchronously,
19451947
returns the request thread.
19461948
"""
19471949

1948-
all_params = ['queue_id']
1950+
all_params = ['queue_id', 'page_size', 'page_number']
19491951
all_params.append('callback')
19501952

19511953
params = locals()
@@ -1969,6 +1971,10 @@ def get_routing_queue_wrapupcodes(self, queue_id, **kwargs):
19691971
path_params['queueId'] = params['queue_id']
19701972

19711973
query_params = {}
1974+
if 'page_size' in params:
1975+
query_params['pageSize'] = params['page_size']
1976+
if 'page_number' in params:
1977+
query_params['pageNumber'] = params['page_number']
19721978

19731979
header_params = {}
19741980

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,7 +2520,8 @@ def get_users(self, **kwargs):
25202520
for asynchronous request. (optional)
25212521
:param int page_size: Page size
25222522
:param int page_number: Page number
2523-
:param list[str] id: id
2523+
:param list[str] id: A list of user IDs to fetch by bulk
2524+
:param list[str] jabber_id: A list of jabberIds to fetch by bulk (cannot be used with the \"id\" parameter)
25242525
:param str sort_order: Ascending or descending sort order
25252526
:param list[str] expand: Which fields, if any, to expand
25262527
:param str state: Only list users of this state
@@ -2529,7 +2530,7 @@ def get_users(self, **kwargs):
25292530
returns the request thread.
25302531
"""
25312532

2532-
all_params = ['page_size', 'page_number', 'id', 'sort_order', 'expand', 'state']
2533+
all_params = ['page_size', 'page_number', 'id', 'jabber_id', 'sort_order', 'expand', 'state']
25332534
all_params.append('callback')
25342535

25352536
params = locals()
@@ -2554,6 +2555,8 @@ def get_users(self, **kwargs):
25542555
query_params['pageNumber'] = params['page_number']
25552556
if 'id' in params:
25562557
query_params['id'] = params['id']
2558+
if 'jabber_id' in params:
2559+
query_params['jabberId'] = params['jabber_id']
25572560
if 'sort_order' in params:
25582561
query_params['sortOrder'] = params['sort_order']
25592562
if 'expand' in params:

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,5 @@ def to_debug_report(self):
245245
"OS: {env}\n"\
246246
"Python Version: {pyversion}\n"\
247247
"Version of the API: v2\n"\
248-
"SDK Package Version: 48.0.1".\
248+
"SDK Package Version: 49.0.0".\
249249
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)