Skip to content

Commit f9a18b9

Browse files
author
InIn Devops
committed
11.0.0
1 parent 7e6bc98 commit f9a18b9

File tree

260 files changed

+2881
-2783
lines changed

Some content is hidden

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

260 files changed

+2881
-2783
lines changed

build/PureCloudPlatformClientV2/apis/greetings_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def post_greetings(self, body, **kwargs):
773773
:param callback function: The callback function
774774
for asynchronous request. (optional)
775775
:param Greeting body: The Greeting to create (required)
776-
:return: DefaultGreetingList
776+
:return: Greeting
777777
If the method is called asynchronously,
778778
returns the request thread.
779779
"""
@@ -830,7 +830,7 @@ def post_greetings(self, body, **kwargs):
830830
body=body_params,
831831
post_params=form_params,
832832
files=local_var_files,
833-
response_type='DefaultGreetingList',
833+
response_type='Greeting',
834834
auth_settings=auth_settings,
835835
callback=params.get('callback'))
836836
return response

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,13 +2091,14 @@ def get_routing_wrapupcodes(self, **kwargs):
20912091
for asynchronous request. (optional)
20922092
:param int page_size: Page size
20932093
:param int page_number: Page number
2094+
:param str name: Name
20942095
:param str sort_by: Sort by
20952096
:return: WrapupCodeEntityListing
20962097
If the method is called asynchronously,
20972098
returns the request thread.
20982099
"""
20992100

2100-
all_params = ['page_size', 'page_number', 'sort_by']
2101+
all_params = ['page_size', 'page_number', 'name', 'sort_by']
21012102
all_params.append('callback')
21022103

21032104
params = locals()
@@ -2120,6 +2121,8 @@ def get_routing_wrapupcodes(self, **kwargs):
21202121
query_params['pageSize'] = params['page_size']
21212122
if 'page_number' in params:
21222123
query_params['pageNumber'] = params['page_number']
2124+
if 'name' in params:
2125+
query_params['name'] = params['name']
21232126
if 'sort_by' in params:
21242127
query_params['sortBy'] = params['sort_by']
21252128

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,87 @@ def post_analytics_users_observations_query(self, body, **kwargs):
25752575
callback=params.get('callback'))
25762576
return response
25772577

