@@ -2362,6 +2362,78 @@ def get_routing_queues_me(self, **kwargs):
23622362 callback = params .get ('callback' ))
23632363 return response
23642364
2365+ def get_routing_settings_contactcenter (self , ** kwargs ):
2366+ """
2367+ Get Contact Center Settings
2368+
2369+
2370+ This method makes a synchronous HTTP request by default. To make an
2371+ asynchronous HTTP request, please define a `callback` function
2372+ to be invoked when receiving the response.
2373+ >>> def callback_function(response):
2374+ >>> pprint(response)
2375+ >>>
2376+ >>> thread = api.get_routing_settings_contactcenter(callback=callback_function)
2377+
2378+ :param callback function: The callback function
2379+ for asynchronous request. (optional)
2380+ :return: ContactCenterSettings
2381+ If the method is called asynchronously,
2382+ returns the request thread.
2383+ """
2384+
2385+ all_params = []
2386+ all_params .append ('callback' )
2387+
2388+ params = locals ()
2389+ for key , val in iteritems (params ['kwargs' ]):
2390+ if key not in all_params :
2391+ raise TypeError (
2392+ "Got an unexpected keyword argument '%s'"
2393+ " to method get_routing_settings_contactcenter" % key
2394+ )
2395+ params [key ] = val
2396+ del params ['kwargs' ]
2397+
2398+
2399+
2400+ resource_path = '/api/v2/routing/settings/contactcenter' .replace ('{format}' , 'json' )
2401+ path_params = {}
2402+
2403+ query_params = {}
2404+
2405+ header_params = {}
2406+
2407+ form_params = []
2408+ local_var_files = {}
2409+
2410+ body_params = None
2411+
2412+ # HTTP header `Accept`
2413+ header_params ['Accept' ] = self .api_client .\
2414+ select_header_accept (['application/json' ])
2415+ if not header_params ['Accept' ]:
2416+ del header_params ['Accept' ]
2417+
2418+ # HTTP header `Content-Type`
2419+ header_params ['Content-Type' ] = self .api_client .\
2420+ select_header_content_type (['application/json' ])
2421+
2422+ # Authentication setting
2423+ auth_settings = ['PureCloud OAuth' ]
2424+
2425+ response = self .api_client .call_api (resource_path , 'GET' ,
2426+ path_params ,
2427+ query_params ,
2428+ header_params ,
2429+ body = body_params ,
2430+ post_params = form_params ,
2431+ files = local_var_files ,
2432+ response_type = 'ContactCenterSettings' ,
2433+ auth_settings = auth_settings ,
2434+ callback = params .get ('callback' ))
2435+ return response
2436+
23652437 def get_routing_skill (self , skill_id , ** kwargs ):
23662438 """
23672439 Get Routing Skill
@@ -3526,6 +3598,84 @@ def patch_routing_queue_users(self, queue_id, body, **kwargs):
35263598 callback = params .get ('callback' ))
35273599 return response
35283600
3601+ def patch_routing_settings_contactcenter (self , body , ** kwargs ):
3602+ """
3603+ Update Contact Center Settings
3604+
3605+
3606+ This method makes a synchronous HTTP request by default. To make an
3607+ asynchronous HTTP request, please define a `callback` function
3608+ to be invoked when receiving the response.
3609+ >>> def callback_function(response):
3610+ >>> pprint(response)
3611+ >>>
3612+ >>> thread = api.patch_routing_settings_contactcenter(body, callback=callback_function)
3613+
3614+ :param callback function: The callback function
3615+ for asynchronous request. (optional)
3616+ :param ContactCenterSettings body: Contact Center Settings (required)
3617+ :return: None
3618+ If the method is called asynchronously,
3619+ returns the request thread.
3620+ """
3621+
3622+ all_params = ['body' ]
3623+ all_params .append ('callback' )
3624+
3625+ params = locals ()
3626+ for key , val in iteritems (params ['kwargs' ]):
3627+ if key not in all_params :
3628+ raise TypeError (
3629+ "Got an unexpected keyword argument '%s'"
3630+ " to method patch_routing_settings_contactcenter" % key
3631+ )
3632+ params [key ] = val
3633+ del params ['kwargs' ]
3634+
3635+ # verify the required parameter 'body' is set
3636+ if ('body' not in params ) or (params ['body' ] is None ):
3637+ raise ValueError ("Missing the required parameter `body` when calling `patch_routing_settings_contactcenter`" )
3638+
3639+
3640+ resource_path = '/api/v2/routing/settings/contactcenter' .replace ('{format}' , 'json' )
3641+ path_params = {}
3642+
3643+ query_params = {}
3644+
3645+ header_params = {}
3646+
3647+ form_params = []
3648+ local_var_files = {}
3649+
3650+ body_params = None
3651+ if 'body' in params :
3652+ body_params = params ['body' ]
3653+
3654+ # HTTP header `Accept`
3655+ header_params ['Accept' ] = self .api_client .\
3656+ select_header_accept (['application/json' ])
3657+ if not header_params ['Accept' ]:
3658+ del header_params ['Accept' ]
3659+
3660+ # HTTP header `Content-Type`
3661+ header_params ['Content-Type' ] = self .api_client .\
3662+ select_header_content_type (['application/json' ])
3663+
3664+ # Authentication setting
3665+ auth_settings = ['PureCloud OAuth' ]
3666+
3667+ response = self .api_client .call_api (resource_path , 'PATCH' ,
3668+ path_params ,
3669+ query_params ,
3670+ header_params ,
3671+ body = body_params ,
3672+ post_params = form_params ,
3673+ files = local_var_files ,
3674+ response_type = None ,
3675+ auth_settings = auth_settings ,
3676+ callback = params .get ('callback' ))
3677+ return response
3678+
35293679 def patch_user_routinglanguage (self , user_id , language_id , body , ** kwargs ):
35303680 """
35313681 Update routing language proficiency or state.
0 commit comments