Skip to content

Commit 0dfbf27

Browse files
author
InIn Devops
committed
14.0.0
1 parent 930e469 commit 0dfbf27

File tree

283 files changed

+4147
-2712
lines changed

Some content is hidden

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

283 files changed

+4147
-2712
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@
499499
from .models.import_status_notification import ImportStatusNotification
500500
from .models.inbound_domain import InboundDomain
501501
from .models.inbound_domain_entity_listing import InboundDomainEntityListing
502+
from .models.inbound_message_request import InboundMessageRequest
502503
from .models.inbound_route import InboundRoute
503504
from .models.inbound_route_entity_listing import InboundRouteEntityListing
504505
from .models.initiate_screen_recording import InitiateScreenRecording
@@ -949,6 +950,8 @@
949950
from .models.voicemail_user_policy import VoicemailUserPolicy
950951
from .models.voicemails_search_response import VoicemailsSearchResponse
951952
from .models.wfm_historical_adherence_calculations_complete_notice_notification import WfmHistoricalAdherenceCalculationsCompleteNoticeNotification
953+
from .models.wfm_historical_adherence_query import WfmHistoricalAdherenceQuery
954+
from .models.wfm_historical_adherence_response import WfmHistoricalAdherenceResponse
952955
from .models.wfm_intraday_queue_listing import WfmIntradayQueueListing
953956
from .models.wfm_user_entity_listing import WfmUserEntityListing
954957
from .models.workspace import Workspace

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

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6118,6 +6118,90 @@ def post_conversations_cobrowsesession_participant_replace(self, conversation_id
61186118
callback=params.get('callback'))
61196119
return response
61206120

6121+
def post_conversations_email_inboundmessages(self, conversation_id, body, **kwargs):
6122+
"""
6123+
Send an email to an external conversation. An external conversation is one where the provider is not PureCloud based.This endpoint allows the sender of the external email to reply or send a new message to the existing conversation. The new message will be treated as part of the existing conversation and chained to it.
6124+
6125+
6126+
This method makes a synchronous HTTP request by default. To make an
6127+
asynchronous HTTP request, please define a `callback` function
6128+
to be invoked when receiving the response.
6129+
>>> def callback_function(response):
6130+
>>> pprint(response)
6131+
>>>
6132+
>>> thread = api.post_conversations_email_inboundmessages(conversation_id, body, callback=callback_function)
6133+
6134+
:param callback function: The callback function
6135+
for asynchronous request. (optional)
6136+
:param str conversation_id: conversationId (required)
6137+
:param InboundMessageRequest body: Send external email reply (required)
6138+
:return: EmailConversation
6139+
If the method is called asynchronously,
6140+
returns the request thread.
6141+
"""
6142+
6143+
all_params = ['conversation_id', 'body']
6144+
all_params.append('callback')
6145+
6146+
params = locals()
6147+
for key, val in iteritems(params['kwargs']):
6148+
if key not in all_params:
6149+
raise TypeError(
6150+
"Got an unexpected keyword argument '%s'"
6151+
" to method post_conversations_email_inboundmessages" % key
6152+
)
6153+
params[key] = val
6154+
del params['kwargs']
6155+
6156+
# verify the required parameter 'conversation_id' is set
6157+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
6158+
raise ValueError("Missing the required parameter `conversation_id` when calling `post_conversations_email_inboundmessages`")
6159+
# verify the required parameter 'body' is set
6160+
if ('body' not in params) or (params['body'] is None):
6161+
raise ValueError("Missing the required parameter `body` when calling `post_conversations_email_inboundmessages`")
6162+
6163+
6164+
resource_path = '/api/v2/conversations/emails/{conversationId}/inboundmessages'.replace('{format}', 'json')
6165+
path_params = {}
6166+
if 'conversation_id' in params:
6167+
path_params['conversationId'] = params['conversation_id']
6168+
6169+
query_params = {}
6170+
6171+
header_params = {}
6172+
6173+
form_params = []
6174+
local_var_files = {}
6175+
6176+
body_params = None
6177+
if 'body' in params:
6178+
body_params = params['body']
6179+
6180+
# HTTP header `Accept`
6181+
header_params['Accept'] = self.api_client.\
6182+
select_header_accept(['application/json'])
6183+
if not header_params['Accept']:
6184+
del header_params['Accept']
6185+
6186+
# HTTP header `Content-Type`
6187+
header_params['Content-Type'] = self.api_client.\
6188+
select_header_content_type(['application/json'])
6189+
6190+
# Authentication setting
6191+
auth_settings = ['PureCloud Auth']
6192+
6193+
response = self.api_client.call_api(resource_path, 'POST',
6194+
path_params,
6195+
query_params,
6196+
header_params,
6197+
body=body_params,
6198+
post_params=form_params,
6199+
files=local_var_files,
6200+
response_type='EmailConversation',
6201+
auth_settings=auth_settings,
6202+
callback=params.get('callback'))
6203+
return response
6204+
61216205
def post_conversations_email_messages(self, conversation_id, body, **kwargs):
61226206
"""
61236207
Send an email reply

build/PureCloudPlatformClientV2/apis/groups_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,14 @@ def get_groups(self, **kwargs):
471471
for asynchronous request. (optional)
472472
:param int page_size: Page size
473473
:param int page_number: Page number
474+
:param list[str] id: id
474475
:param str sort_order: Ascending or descending sort order
475476
:return: GroupEntityListing
476477
If the method is called asynchronously,
477478
returns the request thread.
478479
"""
479480

