Skip to content

Commit a9f5e9e

Browse files
author
InIn Devops
committed
5.0.0
1 parent c6863ad commit a9f5e9e

File tree

253 files changed

+4633
-3256
lines changed

Some content is hidden

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

253 files changed

+4633
-3256
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@
294294
from .models.dialer_action import DialerAction
295295
from .models.dialer_audit_request import DialerAuditRequest
296296
from .models.dialer_contact import DialerContact
297+
from .models.dialer_event_entity_listing import DialerEventEntityListing
297298
from .models.dialer_preview import DialerPreview
298299
from .models.dialer_rule import DialerRule
299300
from .models.digit_length import DigitLength
@@ -405,6 +406,8 @@
405406
from .models.evaluation_scoring_set import EvaluationScoringSet
406407
from .models.evaluator_activity import EvaluatorActivity
407408
from .models.evaluator_activity_entity_listing import EvaluatorActivityEntityListing
409+
from .models.event_log import EventLog
410+
from .models.event_message import EventMessage
408411
from .models.expansion_criterium import ExpansionCriterium
409412
from .models.export_uri import ExportUri
410413
from .models.export_uri_notification import ExportUriNotification

build/PureCloudPlatformClientV2/apis/outbound_api.py

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2995,6 +2995,177 @@ def get_outbound_dnclists(self, **kwargs):
29952995
callback=params.get('callback'))
29962996
return response
29972997

2998+
def get_outbound_event(self, event_id, **kwargs):
2999+
"""
3000+
Get Dialer Event
3001+
3002+
3003+
This method makes a synchronous HTTP request by default. To make an
3004+
asynchronous HTTP request, please define a `callback` function
3005+
to be invoked when receiving the response.
3006+
>>> def callback_function(response):
3007+
>>> pprint(response)
3008+
>>>
3009+
>>> thread = api.get_outbound_event(event_id, callback=callback_function)
3010+
3011+
:param callback function: The callback function
3012+
for asynchronous request. (optional)
3013+
:param str event_id: Event Log ID (required)
3014+
:return: EventLog
3015+
If the method is called asynchronously,
3016+
returns the request thread.
3017+
"""
3018+
3019+
all_params = ['event_id']
3020+
all_params.append('callback')
3021+
3022+
params = locals()
3023+
for key, val in iteritems(params['kwargs']):
3024+
if key not in all_params:
3025+
raise TypeError(
3026+
"Got an unexpected keyword argument '%s'"
3027+
" to method get_outbound_event" % key
3028+
)
3029+
params[key] = val
3030+
del params['kwargs']
3031+
3032+
# verify the required parameter 'event_id' is set
3033+
if ('event_id' not in params) or (params['event_id'] is None):
3034+
raise ValueError("Missing the required parameter `event_id` when calling `get_outbound_event`")
3035+
3036+
3037+
resource_path = '/api/v2/outbound/events/{eventId}'.replace('{format}', 'json')
3038+
path_params = {}
3039+
if 'event_id' in params:
3040+
path_params['eventId'] = params['event_id']
3041+
3042+
query_params = {}
3043+
3044+
header_params = {}
3045+
3046+
form_params = []
3047+
local_var_files = {}
3048+
3049+
body_params = None
3050+
3051+
# HTTP header `Accept`
3052+
header_params['Accept'] = self.api_client.\
3053+
select_header_accept(['application/json'])
3054+
if not header_params['Accept']:
3055+
del header_params['Accept']
3056+
3057+
# HTTP header `Content-Type`
3058+
header_params['Content-Type'] = self.api_client.\
3059+
select_header_content_type(['application/json'])
3060+
3061+
# Authentication setting
3062+
auth_settings = ['PureCloud Auth']
3063+
3064+
response = self.api_client.call_api(resource_path, 'GET',
3065+
path_params,
3066+
query_params,
3067+
header_params,
3068+
body=body_params,
3069+
post_params=form_params,
3070+
files=local_var_files,
3071+
response_type='EventLog',
3072+
auth_settings=auth_settings,
3073+
callback=params.get('callback'))
3074+
return response
3075+
3076+
def get_outbound_events(self, **kwargs):
3077+
"""
3078+
Query Event Logs
3079+
3080+
3081+
This method makes a synchronous HTTP request by default. To make an
3082+
asynchronous HTTP request, please define a `callback` function
3083+
to be invoked when receiving the response.
3084+
>>> def callback_function(response):
3085+
>>> pprint(response)
3086+
>>>
3087+
>>> thread = api.get_outbound_events(callback=callback_function)
3088+
3089+
:param callback function: The callback function
3090+
for asynchronous request. (optional)
3091+
:param int page_size: Page size
3092+
:param int page_number: Page number
3093+
:param str filter_type: Filter type
3094+
:param str category: Category
3095+
:param str level: Level
3096+
:param str sort_by: Sort by
3097+
:param str sort_order: Sort order
3098+
:return: DialerEventEntityListing
3099+
If the method is called asynchronously,
3100+
returns the request thread.
3101+
"""
3102+
3103+
all_params = ['page_size', 'page_number', 'filter_type', 'category', 'level', 'sort_by', 'sort_order']
3104+
all_params.append('callback')
3105+
3106+
params = locals()
3107+
for key, val in iteritems(params['kwargs']):
3108+
if key not in all_params:
3109+
raise TypeError(
3110+
"Got an unexpected keyword argument '%s'"
3111+
" to method get_outbound_events" % key
3112+
)
3113+
params[key] = val
3114+
del params['kwargs']
3115+
3116+
3117+
3118+
resource_path = '/api/v2/outbound/events'.replace('{format}', 'json')
3119+
path_params = {}
3120+
3121+
query_params = {}
3122+
if 'page_size' in params:
3123+
query_params['pageSize'] = params['page_size']
3124+
if 'page_number' in params:
3125+
query_params['pageNumber'] = params['page_number']
3126+
if 'filter_type' in params:
3127+
query_params['filterType'] = params['filter_type']
3128+
if 'category' in params:
3129+
query_params['category'] = params['category']
3130+
if 'level' in params:
3131+
query_params['level'] = params['level']
3132+
if 'sort_by' in params:
3133+
query_params['sortBy'] = params['sort_by']
3134+
if 'sort_order' in params:
3135+
query_params['sortOrder'] = params['sort_order']
3136+
3137+
header_params = {}
3138+
3139+
form_params = []
3140+
local_var_files = {}
3141+
3142+
body_params = None
3143+
3144+
# HTTP header `Accept`
3145+
header_params['Accept'] = self.api_client.\
3146+
select_header_accept(['application/json'])
3147+
if not header_params['Accept']:
3148+
del header_params['Accept']
3149+
3150+
# HTTP header `Content-Type`
3151+
header_params['Content-Type'] = self.api_client.\
3152+
select_header_content_type(['application/json'])
3153+
3154+
# Authentication setting
3155+
auth_settings = ['PureCloud Auth']
3156+
3157+
response = self.api_client.call_api(resource_path, 'GET',
3158+
path_params,
3159+
query_params,
3160+
header_params,
3161+
body=body_params,
3162+
post_params=form_params,
3163+
files=local_var_files,
3164+
response_type='DialerEventEntityListing',
3165+
auth_settings=auth_settings,
3166+
callback=params.get('callback'))
3167+
return response
3168+
29983169
def get_outbound_ruleset(self, rule_set_id, **kwargs):
29993170
"""
30003171
Get a Rule Set by ID.

build/PureCloudPlatformClientV2/apis/telephony_providers_edge_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4772,13 +4772,14 @@ def get_telephony_providers_edges_phonebasesettings(self, **kwargs):
47724772
:param int page_number: Page number
47734773
:param str sort_by: Value by which to sort
47744774
:param str sort_order: Sort order
4775+
:param list[str] expand: Fields to expand in the response, comma-separated
47754776
:param str name: Name
47764777
:return: PhoneBaseEntityListing
47774778
If the method is called asynchronously,
47784779
returns the request thread.
47794780
"""
47804781

