Skip to content

Commit e0deab1

Browse files
author
PureCloud Jenkins
committed
212.0.0
1 parent 9bb049c commit e0deab1

File tree

4,926 files changed

+26650
-6082
lines changed

Some content is hidden

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

4,926 files changed

+26650
-6082
lines changed

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 211.1.0
8+
Documentation version PureCloudPlatformClientV2 212.0.0
99

1010
## Preview APIs
1111

build/.openapi-generator/FILES

Lines changed: 145 additions & 0 deletions
Large diffs are not rendered by default.

build/APIData.json

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

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 61 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
@@ -357,7 +357,7 @@ def __call_api(self, resource_path, method,
357357
header_params['Cookie'] = self.cookie
358358
if header_params:
359359
header_params = self.sanitize_for_serialization(header_params)
360-
header_params['purecloud-sdk'] = '211.1.0'
360+
header_params['purecloud-sdk'] = '212.0.0'
361361

362362
# path parameters
363363
if path_params:

build/PureCloudPlatformClientV2/apis/conversations_api.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
from ..models import ConversationParticipantSearchRequest
8686
from ..models import ConversationQuery
8787
from ..models import ConversationSecureAttributes
88+
from ..models import ConversationSummariesGetResponse
8889
from ..models import ConversationTagsUpdate
8990
from ..models import ConversationThreadingWindow
9091
from ..models import ConversationUser
@@ -2469,6 +2470,85 @@ def get_conversation_suggestions(self, conversation_id: str, **kwargs) -> 'Sugge
24692470
callback=params.get('callback'))
24702471
return response
24712472

2473+
def get_conversation_summaries(self, conversation_id: str, **kwargs) -> 'ConversationSummariesGetResponse':
2474+
"""
2475+
Get the summaries of the conversation.
2476+
2477+
get_conversation_summaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
2478+
2479+
This method makes a synchronous HTTP request by default. To make an
2480+
asynchronous HTTP request, please define a `callback` function
2481+
to be invoked when receiving the response.
2482+
>>> def callback_function(response):
2483+
>>> pprint(response)
2484+
>>>
2485+
>>> thread = api.get_conversation_summaries(conversation_id, callback=callback_function)
2486+
2487+
:param callback function: The callback function
2488+
for asynchronous request. (optional)
2489+
:param str conversation_id: Conversation ID (required)
2490+
:return: ConversationSummariesGetResponse
2491+
If the method is called asynchronously,
2492+
returns the request thread.
2493+
"""
2494+
2495+
all_params = ['conversation_id']
2496+
all_params.append('callback')
2497+
2498+
params = locals()
2499+
for key, val in iteritems(params['kwargs']):
2500+
if key not in all_params:
2501+
raise TypeError(
2502+
"Got an unexpected keyword argument '%s'"
2503+
" to method get_conversation_summaries" % key
2504+
)
2505+
params[key] = val
2506+
del params['kwargs']
2507+
2508+
# verify the required parameter 'conversation_id' is set
2509+
if ('conversation_id' not in params) or (params['conversation_id'] is None):
2510+
raise ValueError("Missing the required parameter `conversation_id` when calling `get_conversation_summaries`")
2511+
2512+
2513+
resource_path = '/api/v2/conversations/{conversationId}/summaries'.replace('{format}', 'json')
2514+
path_params = {}
2515+
if 'conversation_id' in params:
2516+
path_params['conversationId'] = params['conversation_id']
2517+
2518+
query_params = {}
2519+
2520+
header_params = {}
2521+
2522+
form_params = []
2523+
local_var_files = {}
2524+
2525+
body_params = None
2526+
2527+
# HTTP header `Accept`
2528+
header_params['Accept'] = self.api_client.\
2529+
select_header_accept(['application/json'])
2530+
if not header_params['Accept']:
2531+
del header_params['Accept']
2532+
2533+
# HTTP header `Content-Type`
2534+
header_params['Content-Type'] = self.api_client.\
2535+
select_header_content_type(['application/json'])
2536+
2537+
# Authentication setting
2538+
auth_settings = ['PureCloud OAuth']
2539+
2540+
response = self.api_client.call_api(resource_path, 'GET',
2541+
path_params,
2542+
query_params,
2543+
header_params,
2544+
body=body_params,
2545+
post_params=form_params,
2546+
files=local_var_files,
2547+
response_type='ConversationSummariesGetResponse',
2548+
auth_settings=auth_settings,
2549+
callback=params.get('callback'))
2550+
return response
2551+
24722552
def get_conversations(self, **kwargs) -> 'ConversationEntityListing':
24732553
"""
24742554
Get active conversations for the logged in user

0 commit comments

Comments
 (0)