Skip to content

Commit 3126758

Browse files
author
PureCloud Jenkins
committed
39.0.0
1 parent 26eb04b commit 3126758

40 files changed

Lines changed: 2083 additions & 293 deletions

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,7 @@
897897
from .models.queue_member_entity_listing import QueueMemberEntityListing
898898
from .models.queue_member_notification import QueueMemberNotification
899899
from .models.queue_reference import QueueReference
900+
from .models.queue_request import QueueRequest
900901
from .models.queue_utilization_diagnostic import QueueUtilizationDiagnostic
901902
from .models.reaction import Reaction
902903
from .models.recall_entry import RecallEntry
@@ -1061,6 +1062,8 @@
10611062
from .models.stats_notification_notification_metric import StatsNotificationNotificationMetric
10621063
from .models.stats_notification_notification_metrics import StatsNotificationNotificationMetrics
10631064
from .models.street_address import StreetAddress
1065+
from .models.subject_division_grants import SubjectDivisionGrants
1066+
from .models.subject_division_grants_entity_listing import SubjectDivisionGrantsEntityListing
10641067
from .models.subscriber_response import SubscriberResponse
10651068
from .models.suggest_search_criteria import SuggestSearchCriteria
10661069
from .models.suggest_search_request import SuggestSearchRequest
@@ -1276,6 +1279,7 @@
12761279
from .models.wrapup import Wrapup
12771280
from .models.wrapup_code import WrapupCode
12781281
from .models.wrapup_code_entity_listing import WrapupCodeEntityListing
1282+
from .models.writable_division import WritableDivision
12791283
from .models.writable_entity import WritableEntity
12801284

12811285
# import apis into sdk package

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

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/authorization_api.py

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,102 @@ def get_authorization_role_comparedefault_right_role_id(self, left_role_id, righ
514514
callback=params.get('callback'))
515515
return response
516516

517+
def get_authorization_role_subjectgrants(self, role_id, **kwargs):
518+
"""
519+
Get the subjects' granted divisions in the specified role.
520+
Includes the divisions for which the subject has a grant.
521+
522+
This method makes a synchronous HTTP request by default. To make an
523+
asynchronous HTTP request, please define a `callback` function
524+
to be invoked when receiving the response.
525+
>>> def callback_function(response):
526+
>>> pprint(response)
527+
>>>
528+
>>> thread = api.get_authorization_role_subjectgrants(role_id, callback=callback_function)
529+
530+
:param callback function: The callback function
531+
for asynchronous request. (optional)
532+
:param str role_id: Role ID (required)
533+
:param int page_size: The total page size requested
534+
:param int page_number: The page number requested
535+
:param str sort_by: variable name requested to sort by
536+
:param list[str] expand: variable name requested by expand list
537+
:param str next_page: next page token
538+
:param str previous_page: Previous page token
539+
:return: SubjectDivisionGrantsEntityListing
540+
If the method is called asynchronously,
541+
returns the request thread.
542+
"""
543+
544+
all_params = ['role_id', 'page_size', 'page_number', 'sort_by', 'expand', 'next_page', 'previous_page']
545+
all_params.append('callback')
546+
547+
params = locals()
548+
for key, val in iteritems(params['kwargs']):
549+
if key not in all_params:
550+
raise TypeError(
551+
"Got an unexpected keyword argument '%s'"
552+
" to method get_authorization_role_subjectgrants" % key
553+
)
554+
params[key] = val
555+
del params['kwargs']
556+
557+
# verify the required parameter 'role_id' is set
558+
if ('role_id' not in params) or (params['role_id'] is None):
559+
raise ValueError("Missing the required parameter `role_id` when calling `get_authorization_role_subjectgrants`")
560+
561+
562+
resource_path = '/api/v2/authorization/roles/{roleId}/subjectgrants'.replace('{format}', 'json')
563+
path_params = {}
564+
if 'role_id' in params:
565+
path_params['roleId'] = params['role_id']
566+
567+
query_params = {}
568+
if 'page_size' in params:
569+
query_params['pageSize'] = params['page_size']
570+
if 'page_number' in params:
571+
query_params['pageNumber'] = params['page_number']
572+
if 'sort_by' in params:
573+
query_params['sortBy'] = params['sort_by']
574+
if 'expand' in params:
575+
query_params['expand'] = params['expand']
576+
if 'next_page' in params:
577+
query_params['nextPage'] = params['next_page']
578+
if 'previous_page' in params:
579+
query_params['previousPage'] = params['previous_page']
580+
581+
header_params = {}
582+
583+
form_params = []
584+
local_var_files = {}
585+
586+
body_params = None
587+
588+
# HTTP header `Accept`
589+
header_params['Accept'] = self.api_client.\
590+
select_header_accept(['application/json'])
591+
if not header_params['Accept']:
592+
del header_params['Accept']
593+
594+
# HTTP header `Content-Type`
595+
header_params['Content-Type'] = self.api_client.\
596+
select_header_content_type(['application/json'])
597+
598+
# Authentication setting
599+
auth_settings = ['PureCloud Auth']
600+
601+
response = self.api_client.call_api(resource_path, 'GET',
602+
path_params,
603+
query_params,
604+
header_params,
605+
body=body_params,
606+
post_params=form_params,
607+
files=local_var_files,
608+
response_type='SubjectDivisionGrantsEntityListing',
609+
auth_settings=auth_settings,
610+
callback=params.get('callback'))
611+
return response
612+
517613
def get_authorization_roles(self, **kwargs):
518614
"""
519615
Retrieve a list of all roles defined for the organization

build/PureCloudPlatformClientV2/apis/external_contacts_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ def get_externalcontacts_relationship(self, relationship_id, **kwargs):
14911491

14921492
def get_externalcontacts_reversewhitepageslookup(self, lookup_val, **kwargs):
14931493
"""
1494-
Lookup contacts and externalOrganizations based on an attribute
1494+
Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
14951495
14961496
14971497
This method makes a synchronous HTTP request by default. To make an

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,7 +3765,7 @@ def post_routing_queue_wrapupcodes(self, queue_id, body, **kwargs):
37653765

