Skip to content

Commit 7e6bc98

Browse files
author
InIn Devops
committed
10.0.0
1 parent 022f939 commit 7e6bc98

File tree

275 files changed

+6443
-5603
lines changed

Some content is hidden

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

275 files changed

+6443
-5603
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,7 @@
549549
from .models.license_assignment_request import LicenseAssignmentRequest
550550
from .models.license_batch_assignment_request import LicenseBatchAssignmentRequest
551551
from .models.license_definition import LicenseDefinition
552-
from .models.license_definition_listing import LicenseDefinitionListing
553552
from .models.license_organization import LicenseOrganization
554-
from .models.license_update_response import LicenseUpdateResponse
555553
from .models.license_update_status import LicenseUpdateStatus
556554
from .models.license_user import LicenseUser
557555
from .models.line import Line
@@ -603,6 +601,7 @@
603601
from .models.operation import Operation
604602
from .models.org_media_utilization import OrgMediaUtilization
605603
from .models.org_o_auth_client import OrgOAuthClient
604+
from .models.org_user import OrgUser
606605
from .models.organization import Organization
607606
from .models.organization_features import OrganizationFeatures
608607
from .models.organization_presence import OrganizationPresence
@@ -845,6 +844,7 @@
845844
from .models.trunk_metrics_options import TrunkMetricsOptions
846845
from .models.trunk_metrics_registers import TrunkMetricsRegisters
847846
from .models.trunk_recording_enabled_count import TrunkRecordingEnabledCount
847+
from .models.trustor import Trustor
848848
from .models.twitter_id import TwitterId
849849
from .models.unread_metric import UnreadMetric
850850
from .models.unread_status import UnreadStatus

build/PureCloudPlatformClientV2/apis/external_contacts_api.py

Lines changed: 172 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,84 @@ def delete_externalcontacts_organization_note(self, external_organization_id, no
370370
callback=params.get('callback'))
371371
return response
372372

373+
def delete_externalcontacts_organization_trustor(self, external_organization_id, **kwargs):
374+
"""
375+
Unlink the Trustor for this External Organization
376+
377+
378+
This method makes a synchronous HTTP request by default. To make an
379+
asynchronous HTTP request, please define a `callback` function
380+
to be invoked when receiving the response.
381+
>>> def callback_function(response):
382+
>>> pprint(response)
383+
>>>
384+
>>> thread = api.delete_externalcontacts_organization_trustor(external_organization_id, callback=callback_function)
385+
386+
:param callback function: The callback function
387+
for asynchronous request. (optional)
388+
:param str external_organization_id: External Organization ID (required)
389+
:return: None
390+
If the method is called asynchronously,
391+
returns the request thread.
392+
"""
393+
394+
all_params = ['external_organization_id']
395+
all_params.append('callback')
396+
397+
params = locals()
398+
for key, val in iteritems(params['kwargs']):
399+
if key not in all_params:
400+
raise TypeError(
401+
"Got an unexpected keyword argument '%s'"
402+
" to method delete_externalcontacts_organization_trustor" % key
403+
)
404+
params[key] = val
405+
del params['kwargs']
406+
407+
# verify the required parameter 'external_organization_id' is set
408+
if ('external_organization_id' not in params) or (params['external_organization_id'] is None):
409+
raise ValueError("Missing the required parameter `external_organization_id` when calling `delete_externalcontacts_organization_trustor`")
410+
411+
412+
resource_path = '/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor'.replace('{format}', 'json')
413+
path_params = {}
414+
if 'external_organization_id' in params:
415+
path_params['externalOrganizationId'] = params['external_organization_id']
416+
417+
query_params = {}
418+
419+
header_params = {}
420+
421+
form_params = []
422+
local_var_files = {}
423+
424+
body_params = None
425+
426+
# HTTP header `Accept`
427+
header_params['Accept'] = self.api_client.\
428+
select_header_accept(['application/json'])
429+
if not header_params['Accept']:
430+
del header_params['Accept']
431+
432+
# HTTP header `Content-Type`
433+
header_params['Content-Type'] = self.api_client.\
434+
select_header_content_type(['application/json'])
435+
436+
# Authentication setting
437+
auth_settings = ['PureCloud Auth']
438+
439+
response = self.api_client.call_api(resource_path, 'DELETE',
440+
path_params,
441+
query_params,
442+
header_params,
443+
body=body_params,
444+
post_params=form_params,
445+
files=local_var_files,
446+
response_type=None,
447+
auth_settings=auth_settings,
448+
callback=params.get('callback'))
449+
return response
450+
373451
def delete_externalcontacts_relationship(self, relationship_id, **kwargs):
374452
"""
375453
Delete a relationship
@@ -809,13 +887,14 @@ def get_externalcontacts_organization(self, external_organization_id, **kwargs):
809887
:param callback function: The callback function
810888
for asynchronous request. (optional)
811889
:param str external_organization_id: External Organization ID (required)
812-
:param list[str] expand: which fields, if any, to expand (externalDataSources)
890+
:param str expand: which fields, if any, to expand (externalDataSources)
891+
:param bool include_trustors: (true or false) whether or not to include trustor information embedded in the externalOrganization
813892
:return: ExternalOrganization
814893
If the method is called asynchronously,
815894
returns the request thread.
816895
"""
817896

