Skip to content

Commit 6c7a4a8

Browse files
author
PureCloud Jenkins
committed
226.0.0
1 parent f504eb8 commit 6c7a4a8

File tree

10,623 files changed

+13438
-19916
lines changed

Some content is hidden

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

10,623 files changed

+13438
-19916
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Documentation can be found at https://mypurecloud.github.io/platform-client-sdk-python/
77

8-
Documentation version PureCloudPlatformClientV2 225.0.0
8+
Documentation version PureCloudPlatformClientV2 226.0.0
99

1010
## Preview APIs
1111

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
from datetime import datetime, timezone
4444
from datetime import date
4545

46-
# python 2 and python 3 compatibility library
47-
from six import iteritems
48-
4946
try:
5047
# for python3
5148
from urllib.parse import quote
@@ -393,12 +390,12 @@ def __call_api(self, resource_path, method,
393390
header_params['Cookie'] = self.cookie
394391
if header_params:
395392
header_params = self.sanitize_for_serialization(header_params)
396-
header_params['purecloud-sdk'] = '225.0.0'
393+
header_params['purecloud-sdk'] = '226.0.0'
397394

398395
# path parameters
399396
if path_params:
400397
path_params = self.sanitize_for_serialization(path_params)
401-
for k, v in iteritems(path_params):
398+
for k, v in path_params.items():
402399
replacement = quote(str(self.to_path_value(v)))
403400
resource_path = resource_path.\
404401
replace('{' + k + '}', replacement)
@@ -407,7 +404,7 @@ def __call_api(self, resource_path, method,
407404
if query_params:
408405
query_params = self.sanitize_for_serialization(query_params)
409406
query_params = {k: self.to_path_value(v)
410-
for k, v in iteritems(query_params)}
407+
for k, v in query_params.items()}
411408

412409
# post parameters
413410
if post_params or files:
@@ -520,11 +517,11 @@ def sanitize_for_serialization(self, obj):
520517
# Convert attribute name to json key in
521518
# model definition for request.
522519
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
523-
for attr, _ in iteritems(obj.swagger_types)
520+
for attr, _ in obj.swagger_types.items()
524521
if getattr(obj, attr) is not None or isinstance(getattr(obj, attr), type(ApiNullValue()))}
525522

526523
return {key: self.sanitize_for_serialization(val)
527-
for key, val in iteritems(obj_dict)}
524+
for key, val in obj_dict.items()}
528525

529526
def deserialize(self, response, response_type):
530527
"""
@@ -576,7 +573,7 @@ def __deserialize(self, data, klass):
576573
if klass.startswith('dict('):
577574
sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2)
578575
return {k: self.__deserialize(v, sub_kls)
579-
for k, v in iteritems(data)}
576+
for k, v in data.items()}
580577

581578
# convert str to class
582579
# for native types
@@ -710,7 +707,7 @@ def prepare_post_parameters(self, post_params=None, files=None):
710707
params = post_params
711708

712709
if files:
713-
for k, v in iteritems(files):
710+
for k, v in files.items():
714711
if not v:
715712
continue
716713
file_names = v if type(v) is list else [v]
@@ -908,7 +905,7 @@ def __deserialize_model(self, data, klass):
908905
"""
909906
instance = klass()
910907

911-
for attr, attr_type in iteritems(instance.swagger_types):
908+
for attr, attr_type in instance.swagger_types.items():
912909
if data is not None \
913910
and instance.attribute_map[attr] in data\
914911
and isinstance(data, (list, dict)):

build/PureCloudPlatformClientV2/apis/agent_assistants_api.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
from datetime import datetime
2727
from datetime import date
2828

29-
# python 2 and python 3 compatibility library
30-
from six import iteritems
31-
3229
from ..configuration import Configuration
3330
from ..api_client import ApiClient
3431
from ..utils import deprecated
@@ -85,7 +82,7 @@ def delete_assistant(self, assistant_id: str, **kwargs) -> None:
8582
all_params.append('callback')
8683

