Skip to content

Commit b73f815

Browse files
author
PureCloud Jenkins
committed
35.0.0
1 parent 9a767e2 commit b73f815

File tree

84 files changed

+2106
-719
lines changed

Some content is hidden

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

84 files changed

+2106
-719
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@
386386
from .models.digits import Digits
387387
from .models.directory_user_devices_listing import DirectoryUserDevicesListing
388388
from .models.disconnect_reason import DisconnectReason
389+
from .models.division import Division
389390
from .models.dnc_list import DncList
390391
from .models.dnc_list_create import DncListCreate
391392
from .models.dnc_list_entity_listing import DncListEntityListing
@@ -721,9 +722,11 @@
721722
from .models.message_details import MessageDetails
722723
from .models.message_info import MessageInfo
723724
from .models.message_media import MessageMedia
725+
from .models.message_media_data import MessageMediaData
724726
from .models.message_media_participant import MessageMediaParticipant
725727
from .models.message_media_policy import MessageMediaPolicy
726728
from .models.message_media_policy_conditions import MessageMediaPolicyConditions
729+
from .models.message_sticker import MessageSticker
727730
from .models.meta_data import MetaData
728731
from .models.metabase import Metabase
729732
from .models.metered_evaluation_assignment import MeteredEvaluationAssignment

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'] = '34.0.0'
115+
header_params['purecloud-sdk'] = '35.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 102 additions & 51 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,96 @@ def get_conversations_message(self, conversation_id, **kwargs):
29592959
callback=params.get('callback'))
29602960
return response
29612961

