Skip to content

Commit e531b12

Browse files
author
InIn Devops
committed
25.0.0
1 parent f8a8845 commit e531b12

295 files changed

Lines changed: 5570 additions & 3292 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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@
199199
from .models.certificate_authority_entity_listing import CertificateAuthorityEntityListing
200200
from .models.certificate_details import CertificateDetails
201201
from .models.change import Change
202+
from .models.change_my_password_request import ChangeMyPasswordRequest
203+
from .models.change_password_request import ChangePasswordRequest
202204
from .models.channel import Channel
203205
from .models.channel_entity_listing import ChannelEntityListing
204206
from .models.channel_topic import ChannelTopic
@@ -926,8 +928,10 @@
926928
from .models.subscriber_response import SubscriberResponse
927929
from .models.suggest_search_criteria import SuggestSearchCriteria
928930
from .models.suggest_search_request import SuggestSearchRequest
931+
from .models.survey_assignment import SurveyAssignment
929932
from .models.survey_form import SurveyForm
930933
from .models.survey_form_entity_listing import SurveyFormEntityListing
934+
from .models.survey_form_uri_reference import SurveyFormUriReference
931935
from .models.system_presence import SystemPresence
932936
from .models.system_prompt import SystemPrompt
933937
from .models.system_prompt_asset import SystemPromptAsset

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'] = '24.0.0'
115+
header_params['purecloud-sdk'] = '25.0.0'
116116

117117
# path parameters
118118
if path_params:

build/PureCloudPlatformClientV2/apis/architect_api.py

Lines changed: 984 additions & 165 deletions
Large diffs are not rendered by default.

build/PureCloudPlatformClientV2/apis/quality_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3484,7 +3484,7 @@ def post_quality_publishedforms(self, body, **kwargs):
34843484
34853485
:param callback function: The callback function
34863486
for asynchronous request. (optional)
3487-
:param EvaluationForm body: Evaluation form (required)
3487+
:param PublishForm body: Publish request containing id of form to publish (required)
34883488
:return: EvaluationForm
34893489
If the method is called asynchronously,
34903490
returns the request thread.
@@ -3562,7 +3562,7 @@ def post_quality_publishedforms_evaluations(self, body, **kwargs):
35623562
35633563
:param callback function: The callback function
35643564
for asynchronous request. (optional)
3565-
:param PublishForm body: Evaluation form (required)
3565+
:param PublishForm body: Publish request containing id of form to publish (required)
35663566
:return: EvaluationForm
35673567
If the method is called asynchronously,
35683568
returns the request thread.

build/PureCloudPlatformClientV2/apis/users_api.py

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,6 +2830,90 @@ def post_user_invite(self, user_id, **kwargs):
28302830
callback=params.get('callback'))
28312831
return response
28322832

