Skip to content

Commit e09cdea

Browse files
author
PureCloud Jenkins
committed
62.0.0
1 parent 8fd3c95 commit e09cdea

596 files changed

Lines changed: 23061 additions & 5035 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: 86 additions & 12 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
@@ -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'] = '61.0.0'
190+
header_params['purecloud-sdk'] = '62.0.0'
191191

192192
# path parameters
193193
if path_params:

build/PureCloudPlatformClientV2/apis/analytics_api.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,8 +1393,8 @@ def post_analytics_conversations_aggregates_query(self, body, **kwargs):
13931393
13941394
:param callback function: The callback function
13951395
for asynchronous request. (optional)
1396-
:param AggregationQuery body: query (required)
1397-
:return: AggregateQueryResponse
1396+
:param ConversationAggregationQuery body: query (required)
1397+
:return: ConversationAggregateQueryResponse
13981398
If the method is called asynchronously,
13991399
returns the request thread.
14001400
"""
@@ -1451,7 +1451,7 @@ def post_analytics_conversations_aggregates_query(self, body, **kwargs):
14511451
body=body_params,
14521452
post_params=form_params,
14531453
files=local_var_files,
1454-
response_type='AggregateQueryResponse',
1454+
response_type='ConversationAggregateQueryResponse',
14551455
auth_settings=auth_settings,
14561456
callback=params.get('callback'))
14571457
return response
@@ -1627,8 +1627,8 @@ def post_analytics_evaluations_aggregates_query(self, body, **kwargs):
16271627
16281628
:param callback function: The callback function
16291629
for asynchronous request. (optional)
1630-
:param AggregationQuery body: query (required)
1631-
:return: AggregateQueryResponse
1630+
:param EvaluationAggregationQuery body: query (required)
1631+
:return: EvaluationAggregateQueryResponse
16321632
If the method is called asynchronously,
16331633
returns the request thread.
16341634
"""
@@ -1685,7 +1685,7 @@ def post_analytics_evaluations_aggregates_query(self, body, **kwargs):
16851685
body=body_params,
16861686
post_params=form_params,
16871687
files=local_var_files,
1688-
response_type='AggregateQueryResponse',
1688+
response_type='EvaluationAggregateQueryResponse',
16891689
auth_settings=auth_settings,
16901690
callback=params.get('callback'))
16911691
return response
@@ -1705,8 +1705,8 @@ def post_analytics_flows_aggregates_query(self, body, **kwargs):
17051705
17061706
:param callback function: The callback function
17071707
for asynchronous request. (optional)
1708-
:param AggregationQuery body: query (required)
1709-
:return: AggregateQueryResponse
1708+
:param FlowAggregationQuery body: query (required)
1709+
:return: FlowAggregateQueryResponse
17101710
If the method is called asynchronously,
17111711
returns the request thread.
17121712
"""
@@ -1763,7 +1763,7 @@ def post_analytics_flows_aggregates_query(self, body, **kwargs):
17631763
body=body_params,
17641764
post_params=form_params,
17651765
files=local_var_files,
1766-
response_type='AggregateQueryResponse',
1766+
response_type='FlowAggregateQueryResponse',
17671767
auth_settings=auth_settings,
17681768
callback=params.get('callback'))
17691769
return response
@@ -1783,8 +1783,8 @@ def post_analytics_flows_observations_query(self, body, **kwargs):
17831783
17841784
:param callback function: The callback function
17851785
for asynchronous request. (optional)
1786-
:param ObservationQuery body: query (required)
1787-
:return: QualifierMappingObservationQueryResponse
1786+
:param FlowObservationQuery body: query (required)
1787+
:return: FlowObservationQueryResponse
17881788
If the method is called asynchronously,
17891789
returns the request thread.
17901790
"""
@@ -1841,7 +1841,7 @@ def post_analytics_flows_observations_query(self, body, **kwargs):
18411841
body=body_params,
18421842
post_params=form_params,
18431843
files=local_var_files,
1844-
response_type='QualifierMappingObservationQueryResponse',
1844+
response_type='FlowObservationQueryResponse',
18451845
auth_settings=auth_settings,
18461846
callback=params.get('callback'))
18471847
return response
@@ -1861,8 +1861,8 @@ def post_analytics_queues_observations_query(self, body, **kwargs):
18611861
18621862
:param callback function: The callback function
18631863
for asynchronous request. (optional)
1864-
:param ObservationQuery body: query (required)
1865-
:return: QualifierMappingObservationQueryResponse
1864+
:param QueueObservationQuery body: query (required)
1865+
:return: QueueObservationQueryResponse
18661866
If the method is called asynchronously,
18671867
returns the request thread.
18681868
"""
@@ -1919,7 +1919,7 @@ def post_analytics_queues_observations_query(self, body, **kwargs):
19191919
body=body_params,
19201920
post_params=form_params,
19211921
files=local_var_files,
1922-
response_type='QualifierMappingObservationQueryResponse',
1922+
response_type='QueueObservationQueryResponse',
19231923
auth_settings=auth_settings,
19241924
callback=params.get('callback'))
19251925
return response
@@ -2173,8 +2173,8 @@ def post_analytics_surveys_aggregates_query(self, body, **kwargs):
21732173
21742174
:param callback function: The callback function
21752175
for asynchronous request. (optional)
2176-
:param AggregationQuery body: query (required)
2177-
:return: AggregateQueryResponse
2176+
:param SurveyAggregationQuery body: query (required)
2177+
:return: SurveyAggregateQueryResponse
21782178
If the method is called asynchronously,
21792179
returns the request thread.
21802180
"""
@@ -2231,7 +2231,7 @@ def post_analytics_surveys_aggregates_query(self, body, **kwargs):
22312231
body=body_params,
22322232
post_params=form_params,
22332233
files=local_var_files,
2234-
response_type='AggregateQueryResponse',
2234+
response_type='SurveyAggregateQueryResponse',
22352235
auth_settings=auth_settings,
22362236
callback=params.get('callback'))
22372237
return response
@@ -2251,8 +2251,8 @@ def post_analytics_users_aggregates_query(self, body, **kwargs):
22512251
22522252
:param callback function: The callback function
22532253
for asynchronous request. (optional)
2254-
:param AggregationQuery body: query (required)
2255-
:return: PresenceQueryResponse
2254+
:param UserAggregationQuery body: query (required)
2255+
:return: UserAggregateQueryResponse
22562256
If the method is called asynchronously,
22572257
returns the request thread.
22582258
"""
@@ -2309,7 +2309,7 @@ def post_analytics_users_aggregates_query(self, body, **kwargs):
23092309
body=body_params,
23102310
post_params=form_params,
23112311
files=local_var_files,
2312-
response_type='PresenceQueryResponse',
2312+
response_type='UserAggregateQueryResponse',
23132313
auth_settings=auth_settings,
23142314
callback=params.get('callback'))
23152315
return response
@@ -2407,8 +2407,8 @@ def post_analytics_users_observations_query(self, body, **kwargs):
24072407
24082408
:param callback function: The callback function
24092409
for asynchronous request. (optional)
2410-
:param ObservationQuery body: query (required)
2411-
:return: ObservationQueryResponse
2410+
:param UserObservationQuery body: query (required)
2411+
:return: UserObservationQueryResponse
24122412
If the method is called asynchronously,
24132413
returns the request thread.
24142414
"""
@@ -2465,7 +2465,7 @@ def post_analytics_users_observations_query(self, body, **kwargs):
24652465
body=body_params,
24662466
post_params=form_params,
24672467
files=local_var_files,
2468-
response_type='ObservationQueryResponse',
2468+
response_type='UserObservationQueryResponse',
24692469
auth_settings=auth_settings,
24702470
callback=params.get('callback'))
24712471
return response

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4162,6 +4162,90 @@ def get_flows_datatable(self, datatable_id, **kwargs):
41624162
callback=params.get('callback'))
41634163
return response
41644164

