Skip to content

Commit c805f70

Browse files
author
PureCloud Jenkins
committed
67.0.0
1 parent b4eacaf commit c805f70

380 files changed

Lines changed: 5652 additions & 3923 deletions

File tree

Some content is hidden

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

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@
904904
from .models.local_encryption_key_request import LocalEncryptionKeyRequest
905905
from .models.location import Location
906906
from .models.location_address import LocationAddress
907+
from .models.location_address_verification_details import LocationAddressVerificationDetails
907908
from .models.location_create_update_definition import LocationCreateUpdateDefinition
908909
from .models.location_definition import LocationDefinition
909910
from .models.location_emergency_number import LocationEmergencyNumber
@@ -1320,6 +1321,8 @@
13201321
from .models.reverse_whitepages_lookup_result import ReverseWhitepagesLookupResult
13211322
from .models.ring import Ring
13221323
from .models.role_division import RoleDivision
1324+
from .models.role_division_grants import RoleDivisionGrants
1325+
from .models.role_division_pair import RoleDivisionPair
13231326
from .models.route_group import RouteGroup
13241327
from .models.route_group_attributes import RouteGroupAttributes
13251328
from .models.route_group_list import RouteGroupList

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __call_api(self, resource_path, method,
185185
header_params['Cookie'] = self.cookie
186186
if header_params:
187187
header_params = self.sanitize_for_serialization(header_params)
188-
header_params['purecloud-sdk'] = '66.0.0'
188+
header_params['purecloud-sdk'] = '67.0.0'
189189

190190
# path parameters
191191
if path_params:

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3982,6 +3982,7 @@ def get_flows(self, **kwargs):
39823982
:param str publish_version_id: Publish version ID
39833983
:param str editable_by: Editable by
39843984
:param str locked_by: Locked by
3985+
:param str locked_by_client_id: Locked by client ID
39853986
:param str secure: Secure
39863987
:param bool deleted: Include deleted
39873988
:param bool include_schemas: Include variable schemas
@@ -3993,7 +3994,7 @@ def get_flows(self, **kwargs):
39933994
returns the request thread.
39943995
"""
39953996

3996-
all_params = ['type', 'page_number', 'page_size', 'sort_by', 'sort_order', 'id', 'name', 'description', 'name_or_description', 'publish_version_id', 'editable_by', 'locked_by', 'secure', 'deleted', 'include_schemas', 'published_after', 'published_before', 'division_id']
3997+
all_params = ['type', 'page_number', 'page_size', 'sort_by', 'sort_order', 'id', 'name', 'description', 'name_or_description', 'publish_version_id', 'editable_by', 'locked_by', 'locked_by_client_id', 'secure', 'deleted', 'include_schemas', 'published_after', 'published_before', 'division_id']
39973998
all_params.append('callback')
39983999

39994000
params = locals()
@@ -4036,6 +4037,8 @@ def get_flows(self, **kwargs):
40364037
query_params['editableBy'] = params['editable_by']
40374038
if 'locked_by' in params:
40384039
query_params['lockedBy'] = params['locked_by']
4040+
if 'locked_by_client_id' in params:
4041+
query_params['lockedByClientId'] = params['locked_by_client_id']
40394042
if 'secure' in params:
40404043
query_params['secure'] = params['secure']
40414044
if 'deleted' in params:

build/PureCloudPlatformClientV2/apis/authorization_api.py

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,177 @@ def post_authorization_roles_default(self, **kwargs):
23472347
callback=params.get('callback'))
23482348
return response
23492349

2350+
def post_authorization_subject_bulkadd(self, subject_id, body, **kwargs):
2351+
"""
2352+
Bulk-grant roles and divisions to a subject.
2353+
2354+
2355+
This method makes a synchronous HTTP request by default. To make an
2356+
asynchronous HTTP request, please define a `callback` function
2357+
to be invoked when receiving the response.
2358+
>>> def callback_function(response):
2359+
>>> pprint(response)
2360+
>>>
2361+
>>> thread = api.post_authorization_subject_bulkadd(subject_id, body, callback=callback_function)
2362+
2363+
:param callback function: The callback function
2364+
for asynchronous request. (optional)
2365+
:param str subject_id: Subject ID (user or group) (required)
2366+
:param RoleDivisionGrants body: Pairs of role and division IDs (required)
2367+
:param str subject_type: what the type of the subject is (PC_GROUP, PC_USER or PC_OAUTH_CLIENT)
2368+
:return: None
2369+
If the method is called asynchronously,
2370+
returns the request thread.
2371+
"""
2372+
2373+
all_params = ['subject_id', 'body', 'subject_type']
2374+
all_params.append('callback')
2375+
2376+
params = locals()
2377+
for key, val in iteritems(params['kwargs']):
2378+
if key not in all_params:
2379+
raise TypeError(
2380+
"Got an unexpected keyword argument '%s'"
2381+
" to method post_authorization_subject_bulkadd" % key
2382+
)
2383+
params[key] = val
2384+
del params['kwargs']
2385+
2386+
# verify the required parameter 'subject_id' is set
2387+
if ('subject_id' not in params) or (params['subject_id'] is None):
2388+
raise ValueError("Missing the required parameter `subject_id` when calling `post_authorization_subject_bulkadd`")
2389+
# verify the required parameter 'body' is set
2390+
if ('body' not in params) or (params['body'] is None):
2391+
raise ValueError("Missing the required parameter `body` when calling `post_authorization_subject_bulkadd`")
2392+
2393+
2394+
resource_path = '/api/v2/authorization/subjects/{subjectId}/bulkadd'.replace('{format}', 'json')
2395+
path_params = {}
2396+
if 'subject_id' in params:
2397+
path_params['subjectId'] = params['subject_id']
2398+
2399+
query_params = {}
2400+
if 'subject_type' in params:
2401+
query_params['subjectType'] = params['subject_type']
2402+
2403+
header_params = {}
2404+
2405+
form_params = []
2406+
local_var_files = {}
2407+
2408+
body_params = None
2409+
if 'body' in params:
2410+
body_params = params['body']
2411+
2412+
# HTTP header `Accept`
2413+
header_params['Accept'] = self.api_client.\
2414+
select_header_accept(['application/json'])
2415+
if not header_params['Accept']:
2416+
del header_params['Accept']
2417+
2418+
# HTTP header `Content-Type`
2419+
header_params['Content-Type'] = self.api_client.\
2420+
select_header_content_type(['application/json'])
2421+
2422+
# Authentication setting
2423+
auth_settings = ['PureCloud OAuth']
2424+
2425+
response = self.api_client.call_api(resource_path, 'POST',
2426+
path_params,
2427+
query_params,
2428+
header_params,
2429+
body=body_params,
2430+
post_params=form_params,
2431+
files=local_var_files,
2432+
response_type=None,
2433+
auth_settings=auth_settings,
2434+
callback=params.get('callback'))
2435+
return response
2436+
2437+
def post_authorization_subject_bulkremove(self, subject_id, body, **kwargs):
2438+
"""
2439+
Bulk-remove grants from a subject.
2440+
2441+
2442+
This method makes a synchronous HTTP request by default. To make an
2443+
asynchronous HTTP request, please define a `callback` function
2444+
to be invoked when receiving the response.
2445+
>>> def callback_function(response):
2446+
>>> pprint(response)
2447+
>>>
2448+
>>> thread = api.post_authorization_subject_bulkremove(subject_id, body, callback=callback_function)
2449+
2450+
:param callback function: The callback function
2451+
for asynchronous request. (optional)
2452+
:param str subject_id: Subject ID (user or group) (required)
2453+
:param RoleDivisionGrants body: Pairs of role and division IDs (required)
2454+
:return: None
2455+
If the method is called asynchronously,
2456+
returns the request thread.
2457+
"""
2458+
2459+
all_params = ['subject_id', 'body']
2460+
all_params.append('callback')
2461+
2462+
params = locals()
2463+
for key, val in iteritems(params['kwargs']):
2464+
if key not in all_params:
2465+
raise TypeError(
2466+
"Got an unexpected keyword argument '%s'"
2467+
" to method post_authorization_subject_bulkremove" % key
2468+
)
2469+
params[key] = val
2470+
del params['kwargs']
2471+
2472+
# verify the required parameter 'subject_id' is set
2473+
if ('subject_id' not in params) or (params['subject_id'] is None):
2474+
raise ValueError("Missing the required parameter `subject_id` when calling `post_authorization_subject_bulkremove`")
2475+
# verify the required parameter 'body' is set
2476+
if ('body' not in params) or (params['body'] is None):
2477+
raise ValueError("Missing the required parameter `body` when calling `post_authorization_subject_bulkremove`")
2478+
2479+
2480+
resource_path = '/api/v2/authorization/subjects/{subjectId}/bulkremove'.replace('{format}', 'json')
2481+
path_params = {}
2482+
if 'subject_id' in params:
2483+
path_params['subjectId'] = params['subject_id']
2484+
2485+
query_params = {}
2486+
2487+
header_params = {}
2488+
2489+
form_params = []
2490+
local_var_files = {}
2491+
2492+
body_params = None
2493+
if 'body' in params:
2494+
body_params = params['body']
2495+
2496+
# HTTP header `Accept`
2497+
header_params['Accept'] = self.api_client.\
2498+
select_header_accept(['application/json'])
2499+
if not header_params['Accept']:
2500+
del header_params['Accept']
2501+
2502+
# HTTP header `Content-Type`
2503+
header_params['Content-Type'] = self.api_client.\
2504+
select_header_content_type(['application/json'])
2505+
2506+
# Authentication setting
2507+
auth_settings = ['PureCloud OAuth']
2508+
2509+
response = self.api_client.call_api(resource_path, 'POST',
2510+
path_params,
2511+
query_params,
2512+
header_params,
2513+
body=body_params,
2514+
post_params=form_params,
2515+
files=local_var_files,
2516+
response_type=None,
2517+
auth_settings=auth_settings,
2518+
callback=params.get('callback'))
2519+
return response
2520+
23502521
def post_authorization_subject_division_role(self, subject_id, division_id, role_id, **kwargs):
23512522
"""
23522523
Make a grant of a role in a division

build/PureCloudPlatformClientV2/apis/notifications_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def post_notifications_channel_subscriptions(self, channel_id, body, **kwargs):
439439
def post_notifications_channels(self, **kwargs):
440440
"""
441441
Create a new channel
442-
There is a limit of 5 channels per user/app combination. Creating a 6th channel will remove the channel with oldest last used date.
442+
There is a limit of 10 channels per user/app combination. Creating an 11th channel will remove the channel with oldest last used date.
443443
444444
This method makes a synchronous HTTP request by default. To make an
445445
asynchronous HTTP request, please define a `callback` function

0 commit comments

Comments
 (0)