@@ -5599,84 +5599,6 @@ def get_telephony_providers_edges_site(self, site_id, **kwargs):
55995599 callback = params .get ('callback' ))
56005600 return response
56015601
5602- def get_telephony_providers_edges_site_autoscalinggroups (self , site_id , ** kwargs ):
5603- """
5604- Gets the basic information about an asg in a specified site
5605-
5606-
5607- This method makes a synchronous HTTP request by default. To make an
5608- asynchronous HTTP request, please define a `callback` function
5609- to be invoked when receiving the response.
5610- >>> def callback_function(response):
5611- >>> pprint(response)
5612- >>>
5613- >>> thread = api.get_telephony_providers_edges_site_autoscalinggroups(site_id, callback=callback_function)
5614-
5615- :param callback function: The callback function
5616- for asynchronous request. (optional)
5617- :param str site_id: Site id associated with the asg (required)
5618- :return: AsgInfoResponse
5619- If the method is called asynchronously,
5620- returns the request thread.
5621- """
5622-
5623- all_params = ['site_id' ]
5624- all_params .append ('callback' )
5625-
5626- params = locals ()
5627- for key , val in iteritems (params ['kwargs' ]):
5628- if key not in all_params :
5629- raise TypeError (
5630- "Got an unexpected keyword argument '%s'"
5631- " to method get_telephony_providers_edges_site_autoscalinggroups" % key
5632- )
5633- params [key ] = val
5634- del params ['kwargs' ]
5635-
5636- # verify the required parameter 'site_id' is set
5637- if ('site_id' not in params ) or (params ['site_id' ] is None ):
5638- raise ValueError ("Missing the required parameter `site_id` when calling `get_telephony_providers_edges_site_autoscalinggroups`" )
5639-
5640-
5641- resource_path = '/api/v2/telephony/providers/edges/sites/{siteId}/autoscalinggroups' .replace ('{format}' , 'json' )
5642- path_params = {}
5643- if 'site_id' in params :
5644- path_params ['siteId' ] = params ['site_id' ]
5645-
5646- query_params = {}
5647-
5648- header_params = {}
5649-
5650- form_params = []
5651- local_var_files = {}
5652-
5653- body_params = None
5654-
5655- # HTTP header `Accept`
5656- header_params ['Accept' ] = self .api_client .\
5657- select_header_accept (['application/json' ])
5658- if not header_params ['Accept' ]:
5659- del header_params ['Accept' ]
5660-
5661- # HTTP header `Content-Type`
5662- header_params ['Content-Type' ] = self .api_client .\
5663- select_header_content_type (['application/json' ])
5664-
5665- # Authentication setting
5666- auth_settings = ['PureCloud Auth' ]
5667-
5668- response = self .api_client .call_api (resource_path , 'GET' ,
5669- path_params ,
5670- query_params ,
5671- header_params ,
5672- body = body_params ,
5673- post_params = form_params ,
5674- files = local_var_files ,
5675- response_type = 'AsgInfoResponse' ,
5676- auth_settings = auth_settings ,
5677- callback = params .get ('callback' ))
5678- return response
5679-
56805602 def get_telephony_providers_edges_site_numberplan (self , site_id , number_plan_id , ** kwargs ):
56815603 """
56825604 Get a Number Plan by ID.
@@ -8524,90 +8446,6 @@ def post_telephony_providers_edges_phones_reboot(self, body, **kwargs):
85248446 callback = params .get ('callback' ))
85258447 return response
85268448
8527- def post_telephony_providers_edges_site_autoscalinggroups (self , site_id , body , ** kwargs ):
8528- """
8529- Creates an ASG for the specified site
8530-
8531-
8532- This method makes a synchronous HTTP request by default. To make an
8533- asynchronous HTTP request, please define a `callback` function
8534- to be invoked when receiving the response.
8535- >>> def callback_function(response):
8536- >>> pprint(response)
8537- >>>
8538- >>> thread = api.post_telephony_providers_edges_site_autoscalinggroups(site_id, body, callback=callback_function)
8539-
8540- :param callback function: The callback function
8541- for asynchronous request. (optional)
8542- :param str site_id: Site that will be associated with the asg (required)
8543- :param CreateAsgRequest body: CreateAsgRequest (required)
8544- :return: str
8545- If the method is called asynchronously,
8546- returns the request thread.
8547- """
8548-
8549- all_params = ['site_id' , 'body' ]
8550- all_params .append ('callback' )
8551-
8552- params = locals ()
8553- for key , val in iteritems (params ['kwargs' ]):
8554- if key not in all_params :
8555- raise TypeError (
8556- "Got an unexpected keyword argument '%s'"
8557- " to method post_telephony_providers_edges_site_autoscalinggroups" % key
8558- )
8559- params [key ] = val
8560- del params ['kwargs' ]
8561-
8562- # verify the required parameter 'site_id' is set
8563- if ('site_id' not in params ) or (params ['site_id' ] is None ):
8564- raise ValueError ("Missing the required parameter `site_id` when calling `post_telephony_providers_edges_site_autoscalinggroups`" )
8565- # verify the required parameter 'body' is set
8566- if ('body' not in params ) or (params ['body' ] is None ):
8567- raise ValueError ("Missing the required parameter `body` when calling `post_telephony_providers_edges_site_autoscalinggroups`" )
8568-
8569-
8570- resource_path = '/api/v2/telephony/providers/edges/sites/{siteId}/autoscalinggroups' .replace ('{format}' , 'json' )
8571- path_params = {}
8572- if 'site_id' in params :
8573- path_params ['siteId' ] = params ['site_id' ]
8574-
8575- query_params = {}
8576-
8577- header_params = {}
8578-
8579- form_params = []
8580- local_var_files = {}
8581-
8582- body_params = None
8583- if 'body' in params :
8584- body_params = params ['body' ]
8585-
8586- # HTTP header `Accept`
8587- header_params ['Accept' ] = self .api_client .\
8588- select_header_accept (['application/json' ])
8589- if not header_params ['Accept' ]:
8590- del header_params ['Accept' ]
8591-
8592- # HTTP header `Content-Type`
8593- header_params ['Content-Type' ] = self .api_client .\
8594- select_header_content_type (['application/json' ])
8595-
8596- # Authentication setting
8597- auth_settings = ['PureCloud Auth' ]
8598-
8599- response = self .api_client .call_api (resource_path , 'POST' ,
8600- path_params ,
8601- query_params ,
8602- header_params ,
8603- body = body_params ,
8604- post_params = form_params ,
8605- files = local_var_files ,
8606- response_type = 'str' ,
8607- auth_settings = auth_settings ,
8608- callback = params .get ('callback' ))
8609- return response
8610-
86118449 def post_telephony_providers_edges_site_outboundroutes (self , site_id , body , ** kwargs ):
86128450 """
86138451 Create outbound route
0 commit comments