8784
params = locals()
88-
for key, val in iteritems(params['kwargs']):
85+
for key, val in params['kwargs'].items():
8986
if key not in all_params:
9087
raise TypeError(
9188
"Got an unexpected keyword argument '%s'"
@@ -164,7 +161,7 @@ def delete_assistant_queue(self, assistant_id: str, queue_id: str, **kwargs) ->
164161
all_params.append('callback')
165162

166163
params = locals()
167-
for key, val in iteritems(params['kwargs']):
164+
for key, val in params['kwargs'].items():
168165
if key not in all_params:
169166
raise TypeError(
170167
"Got an unexpected keyword argument '%s'"
@@ -248,7 +245,7 @@ def delete_assistant_queues(self, assistant_id: str, **kwargs) -> None:
248245
all_params.append('callback')
249246

250247
params = locals()
251-
for key, val in iteritems(params['kwargs']):
248+
for key, val in params['kwargs'].items():
252249
if key not in all_params:
253250
raise TypeError(
254251
"Got an unexpected keyword argument '%s'"
@@ -329,7 +326,7 @@ def get_assistant(self, assistant_id: str, **kwargs) -> 'Assistant':
329326
all_params.append('callback')
330327

331328
params = locals()
332-
for key, val in iteritems(params['kwargs']):
329+
for key, val in params['kwargs'].items():
333330
if key not in all_params:
334331
raise TypeError(
335332
"Got an unexpected keyword argument '%s'"
@@ -411,7 +408,7 @@ def get_assistant_queue(self, assistant_id: str, queue_id: str, **kwargs) -> 'As
411408
all_params.append('callback')
412409

413410
params = locals()
414-
for key, val in iteritems(params['kwargs']):
411+
for key, val in params['kwargs'].items():
415412
if key not in all_params:
416413
raise TypeError(
417414
"Got an unexpected keyword argument '%s'"
@@ -500,7 +497,7 @@ def get_assistant_queues(self, assistant_id: str, **kwargs) -> 'AssistantQueueLi
500497
all_params.append('callback')
501498

502499
params = locals()
503-
for key, val in iteritems(params['kwargs']):
500+
for key, val in params['kwargs'].items():
504501
if key not in all_params:
505502
raise TypeError(
506503
"Got an unexpected keyword argument '%s'"
@@ -590,7 +587,7 @@ def get_assistants(self, **kwargs) -> 'AssistantListing':
590587
all_params.append('callback')
591588

592589
params = locals()
593-
for key, val in iteritems(params['kwargs']):
590+
for key, val in params['kwargs'].items():
594591
if key not in all_params:
595592
raise TypeError(
596593
"Got an unexpected keyword argument '%s'"
@@ -677,7 +674,7 @@ def get_assistants_queues(self, **kwargs) -> 'AssistantQueueListing':
677674
all_params.append('callback')
678675

679676
params = locals()
680-
for key, val in iteritems(params['kwargs']):
677+
for key, val in params['kwargs'].items():
681678
if key not in all_params:
682679
raise TypeError(
683680
"Got an unexpected keyword argument '%s'"
@@ -761,7 +758,7 @@ def patch_assistant(self, assistant_id: str, body: 'Assistant', **kwargs) -> 'As
761758
all_params.append('callback')
762759

763760
params = locals()
764-
for key, val in iteritems(params['kwargs']):
761+
for key, val in params['kwargs'].items():
765762
if key not in all_params:
766763
raise TypeError(
767764
"Got an unexpected keyword argument '%s'"
@@ -845,7 +842,7 @@ def patch_assistant_queues(self, assistant_id: str, body: List['AssistantQueue']
845842
all_params.append('callback')
846843

847844
params = locals()
848-
for key, val in iteritems(params['kwargs']):
845+
for key, val in params['kwargs'].items():
849846
if key not in all_params:
850847
raise TypeError(
851848
"Got an unexpected keyword argument '%s'"
@@ -928,7 +925,7 @@ def post_assistants(self, body: 'Assistant', **kwargs) -> 'Assistant':
928925
all_params.append('callback')
929926

930927
params = locals()
931-
for key, val in iteritems(params['kwargs']):
928+
for key, val in params['kwargs'].items():
932929
if key not in all_params:
933930
raise TypeError(
934931
"Got an unexpected keyword argument '%s'"
@@ -1008,7 +1005,7 @@ def put_assistant_queue(self, assistant_id: str, queue_id: str, body: 'Assistant
10081005
all_params.append('callback')
10091006

10101007
params = locals()
1011-
for key, val in iteritems(params['kwargs']):
1008+
for key, val in params['kwargs'].items():
10121009
if key not in all_params:
10131010
raise TypeError(
10141011
"Got an unexpected keyword argument '%s'"

build/PureCloudPlatformClientV2/apis/agent_copilot_api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
from datetime import datetime
2727
from datetime import date
2828

29-
# python 2 and python 3 compatibility library
30-
from six import iteritems
31-
3229
from ..configuration import Configuration
3330
from ..api_client import ApiClient
3431
from ..utils import deprecated
@@ -82,7 +79,7 @@ def get_assistant_copilot(self, assistant_id: str, **kwargs) -> 'Copilot':
8279
all_params.append('callback')
8380

8481
params = locals()
85-
for key, val in iteritems(params['kwargs']):
82+
for key, val in params['kwargs'].items():
8683
if key not in all_params:
8784
raise TypeError(
8885
"Got an unexpected keyword argument '%s'"
@@ -161,7 +158,7 @@ def put_assistant_copilot(self, assistant_id: str, body: 'Copilot', **kwargs) ->
161158
all_params.append('callback')
162159

163160
params = locals()
164-
for key, val in iteritems(params['kwargs']):
161+
for key, val in params['kwargs'].items():
165162
if key not in all_params:
166163
raise TypeError(
167164
"Got an unexpected keyword argument '%s'"

build/PureCloudPlatformClientV2/apis/agent_ui_api.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
from datetime import datetime
2727
from datetime import date
2828

29-
# python 2 and python 3 compatibility library
30-
from six import iteritems
31-
3229
from ..configuration import Configuration
3330
from ..api_client import ApiClient
3431
from ..utils import deprecated
@@ -82,7 +79,7 @@ def delete_users_agentui_agents_autoanswer_agent_id_settings(self, agent_id: str
8279
all_params.append('callback')
8380

8481
params = locals()
85-
for key, val in iteritems(params['kwargs']):
82+
for key, val in params['kwargs'].items():
8683
if key not in all_params:
8784
raise TypeError(
8885
"Got an unexpected keyword argument '%s'"
@@ -160,7 +157,7 @@ def get_users_agentui_agents_autoanswer_agent_id_settings(self, agent_id: str, *
160157
all_params.append('callback')
161158

162159
params = locals()
163-
for key, val in iteritems(params['kwargs']):
160+
for key, val in params['kwargs'].items():
164161
if key not in all_params:
165162
raise TypeError(
166163
"Got an unexpected keyword argument '%s'"
@@ -239,7 +236,7 @@ def patch_users_agentui_agents_autoanswer_agent_id_settings(self, agent_id: str,
239236
all_params.append('callback')
240237

241238
params = locals()
242-
for key, val in iteritems(params['kwargs']):
239+
for key, val in params['kwargs'].items():
243240
if key not in all_params:
244241
raise TypeError(
245242
"Got an unexpected keyword argument '%s'"
@@ -323,7 +320,7 @@ def put_users_agentui_agents_autoanswer_agent_id_settings(self, agent_id: str, b
323320
all_params.append('callback')
324321

325322
params = locals()
326-
for key, val in iteritems(params['kwargs']):
323+
for key, val in params['kwargs'].items():
327324
if key not in all_params:
328325
raise TypeError(
329326
"Got an unexpected keyword argument '%s'"

0 commit comments

Comments
 (0)