Skip to content

Commit d956c35

Browse files
author
InIn Devops
committed
21.0.0
1 parent 2944b1c commit d956c35

46 files changed

Lines changed: 2405 additions & 275 deletions

Some content is hidden

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

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@
524524
from .models.group_contact import GroupContact
525525
from .models.group_entity_listing import GroupEntityListing
526526
from .models.group_members_update import GroupMembersUpdate
527+
from .models.group_profile import GroupProfile
527528
from .models.group_search_criteria import GroupSearchCriteria
528529
from .models.group_search_request import GroupSearchRequest
529530
from .models.group_update import GroupUpdate
@@ -644,9 +645,12 @@
644645
from .models.message_conversation_notification_uri_reference import MessageConversationNotificationUriReference
645646
from .models.message_conversation_notification_wrapup import MessageConversationNotificationWrapup
646647
from .models.message_details import MessageDetails
648+
from .models.message_media_policy import MessageMediaPolicy
649+
from .models.message_media_policy_conditions import MessageMediaPolicyConditions
647650
from .models.meta_data import MetaData
648651
from .models.metabase import Metabase
649652
from .models.metered_evaluation_assignment import MeteredEvaluationAssignment
653+
from .models.named_entity import NamedEntity
650654
from .models.note import Note
651655
from .models.note_listing import NoteListing
652656
from .models.number import Number
@@ -967,13 +971,16 @@
967971
from .models.user_details_query import UserDetailsQuery
968972
from .models.user_device import UserDevice
969973
from .models.user_entity_listing import UserEntityListing
974+
from .models.user_expands import UserExpands
970975
from .models.user_image import UserImage
971976
from .models.user_list_schedule_request_body import UserListScheduleRequestBody
972977
from .models.user_me import UserMe
973978
from .models.user_param import UserParam
974979
from .models.user_presence import UserPresence
975980
from .models.user_presence_notification import UserPresenceNotification
976981
from .models.user_presence_notification_organization_presence import UserPresenceNotificationOrganizationPresence
982+
from .models.user_profile import UserProfile
983+
from .models.user_profile_entity_listing import UserProfileEntityListing
977984
from .models.user_queue import UserQueue
978985
from .models.user_queue_entity_listing import UserQueueEntityListing
979986
from .models.user_recording import UserRecording

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __call_api(self, resource_path, method,
112112
header_params['Cookie'] = self.cookie
113113
if header_params:
114114
header_params = self.sanitize_for_serialization(header_params)
115-
header_params['purecloud-sdk'] = '20.0.0'
115+
header_params['purecloud-sdk'] = '21.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/groups_api.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,84 @@ def get_group_members(self, group_id, **kwargs):
454454
callback=params.get('callback'))
455455
return response
456456