37663766
def post_routing_queues(self, body, **kwargs):
37673767
"""
3768-
Create queue
3768+
Create a queue
37693769
37703770
37713771
This method makes a synchronous HTTP request by default. To make an
@@ -4511,7 +4511,7 @@ def put_routing_queue(self, queue_id, body, **kwargs):
45114511
:param callback function: The callback function
45124512
for asynchronous request. (optional)
45134513
:param str queue_id: Queue ID (required)
4514-
:param Queue body: Queue (required)
4514+
:param QueueRequest body: Queue (required)
45154515
:return: Queue
45164516
If the method is called asynchronously,
45174517
returns the request thread.

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: 38.1.0".\
241+
"SDK Package Version: 39.0.0".\
242242
format(env=sys.platform, pyversion=sys.version)

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,7 @@
897897
from .queue_member_entity_listing import QueueMemberEntityListing
898898
from .queue_member_notification import QueueMemberNotification
899899
from .queue_reference import QueueReference
900+
from .queue_request import QueueRequest
900901
from .queue_utilization_diagnostic import QueueUtilizationDiagnostic
901902
from .reaction import Reaction
902903
from .recall_entry import RecallEntry
@@ -1061,6 +1062,8 @@
10611062
from .stats_notification_notification_metric import StatsNotificationNotificationMetric
10621063
from .stats_notification_notification_metrics import StatsNotificationNotificationMetrics
10631064
from .street_address import StreetAddress
1065+
from .subject_division_grants import SubjectDivisionGrants
1066+
from .subject_division_grants_entity_listing import SubjectDivisionGrantsEntityListing
10641067
from .subscriber_response import SubscriberResponse
10651068
from .suggest_search_criteria import SuggestSearchCriteria
10661069
from .suggest_search_request import SuggestSearchRequest
@@ -1276,4 +1279,5 @@
12761279
from .wrapup import Wrapup
12771280
from .wrapup_code import WrapupCode
12781281
from .wrapup_code_entity_listing import WrapupCodeEntityListing
1282+
from .writable_division import WritableDivision
12791283
from .writable_entity import WritableEntity

build/PureCloudPlatformClientV2/models/create_queue_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self):
4040
self.swagger_types = {
4141
'id': 'str',
4242
'name': 'str',
43-
'division': 'Division',
43+
'division': 'WritableDivision',
4444
'description': 'str',
4545
'version': 'int',
4646
'date_created': 'datetime',
@@ -175,7 +175,7 @@ def division(self):
175175
The division to which this entity belongs.
176176
177177
:return: The division of this CreateQueueRequest.
178-
:rtype: Division
178+
:rtype: WritableDivision
179179
"""
180180
return self._division
181181

