@@ -622,6 +622,78 @@ def delete_identityproviders_purecloud(self, **kwargs):
622622 callback = params .get ('callback' ))
623623 return response
624624
625+ def delete_identityproviders_pureengage (self , ** kwargs ):
626+ """
627+ Delete PureEngage Identity Provider
628+
629+
630+ This method makes a synchronous HTTP request by default. To make an
631+ asynchronous HTTP request, please define a `callback` function
632+ to be invoked when receiving the response.
633+ >>> def callback_function(response):
634+ >>> pprint(response)
635+ >>>
636+ >>> thread = api.delete_identityproviders_pureengage(callback=callback_function)
637+
638+ :param callback function: The callback function
639+ for asynchronous request. (optional)
640+ :return: Empty
641+ If the method is called asynchronously,
642+ returns the request thread.
643+ """
644+
645+ all_params = []
646+ all_params .append ('callback' )
647+
648+ params = locals ()
649+ for key , val in iteritems (params ['kwargs' ]):
650+ if key not in all_params :
651+ raise TypeError (
652+ "Got an unexpected keyword argument '%s'"
653+ " to method delete_identityproviders_pureengage" % key
654+ )
655+ params [key ] = val
656+ del params ['kwargs' ]
657+
658+
659+
660+ resource_path = '/api/v2/identityproviders/pureengage' .replace ('{format}' , 'json' )
661+ path_params = {}
662+
663+ query_params = {}
664+
665+ header_params = {}
666+
667+ form_params = []
668+ local_var_files = {}
669+
670+ body_params = None
671+
672+ # HTTP header `Accept`
673+ header_params ['Accept' ] = self .api_client .\
674+ select_header_accept (['application/json' ])
675+ if not header_params ['Accept' ]:
676+ del header_params ['Accept' ]
677+
678+ # HTTP header `Content-Type`
679+ header_params ['Content-Type' ] = self .api_client .\
680+ select_header_content_type (['application/json' ])
681+
682+ # Authentication setting
683+ auth_settings = ['PureCloud OAuth' ]
684+
685+ response = self .api_client .call_api (resource_path , 'DELETE' ,
686+ path_params ,
687+ query_params ,
688+ header_params ,
689+ body = body_params ,
690+ post_params = form_params ,
691+ files = local_var_files ,
692+ response_type = 'Empty' ,
693+ auth_settings = auth_settings ,
694+ callback = params .get ('callback' ))
695+ return response
696+
625697 def delete_identityproviders_salesforce (self , ** kwargs ):
626698 """
627699 Delete Salesforce Identity Provider
@@ -1342,6 +1414,78 @@ def get_identityproviders_purecloud(self, **kwargs):
13421414 callback = params .get ('callback' ))
13431415 return response
13441416
1417+ def get_identityproviders_pureengage (self , ** kwargs ):
1418+ """
1419+ Get PureEngage Identity Provider
1420+
1421+
1422+ This method makes a synchronous HTTP request by default. To make an
1423+ asynchronous HTTP request, please define a `callback` function
1424+ to be invoked when receiving the response.
1425+ >>> def callback_function(response):
1426+ >>> pprint(response)
1427+ >>>
1428+ >>> thread = api.get_identityproviders_pureengage(callback=callback_function)
1429+
1430+ :param callback function: The callback function
1431+ for asynchronous request. (optional)
1432+ :return: PureEnage
1433+ If the method is called asynchronously,
1434+ returns the request thread.
1435+ """
1436+
1437+ all_params = []
1438+ all_params .append ('callback' )
1439+
1440+ params = locals ()
1441+ for key , val in iteritems (params ['kwargs' ]):
1442+ if key not in all_params :
1443+ raise TypeError (
1444+ "Got an unexpected keyword argument '%s'"
1445+ " to method get_identityproviders_pureengage" % key
1446+ )
1447+ params [key ] = val
1448+ del params ['kwargs' ]
1449+
1450+
1451+
1452+ resource_path = '/api/v2/identityproviders/pureengage' .replace ('{format}' , 'json' )
1453+ path_params = {}
1454+
1455+ query_params = {}
1456+
1457+ header_params = {}
1458+
1459+ form_params = []
1460+ local_var_files = {}
1461+
1462+ body_params = None
1463+
1464+ # HTTP header `Accept`
1465+ header_params ['Accept' ] = self .api_client .\
1466+ select_header_accept (['application/json' ])
1467+ if not header_params ['Accept' ]:
1468+ del header_params ['Accept' ]
1469+
1470+ # HTTP header `Content-Type`
1471+ header_params ['Content-Type' ] = self .api_client .\
1472+ select_header_content_type (['application/json' ])
1473+
1474+ # Authentication setting
1475+ auth_settings = ['PureCloud OAuth' ]
1476+
1477+ response = self .api_client .call_api (resource_path , 'GET' ,
1478+ path_params ,
1479+ query_params ,
1480+ header_params ,
1481+ body = body_params ,
1482+ post_params = form_params ,
1483+ files = local_var_files ,
1484+ response_type = 'PureEnage' ,
1485+ auth_settings = auth_settings ,
1486+ callback = params .get ('callback' ))
1487+ return response
1488+
13451489 def get_identityproviders_salesforce (self , ** kwargs ):
13461490 """
13471491 Get Salesforce Identity Provider
@@ -2038,6 +2182,84 @@ def put_identityproviders_purecloud(self, body, **kwargs):
20382182 callback = params .get ('callback' ))
20392183 return response
20402184
2185+ def put_identityproviders_pureengage (self , body , ** kwargs ):
2186+ """
2187+ Update/Create PureEngage Identity Provider
2188+
2189+
2190+ This method makes a synchronous HTTP request by default. To make an
2191+ asynchronous HTTP request, please define a `callback` function
2192+ to be invoked when receiving the response.
2193+ >>> def callback_function(response):
2194+ >>> pprint(response)
2195+ >>>
2196+ >>> thread = api.put_identityproviders_pureengage(body, callback=callback_function)
2197+
2198+ :param callback function: The callback function
2199+ for asynchronous request. (optional)
2200+ :param PureEnage body: Provider (required)
2201+ :return: OAuthProvider
2202+ If the method is called asynchronously,
2203+ returns the request thread.
2204+ """
2205+
2206+ all_params = ['body' ]
2207+ all_params .append ('callback' )
2208+
2209+ params = locals ()
2210+ for key , val in iteritems (params ['kwargs' ]):
2211+ if key not in all_params :
2212+ raise TypeError (
2213+ "Got an unexpected keyword argument '%s'"
2214+ " to method put_identityproviders_pureengage" % key
2215+ )
2216+ params [key ] = val
2217+ del params ['kwargs' ]
2218+
2219+ # verify the required parameter 'body' is set
2220+ if ('body' not in params ) or (params ['body' ] is None ):
2221+ raise ValueError ("Missing the required parameter `body` when calling `put_identityproviders_pureengage`" )
2222+
2223+
2224+ resource_path = '/api/v2/identityproviders/pureengage' .replace ('{format}' , 'json' )
2225+ path_params = {}
2226+
2227+ query_params = {}
2228+
2229+ header_params = {}
2230+
2231+ form_params = []
2232+ local_var_files = {}
2233+
2234+ body_params = None
2235+ if 'body' in params :
2236+ body_params = params ['body' ]
2237+
2238+ # HTTP header `Accept`
2239+ header_params ['Accept' ] = self .api_client .\
2240+ select_header_accept (['application/json' ])
2241+ if not header_params ['Accept' ]:
2242+ del header_params ['Accept' ]
2243+
2244+ # HTTP header `Content-Type`
2245+ header_params ['Content-Type' ] = self .api_client .\
2246+ select_header_content_type (['application/json' ])
2247+
2248+ # Authentication setting
2249+ auth_settings = ['PureCloud OAuth' ]
2250+
2251+ response = self .api_client .call_api (resource_path , 'PUT' ,
2252+ path_params ,
2253+ query_params ,
2254+ header_params ,
2255+ body = body_params ,
2256+ post_params = form_params ,
2257+ files = local_var_files ,
2258+ response_type = 'OAuthProvider' ,
2259+ auth_settings = auth_settings ,
2260+ callback = params .get ('callback' ))
2261+ return response
2262+
20412263 def put_identityproviders_salesforce (self , body , ** kwargs ):
20422264 """
20432265 Update/Create Salesforce Identity Provider
0 commit comments