Skip to content

Commit 0ce35b2

Browse files
author
PureCloud Jenkins
committed
255.0.0
1 parent c32cd22 commit 0ce35b2

6,384 files changed

Lines changed: 36191 additions & 12437 deletions

File tree

Some content is hidden

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

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 254.0.0
8+
Documentation version PureCloudPlatformClientV2 255.0.0
99

1010
## Preview APIs
1111

build/.openapi-generator/FILES

Lines changed: 188 additions & 2 deletions
Large diffs are not rendered by default.

build/APIData.json

Lines changed: 909 additions & 130 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 73 additions & 1 deletion
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def __call_api(self, resource_path, method,
420420
header_params['Cookie'] = self.cookie
421421
if header_params:
422422
header_params = self.sanitize_params_for_serialization(header_params)
423-
header_params['purecloud-sdk'] = '254.0.0'
423+
header_params['purecloud-sdk'] = '255.0.0'
424424

425425
# path parameters
426426
if path_params:

build/PureCloudPlatformClientV2/apis/analytics_api.py

Lines changed: 402 additions & 1 deletion
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
from ..models import SetRecordingState
220220
from ..models import SetUuiDataRequest
221221
from ..models import Settings
222+
from ..models import SnippetRecordingRequest
222223
from ..models import SocialMediaMessageData
223224
from ..models import Suggestion
224225
from ..models import SuggestionEngagement
@@ -19600,6 +19601,96 @@ def post_conversations_call_participant_replace(self, conversation_id: str, part
1960019601
callback=params.get('callback'))
1960119602
return response
1960219603

19604+
def post_conversations_call_participant_snippet_record(self, conversation_id: str, participant_id: str, body: 'SnippetRecordingRequest', **kwargs) -> str:
19605+
"""
19606+
Start/stop the snippet recording for a participant
19607+
19608+
19609+
This method makes a synchronous HTTP request by default. To make an
19610+
asynchronous HTTP request, please define a `callback` function
19611+
to be invoked when receiving the response.
19612+
>>> def callback_function(response):
19613+
>>> pprint(response)
19614+
>>>
19615+
>>> thread = api.post_conversations_call_participant_snippet_record(conversation_id, participant_id, body, callback=callback_function)
19616+
19617+
:param callback function: The callback function
19618+
for asynchronous request. (optional)
19619+
:param str conversation_id: conversationId (required)
19620+
:param str participant_id: participantId (required)
19621+
:param SnippetRecordingRequest body: snippetRecordingRequest (required)
19622+
:return: str
19623+
If the method is called asynchronously,
19624+
returns the request thread.
19625+
"""
19626+
19627+
all_params = ['conversation_id', 'participant_id', 'body']
19628+
all_params.append('callback')
19629+
19630+
params = locals()
19631+
for key, val in params['kwargs'].items():
19632+
if key not in all_params:
19633+
raise TypeError(
19634+
"Got an unexpected keyword argument '%s'"
19635+
" to method post_conversations_call_participant_snippet_record" % key
19636+
)
19637+
params[key] = val
19638+
del params['kwargs']
19639+
19640+
# verify the required parameter 'conversation_id' is set
19641+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
19642+
raise ValueError("Missing the required parameter `conversation_id` when calling `post_conversations_call_participant_snippet_record`")
19643+
# verify the required parameter 'participant_id' is set
19644+
if ('participant_id' not in params) or (params['participant_id'] is None):
19645+
raise ValueError("Missing the required parameter `participant_id` when calling `post_conversations_call_participant_snippet_record`")
19646+
# verify the required parameter 'body' is set
19647+
if ('body' not in params) or (params['body'] is None):
19648+
raise ValueError("Missing the required parameter `body` when calling `post_conversations_call_participant_snippet_record`")
19649+
19650+
19651+
resource_path = '/api/v2/conversations/calls/{conversationId}/participants/{participantId}/snippet/record'.replace('{format}', 'json')
19652+
path_params = {}
19653+
if 'conversation_id' in params:
19654+
path_params['conversationId'] = params['conversation_id']
19655+
if 'participant_id' in params:
19656+
path_params['participantId'] = params['participant_id']
19657+
19658+
query_params = {}
19659+
19660+
header_params = {}
19661+
19662+
form_params = []
19663+
local_var_files = {}
19664+
19665+
body_params = None
19666+
if 'body' in params:
19667+
body_params = params['body']
19668+
19669+
# HTTP header `Accept`
19670+
header_params['Accept'] = self.api_client.\
19671+
select_header_accept(['application/json'])
19672+
if not header_params['Accept']:
19673+
del header_params['Accept']
19674+
19675+
# HTTP header `Content-Type`
19676+
header_params['Content-Type'] = self.api_client.\
19677+
select_header_content_type(['application/json'])
19678+
19679+
# Authentication setting
19680+
auth_settings = ['PureCloud OAuth']
19681+
19682+
response = self.api_client.call_api(resource_path, 'POST',
19683+
path_params,
19684+
query_params,
19685+
header_params,
19686+
body=body_params,
19687+
post_params=form_params,
19688+
files=local_var_files,
19689+
response_type='str',
19690+
auth_settings=auth_settings,
19691+
callback=params.get('callback'))
19692+
return response
19693+
1960319694
def post_conversations_call_participant_voice_consult(self, conversation_id: str, participant_id: str, body: 'ConsultTransferToAddress', **kwargs) -> 'ConsultTransferResponse':
1960419695
"""
1960519696
Initiate voice consult transfer

build/PureCloudPlatformClientV2/apis/integrations_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
from ..models import CredentialInfo
5757
from ..models import CredentialInfoCursorListing
5858
from ..models import CredentialInfoListing
59-
from ..models import CredentialTypeListing
59+
from ..models import CredentialType
6060
from ..models import DialogflowAgent
6161
from ..models import DialogflowAgentSummaryEntityListing
6262
from ..models import DialogflowCXAgent
@@ -3005,7 +3005,7 @@ def get_integrations_credentials_listing(self, **kwargs) -> 'CredentialInfoCurso
30053005
callback=params.get('callback'))
30063006
return response
30073007

3008-
def get_integrations_credentials_types(self, **kwargs) -> 'CredentialTypeListing':
3008+
def get_integrations_credentials_types(self, **kwargs) -> List['CredentialType']:
30093009
"""
30103010
List all credential types
30113011
@@ -3020,7 +3020,7 @@ def get_integrations_credentials_types(self, **kwargs) -> 'CredentialTypeListing
30203020
30213021
:param callback function: The callback function
30223022
for asynchronous request. (optional)
3023-
:return: CredentialTypeListing
3023+
:return: list[CredentialType]
30243024
If the method is called asynchronously,
30253025
returns the request thread.
30263026
"""
@@ -3072,7 +3072,7 @@ def get_integrations_credentials_types(self, **kwargs) -> 'CredentialTypeListing
30723072
body=body_params,
30733073
post_params=form_params,
30743074
files=local_var_files,
3075-
response_type='CredentialTypeListing',
3075+
response_type='list[CredentialType]',
30763076
auth_settings=auth_settings,
30773077
callback=params.get('callback'))
30783078
return response

0 commit comments

Comments
 (0)