4781-
all_params = ['page_size', 'page_number', 'sort_by', 'sort_order', 'name']
4782+
all_params = ['page_size', 'page_number', 'sort_by', 'sort_order', 'expand', 'name']
47824783
all_params.append('callback')
47834784

47844785
params = locals()
@@ -4805,6 +4806,8 @@ def get_telephony_providers_edges_phonebasesettings(self, **kwargs):
48054806
query_params['sortBy'] = params['sort_by']
48064807
if 'sort_order' in params:
48074808
query_params['sortOrder'] = params['sort_order']
4809+
if 'expand' in params:
4810+
query_params['expand'] = params['expand']
48084811
if 'name' in params:
48094812
query_params['name'] = params['name']
48104813

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

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@
294294
from .dialer_action import DialerAction
295295
from .dialer_audit_request import DialerAuditRequest
296296
from .dialer_contact import DialerContact
297+
from .dialer_event_entity_listing import DialerEventEntityListing
297298
from .dialer_preview import DialerPreview
298299
from .dialer_rule import DialerRule
299300
from .digit_length import DigitLength
@@ -405,6 +406,8 @@
405406
from .evaluation_scoring_set import EvaluationScoringSet
406407
from .evaluator_activity import EvaluatorActivity
407408
from .evaluator_activity_entity_listing import EvaluatorActivityEntityListing
409+
from .event_log import EventLog
410+
from .event_message import EventMessage
408411
from .expansion_criterium import ExpansionCriterium
409412
from .export_uri import ExportUri
410413
from .export_uri_notification import ExportUriNotification

