@@ -793,87 +793,6 @@ def get_externalcontacts_contacts(self, **kwargs):
793793 callback = params .get ('callback' ))
794794 return response
795795
796- def get_externalcontacts_contacts_schema (self , schema_id , ** kwargs ):
797- """
798- Get a schema
799-
800-
801- This method makes a synchronous HTTP request by default. To make an
802- asynchronous HTTP request, please define a `callback` function
803- to be invoked when receiving the response.
804- >>> def callback_function(response):
805- >>> pprint(response)
806- >>>
807- >>> thread = api.get_externalcontacts_contacts_schema(schema_id, callback=callback_function)
808-
809- :param callback function: The callback function
810- for asynchronous request. (optional)
811- :param str schema_id: Schema ID (required)
812- :param list[str] expand: Which fields, if any, to expand. Expand 'jsonSchema.definitions' to get a readonly schema for data validation.
813- :return: DataSchema
814- If the method is called asynchronously,
815- returns the request thread.
816- """
817-
818- all_params = ['schema_id' , 'expand' ]
819- all_params .append ('callback' )
820-
821- params = locals ()
822- for key , val in iteritems (params ['kwargs' ]):
823- if key not in all_params :
824- raise TypeError (
825- "Got an unexpected keyword argument '%s'"
826- " to method get_externalcontacts_contacts_schema" % key
827- )
828- params [key ] = val
829- del params ['kwargs' ]
830-
831- # verify the required parameter 'schema_id' is set
832- if ('schema_id' not in params ) or (params ['schema_id' ] is None ):
833- raise ValueError ("Missing the required parameter `schema_id` when calling `get_externalcontacts_contacts_schema`" )
834-
835-
836- resource_path = '/api/v2/externalcontacts/contacts/schemas/{schemaId}' .replace ('{format}' , 'json' )
837- path_params = {}
838- if 'schema_id' in params :
839- path_params ['schemaId' ] = params ['schema_id' ]
840-
841- query_params = {}
842- if 'expand' in params :
843- query_params ['expand' ] = params ['expand' ]
844-
845- header_params = {}
846-
847- form_params = []
848- local_var_files = {}
849-
850- body_params = None
851-
852- # HTTP header `Accept`
853- header_params ['Accept' ] = self .api_client .\
854- select_header_accept (['application/json' ])
855- if not header_params ['Accept' ]:
856- del header_params ['Accept' ]
857-
858- # HTTP header `Content-Type`
859- header_params ['Content-Type' ] = self .api_client .\
860- select_header_content_type (['application/json' ])
861-
862- # Authentication setting
863- auth_settings = ['PureCloud Auth' ]
864-
865- response = self .api_client .call_api (resource_path , 'GET' ,
866- path_params ,
867- query_params ,
868- header_params ,
869- body = body_params ,
870- post_params = form_params ,
871- files = local_var_files ,
872- response_type = 'DataSchema' ,
873- auth_settings = auth_settings ,
874- callback = params .get ('callback' ))
875- return response
876-
877796 def get_externalcontacts_organization (self , external_organization_id , ** kwargs ):
878797 """
879798 Fetch an external organization
@@ -1402,87 +1321,6 @@ def get_externalcontacts_organizations(self, **kwargs):
14021321 callback = params .get ('callback' ))
14031322 return response
14041323
1405- def get_externalcontacts_organizations_schema (self , schema_id , ** kwargs ):
1406- """
1407- Get a schema
1408-
1409-
1410- This method makes a synchronous HTTP request by default. To make an
1411- asynchronous HTTP request, please define a `callback` function
1412- to be invoked when receiving the response.
1413- >>> def callback_function(response):
1414- >>> pprint(response)
1415- >>>
1416- >>> thread = api.get_externalcontacts_organizations_schema(schema_id, callback=callback_function)
1417-
1418- :param callback function: The callback function
1419- for asynchronous request. (optional)
1420- :param str schema_id: Schema ID (required)
1421- :param list[str] expand: Which fields, if any, to expand. Expand 'jsonSchema.definitions' to get a readonly schema for data validation.
1422- :return: DataSchema
1423- If the method is called asynchronously,
1424- returns the request thread.
1425- """
1426-
1427- all_params = ['schema_id' , 'expand' ]
1428- all_params .append ('callback' )
1429-
1430- params = locals ()
1431- for key , val in iteritems (params ['kwargs' ]):
1432- if key not in all_params :
1433- raise TypeError (
1434- "Got an unexpected keyword argument '%s'"
1435- " to method get_externalcontacts_organizations_schema" % key
1436- )
1437- params [key ] = val
1438- del params ['kwargs' ]
1439-
1440- # verify the required parameter 'schema_id' is set
1441- if ('schema_id' not in params ) or (params ['schema_id' ] is None ):
1442- raise ValueError ("Missing the required parameter `schema_id` when calling `get_externalcontacts_organizations_schema`" )
1443-
1444-
1445- resource_path = '/api/v2/externalcontacts/organizations/schemas/{schemaId}' .replace ('{format}' , 'json' )
1446- path_params = {}
1447- if 'schema_id' in params :
1448- path_params ['schemaId' ] = params ['schema_id' ]
1449-
1450- query_params = {}
1451- if 'expand' in params :
1452- query_params ['expand' ] = params ['expand' ]
1453-
1454- header_params = {}
1455-
1456- form_params = []
1457- local_var_files = {}
1458-
1459- body_params = None
1460-
1461- # HTTP header `Accept`
1462- header_params ['Accept' ] = self .api_client .\
1463- select_header_accept (['application/json' ])
1464- if not header_params ['Accept' ]:
1465- del header_params ['Accept' ]
1466-
1467- # HTTP header `Content-Type`
1468- header_params ['Content-Type' ] = self .api_client .\
1469- select_header_content_type (['application/json' ])
1470-
1471- # Authentication setting
1472- auth_settings = ['PureCloud Auth' ]
1473-
1474- response = self .api_client .call_api (resource_path , 'GET' ,
1475- path_params ,
1476- query_params ,
1477- header_params ,
1478- body = body_params ,
1479- post_params = form_params ,
1480- files = local_var_files ,
1481- response_type = 'DataSchema' ,
1482- auth_settings = auth_settings ,
1483- callback = params .get ('callback' ))
1484- return response
1485-
14861324 def get_externalcontacts_relationship (self , relationship_id , ** kwargs ):
14871325 """
14881326 Fetch a relationship
@@ -2200,90 +2038,6 @@ def put_externalcontacts_contact_note(self, contact_id, note_id, **kwargs):
22002038 callback = params .get ('callback' ))
22012039 return response
22022040
2203- def put_externalcontacts_contacts_schema (self , schema_id , body , ** kwargs ):
2204- """
2205- Update a schema
2206-
2207-
2208- This method makes a synchronous HTTP request by default. To make an
2209- asynchronous HTTP request, please define a `callback` function
2210- to be invoked when receiving the response.
2211- >>> def callback_function(response):
2212- >>> pprint(response)
2213- >>>
2214- >>> thread = api.put_externalcontacts_contacts_schema(schema_id, body, callback=callback_function)
2215-
2216- :param callback function: The callback function
2217- for asynchronous request. (optional)
2218- :param str schema_id: Schema ID (required)
2219- :param DataSchema body: Data Schema (required)
2220- :return: DataSchema
2221- If the method is called asynchronously,
2222- returns the request thread.
2223- """
2224-
2225- all_params = ['schema_id' , 'body' ]
2226- all_params .append ('callback' )
2227-
2228- params = locals ()
2229- for key , val in iteritems (params ['kwargs' ]):
2230- if key not in all_params :
2231- raise TypeError (
2232- "Got an unexpected keyword argument '%s'"
2233- " to method put_externalcontacts_contacts_schema" % key
2234- )
2235- params [key ] = val
2236- del params ['kwargs' ]
2237-
2238- # verify the required parameter 'schema_id' is set
2239- if ('schema_id' not in params ) or (params ['schema_id' ] is None ):
2240- raise ValueError ("Missing the required parameter `schema_id` when calling `put_externalcontacts_contacts_schema`" )
2241- # verify the required parameter 'body' is set
2242- if ('body' not in params ) or (params ['body' ] is None ):
2243- raise ValueError ("Missing the required parameter `body` when calling `put_externalcontacts_contacts_schema`" )
2244-
2245-
2246- resource_path = '/api/v2/externalcontacts/contacts/schemas/{schemaId}' .replace ('{format}' , 'json' )
2247- path_params = {}
2248- if 'schema_id' in params :
2249- path_params ['schemaId' ] = params ['schema_id' ]
2250-
2251- query_params = {}
2252-
2253- header_params = {}
2254-
2255- form_params = []
2256- local_var_files = {}
2257-
2258- body_params = None
2259- if 'body' in params :
2260- body_params = params ['body' ]
2261-
2262- # HTTP header `Accept`
2263- header_params ['Accept' ] = self .api_client .\
2264- select_header_accept (['application/json' ])
2265- if not header_params ['Accept' ]:
2266- del header_params ['Accept' ]
2267-
2268- # HTTP header `Content-Type`
2269- header_params ['Content-Type' ] = self .api_client .\
2270- select_header_content_type (['application/json' ])
2271-
2272- # Authentication setting
2273- auth_settings = ['PureCloud Auth' ]
2274-
2275- response = self .api_client .call_api (resource_path , 'PUT' ,
2276- path_params ,
2277- query_params ,
2278- header_params ,
2279- body = body_params ,
2280- post_params = form_params ,
2281- files = local_var_files ,
2282- response_type = 'DataSchema' ,
2283- auth_settings = auth_settings ,
2284- callback = params .get ('callback' ))
2285- return response
2286-
22872041 def put_externalcontacts_conversation (self , conversation_id , ** kwargs ):
22882042 """
22892043 Associate an external contact with a conversation
@@ -2533,90 +2287,6 @@ def put_externalcontacts_organization_note(self, external_organization_id, note_
25332287 callback = params .get ('callback' ))
25342288 return response
25352289
2536- def put_externalcontacts_organizations_schema (self , schema_id , body , ** kwargs ):
2537- """
2538- Update a schema
2539-
2540-
2541- This method makes a synchronous HTTP request by default. To make an
2542- asynchronous HTTP request, please define a `callback` function
2543- to be invoked when receiving the response.
2544- >>> def callback_function(response):
2545- >>> pprint(response)
2546- >>>
2547- >>> thread = api.put_externalcontacts_organizations_schema(schema_id, body, callback=callback_function)
2548-
2549- :param callback function: The callback function
2550- for asynchronous request. (optional)
2551- :param str schema_id: Schema ID (required)
2552- :param DataSchema body: Data Schema (required)
2553- :return: DataSchema
2554- If the method is called asynchronously,
2555- returns the request thread.
2556- """
2557-
2558- all_params = ['schema_id' , 'body' ]
2559- all_params .append ('callback' )
2560-
2561- params = locals ()
2562- for key , val in iteritems (params ['kwargs' ]):
2563- if key not in all_params :
2564- raise TypeError (
2565- "Got an unexpected keyword argument '%s'"
2566- " to method put_externalcontacts_organizations_schema" % key
2567- )
2568- params [key ] = val
2569- del params ['kwargs' ]
2570-
2571- # verify the required parameter 'schema_id' is set
2572- if ('schema_id' not in params ) or (params ['schema_id' ] is None ):
2573- raise ValueError ("Missing the required parameter `schema_id` when calling `put_externalcontacts_organizations_schema`" )
2574- # verify the required parameter 'body' is set
2575- if ('body' not in params ) or (params ['body' ] is None ):
2576- raise ValueError ("Missing the required parameter `body` when calling `put_externalcontacts_organizations_schema`" )
2577-
2578-
2579- resource_path = '/api/v2/externalcontacts/organizations/schemas/{schemaId}' .replace ('{format}' , 'json' )
2580- path_params = {}
2581- if 'schema_id' in params :
2582- path_params ['schemaId' ] = params ['schema_id' ]
2583-
2584- query_params = {}
2585-
2586- header_params = {}
2587-
2588- form_params = []
2589- local_var_files = {}
2590-
2591- body_params = None
2592- if 'body' in params :
2593- body_params = params ['body' ]
2594-
2595- # HTTP header `Accept`
2596- header_params ['Accept' ] = self .api_client .\
2597- select_header_accept (['application/json' ])
2598- if not header_params ['Accept' ]:
2599- del header_params ['Accept' ]
2600-
2601- # HTTP header `Content-Type`
2602- header_params ['Content-Type' ] = self .api_client .\
2603- select_header_content_type (['application/json' ])
2604-
2605- # Authentication setting
2606- auth_settings = ['PureCloud Auth' ]
2607-
2608- response = self .api_client .call_api (resource_path , 'PUT' ,
2609- path_params ,
2610- query_params ,
2611- header_params ,
2612- body = body_params ,
2613- post_params = form_params ,
2614- files = local_var_files ,
2615- response_type = 'DataSchema' ,
2616- auth_settings = auth_settings ,
2617- callback = params .get ('callback' ))
2618- return response
2619-
26202290 def put_externalcontacts_relationship (self , relationship_id , ** kwargs ):
26212291 """
26222292 Update a relationship
0 commit comments