Skip to content

Commit 9d773bd

Browse files
author
InIn Devops
committed
7.0.0
1 parent 1f703fd commit 9d773bd

File tree

147 files changed

+2669
-254
lines changed

Some content is hidden

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

147 files changed

+2669
-254
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@
553553
from .models.location_address import LocationAddress
554554
from .models.location_definition import LocationDefinition
555555
from .models.location_emergency_number import LocationEmergencyNumber
556+
from .models.location_entity_listing import LocationEntityListing
556557
from .models.location_search_criteria import LocationSearchCriteria
557558
from .models.location_search_request import LocationSearchRequest
558559
from .models.locations_search_response import LocationsSearchResponse
@@ -899,6 +900,7 @@
899900
from .models.video_conversation_notification_wrapup import VideoConversationNotificationWrapup
900901
from .models.visibility_condition import VisibilityCondition
901902
from .models.vm_pairing_info import VmPairingInfo
903+
from .models.voicemail import Voicemail
902904
from .models.voicemail_copy_record import VoicemailCopyRecord
903905
from .models.voicemail_group_policy import VoicemailGroupPolicy
904906
from .models.voicemail_mailbox_info import VoicemailMailboxInfo

build/PureCloudPlatformClientV2/apis/locations_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_locations(self, **kwargs):
142142
:param int page_size: Page size
143143
:param int page_number: Page number
144144
:param str sort_order: Sort order
145-
:return: list[LocationDefinition]
145+
:return: LocationEntityListing
146146
If the method is called asynchronously,
147147
returns the request thread.
148148
"""
@@ -200,7 +200,7 @@ def get_locations(self, **kwargs):
200200
body=body_params,
201201
post_params=form_params,
202202
files=local_var_files,
203-
response_type='list[LocationDefinition]',
203+
response_type='LocationEntityListing',
204204
auth_settings=auth_settings,
205205
callback=params.get('callback'))
206206
return response

build/PureCloudPlatformClientV2/apis/telephony_providers_edge_api.py

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,102 @@ def get_telephony_providers_edge_softwareversions(self, edge_id, **kwargs):
24942494
callback=params.get('callback'))
24952495
return response
24962496

2497+
def get_telephony_providers_edge_trunks(self, edge_id, **kwargs):
2498+
"""
2499+
Get the list of available trunks for the given Edge.
2500+
Trunks are created by assigning trunk base settings to an Edge or Edge Group.
2501+
2502+
This method makes a synchronous HTTP request by default. To make an
2503+
asynchronous HTTP request, please define a `callback` function
2504+
to be invoked when receiving the response.
2505+
>>> def callback_function(response):
2506+
>>> pprint(response)
2507+
>>>
2508+
>>> thread = api.get_telephony_providers_edge_trunks(edge_id, callback=callback_function)
2509+
2510+
:param callback function: The callback function
2511+
for asynchronous request. (optional)
2512+
:param str edge_id: Edge ID (required)
2513+
:param int page_number: Page number
2514+
:param int page_size: Page size
2515+
:param str sort_by: Value by which to sort
2516+
:param str sort_order: Sort order
2517+
:param str trunk_base_id: Filter by Trunk Base Ids
2518+
:param str trunk_type: Filter by a Trunk type
2519+
:return: TrunkEntityListing
2520+
If the method is called asynchronously,
2521+
returns the request thread.
2522+
"""
2523+
2524+
all_params = ['edge_id', 'page_number', 'page_size', 'sort_by', 'sort_order', 'trunk_base_id', 'trunk_type']
2525+
all_params.append('callback')
2526+
2527+
params = locals()
2528+
for key, val in iteritems(params['kwargs']):
2529+
if key not in all_params:
2530+
raise TypeError(
2531+
"Got an unexpected keyword argument '%s'"
2532+
" to method get_telephony_providers_edge_trunks" % key
2533+
)
2534+
params[key] = val
2535+
del params['kwargs']
2536+
2537+
# verify the required parameter 'edge_id' is set
2538+
if ('edge_id' not in params) or (params['edge_id'] is None):
2539+
raise ValueError("Missing the required parameter `edge_id` when calling `get_telephony_providers_edge_trunks`")
2540+
2541+
2542+
resource_path = '/api/v2/telephony/providers/edges/{edgeId}/trunks'.replace('{format}', 'json')
2543+
path_params = {}
2544+
if 'edge_id' in params:
2545+
path_params['edgeId'] = params['edge_id']
2546+
2547+
query_params = {}
2548+
if 'page_number' in params:
2549+
query_params['pageNumber'] = params['page_number']
2550+
if 'page_size' in params:
2551+
query_params['pageSize'] = params['page_size']
2552+
if 'sort_by' in params:
2553+
query_params['sortBy'] = params['sort_by']
2554+
if 'sort_order' in params:
2555+
query_params['sortOrder'] = params['sort_order']
2556+
if 'trunk_base_id' in params:
2557+
query_params['trunkBase.id'] = params['trunk_base_id']
2558+
if 'trunk_type' in params:
2559+
query_params['trunkType'] = params['trunk_type']
2560+
2561+
header_params = {}
2562+
2563+
form_params = []
2564+
local_var_files = {}
2565+
2566+
body_params = None
2567+
2568+
# HTTP header `Accept`
2569+
header_params['Accept'] = self.api_client.\
2570+
select_header_accept(['application/json'])
2571+
if not header_params['Accept']:
2572+
del header_params['Accept']
2573+
2574+
# HTTP header `Content-Type`
2575+
header_params['Content-Type'] = self.api_client.\
2576+
select_header_content_type(['application/json'])
2577+
2578+
# Authentication setting
2579+
auth_settings = ['PureCloud Auth']
2580+
2581+
response = self.api_client.call_api(resource_path, 'GET',
2582+
path_params,
2583+
query_params,
2584+
header_params,
2585+
body=body_params,
2586+
post_params=form_params,
2587+
files=local_var_files,
2588+
response_type='TrunkEntityListing',
2589+
auth_settings=auth_settings,
2590+
callback=params.get('callback'))
2591+
return response
2592+
24972593
def get_telephony_providers_edges(self, **kwargs):
24982594
"""
24992595
Get the list of edges.

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,12 +1680,13 @@ def get_users(self, **kwargs):
16801680
:param list[str] id: id
16811681
:param str sort_order: Ascending or descending sort order
16821682
:param list[str] expand: Which fields, if any, to expand
1683+
:param str state: Only list users of this state
16831684
:return: UserEntityListing
16841685
If the method is called asynchronously,
16851686
returns the request thread.
16861687
"""
16871688

1688-
all_params = ['page_size', 'page_number', 'id', 'sort_order', 'expand']
1689+
all_params = ['page_size', 'page_number', 'id', 'sort_order', 'expand', 'state']
16891690
all_params.append('callback')
16901691

16911692
params = locals()
@@ -1714,6 +1715,8 @@ def get_users(self, **kwargs):
17141715
query_params['sortOrder'] = params['sort_order']
17151716
if 'expand' in params:
17161717
query_params['expand'] = params['expand']
1718+
if 'state' in params:
1719+
query_params['state'] = params['state']
17171720

17181721
header_params = {}
17191722

build/PureCloudPlatformClientV2/apis/workforce_management_api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def get_workforcemanagement_managementunit_activitycodes(self, mu_id, **kwargs):
139139
140140
:param callback function: The callback function
141141
for asynchronous request. (optional)
142-
:param str mu_id: The muId of the management unit. (required)
142+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
143143
:return: ActivityCodeContainer
144144
If the method is called asynchronously,
145145
returns the request thread.
@@ -217,7 +217,7 @@ def get_workforcemanagement_managementunit_intraday_queues(self, mu_id, date, **
217217
218218
:param callback function: The callback function
219219
for asynchronous request. (optional)
220-
:param str mu_id: The muId of the management unit. (required)
220+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
221221
:param str date: ISO-8601 date string with no time or timezone component, interpreted in the configured management unit time zone, e.g. 2017-01-23 (required)
222222
:return: WfmIntradayQueueListing
223223
If the method is called asynchronously,
@@ -301,7 +301,7 @@ def get_workforcemanagement_managementunit_user_timeoffrequest(self, mu_id, user
301301
302302
:param callback function: The callback function
303303
for asynchronous request. (optional)
304-
:param str mu_id: The muId of the management unit. (required)
304+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
305305
:param str user_id: The userId to whom the Time Off Request applies. (required)
306306
:param str time_off_request_id: Time Off Request Id (required)
307307
:return: TimeOffRequest
@@ -391,7 +391,7 @@ def get_workforcemanagement_managementunit_user_timeoffrequests(self, mu_id, use
391391
392392
:param callback function: The callback function
393393
for asynchronous request. (optional)
394-
:param str mu_id: The muId of the management unit. (required)
394+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
395395
:param str user_id: The userId to whom the Time Off Request applies. (required)
396396
:param bool recently_reviewed: Limit results to requests that have been reviewed within the preceding 30 days
397397
:return: TimeOffRequestList
@@ -478,7 +478,7 @@ def get_workforcemanagement_managementunit_users(self, mu_id, **kwargs):
478478
479479
:param callback function: The callback function
480480
for asynchronous request. (optional)
481-
:param str mu_id: The muId of the management unit. (required)
481+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
482482
:return: WfmUserEntityListing
483483
If the method is called asynchronously,
484484
returns the request thread.
@@ -871,7 +871,7 @@ def post_workforcemanagement_managementunit_intraday(self, mu_id, **kwargs):
871871
872872
:param callback function: The callback function
873873
for asynchronous request. (optional)
874-
:param str mu_id: The muId of the management unit. (required)
874+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
875875
:param IntradayQueryDataCommand body: body
876876
:return: IntradayResponse
877877
If the method is called asynchronously,
@@ -952,7 +952,7 @@ def post_workforcemanagement_managementunit_schedules_search(self, mu_id, **kwar
952952
953953
:param callback function: The callback function
954954
for asynchronous request. (optional)
955-
:param str mu_id: The muId of the management unit. (required)
955+
:param str mu_id: The muId of the management unit, or 'mine' for the management unit of the logged-in user. (required)
956956
:param UserListScheduleRequestBody body: body
957957
:return: UserScheduleContainer
958958
If the method is called asynchronously,

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

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@
553553
from .location_address import LocationAddress
554554
from .location_definition import LocationDefinition
555555
from .location_emergency_number import LocationEmergencyNumber
556+
from .location_entity_listing import LocationEntityListing
556557
from .location_search_criteria import LocationSearchCriteria
557558
from .location_search_request import LocationSearchRequest
558559
from .locations_search_response import LocationsSearchResponse
@@ -899,6 +900,7 @@
899900
from .video_conversation_notification_wrapup import VideoConversationNotificationWrapup
900901
from .visibility_condition import VisibilityCondition
901902
from .vm_pairing_info import VmPairingInfo
903+
from .voicemail import Voicemail
902904
from .voicemail_copy_record import VoicemailCopyRecord
903905
from .voicemail_group_policy import VoicemailGroupPolicy
904906
from .voicemail_mailbox_info import VoicemailMailboxInfo

build/PureCloudPlatformClientV2/models/call.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def __init__(self):
5757
'disconnect_reasons': 'list[DisconnectReason]',
5858
'fax_status': 'FaxStatus',
5959
'provider': 'str',
60-
'script_id': 'str'
60+
'script_id': 'str',
61+
'peer_id': 'str'
6162
}
6263

6364
self.attribute_map = {
@@ -80,7 +81,8 @@ def __init__(self):
8081
'disconnect_reasons': 'disconnectReasons',
8182
'fax_status': 'faxStatus',
8283
'provider': 'provider',
83-
'script_id': 'scriptId'
84+
'script_id': 'scriptId',
85+
'peer_id': 'peerId'
8486
}
8587

8688
self._state = None
@@ -103,6 +105,7 @@ def __init__(self):
103105
self._fax_status = None
104106
self._provider = None
105107
self._script_id = None
108+
self._peer_id = None
106109

107110
@property
108111
def state(self):
@@ -580,6 +583,29 @@ def script_id(self, script_id):
580583

581584
self._script_id = script_id
582585

586+
@property
587+
def peer_id(self):
588+
"""
589+
Gets the peer_id of this Call.
590+
The id of the peer communication corresponding to a matching leg for this communication.
591+
592+
:return: The peer_id of this Call.
593+
:rtype: str
594+
"""
595+
return self._peer_id
596+
597+
@peer_id.setter
598+
def peer_id(self, peer_id):
599+
"""
600+
Sets the peer_id of this Call.
601+
The id of the peer communication corresponding to a matching leg for this communication.
602+
603+
:param peer_id: The peer_id of this Call.
604+
:type: str
605+
"""
606+
607+
self._peer_id = peer_id
608+
583609
def to_dict(self):
584610
"""
585611
Returns the model properties as a dict

