Skip to content

Commit 20ef621

Browse files
author
PureCloud Jenkins
committed
59.0.0
1 parent 678380d commit 20ef621

File tree

405 files changed

+6579
-5129
lines changed

Some content is hidden

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

405 files changed

+6579
-5129
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125
from .models.available_topic import AvailableTopic
126126
from .models.available_topic_entity_listing import AvailableTopicEntityListing
127127
from .models.available_translations import AvailableTranslations
128+
from .models.base_program_entity import BaseProgramEntity
129+
from .models.base_topic_entitiy import BaseTopicEntitiy
128130
from .models.batch_download_job_result import BatchDownloadJobResult
129131
from .models.batch_download_job_status_result import BatchDownloadJobStatusResult
130132
from .models.batch_download_job_submission import BatchDownloadJobSubmission
@@ -450,6 +452,7 @@
450452
from .models.create_share_request import CreateShareRequest
451453
from .models.create_share_request_member import CreateShareRequestMember
452454
from .models.create_share_response import CreateShareResponse
455+
from .models.create_topic_request import CreateTopicRequest
453456
from .models.create_user import CreateUser
454457
from .models.create_web_chat_conversation_request import CreateWebChatConversationRequest
455458
from .models.create_web_chat_conversation_response import CreateWebChatConversationResponse
@@ -907,7 +910,6 @@
907910
from .models.messaging_integration_entity_listing import MessagingIntegrationEntityListing
908911
from .models.messaging_sticker import MessagingSticker
909912
from .models.messaging_sticker_entity_listing import MessagingStickerEntityListing
910-
from .models.meta import Meta
911913
from .models.meta_data import MetaData
912914
from .models.metabase import Metabase
913915
from .models.metered_assignment_by_agent import MeteredAssignmentByAgent
@@ -968,10 +970,7 @@
968970
from .models.participant import Participant
969971
from .models.participant_attributes import ParticipantAttributes
970972
from .models.participant_basic import ParticipantBasic
971-
from .models.patch_operation import PatchOperation
972-
from .models.patch_request import PatchRequest
973973
from .models.patch_user import PatchUser
974-
from .models.path import Path
975974
from .models.permission_collection_entity_listing import PermissionCollectionEntityListing
976975
from .models.permissions import Permissions
977976
from .models.phone import Phone
@@ -987,6 +986,7 @@
987986
from .models.phone_status import PhoneStatus
988987
from .models.phones_reboot import PhonesReboot
989988
from .models.photo import Photo
989+
from .models.phrase import Phrase
990990
from .models.physical_interface_entity_listing import PhysicalInterfaceEntityListing
991991
from .models.ping_identity import PingIdentity
992992
from .models.policy import Policy
@@ -1004,6 +1004,7 @@
10041004
from .models.presence_event_organization_presence import PresenceEventOrganizationPresence
10051005
from .models.presence_event_user_presence import PresenceEventUserPresence
10061006
from .models.presence_query_response import PresenceQueryResponse
1007+
from .models.program import Program
10071008
from .models.prompt import Prompt
10081009
from .models.prompt_asset import PromptAsset
10091010
from .models.prompt_asset_create import PromptAssetCreate
@@ -1306,11 +1307,11 @@
13061307
from .models.schema_category_entity_listing import SchemaCategoryEntityListing
13071308
from .models.schema_reference_entity_listing import SchemaReferenceEntityListing
13081309
from .models.scim_email import ScimEmail
1309-
from .models.scim_list_response import ScimListResponse
1310+
from .models.scim_group_list_response import ScimGroupListResponse
13101311
from .models.scim_metadata import ScimMetadata
13111312
from .models.scim_phone_number import ScimPhoneNumber
1312-
from .models.scim_resource import ScimResource
13131313
from .models.scim_service_provider_config import ScimServiceProviderConfig
1314+
from .models.scim_user_list_response import ScimUserListResponse
13141315
from .models.scim_v2_create_user import ScimV2CreateUser
13151316
from .models.scim_v2_enterprise_user import ScimV2EnterpriseUser
13161317
from .models.scim_v2_group import ScimV2Group
@@ -1440,6 +1441,7 @@
14401441
from .models.time_zone_mapping_preview import TimeZoneMappingPreview
14411442
from .models.token import Token
14421443
from .models.token_info import TokenInfo
1444+
from .models.topic import Topic
14431445
from .models.transfer_request import TransferRequest
14441446
from .models.trunk import Trunk
14451447
from .models.trunk_base import TrunkBase
@@ -1553,6 +1555,8 @@
15531555
from .models.user_station_change_topic_user_station import UserStationChangeTopicUserStation
15541556
from .models.user_station_change_topic_user_stations import UserStationChangeTopicUserStations
15551557
from .models.user_stations import UserStations
1558+
from .models.user_tokens_topic_token_notification import UserTokensTopicTokenNotification
1559+
from .models.user_tokens_topic_uri_reference import UserTokensTopicUriReference
15561560
from .models.users_search_response import UsersSearchResponse
15571561
from .models.utilization import Utilization
15581562
from .models.validate_address_request import ValidateAddressRequest
@@ -1709,6 +1713,7 @@
17091713
from .apis.scim_api import SCIMApi
17101714
from .apis.scripts_api import ScriptsApi
17111715
from .apis.search_api import SearchApi
1716+
from .apis.speech_text_analytics_api import SpeechTextAnalyticsApi
17121717
from .apis.stations_api import StationsApi
17131718
from .apis.suggest_api import SuggestApi
17141719
from .apis.telephony_providers_edge_api import TelephonyProvidersEdgeApi

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __call_api(self, resource_path, method,
187187
header_params['Cookie'] = self.cookie
188188
if header_params:
189189
header_params = self.sanitize_for_serialization(header_params)
190-
header_params['purecloud-sdk'] = '58.0.0'
190+
header_params['purecloud-sdk'] = '59.0.0'
191191

192192
# path parameters
193193
if path_params:

build/PureCloudPlatformClientV2/apis/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
from .scim_api import SCIMApi
3737
from .scripts_api import ScriptsApi
3838
from .search_api import SearchApi
39+
from .speech_text_analytics_api import SpeechTextAnalyticsApi
3940
from .stations_api import StationsApi
4041
from .suggest_api import SuggestApi
4142
from .telephony_providers_edge_api import TelephonyProvidersEdgeApi

build/PureCloudPlatformClientV2/apis/locations_api.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,84 @@ def get_location(self, location_id, **kwargs):
205205
callback=params.get('callback'))
206206
return response
207207