@@ -186,7 +186,7 @@ def division(self, division):
186186
The division to which this entity belongs.
187187
188188
:param division: The division of this CreateQueueRequest.
189-
:type: Division
189+
:type: WritableDivision
190190
"""
191191

192192
self._division = division

build/PureCloudPlatformClientV2/models/domain_organization_role.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def __init__(self):
4646
'permission_policies': 'list[DomainPermissionPolicy]',
4747
'user_count': 'int',
4848
'role_needs_update': 'bool',
49-
'default': 'bool',
5049
'base': 'bool',
50+
'default': 'bool',
5151
'self_uri': 'str'
5252
}
5353

@@ -60,8 +60,8 @@ def __init__(self):
6060
'permission_policies': 'permissionPolicies',
6161
'user_count': 'userCount',
6262
'role_needs_update': 'roleNeedsUpdate',
63-
'default': 'default',
6463
'base': 'base',
64+
'default': 'default',
6565
'self_uri': 'selfUri'
6666
}
6767

@@ -73,8 +73,8 @@ def __init__(self):
7373
self._permission_policies = None
7474
self._user_count = None
7575
self._role_needs_update = None
76-
self._default = None
7776
self._base = None
77+
self._default = None
7878
self._self_uri = None
7979

8080
@property
@@ -262,50 +262,50 @@ def role_needs_update(self, role_needs_update):
262262
self._role_needs_update = role_needs_update
263263

264264
@property
265-
def default(self):
265+
def base(self):
266266
"""
267-
Gets the default of this DomainOrganizationRole.
267+
Gets the base of this DomainOrganizationRole.
268268
269269
270-
:return: The default of this DomainOrganizationRole.
270+
:return: The base of this DomainOrganizationRole.
271271
:rtype: bool
272272
"""
273-
return self._default
273+
return self._base
274274

275-
@default.setter
276-
def default(self, default):
275+
@base.setter
276+
def base(self, base):
277277
"""
278-
Sets the default of this DomainOrganizationRole.
278+
Sets the base of this DomainOrganizationRole.
279279
280280
281-
:param default: The default of this DomainOrganizationRole.
281+
:param base: The base of this DomainOrganizationRole.
282282
:type: bool
283283
"""
284284

285-
self._default = default
285+
self._base = base
286286

287287
@property
288-
def base(self):
288+
def default(self):
289289
"""
290-
Gets the base of this DomainOrganizationRole.
290+
Gets the default of this DomainOrganizationRole.
291291
292292
293-
:return: The base of this DomainOrganizationRole.
293+
:return: The default of this DomainOrganizationRole.
294294
:rtype: bool
295295
"""
296-
return self._base
296+
return self._default
297297

298-
@base.setter
299-
def base(self, base):
298+
@default.setter
299+
def default(self, default):
300300
"""
301-
Sets the base of this DomainOrganizationRole.
301+
Sets the default of this DomainOrganizationRole.
302302
303303
304-
:param base: The base of this DomainOrganizationRole.
304+
:param default: The default of this DomainOrganizationRole.
305305
:type: bool
306306
"""
307307

308-
self._base = base
308+
self._default = default
309309

310310
@property
311311
def self_uri(self):

0 commit comments

Comments
 (0)