480-
all_params = ['page_size', 'page_number', 'sort_order']
481+
all_params = ['page_size', 'page_number', 'id', 'sort_order']
481482
all_params.append('callback')
482483

483484
params = locals()
@@ -500,6 +501,8 @@ def get_groups(self, **kwargs):
500501
query_params['pageSize'] = params['page_size']
501502
if 'page_number' in params:
502503
query_params['pageNumber'] = params['page_number']
504+
if 'id' in params:
505+
query_params['id'] = params['id']
503506
if 'sort_order' in params:
504507
query_params['sortOrder'] = params['sort_order']
505508

build/PureCloudPlatformClientV2/apis/voicemail_api.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,90 @@ def get_voicemail_policy(self, **kwargs):
10421042
callback=params.get('callback'))
10431043
return response
10441044

1045+
def get_voicemail_queue_messages(self, queue_id, **kwargs):
1046+
"""
1047+
List voicemail messages
1048+
1049+
1050+
This method makes a synchronous HTTP request by default. To make an
1051+
asynchronous HTTP request, please define a `callback` function
1052+
to be invoked when receiving the response.
1053+
>>> def callback_function(response):
1054+
>>> pprint(response)
1055+
>>>
1056+
>>> thread = api.get_voicemail_queue_messages(queue_id, callback=callback_function)
1057+
1058+
:param callback function: The callback function
1059+
for asynchronous request. (optional)
1060+
:param str queue_id: Queue ID (required)
1061+
:param int page_size: Page size
1062+
:param int page_number: Page number
1063+
:return: VoicemailMessageEntityListing
1064+
If the method is called asynchronously,
1065+
returns the request thread.
1066+
"""
1067+
1068+
all_params = ['queue_id', 'page_size', 'page_number']
1069+
all_params.append('callback')
1070+
1071+
params = locals()
1072+
for key, val in iteritems(params['kwargs']):
1073+
if key not in all_params:
1074+
raise TypeError(
1075+
"Got an unexpected keyword argument '%s'"
1076+
" to method get_voicemail_queue_messages" % key
1077+
)
1078+
params[key] = val
1079+
del params['kwargs']
1080+
1081+
# verify the required parameter 'queue_id' is set
1082+
if ('queue_id' not in params) or (params['queue_id'] is None):
1083+
raise ValueError("Missing the required parameter `queue_id` when calling `get_voicemail_queue_messages`")
1084+
1085+
1086+
resource_path = '/api/v2/voicemail/queues/{queueId}/messages'.replace('{format}', 'json')
1087+
path_params = {}
1088+
if 'queue_id' in params:
1089+
path_params['queueId'] = params['queue_id']
1090+
1091+
query_params = {}
1092+
if 'page_size' in params:
1093+
query_params['pageSize'] = params['page_size']
1094+
if 'page_number' in params:
1095+
query_params['pageNumber'] = params['page_number']
1096+
1097+
header_params = {}
1098+
1099+
form_params = []
1100+
local_var_files = {}
1101+
1102+
body_params = None
1103+
1104+
# HTTP header `Accept`
1105+
header_params['Accept'] = self.api_client.\
1106+
select_header_accept(['application/json'])
1107+
if not header_params['Accept']:
1108+
del header_params['Accept']
1109+
1110+
# HTTP header `Content-Type`
1111+
header_params['Content-Type'] = self.api_client.\
1112+
select_header_content_type(['application/json'])
1113+
1114+
# Authentication setting
1115+
auth_settings = ['PureCloud Auth']
1116+
1117+
response = self.api_client.call_api(resource_path, 'GET',
1118+
path_params,
1119+
query_params,
1120+
header_params,
1121+
body=body_params,
1122+
post_params=form_params,
1123+
files=local_var_files,
1124+
response_type='VoicemailMessageEntityListing',
1125+
auth_settings=auth_settings,
1126+
callback=params.get('callback'))
1127+
return response
1128+
10451129
def get_voicemail_search(self, q64, **kwargs):
10461130
"""
10471131
Search voicemails using the q64 value returned from a previous search

build/PureCloudPlatformClientV2/apis/workforce_management_api.py

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,87 @@ def patch_workforcemanagement_timeoffrequest(self, time_off_request_id, **kwargs
856856
callback=params.get('callback'))
857857
return response
858858

859+
def post_workforcemanagement_managementunit_historicaladherencequery(self, mu_id, **kwargs):
860+
"""
861+
Request a historical adherence report
862+
863+
864+
This method makes a synchronous HTTP request by default. To make an
865+
asynchronous HTTP request, please define a `callback` function
866+
to be invoked when receiving the response.
867+
>>> def callback_function(response):
868+
>>> pprint(response)
869+
>>>
870+
>>> thread = api.post_workforcemanagement_managementunit_historicaladherencequery(mu_id, callback=callback_function)
871+
872+
:param callback function: The callback function
873+
for asynchronous request. (optional)
874+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
875+
:param WfmHistoricalAdherenceQuery body: body
876+
:return: WfmHistoricalAdherenceResponse
877+
If the method is called asynchronously,
878+
returns the request thread.
879+
"""
880+
881+
all_params = ['mu_id', 'body']
882+
all_params.append('callback')
883+
884+
params = locals()
885+
for key, val in iteritems(params['kwargs']):
886+
if key not in all_params:
887+
raise TypeError(
888+
"Got an unexpected keyword argument '%s'"
889+
" to method post_workforcemanagement_managementunit_historicaladherencequery" % key
890+
)
891+
params[key] = val
892+
del params['kwargs']
893+
894+
# verify the required parameter 'mu_id' is set
895+
if ('mu_id' not in params) or (params['mu_id'] is None):
896+
raise ValueError("Missing the required parameter `mu_id` when calling `post_workforcemanagement_managementunit_historicaladherencequery`")
897+
898+
899+
resource_path = '/api/v2/workforcemanagement/managementunits/{muId}/historicaladherencequery'.replace('{format}', 'json')
900+
path_params = {}
901+
if 'mu_id' in params:
902+
path_params['muId'] = params['mu_id']
903+
904+
query_params = {}
905+
906+
header_params = {}
907+
908+
form_params = []
909+
local_var_files = {}
910+
911+
body_params = None
912+
if 'body' in params:
913+
body_params = params['body']
914+
915+
# HTTP header `Accept`
916+
header_params['Accept'] = self.api_client.\
917+
select_header_accept(['application/json'])
918+
if not header_params['Accept']:
919+
del header_params['Accept']
920+
921+
# HTTP header `Content-Type`
922+
header_params['Content-Type'] = self.api_client.\
923+
select_header_content_type(['application/json'])
924+
925+
# Authentication setting
926+
auth_settings = ['PureCloud Auth']
927+
928+
response = self.api_client.call_api(resource_path, 'POST',
929+
path_params,
930+
query_params,
931+
header_params,
932+
body=body_params,
933+
post_params=form_params,
934+
files=local_var_files,
935+
response_type='WfmHistoricalAdherenceResponse',
936+
auth_settings=auth_settings,
937+
callback=params.get('callback'))
938+
return response
939+
859940
def post_workforcemanagement_managementunit_intraday(self, mu_id, **kwargs):
860941
"""
861942
Get intraday data for the given date for the requested queueIds

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: 13.0.2".\
241+
"SDK Package Version: 14.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
@@ -499,6 +499,7 @@
499499
from .import_status_notification import ImportStatusNotification
500500
from .inbound_domain import InboundDomain
501501
from .inbound_domain_entity_listing import InboundDomainEntityListing
502+
from .inbound_message_request import InboundMessageRequest
502503
from .inbound_route import InboundRoute
503504
from .inbound_route_entity_listing import InboundRouteEntityListing
504505
from .initiate_screen_recording import InitiateScreenRecording
@@ -949,6 +950,8 @@
949950
from .voicemail_user_policy import VoicemailUserPolicy
950951
from .voicemails_search_response import VoicemailsSearchResponse
951952
from .wfm_historical_adherence_calculations_complete_notice_notification import WfmHistoricalAdherenceCalculationsCompleteNoticeNotification
953+
from .wfm_historical_adherence_query import WfmHistoricalAdherenceQuery
954+
from .wfm_historical_adherence_response import WfmHistoricalAdherenceResponse
952955
from .wfm_intraday_queue_listing import WfmIntradayQueueListing
953956
from .wfm_user_entity_listing import WfmUserEntityListing
954957
from .workspace import Workspace

0 commit comments

Comments
 (0)