2833+
def post_user_password(self, user_id, body, **kwargs):
2834+
"""
2835+
Change a users password
2836+
2837+
2838+
This method makes a synchronous HTTP request by default. To make an
2839+
asynchronous HTTP request, please define a `callback` function
2840+
to be invoked when receiving the response.
2841+
>>> def callback_function(response):
2842+
>>> pprint(response)
2843+
>>>
2844+
>>> thread = api.post_user_password(user_id, body, callback=callback_function)
2845+
2846+
:param callback function: The callback function
2847+
for asynchronous request. (optional)
2848+
:param str user_id: User ID (required)
2849+
:param ChangePasswordRequest body: Password (required)
2850+
:return: None
2851+
If the method is called asynchronously,
2852+
returns the request thread.
2853+
"""
2854+
2855+
all_params = ['user_id', 'body']
2856+
all_params.append('callback')
2857+
2858+
params = locals()
2859+
for key, val in iteritems(params['kwargs']):
2860+
if key not in all_params:
2861+
raise TypeError(
2862+
"Got an unexpected keyword argument '%s'"
2863+
" to method post_user_password" % key
2864+
)
2865+
params[key] = val
2866+
del params['kwargs']
2867+
2868+
# verify the required parameter 'user_id' is set
2869+
if ('user_id' not in params) or (params['user_id'] is None):
2870+
raise ValueError("Missing the required parameter `user_id` when calling `post_user_password`")
2871+
# verify the required parameter 'body' is set
2872+
if ('body' not in params) or (params['body'] is None):
2873+
raise ValueError("Missing the required parameter `body` when calling `post_user_password`")
2874+
2875+
2876+
resource_path = '/api/v2/users/{userId}/password'.replace('{format}', 'json')
2877+
path_params = {}
2878+
if 'user_id' in params:
2879+
path_params['userId'] = params['user_id']
2880+
2881+
query_params = {}
2882+
2883+
header_params = {}
2884+
2885+
form_params = []
2886+
local_var_files = {}
2887+
2888+
body_params = None
2889+
if 'body' in params:
2890+
body_params = params['body']
2891+
2892+
# HTTP header `Accept`
2893+
header_params['Accept'] = self.api_client.\
2894+
select_header_accept(['application/json'])
2895+
if not header_params['Accept']:
2896+
del header_params['Accept']
2897+
2898+
# HTTP header `Content-Type`
2899+
header_params['Content-Type'] = self.api_client.\
2900+
select_header_content_type(['application/json'])
2901+
2902+
# Authentication setting
2903+
auth_settings = ['PureCloud Auth']
2904+
2905+
response = self.api_client.call_api(resource_path, 'POST',
2906+
path_params,
2907+
query_params,
2908+
header_params,
2909+
body=body_params,
2910+
post_params=form_params,
2911+
files=local_var_files,
2912+
response_type=None,
2913+
auth_settings=auth_settings,
2914+
callback=params.get('callback'))
2915+
return response
2916+
28332917
def post_user_routingskills(self, user_id, body, **kwargs):
28342918
"""
28352919
Add routing skill to user
@@ -2992,6 +3076,84 @@ def post_users(self, body, **kwargs):
29923076
callback=params.get('callback'))
29933077
return response
29943078

3079+
def post_users_me_password(self, body, **kwargs):
3080+
"""
3081+
Change your password
3082+
3083+
3084+
This method makes a synchronous HTTP request by default. To make an
3085+
asynchronous HTTP request, please define a `callback` function
3086+
to be invoked when receiving the response.
3087+
>>> def callback_function(response):
3088+
>>> pprint(response)
3089+
>>>
3090+
>>> thread = api.post_users_me_password(body, callback=callback_function)
3091+
3092+
:param callback function: The callback function
3093+
for asynchronous request. (optional)
3094+
:param ChangeMyPasswordRequest body: Password (required)
3095+
:return: None
3096+
If the method is called asynchronously,
3097+
returns the request thread.
3098+
"""
3099+
3100+
all_params = ['body']
3101+
all_params.append('callback')
3102+
3103+
params = locals()
3104+
for key, val in iteritems(params['kwargs']):
3105+
if key not in all_params:
3106+
raise TypeError(
3107+
"Got an unexpected keyword argument '%s'"
3108+
" to method post_users_me_password" % key
3109+
)
3110+
params[key] = val
3111+
del params['kwargs']
3112+
3113+
# verify the required parameter 'body' is set
3114+
if ('body' not in params) or (params['body'] is None):
3115+
raise ValueError("Missing the required parameter `body` when calling `post_users_me_password`")
3116+
3117+
3118+
resource_path = '/api/v2/users/me/password'.replace('{format}', 'json')
3119+
path_params = {}
3120+
3121+
query_params = {}
3122+
3123+
header_params = {}
3124+
3125+
form_params = []
3126+
local_var_files = {}
3127+
3128+
body_params = None
3129+
if 'body' in params:
3130+
body_params = params['body']
3131+
3132+
# HTTP header `Accept`
3133+
header_params['Accept'] = self.api_client.\
3134+
select_header_accept(['application/json'])
3135+
if not header_params['Accept']:
3136+
del header_params['Accept']
3137+
3138+
# HTTP header `Content-Type`
3139+
header_params['Content-Type'] = self.api_client.\
3140+
select_header_content_type(['application/json'])
3141+
3142+
# Authentication setting
3143+
auth_settings = ['PureCloud Auth']
3144+
3145+
response = self.api_client.call_api(resource_path, 'POST',
3146+
path_params,
3147+
query_params,
3148+
header_params,
3149+
body=body_params,
3150+
post_params=form_params,
3151+
files=local_var_files,
3152+
response_type=None,
3153+
auth_settings=auth_settings,
3154+
callback=params.get('callback'))
3155+
return response
3156+
29953157
def post_users_search(self, body, **kwargs):
29963158
"""
29973159
Search users