818-
all_params = ['external_organization_id', 'expand']
897+
all_params = ['external_organization_id', 'expand', 'include_trustors']
819898
all_params.append('callback')
820899

821900
params = locals()
@@ -841,6 +920,8 @@ def get_externalcontacts_organization(self, external_organization_id, **kwargs):
841920
query_params = {}
842921
if 'expand' in params:
843922
query_params['expand'] = params['expand']
923+
if 'include_trustors' in params:
924+
query_params['includeTrustors'] = params['include_trustors']
844925

845926
header_params = {}
846927

@@ -1253,13 +1334,14 @@ def get_externalcontacts_organizations(self, **kwargs):
12531334
:param int page_number: Page number
12541335
:param str q: Search query
12551336
:param str sort_order: Sort order
1256-
:param str expand: which fields, if any, to expand
1337+
:param list[str] expand: which fields, if any, to expand
1338+
:param bool include_trustors: (true or false) whether or not to include trustor information embedded in the externalOrganization
12571339
:return: ExternalOrganizationListing
12581340
If the method is called asynchronously,
12591341
returns the request thread.
12601342
"""
12611343

1262-
all_params = ['page_size', 'page_number', 'q', 'sort_order', 'expand']
1344+
all_params = ['page_size', 'page_number', 'q', 'sort_order', 'expand', 'include_trustors']
12631345
all_params.append('callback')
12641346

12651347
params = locals()
@@ -1288,6 +1370,8 @@ def get_externalcontacts_organizations(self, **kwargs):
12881370
query_params['sortOrder'] = params['sort_order']
12891371
if 'expand' in params:
12901372
query_params['expand'] = params['expand']
1373+
if 'include_trustors' in params:
1374+
query_params['includeTrustors'] = params['include_trustors']
12911375

12921376
header_params = {}
12931377

@@ -2287,6 +2371,90 @@ def put_externalcontacts_organization_note(self, external_organization_id, note_
22872371
callback=params.get('callback'))
22882372
return response
22892373

2374+
def put_externalcontacts_organization_trustor_trustor_id(self, external_organization_id, trustor_id, **kwargs):
2375+
"""
2376+
Links a Trustor with an Extenral Organization
2377+
2378+
2379+
This method makes a synchronous HTTP request by default. To make an
2380+
asynchronous HTTP request, please define a `callback` function
2381+
to be invoked when receiving the response.
2382+
>>> def callback_function(response):
2383+
>>> pprint(response)
2384+
>>>
2385+
>>> thread = api.put_externalcontacts_organization_trustor_trustor_id(external_organization_id, trustor_id, callback=callback_function)
2386+
2387+
:param callback function: The callback function
2388+
for asynchronous request. (optional)
2389+
:param str external_organization_id: External Organization ID (required)
2390+
:param str trustor_id: Trustor ID (required)
2391+
:return: ExternalOrganization
2392+
If the method is called asynchronously,
2393+
returns the request thread.
2394+
"""
2395+
2396+
all_params = ['external_organization_id', 'trustor_id']
2397+
all_params.append('callback')
2398+
2399+
params = locals()
2400+
for key, val in iteritems(params['kwargs']):
2401+
if key not in all_params:
2402+
raise TypeError(
2403+
"Got an unexpected keyword argument '%s'"
2404+
" to method put_externalcontacts_organization_trustor_trustor_id" % key
2405+
)
2406+
params[key] = val
2407+
del params['kwargs']
2408+
2409+
# verify the required parameter 'external_organization_id' is set
2410+
if ('external_organization_id' not in params) or (params['external_organization_id'] is None):
2411+
raise ValueError("Missing the required parameter `external_organization_id` when calling `put_externalcontacts_organization_trustor_trustor_id`")
2412+
# verify the required parameter 'trustor_id' is set
2413+
if ('trustor_id' not in params) or (params['trustor_id'] is None):
2414+
raise ValueError("Missing the required parameter `trustor_id` when calling `put_externalcontacts_organization_trustor_trustor_id`")
2415+
2416+
2417+
resource_path = '/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}'.replace('{format}', 'json')
2418+
path_params = {}
2419+
if 'external_organization_id' in params:
2420+
path_params['externalOrganizationId'] = params['external_organization_id']
2421+
if 'trustor_id' in params:
2422+
path_params['trustorId'] = params['trustor_id']
2423+
2424+
query_params = {}
2425+
2426+
header_params = {}
2427+
2428+
form_params = []
2429+
local_var_files = {}
2430+
2431+
body_params = None
2432+
2433+
# HTTP header `Accept`
2434+
header_params['Accept'] = self.api_client.\
2435+
select_header_accept(['application/json'])
2436+
if not header_params['Accept']:
2437+
del header_params['Accept']
2438+
2439+
# HTTP header `Content-Type`
2440+
header_params['Content-Type'] = self.api_client.\
2441+
select_header_content_type(['application/json'])
2442+
2443+
# Authentication setting
2444+
auth_settings = ['PureCloud Auth']
2445+
2446+
response = self.api_client.call_api(resource_path, 'PUT',
2447+
path_params,
2448+
query_params,
2449+
header_params,
2450+
body=body_params,
2451+
post_params=form_params,
2452+
files=local_var_files,
2453+
response_type='ExternalOrganization',
2454+
auth_settings=auth_settings,
2455+
callback=params.get('callback'))
2456+
return response
2457+
22902458
def put_externalcontacts_relationship(self, relationship_id, **kwargs):
22912459
"""
22922460
Update a relationship