457+
def get_group_profile(self, group_id, **kwargs):
458+
"""
459+
Get group profile
460+
461+
462+
This method makes a synchronous HTTP request by default. To make an
463+
asynchronous HTTP request, please define a `callback` function
464+
to be invoked when receiving the response.
465+
>>> def callback_function(response):
466+
>>> pprint(response)
467+
>>>
468+
>>> thread = api.get_group_profile(group_id, callback=callback_function)
469+
470+
:param callback function: The callback function
471+
for asynchronous request. (optional)
472+
:param str group_id: groupId (required)
473+
:return: GroupProfile
474+
If the method is called asynchronously,
475+
returns the request thread.
476+
"""
477+
478+
all_params = ['group_id']
479+
all_params.append('callback')
480+
481+
params = locals()
482+
for key, val in iteritems(params['kwargs']):
483+
if key not in all_params:
484+
raise TypeError(
485+
"Got an unexpected keyword argument '%s'"
486+
" to method get_group_profile" % key
487+
)
488+
params[key] = val
489+
del params['kwargs']
490+
491+
# verify the required parameter 'group_id' is set
492+
if ('group_id' not in params) or (params['group_id'] is None):
493+
raise ValueError("Missing the required parameter `group_id` when calling `get_group_profile`")
494+
495+
496+
resource_path = '/api/v2/groups/{groupId}/profile'.replace('{format}', 'json')
497+
path_params = {}
498+
if 'group_id' in params:
499+
path_params['groupId'] = params['group_id']
500+
501+
query_params = {}
502+
503+
header_params = {}
504+
505+
form_params = []
506+
local_var_files = {}
507+
508+
body_params = None
509+
510+
# HTTP header `Accept`
511+
header_params['Accept'] = self.api_client.\
512+
select_header_accept(['application/json'])
513+
if not header_params['Accept']:
514+
del header_params['Accept']
515+
516+
# HTTP header `Content-Type`
517+
header_params['Content-Type'] = self.api_client.\
518+
select_header_content_type(['application/json'])
519+
520+
# Authentication setting
521+
auth_settings = ['PureCloud Auth']
522+
523+
response = self.api_client.call_api(resource_path, 'GET',
524+
path_params,
525+
query_params,
526+
header_params,
527+
body=body_params,
528+
post_params=form_params,
529+
files=local_var_files,
530+
response_type='GroupProfile',
531+
auth_settings=auth_settings,
532+
callback=params.get('callback'))
533+
return response
534+
457535
def get_groups(self, **kwargs):
458536
"""
459537
Get a group list

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@ def post_routing_queue_wrapupcodes(self, queue_id, body, **kwargs):
28402840
:param callback function: The callback function
28412841
for asynchronous request. (optional)
28422842
:param str queue_id: Queue ID (required)
2843-
:param list[WrapupCode] body: List of wrapup codes (required)
2843+
:param list[Entity] body: List of wrapup codes (required)
28442844
:return: list[WrapupCode]
28452845
If the method is called asynchronously,
28462846
returns the request thread.

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,99 @@ def get_fieldconfig(self, type, **kwargs):
520520
callback=params.get('callback'))
521521
return response
522522

523+
def get_profiles_users(self, **kwargs):
524+
"""
525+
Get a user profile listing
526+
527+
528+
This method makes a synchronous HTTP request by default. To make an
529+
asynchronous HTTP request, please define a `callback` function
530+
to be invoked when receiving the response.
531+
>>> def callback_function(response):
532+
>>> pprint(response)
533+
>>>
534+
>>> thread = api.get_profiles_users(callback=callback_function)
535+
536+
:param callback function: The callback function
537+
for asynchronous request. (optional)
538+
:param int page_size: Page size
539+
:param int page_number: Page number
540+
:param list[str] id: id
541+
:param list[str] jid: jid
542+
:param str sort_order: Ascending or descending sort order
543+
:param list[str] expand: Which fields, if any, to expand
544+
:param str state: Only list users of this state
545+
:return: UserProfileEntityListing
546+
If the method is called asynchronously,
547+
returns the request thread.
548+
"""
549+
550+
all_params = ['page_size', 'page_number', 'id', 'jid', 'sort_order', 'expand', 'state']
551+
all_params.append('callback')
552+
553+
params = locals()
554+
for key, val in iteritems(params['kwargs']):
555+
if key not in all_params:
556+
raise TypeError(
557+
"Got an unexpected keyword argument '%s'"
558+
" to method get_profiles_users" % key
559+
)
560+
params[key] = val
561+
del params['kwargs']
562+
563+
564+
565+
resource_path = '/api/v2/profiles/users'.replace('{format}', 'json')
566+
path_params = {}
567+
568+
query_params = {}
569+
if 'page_size' in params:
570+
query_params['pageSize'] = params['page_size']
571+
if 'page_number' in params:
572+
query_params['pageNumber'] = params['page_number']
573+
if 'id' in params:
574+
query_params['id'] = params['id']
575+
if 'jid' in params:
576+
query_params['jid'] = params['jid']
577+
if 'sort_order' in params:
578+
query_params['sortOrder'] = params['sort_order']
579+
if 'expand' in params:
580+
query_params['expand'] = params['expand']
581+
if 'state' in params:
582+
query_params['state'] = params['state']
583+
584+
header_params = {}
585+
586+
form_params = []
587+
local_var_files = {}
588+
589+
body_params = None
590+
591+
# HTTP header `Accept`
592+
header_params['Accept'] = self.api_client.\
593+
select_header_accept(['application/json'])
594+
if not header_params['Accept']:
595+
del header_params['Accept']
596+
597+
# HTTP header `Content-Type`
598+
header_params['Content-Type'] = self.api_client.\
599+
select_header_content_type(['application/json'])
600+
601+
# Authentication setting
602+
auth_settings = ['PureCloud Auth']
603+
604+
response = self.api_client.call_api(resource_path, 'GET',
605+
path_params,
606+
query_params,
607+
header_params,
608+
body=body_params,
609+
post_params=form_params,
610+
files=local_var_files,
611+
response_type='UserProfileEntityListing',
612+
auth_settings=auth_settings,
613+
callback=params.get('callback'))
614+
return response
615+
523616
def get_user(self, user_id, **kwargs):
524617
"""
525618
Get user.
@@ -1096,6 +1189,87 @@ def get_user_outofoffice(self, user_id, **kwargs):
10961189
callback=params.get('callback'))
10971190
return response
10981191