build/PureCloudPlatformClientV2/apis/web_chat_api.py

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -496,84 +496,6 @@ def post_webchat_deployments(self, body, **kwargs):
496496
callback=params.get('callback'))
497497
return response
498498

499-
def post_webchat_settings(self, body, **kwargs):
500-
"""
501-
Create WebChat deployment settings
502-
503-
504-
This method makes a synchronous HTTP request by default. To make an
505-
asynchronous HTTP request, please define a `callback` function
506-
to be invoked when receiving the response.
507-
>>> def callback_function(response):
508-
>>> pprint(response)
509-
>>>
510-
>>> thread = api.post_webchat_settings(body, callback=callback_function)
511-
512-
:param callback function: The callback function
513-
for asynchronous request. (optional)
514-
:param WebChatSettings body: webChatSettings (required)
515-
:return: WebChatSettings
516-
If the method is called asynchronously,
517-
returns the request thread.
518-
"""
519-
520-
all_params = ['body']
521-
all_params.append('callback')
522-
523-
params = locals()
524-
for key, val in iteritems(params['kwargs']):
525-
if key not in all_params:
526-
raise TypeError(
527-
"Got an unexpected keyword argument '%s'"
528-
" to method post_webchat_settings" % key
529-
)
530-
params[key] = val
531-
del params['kwargs']
532-
533-
# verify the required parameter 'body' is set
534-
if ('body' not in params) or (params['body'] is None):
535-
raise ValueError("Missing the required parameter `body` when calling `post_webchat_settings`")
536-
537-
538-
resource_path = '/api/v2/webchat/settings'.replace('{format}', 'json')
539-
path_params = {}
540-
541-
query_params = {}
542-
543-
header_params = {}
544-
545-
form_params = []
546-
local_var_files = {}
547-
548-
body_params = None
549-
if 'body' in params:
550-
body_params = params['body']
551-
552-
# HTTP header `Accept`
553-
header_params['Accept'] = self.api_client.\
554-
select_header_accept(['application/json'])
555-
if not header_params['Accept']:
556-
del header_params['Accept']
557-
558-
# HTTP header `Content-Type`
559-
header_params['Content-Type'] = self.api_client.\
560-
select_header_content_type(['application/json'])
561-
562-
# Authentication setting
563-
auth_settings = ['PureCloud Auth']
564-
565-
response = self.api_client.call_api(resource_path, 'POST',
566-
path_params,
567-
query_params,
568-
header_params,
569-
body=body_params,
570-
post_params=form_params,
571-
files=local_var_files,
572-
response_type='WebChatSettings',
573-
auth_settings=auth_settings,
574-
callback=params.get('callback'))
575-
return response
576-
577499
def put_webchat_deployment(self, deployment_id, body, **kwargs):
578500
"""
579501
Update a WebChat deployment

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

build/PureCloudPlatformClientV2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@
199199
from .certificate_authority_entity_listing import CertificateAuthorityEntityListing
200200
from .certificate_details import CertificateDetails
201201
from .change import Change
202+
from .change_my_password_request import ChangeMyPasswordRequest
203+
from .change_password_request import ChangePasswordRequest
202204
from .channel import Channel
203205
from .channel_entity_listing import ChannelEntityListing
204206
from .channel_topic import ChannelTopic
@@ -926,8 +928,10 @@
926928
from .subscriber_response import SubscriberResponse
927929
from .suggest_search_criteria import SuggestSearchCriteria
928930
from .suggest_search_request import SuggestSearchRequest
931+
from .survey_assignment import SurveyAssignment
929932
from .survey_form import SurveyForm
930933
from .survey_form_entity_listing import SurveyFormEntityListing
934+
from .survey_form_uri_reference import SurveyFormUriReference
931935
from .system_presence import SystemPresence
932936
from .system_prompt import SystemPrompt
933937
from .system_prompt_asset import SystemPromptAsset

0 commit comments

Comments
 (0)