build/PureCloudPlatformClientV2/models/call_basic.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def __init__(self):
5757
'disconnect_reasons': 'list[DisconnectReason]',
5858
'fax_status': 'FaxStatus',
5959
'provider': 'str',
60-
'script_id': 'str'
60+
'script_id': 'str',
61+
'peer_id': 'str'
6162
}
6263

6364
self.attribute_map = {
@@ -80,7 +81,8 @@ def __init__(self):
8081
'disconnect_reasons': 'disconnectReasons',
8182
'fax_status': 'faxStatus',
8283
'provider': 'provider',
83-
'script_id': 'scriptId'
84+
'script_id': 'scriptId',
85+
'peer_id': 'peerId'
8486
}
8587

8688
self._state = None
@@ -103,6 +105,7 @@ def __init__(self):
103105
self._fax_status = None
104106
self._provider = None
105107
self._script_id = None
108+
self._peer_id = None
106109

107110
@property
108111
def state(self):
@@ -580,6 +583,29 @@ def script_id(self, script_id):
580583

581584
self._script_id = script_id
582585

586+
@property
587+
def peer_id(self):
588+
"""
589+
Gets the peer_id of this CallBasic.
590+
The id of the peer communication corresponding to a matching leg for this communication.
591+
592+
:return: The peer_id of this CallBasic.
593+
:rtype: str
594+
"""
595+
return self._peer_id
596+
597+
@peer_id.setter
598+
def peer_id(self, peer_id):
599+
"""
600+
Sets the peer_id of this CallBasic.
601+
The id of the peer communication corresponding to a matching leg for this communication.
602+
603+
:param peer_id: The peer_id of this CallBasic.
604+
:type: str
605+
"""
606+
607+
self._peer_id = peer_id
608+
583609
def to_dict(self):
584610
"""
585611
Returns the model properties as a dict

0 commit comments

Comments
 (0)