2962+
def get_conversations_message_communication_messages_media_media_id(self, conversation_id, communication_id, media_id, **kwargs):
2963+
"""
2964+
Get media
2965+
2966+
2967+
This method makes a synchronous HTTP request by default. To make an
2968+
asynchronous HTTP request, please define a `callback` function
2969+
to be invoked when receiving the response.
2970+
>>> def callback_function(response):
2971+
>>> pprint(response)
2972+
>>>
2973+
>>> thread = api.get_conversations_message_communication_messages_media_media_id(conversation_id, communication_id, media_id, callback=callback_function)
2974+
2975+
:param callback function: The callback function
2976+
for asynchronous request. (optional)
2977+
:param str conversation_id: conversationId (required)
2978+
:param str communication_id: communicationId (required)
2979+
:param str media_id: mediaId (required)
2980+
:return: MessageMediaData
2981+
If the method is called asynchronously,
2982+
returns the request thread.
2983+
"""
2984+
2985+
all_params = ['conversation_id', 'communication_id', 'media_id']
2986+
all_params.append('callback')
2987+
2988+
params = locals()
2989+
for key, val in iteritems(params['kwargs']):
2990+
if key not in all_params:
2991+
raise TypeError(
2992+
"Got an unexpected keyword argument '%s'"
2993+
" to method get_conversations_message_communication_messages_media_media_id" % key
2994+
)
2995+
params[key] = val
2996+
del params['kwargs']
2997+
2998+
# verify the required parameter 'conversation_id' is set
2999+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
3000+
raise ValueError("Missing the required parameter `conversation_id` when calling `get_conversations_message_communication_messages_media_media_id`")
3001+
# verify the required parameter 'communication_id' is set
3002+
if ('communication_id' not in params) or (params['communication_id'] is None):
3003+
raise ValueError("Missing the required parameter `communication_id` when calling `get_conversations_message_communication_messages_media_media_id`")
3004+
# verify the required parameter 'media_id' is set
3005+
if ('media_id' not in params) or (params['media_id'] is None):
3006+
raise ValueError("Missing the required parameter `media_id` when calling `get_conversations_message_communication_messages_media_media_id`")
3007+
3008+
3009+
resource_path = '/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/{mediaId}'.replace('{format}', 'json')
3010+
path_params = {}
3011+
if 'conversation_id' in params:
3012+
path_params['conversationId'] = params['conversation_id']
3013+
if 'communication_id' in params:
3014+
path_params['communicationId'] = params['communication_id']
3015+
if 'media_id' in params:
3016+
path_params['mediaId'] = params['media_id']
3017+
3018+
query_params = {}
3019+
3020+
header_params = {}
3021+
3022+
form_params = []
3023+
local_var_files = {}
3024+
3025+
body_params = None
3026+
3027+
# HTTP header `Accept`
3028+
header_params['Accept'] = self.api_client.\
3029+
select_header_accept(['application/json'])
3030+
if not header_params['Accept']:
3031+
del header_params['Accept']
3032+
3033+
# HTTP header `Content-Type`
3034+
header_params['Content-Type'] = self.api_client.\
3035+
select_header_content_type(['application/json'])
3036+
3037+
# Authentication setting
3038+
auth_settings = ['PureCloud Auth']
3039+
3040+
response = self.api_client.call_api(resource_path, 'GET',
3041+
path_params,
3042+
query_params,
3043+
header_params,
3044+
body=body_params,
3045+
post_params=form_params,
3046+
files=local_var_files,
3047+
response_type='MessageMediaData',
3048+
auth_settings=auth_settings,
3049+
callback=params.get('callback'))
3050+
return response
3051+
29623052
def get_conversations_message_message(self, conversation_id, message_id, **kwargs):
29633053
"""
29643054
Get message
@@ -7810,6 +7900,90 @@ def post_conversations_message_communication_messages(self, conversation_id, com
78107900
callback=params.get('callback'))
78117901
return response
78127902

7903+
def post_conversations_message_communication_messages_media(self, conversation_id, communication_id, **kwargs):
7904+
"""
7905+
Create media
7906+
7907+
7908+
This method makes a synchronous HTTP request by default. To make an
7909+
asynchronous HTTP request, please define a `callback` function
7910+
to be invoked when receiving the response.
7911+
>>> def callback_function(response):
7912+
>>> pprint(response)
7913+
>>>
7914+
>>> thread = api.post_conversations_message_communication_messages_media(conversation_id, communication_id, callback=callback_function)
7915+
7916+
:param callback function: The callback function
7917+
for asynchronous request. (optional)
7918+
:param str conversation_id: conversationId (required)
7919+
:param str communication_id: communicationId (required)
7920+
:return: MessageMediaData
7921+
If the method is called asynchronously,
7922+
returns the request thread.
7923+
"""
7924+
7925+
all_params = ['conversation_id', 'communication_id']
7926+
all_params.append('callback')
7927+
7928+
params = locals()
7929+
for key, val in iteritems(params['kwargs']):
7930+
if key not in all_params:
7931+
raise TypeError(
7932+
"Got an unexpected keyword argument '%s'"
7933+
" to method post_conversations_message_communication_messages_media" % key
7934+
)
7935+
params[key] = val
7936+
del params['kwargs']
7937+
7938+
# verify the required parameter 'conversation_id' is set
7939+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
7940+
raise ValueError("Missing the required parameter `conversation_id` when calling `post_conversations_message_communication_messages_media`")
7941+
# verify the required parameter 'communication_id' is set
7942+
if ('communication_id' not in params) or (params['communication_id'] is None):
7943+
raise ValueError("Missing the required parameter `communication_id` when calling `post_conversations_message_communication_messages_media`")
7944+
7945+
7946+
resource_path = '/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media'.replace('{format}', 'json')
7947+
path_params = {}
7948+
if 'conversation_id' in params:
7949+
path_params['conversationId'] = params['conversation_id']
7950+
if 'communication_id' in params:
7951+
path_params['communicationId'] = params['communication_id']
7952+
7953+
query_params = {}
7954+
7955+
header_params = {}
7956+
7957+
form_params = []
7958+
local_var_files = {}
7959+
7960+
body_params = None
7961+
7962+
# HTTP header `Accept`
7963+
header_params['Accept'] = self.api_client.\
7964+
select_header_accept(['application/json'])
7965+
if not header_params['Accept']:
7966+
del header_params['Accept']
7967+
7968+
# HTTP header `Content-Type`
7969+
header_params['Content-Type'] = self.api_client.\
7970+
select_header_content_type(['application/json'])
7971+
7972+
# Authentication setting
7973+
auth_settings = ['PureCloud Auth']
7974+
7975+
response = self.api_client.call_api(resource_path, 'POST',
7976+
path_params,
7977+
query_params,
7978+
header_params,
7979+
body=body_params,
7980+
post_params=form_params,
7981+
files=local_var_files,
7982+
response_type='MessageMediaData',
7983+
auth_settings=auth_settings,
7984+
callback=params.get('callback'))
7985+
return response
7986+
78137987
def post_conversations_message_messages_bulk(self, conversation_id, **kwargs):
78147988
"""
78157989
Get messages in batch

build/PureCloudPlatformClientV2/apis/routing_api.py

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,99 @@ def get_routing_queues(self, **kwargs):
20862086
callback=params.get('callback'))
20872087
return response
20882088