208+
def get_location_sublocations(self, location_id, **kwargs):
209+
"""
210+
Get sublocations for location ID.
211+
212+
213+
This method makes a synchronous HTTP request by default. To make an
214+
asynchronous HTTP request, please define a `callback` function
215+
to be invoked when receiving the response.
216+
>>> def callback_function(response):
217+
>>> pprint(response)
218+
>>>
219+
>>> thread = api.get_location_sublocations(location_id, callback=callback_function)
220+
221+
:param callback function: The callback function
222+
for asynchronous request. (optional)
223+
:param str location_id: Location ID (required)
224+
:return: LocationEntityListing
225+
If the method is called asynchronously,
226+
returns the request thread.
227+
"""
228+
229+
all_params = ['location_id']
230+
all_params.append('callback')
231+
232+
params = locals()
233+
for key, val in iteritems(params['kwargs']):
234+
if key not in all_params:
235+
raise TypeError(
236+
"Got an unexpected keyword argument '%s'"
237+
" to method get_location_sublocations" % key
238+
)
239+
params[key] = val
240+
del params['kwargs']
241+
242+
# verify the required parameter 'location_id' is set
243+
if ('location_id' not in params) or (params['location_id'] is None):
244+
raise ValueError("Missing the required parameter `location_id` when calling `get_location_sublocations`")
245+
246+
247+
resource_path = '/api/v2/locations/{locationId}/sublocations'.replace('{format}', 'json')
248+
path_params = {}
249+
if 'location_id' in params:
250+
path_params['locationId'] = params['location_id']
251+
252+
query_params = {}
253+
254+
header_params = {}
255+
256+
form_params = []
257+
local_var_files = {}
258+
259+
body_params = None
260+
261+
# HTTP header `Accept`
262+
header_params['Accept'] = self.api_client.\
263+
select_header_accept(['application/json'])
264+
if not header_params['Accept']:
265+
del header_params['Accept']
266+
267+
# HTTP header `Content-Type`
268+
header_params['Content-Type'] = self.api_client.\
269+
select_header_content_type(['application/json'])
270+
271+
# Authentication setting
272+
auth_settings = ['PureCloud OAuth']
273+
274+
response = self.api_client.call_api(resource_path, 'GET',
275+
path_params,
276+
query_params,
277+
header_params,
278+
body=body_params,
279+
post_params=form_params,
280+
files=local_var_files,
281+
response_type='LocationEntityListing',
282+
auth_settings=auth_settings,
283+
callback=params.get('callback'))
284+
return response
285+
208286
def get_locations(self, **kwargs):
209287
"""
210288
Get a list of all locations.

0 commit comments

Comments
 (0)