Skip to content

Commit 2bb7652

Browse files
author
PureCloud Jenkins
committed
47.2.0
1 parent b74720a commit 2bb7652

19 files changed

+547
-17
lines changed

build/PureCloudPlatformClientV2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@
815815
from .models.org_media_utilization import OrgMediaUtilization
816816
from .models.org_o_auth_client import OrgOAuthClient
817817
from .models.org_user import OrgUser
818+
from .models.org_whitelist_settings import OrgWhitelistSettings
818819
from .models.organization import Organization
819820
from .models.organization_features import OrganizationFeatures
820821
from .models.organization_presence import OrganizationPresence

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __call_api(self, resource_path, method,
112112
header_params['Cookie'] = self.cookie
113113
if header_params:
114114
header_params = self.sanitize_for_serialization(header_params)
115-
header_params['purecloud-sdk'] = '47.1.2'
115+
header_params['purecloud-sdk'] = '47.2.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/organization_api.py

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,78 @@ def get_organizations_me(self, **kwargs):
196196
callback=params.get('callback'))
197197
return response
198198

199+
def get_organizations_whitelist(self, **kwargs):
200+
"""
201+
Get organization whitelist settings
202+
203+
204+
This method makes a synchronous HTTP request by default. To make an
205+
asynchronous HTTP request, please define a `callback` function
206+
to be invoked when receiving the response.
207+
>>> def callback_function(response):
208+
>>> pprint(response)
209+
>>>
210+
>>> thread = api.get_organizations_whitelist(callback=callback_function)
211+
212+
:param callback function: The callback function
213+
for asynchronous request. (optional)
214+
:return: OrgWhitelistSettings
215+
If the method is called asynchronously,
216+
returns the request thread.
217+
"""
218+
219+
all_params = []
220+
all_params.append('callback')
221+
222+
params = locals()
223+
for key, val in iteritems(params['kwargs']):
224+
if key not in all_params:
225+
raise TypeError(
226+
"Got an unexpected keyword argument '%s'"
227+
" to method get_organizations_whitelist" % key
228+
)
229+
params[key] = val
230+
del params['kwargs']
231+
232+
233+
234+
resource_path = '/api/v2/organizations/whitelist'.replace('{format}', 'json')
235+
path_params = {}
236+
237+
query_params = {}
238+
239+
header_params = {}
240+
241+
form_params = []
242+
local_var_files = {}
243+
244+
body_params = None
245+
246+
# HTTP header `Accept`
247+
header_params['Accept'] = self.api_client.\
248+
select_header_accept(['application/json'])
249+
if not header_params['Accept']:
250+
del header_params['Accept']
251+
252+
# HTTP header `Content-Type`
253+
header_params['Content-Type'] = self.api_client.\
254+
select_header_content_type(['application/json'])
255+
256+
# Authentication setting
257+
auth_settings = ['PureCloud OAuth']
258+
259+
response = self.api_client.call_api(resource_path, 'GET',
260+
path_params,
261+
query_params,
262+
header_params,
263+
body=body_params,
264+
post_params=form_params,
265+
files=local_var_files,
266+
response_type='OrgWhitelistSettings',
267+
auth_settings=auth_settings,
268+
callback=params.get('callback'))
269+
return response
270+
199271
def patch_organizations_feature(self, feature_name, enabled, **kwargs):
200272
"""
201273
Update organization
@@ -354,3 +426,81 @@ def put_organizations_me(self, **kwargs):
354426
auth_settings=auth_settings,
355427
callback=params.get('callback'))
356428
return response
429+
430+
def put_organizations_whitelist(self, body, **kwargs):
431+
"""
432+
Update organization whitelist settings
433+
434+
435+
This method makes a synchronous HTTP request by default. To make an
436+
asynchronous HTTP request, please define a `callback` function
437+
to be invoked when receiving the response.
438+
>>> def callback_function(response):
439+
>>> pprint(response)
440+
>>>
441+
>>> thread = api.put_organizations_whitelist(body, callback=callback_function)
442+
443+
:param callback function: The callback function
444+
for asynchronous request. (optional)
445+
:param OrgWhitelistSettings body: Whitelist settings (required)
446+
:return: OrgWhitelistSettings
447+
If the method is called asynchronously,
448+
returns the request thread.
449+
"""
450+
451+
all_params = ['body']
452+
all_params.append('callback')
453+
454+
params = locals()
455+
for key, val in iteritems(params['kwargs']):
456+
if key not in all_params:
457+
raise TypeError(
458+
"Got an unexpected keyword argument '%s'"
459+
" to method put_organizations_whitelist" % key
460+
)
461+
params[key] = val
462+
del params['kwargs']
463+
464+
# verify the required parameter 'body' is set
465+
if ('body' not in params) or (params['body'] is None):
466+
raise ValueError("Missing the required parameter `body` when calling `put_organizations_whitelist`")
467+
468+
469+
resource_path = '/api/v2/organizations/whitelist'.replace('{format}', 'json')
470+
path_params = {}
471+
472+
query_params = {}
473+
474+
header_params = {}
475+
476+
form_params = []
477+
local_var_files = {}
478+
479+
body_params = None
480+
if 'body' in params:
481+
body_params = params['body']
482+
483+
# HTTP header `Accept`
484+
header_params['Accept'] = self.api_client.\
485+
select_header_accept(['application/json'])
486+
if not header_params['Accept']:
487+
del header_params['Accept']
488+
489+
# HTTP header `Content-Type`
490+
header_params['Content-Type'] = self.api_client.\
491+
select_header_content_type(['application/json'])
492+
493+
# Authentication setting
494+
auth_settings = ['PureCloud OAuth']
495+
496+
response = self.api_client.call_api(resource_path, 'PUT',
497+
path_params,
498+
query_params,
499+
header_params,
500+
body=body_params,
501+
post_params=form_params,
502+
files=local_var_files,
503+
response_type='OrgWhitelistSettings',
504+
auth_settings=auth_settings,
505+
callback=params.get('callback'))
506+
return response

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,5 @@ def to_debug_report(self):
245245
"OS: {env}\n"\
246246
"Python Version: {pyversion}\n"\
247247
"Version of the API: v2\n"\
248-
"SDK Package Version: 47.1.2".\
248+
"SDK Package Version: 47.2.0".\
249249
format(env=sys.platform, pyversion=sys.version)

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@
815815
from .org_media_utilization import OrgMediaUtilization
816816
from .org_o_auth_client import OrgOAuthClient
817817
from .org_user import OrgUser
818+
from .org_whitelist_settings import OrgWhitelistSettings
818819
from .organization import Organization
819820
from .organization_features import OrganizationFeatures
820821
from .organization_presence import OrganizationPresence

build/PureCloudPlatformClientV2/models/analytics_conversation.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(self):
4343
'conversation_end': 'datetime',
4444
'media_stats_min_conversation_mos': 'float',
4545
'media_stats_min_conversation_r_factor': 'float',
46+
'originating_direction': 'str',
4647
'participants': 'list[AnalyticsParticipant]',
4748
'evaluations': 'list[AnalyticsEvaluation]',
4849
'surveys': 'list[AnalyticsSurvey]',
@@ -55,6 +56,7 @@ def __init__(self):
5556
'conversation_end': 'conversationEnd',
5657
'media_stats_min_conversation_mos': 'mediaStatsMinConversationMos',
5758
'media_stats_min_conversation_r_factor': 'mediaStatsMinConversationRFactor',
59+
'originating_direction': 'originatingDirection',
5860
'participants': 'participants',
5961
'evaluations': 'evaluations',
6062
'surveys': 'surveys',
@@ -66,6 +68,7 @@ def __init__(self):
6668
self._conversation_end = None
6769
self._media_stats_min_conversation_mos = None
6870
self._media_stats_min_conversation_r_factor = None
71+
self._originating_direction = None
6972
self._participants = None
7073
self._evaluations = None
7174
self._surveys = None
@@ -186,6 +189,33 @@ def media_stats_min_conversation_r_factor(self, media_stats_min_conversation_r_f
186189

187190
self._media_stats_min_conversation_r_factor = media_stats_min_conversation_r_factor
188191

192+
@property
193+
def originating_direction(self):
194+
"""
195+
Gets the originating_direction of this AnalyticsConversation.
196+
The original direction of the conversation
197+
198+
:return: The originating_direction of this AnalyticsConversation.
199+
:rtype: str
200+
"""
201+
return self._originating_direction
202+
203+
@originating_direction.setter
204+
def originating_direction(self, originating_direction):
205+
"""
206+
Sets the originating_direction of this AnalyticsConversation.
207+
The original direction of the conversation
208+
209+
:param originating_direction: The originating_direction of this AnalyticsConversation.
210+
:type: str
211+
"""
212+
allowed_values = ["inbound", "outbound"]
213+
if originating_direction.lower() not in map(str.lower, allowed_values):
214+
# print "Invalid value for originating_direction -> " + originating_direction
215+
self._originating_direction = "outdated_sdk_version"
216+
else:
217+
self._originating_direction = originating_direction
218+
189219
@property
190220
def participants(self):
191221
"""