build/PureCloudPlatformClientV2/models/agent_activity_entity_listing.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def __init__(self):
4444
'total': 'int',
4545
'self_uri': 'str',
4646
'first_uri': 'str',
47+
'previous_uri': 'str',
4748
'next_uri': 'str',
4849
'last_uri': 'str',
49-
'previous_uri': 'str',
5050
'page_count': 'int'
5151
}
5252

@@ -57,9 +57,9 @@ def __init__(self):
5757
'total': 'total',
5858
'self_uri': 'selfUri',
5959
'first_uri': 'firstUri',
60+
'previous_uri': 'previousUri',
6061
'next_uri': 'nextUri',
6162
'last_uri': 'lastUri',
62-
'previous_uri': 'previousUri',
6363
'page_count': 'pageCount'
6464
}
6565

@@ -69,9 +69,9 @@ def __init__(self):
6969
self._total = None
7070
self._self_uri = None
7171
self._first_uri = None
72+
self._previous_uri = None
7273
self._next_uri = None
7374
self._last_uri = None
74-
self._previous_uri = None
7575
self._page_count = None
7676

7777
@property
@@ -212,6 +212,29 @@ def first_uri(self, first_uri):
212212

213213
self._first_uri = first_uri
214214

215+
@property
216+
def previous_uri(self):
217+
"""
218+
Gets the previous_uri of this AgentActivityEntityListing.
219+
220+
221+
:return: The previous_uri of this AgentActivityEntityListing.
222+
:rtype: str
223+
"""
224+
return self._previous_uri
225+
226+
@previous_uri.setter
227+
def previous_uri(self, previous_uri):
228+
"""
229+
Sets the previous_uri of this AgentActivityEntityListing.
230+
231+
232+
:param previous_uri: The previous_uri of this AgentActivityEntityListing.
233+
:type: str
234+
"""
235+
236+
self._previous_uri = previous_uri
237+
215238
@property
216239
def next_uri(self):
217240
"""
@@ -258,29 +281,6 @@ def last_uri(self, last_uri):
258281

259282
self._last_uri = last_uri
260283

261-
@property
262-
def previous_uri(self):
263-
"""
264-
Gets the previous_uri of this AgentActivityEntityListing.
265-
266-
267-
:return: The previous_uri of this AgentActivityEntityListing.
268-
:rtype: str
269-
"""
270-
return self._previous_uri
271-
272-
@previous_uri.setter
273-
def previous_uri(self, previous_uri):
274-
"""
275-
Sets the previous_uri of this AgentActivityEntityListing.
276-
277-
278-
:param previous_uri: The previous_uri of this AgentActivityEntityListing.
279-
:type: str
280-
"""
281-
282-
self._previous_uri = previous_uri
283-
284284
@property
285285
def page_count(self):
286286
"""

build/PureCloudPlatformClientV2/models/attempt_limits.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __init__(self):
4747
'max_attempts_per_number': 'int',
4848
'time_zone_id': 'str',
4949
'reset_period': 'str',
50+
'recall_entries': 'dict(str, RecallEntry)',
5051
'self_uri': 'str'
5152
}
5253

@@ -60,6 +61,7 @@ def __init__(self):
6061
'max_attempts_per_number': 'maxAttemptsPerNumber',
6162
'time_zone_id': 'timeZoneId',
6263
'reset_period': 'resetPeriod',
64+
'recall_entries': 'recallEntries',
6365
'self_uri': 'selfUri'
6466
}
6567

@@ -72,6 +74,7 @@ def __init__(self):
7274
self._max_attempts_per_number = None
7375
self._time_zone_id = None
7476
self._reset_period = None
77+
self._recall_entries = None
7578
self._self_uri = None
7679

7780
@property
@@ -285,6 +288,29 @@ def reset_period(self, reset_period):
285288
else:
286289
self._reset_period = reset_period
287290

291+
@property
292+
def recall_entries(self):
293+
"""
294+
Gets the recall_entries of this AttemptLimits.
295+
Configuration for recall attempts
296+
297+
:return: The recall_entries of this AttemptLimits.
298+
:rtype: dict(str, RecallEntry)
299+
"""
300+
return self._recall_entries
301+
302+
@recall_entries.setter
303+
def recall_entries(self, recall_entries):
304+
"""
305+
Sets the recall_entries of this AttemptLimits.
306+
Configuration for recall attempts
307+
308+
:param recall_entries: The recall_entries of this AttemptLimits.
309+
:type: dict(str, RecallEntry)
310+
"""
311+
312+
self._recall_entries = recall_entries
313+
288314
@property
289315
def self_uri(self):
290316
"""

0 commit comments

Comments
 (0)