Skip to content

Commit 713bf5e

Browse files
author
InIn Devops
committed
2.0.2
1 parent a8023bf commit 713bf5e

247 files changed

Lines changed: 2835 additions & 2835 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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
title: PureCloud API SDK - Python
33
---
44

5-
[![PyPI version](https://badge.fury.io/py/PureCloudPlatformApiSdk.svg)](https://badge.fury.io/py/PureCloudPlatformApiSdk)
5+
[![PyPI version](https://badge.fury.io/py/PureCloudPlatformClientV2.svg)](https://badge.fury.io/py/PureCloudPlatformClientV2)
66

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

99
## Install Using pip
1010

1111
~~~
12-
pip install PureCloudPlatformApiSdk
12+
pip install PureCloudPlatformClientV2
1313
~~~
1414

15-
Package info can be found at [https://pypi.python.org/pypi/PureCloudPlatformApiSdk](https://pypi.python.org/pypi/PureCloudPlatformApiSdk)
15+
Package info can be found at [https://pypi.python.org/pypi/PureCloudPlatformClientV2](https://pypi.python.org/pypi/PureCloudPlatformClientV2)
1616

1717
## Using the Library
1818

@@ -21,23 +21,23 @@ Package info can be found at [https://pypi.python.org/pypi/PureCloudPlatformApiS
2121
Import the package in the python script:
2222

2323
~~~
24-
import PureCloudPlatformApiSdk
24+
import PureCloudPlatformClientV2
2525
~~~
2626

2727
### Authenticating
2828

29-
The Python SDK does not currently contain helper methods to complete an OAuth flow. The consuming applicaiton must complete an OAuth flow to get an access token outside the scope of the SDK. Once an access token is obtained, it should be set on the SDK via `PureCloudPlatformApiSdk.configuration.access_token`. For more information about authenticating with OAuth, see the Developer Center article [Authorization](https://developer.mypurecloud.com/api/rest/authorization/index.html).
29+
The Python SDK does not currently contain helper methods to complete an OAuth flow. The consuming applicaiton must complete an OAuth flow to get an access token outside the scope of the SDK. Once an access token is obtained, it should be set on the SDK via `PureCloudPlatformClientV2.configuration.access_token`. For more information about authenticating with OAuth, see the Developer Center article [Authorization](https://developer.mypurecloud.com/api/rest/authorization/index.html).
3030

3131
~~~
32-
PureCloudPlatformApiSdk.configuration.access_token = 'cuQbSAf1LU4CuIaSj1D6Gm399jmTr7zLTTc3KPSyCvEyJQIo9r648h3SH8oFzLPPKxE3Mvb166lq5NcjSBoGE5A'
32+
PureCloudPlatformClientV2.configuration.access_token = 'cuQbSAf1LU4CuIaSj1D6Gm399jmTr7zLTTc3KPSyCvEyJQIo9r648h3SH8oFzLPPKxE3Mvb166lq5NcjSBoGE5A'
3333
~~~
3434

3535
### Setting the Environment
3636

3737
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.
3838

3939
~~~
40-
PureCloudPlatformApiSdk.configuration.host = 'https://api.mypurecloud.ie'
40+
PureCloudPlatformClientV2.configuration.host = 'https://api.mypurecloud.ie'
4141
~~~
4242

4343
### Making Requests
@@ -50,7 +50,7 @@ There are two steps to making requests:
5050
Example of getting the authenticated user's information:
5151

5252
~~~
53-
usersApi = PureCloudPlatformApiSdk.UsersApi()
53+
usersApi = PureCloudPlatformClientV2.UsersApi()
5454
print usersApi.get_me()
5555
~~~
5656

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

build/PureCloudPlatformClientV2/models/agent_activity_entity_listing.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def __init__(self):
4545
'self_uri': 'str',
4646
'first_uri': 'str',
4747
'next_uri': 'str',
48-
'previous_uri': 'str',
4948
'last_uri': 'str',
49+
'previous_uri': 'str',
5050
'page_count': 'int'
5151
}
5252

@@ -58,8 +58,8 @@ def __init__(self):
5858
'self_uri': 'selfUri',
5959
'first_uri': 'firstUri',
6060
'next_uri': 'nextUri',
61-
'previous_uri': 'previousUri',
6261
'last_uri': 'lastUri',
62+
'previous_uri': 'previousUri',
6363
'page_count': 'pageCount'
6464
}
6565

@@ -70,8 +70,8 @@ def __init__(self):
7070
self._self_uri = None
7171
self._first_uri = None
7272
self._next_uri = None
73-
self._previous_uri = None
7473
self._last_uri = None
74+
self._previous_uri = None
7575
self._page_count = None
7676

7777
@property
@@ -236,50 +236,50 @@ def next_uri(self, next_uri):
236236
self._next_uri = next_uri
237237

238238
@property
239-
def previous_uri(self):
239+
def last_uri(self):
240240
"""
241-
Gets the previous_uri of this AgentActivityEntityListing.
241+
Gets the last_uri of this AgentActivityEntityListing.
242242
243243
244-
:return: The previous_uri of this AgentActivityEntityListing.
244+
:return: The last_uri of this AgentActivityEntityListing.
245245
:rtype: str
246246
"""
247-
return self._previous_uri
247+
return self._last_uri
248248

249-
@previous_uri.setter
250-
def previous_uri(self, previous_uri):
249+
@last_uri.setter
250+
def last_uri(self, last_uri):
251251
"""
252-
Sets the previous_uri of this AgentActivityEntityListing.
252+
Sets the last_uri of this AgentActivityEntityListing.
253253
254254
255-
:param previous_uri: The previous_uri of this AgentActivityEntityListing.
255+
:param last_uri: The last_uri of this AgentActivityEntityListing.
256256
:type: str
257257
"""
258258

259-
self._previous_uri = previous_uri
259+
self._last_uri = last_uri
260260

261261
@property
262-
def last_uri(self):
262+
def previous_uri(self):
263263
"""
264-
Gets the last_uri of this AgentActivityEntityListing.
264+
Gets the previous_uri of this AgentActivityEntityListing.
265265
266266
267-
:return: The last_uri of this AgentActivityEntityListing.
267+
:return: The previous_uri of this AgentActivityEntityListing.
268268
:rtype: str
269269
"""
270-
return self._last_uri
270+
return self._previous_uri
271271

272-
@last_uri.setter
273-
def last_uri(self, last_uri):
272+
@previous_uri.setter
273+
def previous_uri(self, previous_uri):
274274
"""
275-
Sets the last_uri of this AgentActivityEntityListing.
275+
Sets the previous_uri of this AgentActivityEntityListing.
276276
277277
278-
:param last_uri: The last_uri of this AgentActivityEntityListing.
278+
:param previous_uri: The previous_uri of this AgentActivityEntityListing.
279279
:type: str
280280
"""
281281

282-
self._last_uri = last_uri
282+
self._previous_uri = previous_uri
283283

284284
@property
285285
def page_count(self):

build/PureCloudPlatformClientV2/models/attempt_limits_entity_listing.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def __init__(self):
4545
'self_uri': 'str',
4646
'first_uri': 'str',
4747
'next_uri': 'str',
48-
'previous_uri': 'str',
4948
'last_uri': 'str',
49+
'previous_uri': 'str',
5050
'page_count': 'int'
5151
}
5252

@@ -58,8 +58,8 @@ def __init__(self):
5858
'self_uri': 'selfUri',
5959
'first_uri': 'firstUri',
6060
'next_uri': 'nextUri',
61-
'previous_uri': 'previousUri',
6261
'last_uri': 'lastUri',
62+
'previous_uri': 'previousUri',
6363
'page_count': 'pageCount'
6464
}
6565

@@ -70,8 +70,8 @@ def __init__(self):
7070
self._self_uri = None
7171
self._first_uri = None
7272
self._next_uri = None
73-
self._previous_uri = None
7473
self._last_uri = None
74+
self._previous_uri = None
7575
self._page_count = None
7676

7777
@property
@@ -236,50 +236,50 @@ def next_uri(self, next_uri):
236236
self._next_uri = next_uri
237237

238238
@property
239-
def previous_uri(self):
239+
def last_uri(self):
240240
"""
241-
Gets the previous_uri of this AttemptLimitsEntityListing.
241+
Gets the last_uri of this AttemptLimitsEntityListing.
242242
243243
244-
:return: The previous_uri of this AttemptLimitsEntityListing.
244+
:return: The last_uri of this AttemptLimitsEntityListing.
245245
:rtype: str
246246
"""
247-
return self._previous_uri
247+
return self._last_uri
248248

249-
@previous_uri.setter
250-
def previous_uri(self, previous_uri):
249+
@last_uri.setter
250+
def last_uri(self, last_uri):
251251
"""
252-
Sets the previous_uri of this AttemptLimitsEntityListing.
252+
Sets the last_uri of this AttemptLimitsEntityListing.
253253
254254
255-
:param previous_uri: The previous_uri of this AttemptLimitsEntityListing.
255+
:param last_uri: The last_uri of this AttemptLimitsEntityListing.
256256
:type: str
257257
"""
258258

259-
self._previous_uri = previous_uri
259+
self._last_uri = last_uri
260260

261261
@property
262-
def last_uri(self):
262+
def previous_uri(self):
263263
"""
264-
Gets the last_uri of this AttemptLimitsEntityListing.
264+
Gets the previous_uri of this AttemptLimitsEntityListing.
265265
266266
267-
:return: The last_uri of this AttemptLimitsEntityListing.
267+
:return: The previous_uri of this AttemptLimitsEntityListing.
268268
:rtype: str
269269
"""
270-
return self._last_uri
270+
return self._previous_uri
271271

272-
@last_uri.setter
273-
def last_uri(self, last_uri):
272+
@previous_uri.setter
273+
def previous_uri(self, previous_uri):
274274
"""
275-
Sets the last_uri of this AttemptLimitsEntityListing.
275+
Sets the previous_uri of this AttemptLimitsEntityListing.
276276
277277
278-
:param last_uri: The last_uri of this AttemptLimitsEntityListing.
278+
:param previous_uri: The previous_uri of this AttemptLimitsEntityListing.
279279
:type: str
280280
"""
281281

282-
self._last_uri = last_uri
282+
self._previous_uri = previous_uri
283283

284284
@property
285285
def page_count(self):

build/PureCloudPlatformClientV2/models/attribute_entity_listing.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def __init__(self):
4545
'self_uri': 'str',
4646
'first_uri': 'str',
4747
'next_uri': 'str',
48-
'previous_uri': 'str',
4948
'last_uri': 'str',
49+
'previous_uri': 'str',
5050
'page_count': 'int'
5151
}
5252

@@ -58,8 +58,8 @@ def __init__(self):
5858
'self_uri': 'selfUri',
5959
'first_uri': 'firstUri',
6060
'next_uri': 'nextUri',
61-
'previous_uri': 'previousUri',
6261
'last_uri': 'lastUri',
62+
'previous_uri': 'previousUri',
6363
'page_count': 'pageCount'
6464
}
6565

@@ -70,8 +70,8 @@ def __init__(self):
7070
self._self_uri = None
7171
self._first_uri = None
7272
self._next_uri = None
73-
self._previous_uri = None
7473
self._last_uri = None
74+
self._previous_uri = None
7575
self._page_count = None
7676

7777
@property
@@ -236,50 +236,50 @@ def next_uri(self, next_uri):
236236
self._next_uri = next_uri
237237

238238
@property
239-
def previous_uri(self):
239+
def last_uri(self):
240240
"""
241-
Gets the previous_uri of this AttributeEntityListing.
241+
Gets the last_uri of this AttributeEntityListing.
242242
243243
244-
:return: The previous_uri of this AttributeEntityListing.
244+
:return: The last_uri of this AttributeEntityListing.
245245
:rtype: str
246246
"""
247-
return self._previous_uri
247+
return self._last_uri
248248

249-
@previous_uri.setter
250-
def previous_uri(self, previous_uri):
249+
@last_uri.setter
250+
def last_uri(self, last_uri):
251251
"""
252-
Sets the previous_uri of this AttributeEntityListing.
252+
Sets the last_uri of this AttributeEntityListing.
253253
254254
255-
:param previous_uri: The previous_uri of this AttributeEntityListing.
255+
:param last_uri: The last_uri of this AttributeEntityListing.
256256
:type: str
257257
"""
258258

259-
self._previous_uri = previous_uri
259+
self._last_uri = last_uri
260260

261261
@property
262-
def last_uri(self):
262+
def previous_uri(self):
263263
"""
264-
Gets the last_uri of this AttributeEntityListing.
264+
Gets the previous_uri of this AttributeEntityListing.
265265
266266
267-
:return: The last_uri of this AttributeEntityListing.
267+
:return: The previous_uri of this AttributeEntityListing.
268268
:rtype: str
269269
"""
270-
return self._last_uri
270+
return self._previous_uri
271271

272-
@last_uri.setter
273-
def last_uri(self, last_uri):
272+
@previous_uri.setter
273+
def previous_uri(self, previous_uri):
274274
"""
275-
Sets the last_uri of this AttributeEntityListing.
275+
Sets the previous_uri of this AttributeEntityListing.
276276
277277
278-
:param last_uri: The last_uri of this AttributeEntityListing.
278+
:param previous_uri: The previous_uri of this AttributeEntityListing.
279279
:type: str
280280
"""
281281

282-
self._last_uri = last_uri
282+
self._previous_uri = previous_uri
283283

284284
@property
285285
def page_count(self):

0 commit comments

Comments
 (0)