build/PureCloudPlatformClientV2/models/analytics_query_predicate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def dimension(self, dimension):
115115
:param dimension: The dimension of this AnalyticsQueryPredicate.
116116
:type: str
117117
"""
118-
allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "participantId", "participantName", "direction", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "requestedRoutingUserIds", "purpose", "participantType", "segmentType", "disconnectType", "errorCode", "conversationEnd", "segmentEnd", "externalContactId", "externalOrganizationId", "convertedFrom", "convertedTo", "divisionId", "flaggedReason", "stationId", "edgeId", "dnis", "ani", "outboundCampaignId", "outboundContactId", "outboundContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "addressSelf", "addressOther", "subject", "messageType", "peerId", "scriptId", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime", "surveyId", "surveyFormContextId", "surveyFormId", "surveyFormName", "surveyAnswerId", "surveyQuestionId", "surveyQuestionGroupId", "surveyPromoterScore", "surveyCompletedDate", "surveyErrorReason", "surveyPreviousStatus", "surveyStatus", "systemPresence", "organizationPresenceId", "routingStatus", "flowId", "flowName", "flowVersion", "flowType", "exitReason", "transferType", "transferTargetName", "transferTargetAddress", "issuedCallback", "startingLanguage", "endingLanguage", "flowOutcomeId", "flowOutcomeValue", "flowOutcome", "minMos", "mediaStatsMinConversationMos", "minRFactor", "mediaStatsMinConversationRFactor"]
118+
allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "participantId", "participantName", "direction", "originatingDirection", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "requestedRoutingUserIds", "purpose", "participantType", "segmentType", "disconnectType", "errorCode", "conversationEnd", "segmentEnd", "externalContactId", "externalOrganizationId", "convertedFrom", "convertedTo", "divisionId", "flaggedReason", "stationId", "edgeId", "dnis", "ani", "sessionDnis", "outboundCampaignId", "outboundContactId", "outboundContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "addressSelf", "addressOther", "subject", "messageType", "peerId", "scriptId", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime", "surveyId", "surveyFormContextId", "surveyFormId", "surveyFormName", "surveyAnswerId", "surveyQuestionId", "surveyQuestionGroupId", "surveyPromoterScore", "surveyCompletedDate", "surveyErrorReason", "surveyPreviousStatus", "surveyStatus", "systemPresence", "organizationPresenceId", "routingStatus", "flowId", "flowName", "flowVersion", "flowType", "exitReason", "transferType", "transferTargetName", "transferTargetAddress", "issuedCallback", "startingLanguage", "endingLanguage", "flowOutcomeId", "flowOutcomeValue", "flowOutcome", "minMos", "mediaStatsMinConversationMos", "minRFactor", "mediaStatsMinConversationRFactor"]
119119
if dimension.lower() not in map(str.lower, allowed_values):
120120
# print "Invalid value for dimension -> " + dimension
121121
self._dimension = "outdated_sdk_version"

build/PureCloudPlatformClientV2/models/analytics_session.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(self):
4848
'ani': 'str',
4949
'direction': 'str',
5050
'dnis': 'str',
51+
'session_dnis': 'str',
5152
'outbound_campaign_id': 'str',
5253
'outbound_contact_id': 'str',
5354
'outbound_contact_list_id': 'str',
@@ -91,6 +92,7 @@ def __init__(self):
9192
'ani': 'ani',
9293
'direction': 'direction',
9394
'dnis': 'dnis',
95+
'session_dnis': 'sessionDnis',
9496
'outbound_campaign_id': 'outboundCampaignId',
9597
'outbound_contact_id': 'outboundContactId',
9698
'outbound_contact_list_id': 'outboundContactListId',
@@ -133,6 +135,7 @@ def __init__(self):
133135
self._ani = None
134136
self._direction = None
135137
self._dnis = None
138+
self._session_dnis = None
136139
self._outbound_campaign_id = None
137140
self._outbound_contact_id = None
138141
self._outbound_contact_list_id = None
@@ -387,7 +390,7 @@ def direction(self, direction):
387390
def dnis(self):
388391
"""
389392
Gets the dnis of this AnalyticsSession.
390-
Automatic Number Identification (caller's number)
393+
Dialed number identification service (number dialed by the calling party)
391394
392395
:return: The dnis of this AnalyticsSession.
393396
:rtype: str
@@ -398,14 +401,37 @@ def dnis(self):
398401
def dnis(self, dnis):
399402
"""
400403
Sets the dnis of this AnalyticsSession.
401-
Automatic Number Identification (caller's number)
404+
Dialed number identification service (number dialed by the calling party)
402405
403406
:param dnis: The dnis of this AnalyticsSession.
404407
:type: str
405408
"""
406409

407410
self._dnis = dnis
408411

412+
@property
413+
def session_dnis(self):
414+
"""
415+
Gets the session_dnis of this AnalyticsSession.
416+
Dialed number for the current session; this can be different from dnis, e.g. if the call was transferred
417+
418+
:return: The session_dnis of this AnalyticsSession.
419+
:rtype: str
420+
"""
421+
return self._session_dnis
422+
423+
@session_dnis.setter
424+
def session_dnis(self, session_dnis):
425+
"""
426+
Sets the session_dnis of this AnalyticsSession.
427+
Dialed number for the current session; this can be different from dnis, e.g. if the call was transferred
428+
429+
:param session_dnis: The session_dnis of this AnalyticsSession.
430+
:type: str
431+
"""
432+
433+
self._session_dnis = session_dnis
434+
409435
@property
410436
def outbound_campaign_id(self):
411437
"""

0 commit comments

Comments
 (0)