2578+
def post_user_invite(self, user_id, **kwargs):
2579+
"""
2580+
Send an activation email to the user
2581+
2582+
2583+
This method makes a synchronous HTTP request by default. To make an
2584+
asynchronous HTTP request, please define a `callback` function
2585+
to be invoked when receiving the response.
2586+
>>> def callback_function(response):
2587+
>>> pprint(response)
2588+
>>>
2589+
>>> thread = api.post_user_invite(user_id, callback=callback_function)
2590+
2591+
:param callback function: The callback function
2592+
for asynchronous request. (optional)
2593+
:param str user_id: User ID (required)
2594+
:param bool force: Resend the invitation even if one is already outstanding
2595+
:return: None
2596+
If the method is called asynchronously,
2597+
returns the request thread.
2598+
"""
2599+
2600+
all_params = ['user_id', 'force']
2601+
all_params.append('callback')
2602+
2603+
params = locals()
2604+
for key, val in iteritems(params['kwargs']):
2605+
if key not in all_params:
2606+
raise TypeError(
2607+
"Got an unexpected keyword argument '%s'"
2608+
" to method post_user_invite" % key
2609+
)
2610+
params[key] = val
2611+
del params['kwargs']
2612+
2613+
# verify the required parameter 'user_id' is set
2614+
if ('user_id' not in params) or (params['user_id'] is None):
2615+
raise ValueError("Missing the required parameter `user_id` when calling `post_user_invite`")
2616+
2617+
2618+
resource_path = '/api/v2/users/{userId}/invite'.replace('{format}', 'json')
2619+
path_params = {}
2620+
if 'user_id' in params:
2621+
path_params['userId'] = params['user_id']
2622+
2623+
query_params = {}
2624+
if 'force' in params:
2625+
query_params['force'] = params['force']
2626+
2627+
header_params = {}
2628+
2629+
form_params = []
2630+
local_var_files = {}
2631+
2632+
body_params = None
2633+
2634+
# HTTP header `Accept`
2635+
header_params['Accept'] = self.api_client.\
2636+
select_header_accept(['application/json'])
2637+
if not header_params['Accept']:
2638+
del header_params['Accept']
2639+
2640+
# HTTP header `Content-Type`
2641+
header_params['Content-Type'] = self.api_client.\
2642+
select_header_content_type(['application/json'])
2643+
2644+
# Authentication setting
2645+
auth_settings = ['PureCloud Auth']
2646+
2647+
response = self.api_client.call_api(resource_path, 'POST',
2648+
path_params,
2649+
query_params,
2650+
header_params,
2651+
body=body_params,
2652+
post_params=form_params,
2653+
files=local_var_files,
2654+
response_type=None,
2655+
auth_settings=auth_settings,
2656+
callback=params.get('callback'))
2657+
return response
2658+
25782659
def post_user_routingskills(self, user_id, body, **kwargs):
25792660
"""
25802661
Add routing skill to user

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: 10.0.0".\
241+
"SDK Package Version: 11.0.0".\
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
@@ -42,8 +42,8 @@ def __init__(self):
4242
'page_size': 'int',
4343
'page_number': 'int',
4444
'total': 'int',
45-
'first_uri': 'str',
4645
'self_uri': 'str',
46+
'first_uri': 'str',
4747
'previous_uri': 'str',
4848
'next_uri': 'str',
4949
'last_uri': 'str',
@@ -55,8 +55,8 @@ def __init__(self):
5555
'page_size': 'pageSize',
5656
'page_number': 'pageNumber',
5757
'total': 'total',
58-
'first_uri': 'firstUri',
5958
'self_uri': 'selfUri',
59+
'first_uri': 'firstUri',
6060
'previous_uri': 'previousUri',
6161
'next_uri': 'nextUri',
6262
'last_uri': 'lastUri',
@@ -67,8 +67,8 @@ def __init__(self):
6767
self._page_size = None
6868
self._page_number = None
6969
self._total = None
70-
self._first_uri = None
7170
self._self_uri = None
71+
self._first_uri = None
7272
self._previous_uri = None
7373
self._next_uri = None
7474
self._last_uri = None
@@ -167,50 +167,50 @@ def total(self, total):
167167
self._total = total
168168

169169
@property
170-
def first_uri(self):
170+
def self_uri(self):
171171
"""
172-
Gets the first_uri of this AgentActivityEntityListing.
172+
Gets the self_uri of this AgentActivityEntityListing.
173173
174174
175-
:return: The first_uri of this AgentActivityEntityListing.
175+
:return: The self_uri of this AgentActivityEntityListing.
176176
:rtype: str
177177
"""
178-
return self._first_uri
178+
return self._self_uri
179179

180-
@first_uri.setter
181-
def first_uri(self, first_uri):
180+
@self_uri.setter
181+
def self_uri(self, self_uri):
182182
"""
183-
Sets the first_uri of this AgentActivityEntityListing.
183+
Sets the self_uri of this AgentActivityEntityListing.
184184
185185
186-
:param first_uri: The first_uri of this AgentActivityEntityListing.
186+
:param self_uri: The self_uri of this AgentActivityEntityListing.
187187
:type: str
188188
"""
189189

190-
self._first_uri = first_uri
190+
self._self_uri = self_uri
191191

192192
@property
193-
def self_uri(self):
193+
def first_uri(self):
194194
"""
195-
Gets the self_uri of this AgentActivityEntityListing.
195+
Gets the first_uri of this AgentActivityEntityListing.
196196
197197
198-
:return: The self_uri of this AgentActivityEntityListing.
198+
:return: The first_uri of this AgentActivityEntityListing.
199199
:rtype: str
200200
"""
201-
return self._self_uri
201+
return self._first_uri
202202

203-
@self_uri.setter
204-
def self_uri(self, self_uri):
203+
@first_uri.setter
204+
def first_uri(self, first_uri):
205205
"""
206-
Sets the self_uri of this AgentActivityEntityListing.
206+
Sets the first_uri of this AgentActivityEntityListing.
207207
208208
209-
:param self_uri: The self_uri of this AgentActivityEntityListing.
209+
:param first_uri: The first_uri of this AgentActivityEntityListing.
210210
:type: str
211211
"""
212212

213-
self._self_uri = self_uri
213+
self._first_uri = first_uri
214214

215215
@property
216216
def previous_uri(self):

build/PureCloudPlatformClientV2/models/attempt_limits_entity_listing.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def __init__(self):
4242
'page_size': 'int',
4343
'page_number': 'int',
4444
'total': 'int',
45-
'first_uri': 'str',
4645
'self_uri': 'str',
46+
'first_uri': 'str',
4747
'previous_uri': 'str',
4848
'next_uri': 'str',
4949
'last_uri': 'str',
@@ -55,8 +55,8 @@ def __init__(self):
5555
'page_size': 'pageSize',
5656
'page_number': 'pageNumber',
5757
'total': 'total',
58-
'first_uri': 'firstUri',
5958
'self_uri': 'selfUri',
59+
'first_uri': 'firstUri',
6060
'previous_uri': 'previousUri',
6161
'next_uri': 'nextUri',
6262
'last_uri': 'lastUri',
@@ -67,8 +67,8 @@ def __init__(self):
6767
self._page_size = None
6868
self._page_number = None
6969
self._total = None
70-
self._first_uri = None
7170
self._self_uri = None
71+
self._first_uri = None
7272
self._previous_uri = None
7373
self._next_uri = None
7474
self._last_uri = None
@@ -167,50 +167,50 @@ def total(self, total):
167167
self._total = total
168168

169169
@property
170-
def first_uri(self):
170+
def self_uri(self):
171171
"""
172-
Gets the first_uri of this AttemptLimitsEntityListing.
172+
Gets the self_uri of this AttemptLimitsEntityListing.
173173
174174
175-
:return: The first_uri of this AttemptLimitsEntityListing.
175+
:return: The self_uri of this AttemptLimitsEntityListing.
176176
:rtype: str
177177
"""
178-
return self._first_uri
178+
return self._self_uri
179179

180-
@first_uri.setter
181-
def first_uri(self, first_uri):
180+
@self_uri.setter
181+
def self_uri(self, self_uri):
182182
"""
183-
Sets the first_uri of this AttemptLimitsEntityListing.
183+
Sets the self_uri of this AttemptLimitsEntityListing.
184184
185185
186-
:param first_uri: The first_uri of this AttemptLimitsEntityListing.
186+
:param self_uri: The self_uri of this AttemptLimitsEntityListing.
187187
:type: str
188188
"""
189189

190-
self._first_uri = first_uri
190+
self._self_uri = self_uri
191191

192192
@property
193-
def self_uri(self):
193+
def first_uri(self):
194194
"""
195-
Gets the self_uri of this AttemptLimitsEntityListing.
195+
Gets the first_uri of this AttemptLimitsEntityListing.
196196
197197
198-
:return: The self_uri of this AttemptLimitsEntityListing.
198+
:return: The first_uri of this AttemptLimitsEntityListing.
199199
:rtype: str
200200
"""
201-
return self._self_uri
201+
return self._first_uri
202202

203-
@self_uri.setter
204-
def self_uri(self, self_uri):
203+
@first_uri.setter
204+
def first_uri(self, first_uri):
205205
"""
206-
Sets the self_uri of this AttemptLimitsEntityListing.
206+
Sets the first_uri of this AttemptLimitsEntityListing.
207207
208208
209-
:param self_uri: The self_uri of this AttemptLimitsEntityListing.
209+
:param first_uri: The first_uri of this AttemptLimitsEntityListing.
210210
:type: str
211211
"""
212212

213-
self._self_uri = self_uri
213+
self._first_uri = first_uri
214214

215215
@property
216216
def previous_uri(self):

0 commit comments

Comments
 (0)