2089+
def get_routing_queues_search(self, **kwargs):
2090+
"""
2091+
Search for queues by name
2092+
2093+
2094+
This method makes a synchronous HTTP request by default. To make an
2095+
asynchronous HTTP request, please define a `callback` function
2096+
to be invoked when receiving the response.
2097+
>>> def callback_function(response):
2098+
>>> pprint(response)
2099+
>>>
2100+
>>> thread = api.get_routing_queues_search(callback=callback_function)
2101+
2102+
:param callback function: The callback function
2103+
for asynchronous request. (optional)
2104+
:param int page_size: Page size
2105+
:param int page_number: Page number
2106+
:param str sort_by: Sort by
2107+
:param str sort_order: Sort order
2108+
:param str name: Name
2109+
:param list[str] id: Queue ID(s)
2110+
:param list[str] division_id: Division ID(s)
2111+
:return: QueueEntityListing
2112+
If the method is called asynchronously,
2113+
returns the request thread.
2114+
"""
2115+
2116+
all_params = ['page_size', 'page_number', 'sort_by', 'sort_order', 'name', 'id', 'division_id']
2117+
all_params.append('callback')
2118+
2119+
params = locals()
2120+
for key, val in iteritems(params['kwargs']):
2121+
if key not in all_params:
2122+
raise TypeError(
2123+
"Got an unexpected keyword argument '%s'"
2124+
" to method get_routing_queues_search" % key
2125+
)
2126+
params[key] = val
2127+
del params['kwargs']
2128+
2129+
2130+
2131+
resource_path = '/api/v2/routing/queues/search'.replace('{format}', 'json')
2132+
path_params = {}
2133+
2134+
query_params = {}
2135+
if 'page_size' in params:
2136+
query_params['pageSize'] = params['page_size']
2137+
if 'page_number' in params:
2138+
query_params['pageNumber'] = params['page_number']
2139+
if 'sort_by' in params:
2140+
query_params['sortBy'] = params['sort_by']
2141+
if 'sort_order' in params:
2142+
query_params['sortOrder'] = params['sort_order']
2143+
if 'name' in params:
2144+
query_params['name'] = params['name']
2145+
if 'id' in params:
2146+
query_params['id'] = params['id']
2147+
if 'division_id' in params:
2148+
query_params['divisionId'] = params['division_id']
2149+
2150+
header_params = {}
2151+
2152+
form_params = []
2153+
local_var_files = {}
2154+
2155+
body_params = None
2156+
2157+
# HTTP header `Accept`
2158+
header_params['Accept'] = self.api_client.\
2159+
select_header_accept(['application/json'])
2160+
if not header_params['Accept']:
2161+
del header_params['Accept']
2162+
2163+
# HTTP header `Content-Type`
2164+
header_params['Content-Type'] = self.api_client.\
2165+
select_header_content_type(['application/json'])
2166+
2167+
# Authentication setting
2168+
auth_settings = ['PureCloud Auth']
2169+
2170+
response = self.api_client.call_api(resource_path, 'GET',
2171+
path_params,
2172+
query_params,
2173+
header_params,
2174+
body=body_params,
2175+
post_params=form_params,
2176+
files=local_var_files,
2177+
response_type='QueueEntityListing',
2178+
auth_settings=auth_settings,
2179+
callback=params.get('callback'))
2180+
return response
2181+
20892182
def get_routing_skill(self, skill_id, **kwargs):
20902183
"""
20912184
Get Routing Skill

build/PureCloudPlatformClientV2/apis/workforce_management_api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,12 +559,14 @@ def get_workforcemanagement_managementunits(self, **kwargs):
559559
:param int page_size:
560560
:param int page_number:
561561
:param str expand:
562+
:param str feature:
563+
:param str division_id:
562564
:return: ManagementUnitListing
563565
If the method is called asynchronously,
564566
returns the request thread.
565567
"""
566568

567-
all_params = ['page_size', 'page_number', 'expand']
569+
all_params = ['page_size', 'page_number', 'expand', 'feature', 'division_id']
568570
all_params.append('callback')
569571

570572
params = locals()
@@ -589,6 +591,10 @@ def get_workforcemanagement_managementunits(self, **kwargs):
589591
query_params['pageNumber'] = params['page_number']
590592
if 'expand' in params:
591593
query_params['expand'] = params['expand']
594+
if 'feature' in params:
595+
query_params['feature'] = params['feature']
596+
if 'division_id' in params:
597+
query_params['divisionId'] = params['division_id']
592598

593599
header_params = {}
594600

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

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@
386386
from .digits import Digits
387387
from .directory_user_devices_listing import DirectoryUserDevicesListing
388388
from .disconnect_reason import DisconnectReason
389+
from .division import Division
389390
from .dnc_list import DncList
390391
from .dnc_list_create import DncListCreate
391392
from .dnc_list_entity_listing import DncListEntityListing
@@ -721,9 +722,11 @@
721722
from .message_details import MessageDetails
722723
from .message_info import MessageInfo
723724
from .message_media import MessageMedia
725+
from .message_media_data import MessageMediaData
724726
from .message_media_participant import MessageMediaParticipant
725727
from .message_media_policy import MessageMediaPolicy
726728
from .message_media_policy_conditions import MessageMediaPolicyConditions
729+
from .message_sticker import MessageSticker
727730
from .meta_data import MetaData
728731
from .metabase import Metabase
729732
from .metered_evaluation_assignment import MeteredEvaluationAssignment

0 commit comments

Comments
 (0)