Skip to content

Commit 0cca208

Browse files
author
PureCloud Jenkins
committed
104.0.0
1 parent 3477b54 commit 0cca208

1,096 files changed

Lines changed: 8680 additions & 8310 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.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Platform API Client SDK - Python
33
---
44

55
[![PyPI version](https://badge.fury.io/py/PureCloudPlatformClientV2.svg)](https://badge.fury.io/py/PureCloudPlatformClientV2)
6+
[![Release Notes Badge](https://developer.mypurecloud.com/images/sdk-release-notes.png)](releaseNotes.md)
67

78
Documentation can be found at [https://developer.mypurecloud.com/api/rest/client-libraries/python/](https://developer.mypurecloud.com/api/rest/client-libraries/python/)
89

@@ -37,7 +38,7 @@ For headless and non-user applications, the [Client Credentials Grant](http://de
3738
```{"language":"python"}
3839
apiclient = PureCloudPlatformClientV2.api_client.ApiClient().get_client_credentials_token("7de3af06-c0b3-4f9b-af45-72f4a14037cc", "qLh-825gtjPrIY2kcWKAkmlaSgi6Z1Ws2BAyixWbTrs")
3940
authApi = PureCloudPlatformClientV2.AuthorizationApi(apiclient)
40-
print authApi.get_authorization_permissions()
41+
print(authApi.get_authorization_permissions())
4142
```
4243

4344
#### OAuth2 SAML2 Bearer Grant
@@ -49,7 +50,7 @@ print authApi.get_authorization_permissions()
4950
```{"language":"python"}
5051
apiclient = PureCloudPlatformClientV2.api_client.ApiClient().get_saml2bearer_token("565c3091-4107-4675-b606-b1fead2d15a4", "9pal483eSr_vCZf0qQomFK298I8htjBZo49FI_lLZQ8", orgName ,encodedsamlassertion)
5152
usersApi = PureCloudPlatformClientV2.UsersApi(apiclient)
52-
print usersApi.get_users_me()
53+
print(usersApi.get_users_me())
5354
5455
```
5556

@@ -92,15 +93,15 @@ Example of getting the authenticated user's information:
9293

9394
```{"language":"python"}
9495
usersApi = PureCloudPlatformClientV2.UsersApi()
95-
print usersApi.get_users_me()
96+
print(usersApi.get_users_me())
9697
```
9798

9899
### Transform response object to JSON
99100

100101
You can use `to_json()` method on the model to get a raw JSON string of the model.
101102

102103
```{"language":"python"}
103-
print usersApi.get_users_me().to_json()
104+
print(usersApi.get_users_me().to_json())
104105
```
105106

106107
## SDK Source Code Generation

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@
318318
from .models.coaching_appointment_reference import CoachingAppointmentReference
319319
from .models.coaching_appointment_response import CoachingAppointmentResponse
320320
from .models.coaching_appointment_response_list import CoachingAppointmentResponseList
321-
from .models.coaching_appointment_status_dto import CoachingAppointmentStatusDto
322-
from .models.coaching_appointment_status_dto_list import CoachingAppointmentStatusDtoList
321+
from .models.coaching_appointment_status_request import CoachingAppointmentStatusRequest
322+
from .models.coaching_appointment_status_response import CoachingAppointmentStatusResponse
323+
from .models.coaching_appointment_status_response_list import CoachingAppointmentStatusResponseList
323324
from .models.coaching_notification import CoachingNotification
324325
from .models.coaching_notification_list import CoachingNotificationList
325326
from .models.cobrowse_conversation import CobrowseConversation

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'] = '103.0.0'
188+
header_params['purecloud-sdk'] = '104.0.0'
189189

190190
# path parameters
191191
if path_params:

build/PureCloudPlatformClientV2/apis/coaching_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def get_coaching_appointment_statuses(self, appointment_id, **kwargs):
472472
:param str appointment_id: The ID of the coaching appointment. (required)
473473
:param int page_number: Page number
474474
:param int page_size: Page size
475-
:return: CoachingAppointmentStatusDtoList
475+
:return: CoachingAppointmentStatusResponseList
476476
If the method is called asynchronously,
477477
returns the request thread.
478478
"""
@@ -533,7 +533,7 @@ def get_coaching_appointment_statuses(self, appointment_id, **kwargs):
533533
body=body_params,
534534
post_params=form_params,
535535
files=local_var_files,
536-
response_type='CoachingAppointmentStatusDtoList',
536+
response_type='CoachingAppointmentStatusResponseList',
537537
auth_settings=auth_settings,
538538
callback=params.get('callback'))
539539
return response
@@ -1094,8 +1094,8 @@ def patch_coaching_appointment_status(self, appointment_id, body, **kwargs):
10941094
:param callback function: The callback function
10951095
for asynchronous request. (optional)
10961096
:param str appointment_id: The ID of the coaching appointment. (required)
1097-
:param CoachingAppointmentStatusDto body: Updated status of the coaching appointment (required)
1098-
:return: CoachingAppointmentStatusDto
1097+
:param CoachingAppointmentStatusRequest body: Updated status of the coaching appointment (required)
1098+
:return: CoachingAppointmentStatusResponse
10991099
If the method is called asynchronously,
11001100
returns the request thread.
11011101
"""
@@ -1157,7 +1157,7 @@ def patch_coaching_appointment_status(self, appointment_id, body, **kwargs):
11571157
body=body_params,
11581158
post_params=form_params,
11591159
files=local_var_files,
1160-
response_type='CoachingAppointmentStatusDto',
1160+
response_type='CoachingAppointmentStatusResponse',
11611161
auth_settings=auth_settings,
11621162
callback=params.get('callback'))
11631163
return response

build/PureCloudPlatformClientV2/apis/knowledge_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,13 @@ def get_knowledge_knowledgebase_language_categories(self, knowledge_base_id, lan
403403
:param str after: The cursor that points to the end of the set of entities that has been returned.
404404
:param str limit: Number of entities to return. Maximum of 200.
405405
:param str page_size: Number of entities to return. Maximum of 200.
406+
:param str name: Filter to return the categories that starts with the given category name.
406407
:return: CategoryListing
407408
If the method is called asynchronously,
408409
returns the request thread.
409410
"""
410411

411-
all_params = ['knowledge_base_id', 'language_code', 'before', 'after', 'limit', 'page_size']
412+
all_params = ['knowledge_base_id', 'language_code', 'before', 'after', 'limit', 'page_size', 'name']
412413
all_params.append('callback')
413414

414415
params = locals()
@@ -445,6 +446,8 @@ def get_knowledge_knowledgebase_language_categories(self, knowledge_base_id, lan
445446
query_params['limit'] = params['limit']
446447
if 'page_size' in params:
447448
query_params['pageSize'] = params['page_size']
449+
if 'name' in params:
450+
query_params['name'] = params['name']
448451

449452
header_params = {}
450453

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3634,13 +3634,14 @@ def get_routing_wrapupcodes(self, **kwargs):
36343634
:param int page_size: Page size
36353635
:param int page_number: Page number
36363636
:param str sort_by: Sort by
3637+
:param str sort_order: Sort order
36373638
:param str name: Name
36383639
:return: WrapupCodeEntityListing
36393640
If the method is called asynchronously,
36403641
returns the request thread.
36413642
"""
36423643

3643-
all_params = ['page_size', 'page_number', 'sort_by', 'name']
3644+
all_params = ['page_size', 'page_number', 'sort_by', 'sort_order', 'name']
36443645
all_params.append('callback')
36453646

36463647
params = locals()
@@ -3665,6 +3666,8 @@ def get_routing_wrapupcodes(self, **kwargs):
36653666
query_params['pageNumber'] = params['page_number']
36663667
if 'sort_by' in params:
36673668
query_params['sortBy'] = params['sort_by']
3669+
if 'sort_order' in params:
3670+
query_params['sortOrder'] = params['sort_order']
36683671
if 'name' in params:
36693672
query_params['name'] = params['name']
36703673

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3292,7 +3292,7 @@ def get_users_development_activities_me(self, **kwargs):
32923292
def get_users_development_activity(self, activity_id, type, **kwargs):
32933293
"""
32943294
Get a Development Activity
3295-
3295+
Permission not required if you are the attendee, creator or facilitator of the coaching appointment or you are the assigned user of the learning assignment.
32963296
32973297
This method makes a synchronous HTTP request by default. To make an
32983298
asynchronous HTTP request, please define a `callback` function

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,5 @@ def to_debug_report(self):
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257257
"Version of the API: v2\n"\
258-
"SDK Package Version: 103.0.0".\
258+
"SDK Package Version: 104.0.0".\
259259
format(env=sys.platform, pyversion=sys.version)

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@
318318
from .coaching_appointment_reference import CoachingAppointmentReference
319319
from .coaching_appointment_response import CoachingAppointmentResponse
320320
from .coaching_appointment_response_list import CoachingAppointmentResponseList
321-
from .coaching_appointment_status_dto import CoachingAppointmentStatusDto
322-
from .coaching_appointment_status_dto_list import CoachingAppointmentStatusDtoList
321+
from .coaching_appointment_status_request import CoachingAppointmentStatusRequest
322+
from .coaching_appointment_status_response import CoachingAppointmentStatusResponse
323+
from .coaching_appointment_status_response_list import CoachingAppointmentStatusResponseList
323324
from .coaching_notification import CoachingNotification
324325
from .coaching_notification_list import CoachingNotificationList
325326
from .cobrowse_conversation import CobrowseConversation

build/PureCloudPlatformClientV2/models/action_entity_listing.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def __init__(self):
4646
'total': 'int',
4747
'first_uri': 'str',
4848
'self_uri': 'str',
49-
'next_uri': 'str',
5049
'previous_uri': 'str',
5150
'last_uri': 'str',
51+
'next_uri': 'str',
5252
'page_count': 'int'
5353
}
5454

@@ -59,9 +59,9 @@ def __init__(self):
5959
'total': 'total',
6060
'first_uri': 'firstUri',
6161
'self_uri': 'selfUri',
62-
'next_uri': 'nextUri',
6362
'previous_uri': 'previousUri',
6463
'last_uri': 'lastUri',
64+
'next_uri': 'nextUri',
6565
'page_count': 'pageCount'
6666
}
6767

@@ -71,9 +71,9 @@ def __init__(self):
7171
self._total = None
7272
self._first_uri = None
7373
self._self_uri = None
74-
self._next_uri = None
7574
self._previous_uri = None
7675
self._last_uri = None
76+
self._next_uri = None
7777
self._page_count = None
7878

7979
@property
@@ -214,29 +214,6 @@ def self_uri(self, self_uri):
214214

215215
self._self_uri = self_uri
216216

217-
@property
218-
def next_uri(self):
219-
"""
220-
Gets the next_uri of this ActionEntityListing.
221-
222-
223-
:return: The next_uri of this ActionEntityListing.
224-
:rtype: str
225-
"""
226-
return self._next_uri
227-
228-
@next_uri.setter
229-
def next_uri(self, next_uri):
230-
"""
231-
Sets the next_uri of this ActionEntityListing.
232-
233-
234-
:param next_uri: The next_uri of this ActionEntityListing.
235-
:type: str
236-
"""
237-
238-
self._next_uri = next_uri
239-
240217
@property
241218
def previous_uri(self):
242219
"""
@@ -283,6 +260,29 @@ def last_uri(self, last_uri):
283260

284261
self._last_uri = last_uri
285262

263+
@property
264+
def next_uri(self):
265+
"""
266+
Gets the next_uri of this ActionEntityListing.
267+
268+
269+
:return: The next_uri of this ActionEntityListing.
270+
:rtype: str
271+
"""
272+
return self._next_uri
273+
274+
@next_uri.setter
275+
def next_uri(self, next_uri):
276+
"""
277+
Sets the next_uri of this ActionEntityListing.
278+
279+
280+
:param next_uri: The next_uri of this ActionEntityListing.
281+
:type: str
282+
"""
283+
284+
self._next_uri = next_uri
285+
286286
@property
287287
def page_count(self):
288288
"""

0 commit comments

Comments
 (0)