build/PureCloudPlatformClientV2/apis/license_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def get_license_definitions(self, **kwargs):
139139
140140
:param callback function: The callback function
141141
for asynchronous request. (optional)
142-
:return: LicenseDefinitionListing
142+
:return: list[LicenseDefinition]
143143
If the method is called asynchronously,
144144
returns the request thread.
145145
"""
@@ -191,7 +191,7 @@ def get_license_definitions(self, **kwargs):
191191
body=body_params,
192192
post_params=form_params,
193193
files=local_var_files,
194-
response_type='LicenseDefinitionListing',
194+
response_type='list[LicenseDefinition]',
195195
auth_settings=auth_settings,
196196
callback=params.get('callback'))
197197
return response
@@ -362,7 +362,7 @@ def post_license_organization(self, **kwargs):
362362
:param callback function: The callback function
363363
for asynchronous request. (optional)
364364
:param LicenseBatchAssignmentRequest body: The license assignments to update.
365-
:return: LicenseUpdateResponse
365+
:return: list[LicenseUpdateStatus]
366366
If the method is called asynchronously,
367367
returns the request thread.
368368
"""
@@ -416,7 +416,7 @@ def post_license_organization(self, **kwargs):
416416
body=body_params,
417417
post_params=form_params,
418418
files=local_var_files,
419-
response_type='LicenseUpdateResponse',
419+
response_type='list[LicenseUpdateStatus]',
420420
auth_settings=auth_settings,
421421
callback=params.get('callback'))
422422
return response

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

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,7 @@
549549
from .license_assignment_request import LicenseAssignmentRequest
550550
from .license_batch_assignment_request import LicenseBatchAssignmentRequest
551551
from .license_definition import LicenseDefinition
552-
from .license_definition_listing import LicenseDefinitionListing
553552
from .license_organization import LicenseOrganization
554-
from .license_update_response import LicenseUpdateResponse
555553
from .license_update_status import LicenseUpdateStatus
556554
from .license_user import LicenseUser
557555
from .line import Line
@@ -603,6 +601,7 @@
603601
from .operation import Operation
604602
from .org_media_utilization import OrgMediaUtilization
605603
from .org_o_auth_client import OrgOAuthClient
604+
from .org_user import OrgUser
606605
from .organization import Organization
607606
from .organization_features import OrganizationFeatures
608607
from .organization_presence import OrganizationPresence
@@ -845,6 +844,7 @@
845844
from .trunk_metrics_options import TrunkMetricsOptions
846845
from .trunk_metrics_registers import TrunkMetricsRegisters
847846
from .trunk_recording_enabled_count import TrunkRecordingEnabledCount
847+
from .trustor import Trustor
848848
from .twitter_id import TwitterId
849849
from .unread_metric import UnreadMetric
850850
from .unread_status import UnreadStatus

0 commit comments

Comments
 (0)