1192+
def get_user_profile(self, user_id, **kwargs):
1193+
"""
1194+
Get user profile
1195+
1196+
1197+
This method makes a synchronous HTTP request by default. To make an
1198+
asynchronous HTTP request, please define a `callback` function
1199+
to be invoked when receiving the response.
1200+
>>> def callback_function(response):
1201+
>>> pprint(response)
1202+
>>>
1203+
>>> thread = api.get_user_profile(user_id, callback=callback_function)
1204+
1205+
:param callback function: The callback function
1206+
for asynchronous request. (optional)
1207+
:param str user_id: userId (required)
1208+
:param list[str] expand: Which fields, if any, to expand
1209+
:return: UserProfile
1210+
If the method is called asynchronously,
1211+
returns the request thread.
1212+
"""
1213+
1214+
all_params = ['user_id', 'expand']
1215+
all_params.append('callback')
1216+
1217+
params = locals()
1218+
for key, val in iteritems(params['kwargs']):
1219+
if key not in all_params:
1220+
raise TypeError(
1221+
"Got an unexpected keyword argument '%s'"
1222+
" to method get_user_profile" % key
1223+
)
1224+
params[key] = val
1225+
del params['kwargs']
1226+
1227+
# verify the required parameter 'user_id' is set
1228+
if ('user_id' not in params) or (params['user_id'] is None):
1229+
raise ValueError("Missing the required parameter `user_id` when calling `get_user_profile`")
1230+
1231+
1232+
resource_path = '/api/v2/users/{userId}/profile'.replace('{format}', 'json')
1233+
path_params = {}
1234+
if 'user_id' in params:
1235+
path_params['userId'] = params['user_id']
1236+
1237+
query_params = {}
1238+
if 'expand' in params:
1239+
query_params['expand'] = params['expand']
1240+
1241+
header_params = {}
1242+
1243+
form_params = []
1244+
local_var_files = {}
1245+
1246+
body_params = None
1247+
1248+
# HTTP header `Accept`
1249+
header_params['Accept'] = self.api_client.\
1250+
select_header_accept(['application/json'])
1251+
if not header_params['Accept']:
1252+
del header_params['Accept']
1253+
1254+
# HTTP header `Content-Type`
1255+
header_params['Content-Type'] = self.api_client.\
1256+
select_header_content_type(['application/json'])
1257+
1258+
# Authentication setting
1259+
auth_settings = ['PureCloud Auth']
1260+
1261+
response = self.api_client.call_api(resource_path, 'GET',
1262+
path_params,
1263+
query_params,
1264+
header_params,
1265+
body=body_params,
1266+
post_params=form_params,
1267+
files=local_var_files,
1268+
response_type='UserProfile',
1269+
auth_settings=auth_settings,
1270+
callback=params.get('callback'))
1271+
return response
1272+
10991273
def get_user_profileskills(self, user_id, **kwargs):
11001274
"""
11011275
List profile skills for a user

build/PureCloudPlatformClientV2/apis/workforce_management_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,13 @@ def get_workforcemanagement_managementunits(self, **kwargs):
558558
for asynchronous request. (optional)
559559
:param int page_size:
560560
:param int page_number:
561+
:param str expand:
561562
:return: ManagementUnitListing
562563
If the method is called asynchronously,
563564
returns the request thread.
564565
"""
565566

566-
all_params = ['page_size', 'page_number']
567+
all_params = ['page_size', 'page_number', 'expand']
567568
all_params.append('callback')
568569

569570
params = locals()
@@ -586,6 +587,8 @@ def get_workforcemanagement_managementunits(self, **kwargs):
586587
query_params['pageSize'] = params['page_size']
587588
if 'page_number' in params:
588589
query_params['pageNumber'] = params['page_number']
590+
if 'expand' in params:
591+
query_params['expand'] = params['expand']
589592

590593
header_params = {}
591594

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

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@
524524
from .group_contact import GroupContact
525525
from .group_entity_listing import GroupEntityListing
526526
from .group_members_update import GroupMembersUpdate
527+
from .group_profile import GroupProfile
527528
from .group_search_criteria import GroupSearchCriteria
528529
from .group_search_request import GroupSearchRequest
529530
from .group_update import GroupUpdate
@@ -644,9 +645,12 @@
644645
from .message_conversation_notification_uri_reference import MessageConversationNotificationUriReference
645646
from .message_conversation_notification_wrapup import MessageConversationNotificationWrapup
646647
from .message_details import MessageDetails
648+
from .message_media_policy import MessageMediaPolicy
649+
from .message_media_policy_conditions import MessageMediaPolicyConditions
647650
from .meta_data import MetaData
648651
from .metabase import Metabase
649652
from .metered_evaluation_assignment import MeteredEvaluationAssignment
653+
from .named_entity import NamedEntity
650654
from .note import Note
651655
from .note_listing import NoteListing
652656
from .number import Number
@@ -967,13 +971,16 @@
967971
from .user_details_query import UserDetailsQuery
968972
from .user_device import UserDevice
969973
from .user_entity_listing import UserEntityListing
974+
from .user_expands import UserExpands
970975
from .user_image import UserImage
971976
from .user_list_schedule_request_body import UserListScheduleRequestBody
972977
from .user_me import UserMe
973978
from .user_param import UserParam
974979
from .user_presence import UserPresence
975980
from .user_presence_notification import UserPresenceNotification
976981
from .user_presence_notification_organization_presence import UserPresenceNotificationOrganizationPresence
982+
from .user_profile import UserProfile
983+
from .user_profile_entity_listing import UserProfileEntityListing
977984
from .user_queue import UserQueue
978985
from .user_queue_entity_listing import UserQueueEntityListing
979986
from .user_recording import UserRecording

0 commit comments

Comments
 (0)