Skip to content

Commit 7ca2378

Browse files
author
PureCloud Jenkins
committed
89.0.0
1 parent 72c580a commit 7ca2378

381 files changed

Lines changed: 6405 additions & 6680 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: PureCloud API SDK - Python
2+
title: Platform API Client SDK - Python
33
---
44

55
[![PyPI version](https://badge.fury.io/py/PureCloudPlatformClientV2.svg)](https://badge.fury.io/py/PureCloudPlatformClientV2)
@@ -57,7 +57,7 @@ print usersApi.get_users_me()
5757

5858
### Setting the Environment
5959

60-
If connecting to a PureCloud environment other than mypurecloud.com (e.g. mypurecloud.ie), set the new base path before constructing any API classes. The new base path should be the base path to the Platform API for your environment.
60+
If connecting to a Genesys Cloud environment other than mypurecloud.com (e.g. mypurecloud.ie), set the new base path before constructing any API classes. The new base path should be the base path to the Platform API for your environment.
6161

6262
```{"language":"python"}
6363
region = PureCloudRegionHosts.us_east_1
@@ -115,6 +115,6 @@ The SDK's version is incremented according to the [Semantic Versioning Specifica
115115

116116
## Support
117117

118-
This package is intended to be forwards compatible with v2 of PureCloud's Platform API. While the general policy for the API is not to introduce breaking changes, there are certain additions and changes to the API that cause breaking changes for the SDK, often due to the way the API is expressed in its swagger definition. Because of this, the SDK can have a major version bump while the API remains at major version 2. While the SDK is intended to be forward compatible, patches will only be released to the latest version. For these reasons, it is strongly recommended that all applications using this SDK are kept up to date and use the latest version of the SDK.
118+
This package is intended to be forwards compatible with v2 of Genesys Cloud's Platform API. While the general policy for the API is not to introduce breaking changes, there are certain additions and changes to the API that cause breaking changes for the SDK, often due to the way the API is expressed in its swagger definition. Because of this, the SDK can have a major version bump while the API remains at major version 2. While the SDK is intended to be forward compatible, patches will only be released to the latest version. For these reasons, it is strongly recommended that all applications using this SDK are kept up to date and use the latest version of the SDK.
119119

120-
For any issues, questions, or suggestions for the SDK, visit the [PureCloud Developer Forum](https://developer.mypurecloud.com/forum/).
120+
For any issues, questions, or suggestions for the SDK, visit the [Genesys Cloud Developer Forum](https://developer.mypurecloud.com/forum/).

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

190190
# path parameters
191191
if path_params:

build/PureCloudPlatformClientV2/apis/groups_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def get_group_members(self, group_id, **kwargs):
535535
def get_group_profile(self, group_id, **kwargs):
536536
"""
537537
Get group profile
538-
538+
This api is deprecated. Use /api/v2/groups instead
539539
540540
This method makes a synchronous HTTP request by default. To make an
541541
asynchronous HTTP request, please define a `callback` function
@@ -784,7 +784,7 @@ def get_groups_search(self, q64, **kwargs):
784784
def get_profiles_groups(self, **kwargs):
785785
"""
786786
Get group profile listing
787-
787+
This api is deprecated. Use /api/v2/groups instead.
788788
789789
This method makes a synchronous HTTP request by default. To make an
790790
asynchronous HTTP request, please define a `callback` function

build/PureCloudPlatformClientV2/apis/scim_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def get_scim_groups(self, **kwargs):
473473
:param callback function: The callback function
474474
for asynchronous request. (optional)
475475
:param int start_index: The 1-based index of the first query result.
476-
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\". Note that page size over 25 will likely cause a 429 error by exceeding the internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values -- (i.e. for Users externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills, and for Groups externalId, members).
476+
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\".
477477
:param list[str] attributes: Indicates which attributes to include. Returns these attributes and the 'id', 'active', and 'meta attributes . Use \"attributes\" to avoid expensive secondary calls for the default attributes.
478478
:param list[str] excluded_attributes: Indicates which attributes to exclude. Returns the default attributes minus \"excludedAttributes\". Use \"excludedAttributes\" to avoid expensive secondary calls for the default attributes. The'id', 'active', and 'meta' attributes will always be present in the output.
479479
:param str filter: Filters results.
@@ -1025,7 +1025,7 @@ def get_scim_users(self, **kwargs):
10251025
:param callback function: The callback function
10261026
for asynchronous request. (optional)
10271027
:param int start_index: The 1-based index of the first query result.
1028-
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\". Note that page size over 25 will likely cause a 429 error by exceeding the internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values -- (i.e. for Users externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills, and for Groups externalId, members).
1028+
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\".
10291029
:param list[str] attributes: Indicates which attributes to include. Returns these attributes and the 'id', 'userName', 'active', and 'meta' attributes. Use \"attributes\" to avoid expensive secondary calls for the default attributes.
10301030
:param list[str] excluded_attributes: Indicates which attributes to exclude. Returns the default attributes minus \"excludedAttributes\". Use \"excludedAttributes\" to avoid expensive secondary calls for the default attributes. The 'id', 'userName', 'active', 'meta' attributes will always be present in output.
10311031
:param str filter: Filters results. If nothing is specified, returns all active users. Examples of valid values: \"id eq 857449b0-d9e7-4cd0-acbf-a6adfb9ef1e9\", \"userName eq search@sample.org\", \"manager eq 16e10e2f-1136-43fe-bb84-eac073168a49\", \"email eq search@sample.org\", \"division eq divisionName\", \"externalId eq 167844\", \"active eq false\".
@@ -1200,7 +1200,7 @@ def get_scim_v2_groups(self, filter, **kwargs):
12001200
for asynchronous request. (optional)
12011201
:param str filter: Filters results. (required)
12021202
:param int start_index: The 1-based index of the first query result.
1203-
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\". Note that page size over 25 will likely cause a 429 error by exceeding the internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values -- (i.e. for Users externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills, and for Groups externalId, members).
1203+
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\".
12041204
:param list[str] attributes: Indicates which attributes to include. Returns these attributes and the 'id', 'active', and 'meta attributes . Use \"attributes\" to avoid expensive secondary calls for the default attributes.
12051205
:param list[str] excluded_attributes: Indicates which attributes to exclude. Returns the default attributes minus \"excludedAttributes\". Use \"excludedAttributes\" to avoid expensive secondary calls for the default attributes. The'id', 'active', and 'meta' attributes will always be present in the output.
12061206
:return: ScimGroupListResponse
@@ -1754,7 +1754,7 @@ def get_scim_v2_users(self, **kwargs):
17541754
:param callback function: The callback function
17551755
for asynchronous request. (optional)
17561756
:param int start_index: The 1-based index of the first query result.
1757-
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\". Note that page size over 25 will likely cause a 429 error by exceeding the internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values -- (i.e. for Users externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills, and for Groups externalId, members).
1757+
:param int count: The requested number of items per page. A value of 0 returns \"totalResults\".
17581758
:param list[str] attributes: Indicates which attributes to include. Returns these attributes and the 'id', 'userName', 'active', and 'meta' attributes. Use \"attributes\" to avoid expensive secondary calls for the default attributes.
17591759
:param list[str] excluded_attributes: Indicates which attributes to exclude. Returns the default attributes minus \"excludedAttributes\". Use \"excludedAttributes\" to avoid expensive secondary calls for the default attributes. The 'id', 'userName', 'active', 'meta' attributes will always be present in output.
17601760
:param str filter: Filters results. If nothing is specified, returns all active users. Examples of valid values: \"id eq 857449b0-d9e7-4cd0-acbf-a6adfb9ef1e9\", \"userName eq search@sample.org\", \"manager eq 16e10e2f-1136-43fe-bb84-eac073168a49\", \"email eq search@sample.org\", \"division eq divisionName\", \"externalId eq 167844\", \"active eq false\".

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ def get_fieldconfig(self, type, **kwargs):
13421342
def get_profiles_users(self, **kwargs):
13431343
"""
13441344
Get a user profile listing
1345-
1345+
This api is deprecated. User /api/v2/users
13461346
13471347
This method makes a synchronous HTTP request by default. To make an
13481348
asynchronous HTTP request, please define a `callback` function
@@ -2086,7 +2086,7 @@ def get_user_outofoffice(self, user_id, **kwargs):
20862086
def get_user_profile(self, user_id, **kwargs):
20872087
"""
20882088
Get user profile
2089-
2089+
This api has been deprecated. Use api/v2/users instead
20902090
20912091
This method makes a synchronous HTTP request by default. To make an
20922092
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: 88.0.0".\
258+
"SDK Package Version: 89.0.0".\
259259
format(env=sys.platform, pyversion=sys.version)

build/PureCloudPlatformClientV2/models/action_entity_listing.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def __init__(self):
4545
'page_number': 'int',
4646
'total': 'int',
4747
'first_uri': 'str',
48-
'previous_uri': 'str',
49-
'self_uri': 'str',
5048
'next_uri': 'str',
49+
'self_uri': 'str',
5150
'last_uri': 'str',
51+
'previous_uri': 'str',
5252
'page_count': 'int'
5353
}
5454

@@ -58,10 +58,10 @@ def __init__(self):
5858
'page_number': 'pageNumber',
5959
'total': 'total',
6060
'first_uri': 'firstUri',
61-
'previous_uri': 'previousUri',
62-
'self_uri': 'selfUri',
6361
'next_uri': 'nextUri',
62+
'self_uri': 'selfUri',
6463
'last_uri': 'lastUri',
64+
'previous_uri': 'previousUri',
6565
'page_count': 'pageCount'
6666
}
6767

@@ -70,10 +70,10 @@ def __init__(self):
7070
self._page_number = None
7171
self._total = None
7272
self._first_uri = None
73-
self._previous_uri = None
74-
self._self_uri = None
7573
self._next_uri = None
74+
self._self_uri = None
7675
self._last_uri = None
76+
self._previous_uri = None
7777
self._page_count = None
7878

7979
@property
@@ -192,27 +192,27 @@ def first_uri(self, first_uri):
192192
self._first_uri = first_uri
193193

194194
@property
195-
def previous_uri(self):
195+
def next_uri(self):
196196
"""
197-
Gets the previous_uri of this ActionEntityListing.
197+
Gets the next_uri of this ActionEntityListing.
198198
199199
200-
:return: The previous_uri of this ActionEntityListing.
200+
:return: The next_uri of this ActionEntityListing.
201201
:rtype: str
202202
"""
203-
return self._previous_uri
203+
return self._next_uri
204204

205-
@previous_uri.setter
206-
def previous_uri(self, previous_uri):
205+
@next_uri.setter
206+
def next_uri(self, next_uri):
207207
"""
208-
Sets the previous_uri of this ActionEntityListing.
208+
Sets the next_uri of this ActionEntityListing.
209209
210210
211-
:param previous_uri: The previous_uri of this ActionEntityListing.
211+
:param next_uri: The next_uri of this ActionEntityListing.
212212
:type: str
213213
"""
214214

215-
self._previous_uri = previous_uri
215+
self._next_uri = next_uri
216216

217217
@property
218218
def self_uri(self):
@@ -238,50 +238,50 @@ def self_uri(self, self_uri):
238238
self._self_uri = self_uri
239239

240240
@property
241-
def next_uri(self):
241+
def last_uri(self):
242242
"""
243-
Gets the next_uri of this ActionEntityListing.
243+
Gets the last_uri of this ActionEntityListing.
244244
245245
246-
:return: The next_uri of this ActionEntityListing.
246+
:return: The last_uri of this ActionEntityListing.
247247
:rtype: str
248248
"""
249-
return self._next_uri
249+
return self._last_uri
250250

251-
@next_uri.setter
252-
def next_uri(self, next_uri):
251+
@last_uri.setter
252+
def last_uri(self, last_uri):
253253
"""
254-
Sets the next_uri of this ActionEntityListing.
254+
Sets the last_uri of this ActionEntityListing.
255255
256256
257-
:param next_uri: The next_uri of this ActionEntityListing.
257+
:param last_uri: The last_uri of this ActionEntityListing.
258258
:type: str
259259
"""
260260

261-
self._next_uri = next_uri
261+
self._last_uri = last_uri
262262

263263
@property
264-
def last_uri(self):
264+
def previous_uri(self):
265265
"""
266-
Gets the last_uri of this ActionEntityListing.
266+
Gets the previous_uri of this ActionEntityListing.
267267
268268
269-
:return: The last_uri of this ActionEntityListing.
269+
:return: The previous_uri of this ActionEntityListing.
270270
:rtype: str
271271
"""
272-
return self._last_uri
272+
return self._previous_uri
273273

274-
@last_uri.setter
275-
def last_uri(self, last_uri):
274+
@previous_uri.setter
275+
def previous_uri(self, previous_uri):
276276
"""
277-
Sets the last_uri of this ActionEntityListing.
277+
Sets the previous_uri of this ActionEntityListing.
278278
279279
280-
:param last_uri: The last_uri of this ActionEntityListing.
280+
:param previous_uri: The previous_uri of this ActionEntityListing.
281281
:type: str
282282
"""
283283

284-
self._last_uri = last_uri
284+
self._previous_uri = previous_uri
285285

286286
@property
287287
def page_count(self):

0 commit comments

Comments
 (0)