4165+
def get_flows_datatable_import_job(self, datatable_id, import_job_id, **kwargs):
4166+
"""
4167+
Returns the state information about an import job
4168+
Returns the state information about an import job.
4169+
4170+
This method makes a synchronous HTTP request by default. To make an
4171+
asynchronous HTTP request, please define a `callback` function
4172+
to be invoked when receiving the response.
4173+
>>> def callback_function(response):
4174+
>>> pprint(response)
4175+
>>>
4176+
>>> thread = api.get_flows_datatable_import_job(datatable_id, import_job_id, callback=callback_function)
4177+
4178+
:param callback function: The callback function
4179+
for asynchronous request. (optional)
4180+
:param str datatable_id: id of datatable (required)
4181+
:param str import_job_id: id of import job (required)
4182+
:return: DataTableImportJob
4183+
If the method is called asynchronously,
4184+
returns the request thread.
4185+
"""
4186+
4187+
all_params = ['datatable_id', 'import_job_id']
4188+
all_params.append('callback')
4189+
4190+
params = locals()
4191+
for key, val in iteritems(params['kwargs']):
4192+
if key not in all_params:
4193+
raise TypeError(
4194+
"Got an unexpected keyword argument '%s'"
4195+
" to method get_flows_datatable_import_job" % key
4196+
)
4197+
params[key] = val
4198+
del params['kwargs']
4199+
4200+
# verify the required parameter 'datatable_id' is set
4201+
if ('datatable_id' not in params) or (params['datatable_id'] is None):
4202+
raise ValueError("Missing the required parameter `datatable_id` when calling `get_flows_datatable_import_job`")
4203+
# verify the required parameter 'import_job_id' is set
4204+
if ('import_job_id' not in params) or (params['import_job_id'] is None):
4205+
raise ValueError("Missing the required parameter `import_job_id` when calling `get_flows_datatable_import_job`")
4206+
4207+
4208+
resource_path = '/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}'.replace('{format}', 'json')
4209+
path_params = {}
4210+
if 'datatable_id' in params:
4211+
path_params['datatableId'] = params['datatable_id']
4212+
if 'import_job_id' in params:
4213+
path_params['importJobId'] = params['import_job_id']
4214+
4215+
query_params = {}
4216+
4217+
header_params = {}
4218+
4219+
form_params = []
4220+
local_var_files = {}
4221+
4222+
body_params = None
4223+
4224+
# HTTP header `Accept`
4225+
header_params['Accept'] = self.api_client.\
4226+
select_header_accept(['application/json'])
4227+
if not header_params['Accept']:
4228+
del header_params['Accept']
4229+
4230+
# HTTP header `Content-Type`
4231+
header_params['Content-Type'] = self.api_client.\
4232+
select_header_content_type(['application/json'])
4233+
4234+
# Authentication setting
4235+
auth_settings = ['PureCloud OAuth']
4236+
4237+
response = self.api_client.call_api(resource_path, 'GET',
4238+
path_params,
4239+
query_params,
4240+
header_params,
4241+
body=body_params,
4242+
post_params=form_params,
4243+
files=local_var_files,
4244+
response_type='DataTableImportJob',
4245+
auth_settings=auth_settings,
4246+
callback=params.get('callback'))
4247+
return response
4248+
41654249
def get_flows_datatable_row(self, datatable_id, row_id, **kwargs):
41664250
"""
41674251
Returns a specific row for the datatable

build/PureCloudPlatformClientV2/apis/authorization_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def get_authorization_role(self, role_id, **kwargs):
10281028
:param callback function: The callback function
10291029
for asynchronous request. (optional)
10301030
:param str role_id: Role ID (required)
1031-
:param list[str] expand: Which fields, if any, to expand.
1031+
:param list[str] expand: Which fields, if any, to expand. \"unusedPermissions\" returns the permissions not used for the role
10321032
:return: DomainOrganizationRole
10331033
If the method is called asynchronously,
10341034
returns the request thread.
@@ -2034,7 +2034,7 @@ def post_authorization_role(self, role_id, body, **kwargs):
20342034
for asynchronous request. (optional)
20352035
:param str role_id: Role ID (required)
20362036
:param SubjectDivisions body: Subjects and Divisions (required)
2037-
:param str subject_type: what the type of the subject is, PC_GROUP or PC_USER
2037+
:param str subject_type: what the type of the subjects are (PC_GROUP, PC_USER or PC_OAUTH_CLIENT)
20382038
:return: None
20392039
If the method is called asynchronously,
20402040
returns the request thread.
@@ -2365,7 +2365,7 @@ def post_authorization_subject_division_role(self, subject_id, division_id, role
23652365
:param str subject_id: Subject ID (user or group) (required)
23662366
:param str division_id: the id of the division to which to make the grant (required)
23672367
:param str role_id: the id of the role to grant (required)
2368-
:param str subject_type: what the type of the subject is, PC_GROUP or PC_USER
2368+
:param str subject_type: what the type of the subject is: PC_GROUP, PC_USER or PC_OAUTH_CLIENT (note: for cross-org authorization, please use the Organization Authorization endpoints)
23692369
:return: None
23702370
If the method is called asynchronously,
23712371
returns the request thread.

0 commit comments

Comments
 (0)