Skip to content

Commit cc0a3ae

Browse files
author
PureCloud Jenkins
committed
52.0.0
1 parent b084d59 commit cc0a3ae

821 files changed

Lines changed: 47700 additions & 4860 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.

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 187 additions & 0 deletions
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
@@ -116,7 +116,7 @@ def __call_api(self, resource_path, method,
116116
header_params['Cookie'] = self.cookie
117117
if header_params:
118118
header_params = self.sanitize_for_serialization(header_params)
119-
header_params['purecloud-sdk'] = '51.0.0'
119+
header_params['purecloud-sdk'] = '52.0.0'
120120

121121
# path parameters
122122
if path_params:

build/PureCloudPlatformClientV2/apis/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .groups_api import GroupsApi
1818
from .identity_provider_api import IdentityProviderApi
1919
from .integrations_api import IntegrationsApi
20+
from .journey_api import JourneyApi
2021
from .languages_api import LanguagesApi
2122
from .license_api import LicenseApi
2223
from .locations_api import LocationsApi
@@ -44,4 +45,5 @@
4445
from .utilities_api import UtilitiesApi
4546
from .voicemail_api import VoicemailApi
4647
from .web_chat_api import WebChatApi
48+
from .widgets_api import WidgetsApi
4749
from .workforce_management_api import WorkforceManagementApi

build/PureCloudPlatformClientV2/apis/analytics_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def get_analytics_conversations_details(self, **kwargs):
218218
:param callback function: The callback function
219219
for asynchronous request. (optional)
220220
:param list[str] id: Comma-separated conversation ids
221-
:return: AnalyticsConversation
221+
:return: AnalyticsConversationMultiGetResponse
222222
If the method is called asynchronously,
223223
returns the request thread.
224224
"""
@@ -272,7 +272,7 @@ def get_analytics_conversations_details(self, **kwargs):
272272
body=body_params,
273273
post_params=form_params,
274274
files=local_var_files,
275-
response_type='AnalyticsConversation',
275+
response_type='AnalyticsConversationMultiGetResponse',
276276
auth_settings=auth_settings,
277277
callback=params.get('callback'))
278278
return response

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 99 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,90 @@ def delete_architect_prompt_resource(self, prompt_id, language_code, **kwargs):
367367
callback=params.get('callback'))
368368
return response
369369

370+
def delete_architect_prompt_resource_audio(self, prompt_id, language_code, **kwargs):
371+
"""
372+
Delete specified user prompt resource audio
373+
374+
375+
This method makes a synchronous HTTP request by default. To make an
376+
asynchronous HTTP request, please define a `callback` function
377+
to be invoked when receiving the response.
378+
>>> def callback_function(response):
379+
>>> pprint(response)
380+
>>>
381+
>>> thread = api.delete_architect_prompt_resource_audio(prompt_id, language_code, callback=callback_function)
382+
383+
:param callback function: The callback function
384+
for asynchronous request. (optional)
385+
:param str prompt_id: Prompt ID (required)
386+
:param str language_code: Language (required)
387+
:return: None
388+
If the method is called asynchronously,
389+
returns the request thread.
390+
"""
391+
392+
all_params = ['prompt_id', 'language_code']
393+
all_params.append('callback')
394+
395+
params = locals()
396+
for key, val in iteritems(params['kwargs']):
397+
if key not in all_params:
398+
raise TypeError(
399+
"Got an unexpected keyword argument '%s'"
400+
" to method delete_architect_prompt_resource_audio" % key
401+
)
402+
params[key] = val
403+
del params['kwargs']
404+
405+
# verify the required parameter 'prompt_id' is set
406+
if ('prompt_id' not in params) or (params['prompt_id'] is None):
407+
raise ValueError("Missing the required parameter `prompt_id` when calling `delete_architect_prompt_resource_audio`")
408+
# verify the required parameter 'language_code' is set
409+
if ('language_code' not in params) or (params['language_code'] is None):
410+
raise ValueError("Missing the required parameter `language_code` when calling `delete_architect_prompt_resource_audio`")
411+
412+
413+
resource_path = '/api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio'.replace('{format}', 'json')
414+
path_params = {}
415+
if 'prompt_id' in params:
416+
path_params['promptId'] = params['prompt_id']
417+
if 'language_code' in params:
418+
path_params['languageCode'] = params['language_code']
419+
420+
query_params = {}
421+
422+
header_params = {}
423+
424+
form_params = []
425+
local_var_files = {}
426+
427+
body_params = None
428+
429+
# HTTP header `Accept`
430+
header_params['Accept'] = self.api_client.\
431+
select_header_accept(['application/json'])
432+
if not header_params['Accept']:
433+
del header_params['Accept']
434+
435+
# HTTP header `Content-Type`
436+
header_params['Content-Type'] = self.api_client.\
437+
select_header_content_type(['application/json'])
438+
439+
# Authentication setting
440+
auth_settings = ['PureCloud OAuth']
441+
442+
response = self.api_client.call_api(resource_path, 'DELETE',
443+
path_params,
444+
query_params,
445+
header_params,
446+
body=body_params,
447+
post_params=form_params,
448+
files=local_var_files,
449+
response_type=None,
450+
auth_settings=auth_settings,
451+
callback=params.get('callback'))
452+
return response
453+
370454
def delete_architect_prompts(self, id, **kwargs):
371455
"""
372456
Batch-delete a list of prompts
@@ -844,7 +928,7 @@ def delete_flows(self, id, **kwargs):
844928
def delete_flows_datatable(self, datatable_id, **kwargs):
845929
"""
846930
deletes a specific datatable by id
847-
deletes an entire datatable (including schema and data) with a given id)
931+
Deletes an entire datatable (including the schema and data) with a given datatableId
848932
849933
This method makes a synchronous HTTP request by default. To make an
850934
asynchronous HTTP request, please define a `callback` function
@@ -925,7 +1009,7 @@ def delete_flows_datatable(self, datatable_id, **kwargs):
9251009
def delete_flows_datatable_row(self, datatable_id, row_id, **kwargs):
9261010
"""
9271011
Delete a row entry
928-
Deletes a row with a given rowId.
1012+
Deletes a row with a given rowId (the value of the key field).
9291013
9301014
This method makes a synchronous HTTP request by default. To make an
9311015
asynchronous HTTP request, please define a `callback` function
@@ -2484,7 +2568,7 @@ def get_architect_prompts(self, **kwargs):
24842568
for asynchronous request. (optional)
24852569
:param int page_number: Page number
24862570
:param int page_size: Page size
2487-
:param str name: Name
2571+
:param list[str] name: Name
24882572
:param str description: Description
24892573
:param str name_or_description: Name or description
24902574
:param str sort_by: Sort by
@@ -3985,7 +4069,7 @@ def get_flows(self, **kwargs):
39854069
def get_flows_datatable(self, datatable_id, **kwargs):
39864070
"""
39874071
Returns a specific datatable by id
3988-
Given a datableid returns the schema associated with it.
4072+
Given a datatableId returns the datatable object and schema associated with it.
39894073
39904074
This method makes a synchronous HTTP request by default. To make an
39914075
asynchronous HTTP request, please define a `callback` function
@@ -4066,7 +4150,7 @@ def get_flows_datatable(self, datatable_id, **kwargs):
40664150
def get_flows_datatable_row(self, datatable_id, row_id, **kwargs):
40674151
"""
40684152
Returns a specific row for the datatable
4069-
Given a datatable id and a rowId (key) will return the full row contents for that rowId.
4153+
Given a datatableId and a rowId (the value of the key field) this will return the full row contents for that rowId.
40704154
40714155
This method makes a synchronous HTTP request by default. To make an
40724156
asynchronous HTTP request, please define a `callback` function
@@ -4152,8 +4236,8 @@ def get_flows_datatable_row(self, datatable_id, row_id, **kwargs):
41524236

41534237
def get_flows_datatable_rows(self, datatable_id, **kwargs):
41544238
"""
4155-
Returns the rows for the datatable
4156-
Returns all of the rows for the datatable with the given id. By default this will just be a shortened list returning the key for each row. Set expand to all to return all of the row contents.
4239+
Returns the rows for the datatable with the given id
4240+
Returns all of the rows for the datatable with the given datatableId. By default this will just be a truncated list returning the key for each row. Set showBrief to false to return all of the row contents.
41574241
41584242
This method makes a synchronous HTTP request by default. To make an
41594243
asynchronous HTTP request, please define a `callback` function
@@ -4240,7 +4324,7 @@ def get_flows_datatable_rows(self, datatable_id, **kwargs):
42404324
def get_flows_datatables(self, **kwargs):
42414325
"""
42424326
Retrieve a list of datatables for the org
4243-
Returns a metadata list of the datatables associated with this org, including ID, name and description.
4327+
Returns a metadata list of the datatables associated with this org, including datatableId, name and description.
42444328
42454329
This method makes a synchronous HTTP request by default. To make an
42464330
asynchronous HTTP request, please define a `callback` function
@@ -5393,7 +5477,7 @@ def post_flows_actions_checkin(self, flow, **kwargs):
53935477
:param callback function: The callback function
53945478
for asynchronous request. (optional)
53955479
:param str flow: Flow ID (required)
5396-
:return: Flow
5480+
:return: Operation
53975481
If the method is called asynchronously,
53985482
returns the request thread.
53995483
"""
@@ -5450,7 +5534,7 @@ def post_flows_actions_checkin(self, flow, **kwargs):
54505534
body=body_params,
54515535
post_params=form_params,
54525536
files=local_var_files,
5453-
response_type='Flow',
5537+
response_type='Operation',
54545538
auth_settings=auth_settings,
54555539
callback=params.get('callback'))
54565540
return response
@@ -5850,8 +5934,8 @@ def post_flows_actions_unlock(self, flow, **kwargs):
58505934

58515935
def post_flows_datatable_rows(self, datatable_id, data_table_row, **kwargs):
58525936
"""
5853-
Create a new row entry
5854-
Will add the passed in row entry to the datatable with the given id after verifying it against the schema.
5937+
Create a new row entry for the datatable.
5938+
Will add the passed in row entry to the datatable with the given datatableId after verifying it against the schema. The DataTableRow should be a json-ized' stream of key -> value pairs { \"Field1\": \"XYZZY\", \"Field2\": false, \"KEY\": \"27272\" }
58555939
58565940
This method makes a synchronous HTTP request by default. To make an
58575941
asynchronous HTTP request, please define a `callback` function
@@ -5935,7 +6019,7 @@ def post_flows_datatable_rows(self, datatable_id, data_table_row, **kwargs):
59356019
def post_flows_datatables(self, body, **kwargs):
59366020
"""
59376021
Create a new datatable with the specified json-schema definition
5938-
This will create a new datatable with fields that match the property definitions in the JSON schema. The name of the table from the title field of the json-schema. See also http://json-schema.org/
6022+
This will create a new datatable with fields that match the property definitions in the JSON schema. The schema's title field will be overridden by the name field in the DataTable object. See also http://json-schema.org/
59396023
59406024
This method makes a synchronous HTTP request by default. To make an
59416025
asynchronous HTTP request, please define a `callback` function
@@ -6697,7 +6781,7 @@ def put_flow(self, flow_id, body, **kwargs):
66976781
def put_flows_datatable(self, datatable_id, **kwargs):
66986782
"""
66996783
Updates a specific datatable by id
6700-
Updates a schema for a datatable with the given id - updates are additive only, no changes or removals of existing fields.
6784+
Updates a schema for a datatable with the given datatableId -updates allow only new fields to be added in the schema, no changes or removals of existing fields.
67016785
67026786
This method makes a synchronous HTTP request by default. To make an
67036787
asynchronous HTTP request, please define a `callback` function
@@ -6781,7 +6865,7 @@ def put_flows_datatable(self, datatable_id, **kwargs):
67816865
def put_flows_datatable_row(self, datatable_id, row_id, **kwargs):
67826866
"""
67836867
Update a row entry
6784-
Updates a row with the given to the new values.
6868+
Updates a row with the given rowId (the value of the key field) to the new values. The DataTableRow should be a json-ized' stream of key -> value pairs { \"Field1\": \"XYZZY\", \"Field2\": false, \"KEY\": \"27272\" }
67856869
67866870
This method makes a synchronous HTTP request by default. To make an
67876871
asynchronous HTTP request, please define a `callback` function

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def get_analytics_conversations_details(self, **kwargs):
398398
:param callback function: The callback function
399399
for asynchronous request. (optional)
400400
:param list[str] id: Comma-separated conversation ids
401-
:return: AnalyticsConversation
401+
:return: AnalyticsConversationMultiGetResponse
402402
If the method is called asynchronously,
403403
returns the request thread.
404404
"""
@@ -452,7 +452,7 @@ def get_analytics_conversations_details(self, **kwargs):
452452
body=body_params,
453453
post_params=form_params,
454454
files=local_var_files,
455-
response_type='AnalyticsConversation',
455+
response_type='AnalyticsConversationMultiGetResponse',
456456
auth_settings=auth_settings,
457457
callback=params.get('callback'))
458458
return response

0 commit comments

Comments
 (0)