lib/purecloudplatformclientv2/api/locations_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/locations_api.rb in purecloudplatformclientv2-9.0.0
- old
+ new
@@ -41,12 +41,19 @@
# @return [Array<(LocationDefinition, Fixnum, Hash)>] LocationDefinition data, response status code and response headers
def get_location_with_http_info(location_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LocationsApi.get_location ..."
end
+
+
# verify the required parameter 'location_id' is set
fail ArgumentError, "Missing the required parameter 'location_id' when calling LocationsApi.get_location" if location_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/locations/{locationId}".sub('{format}','json').sub('{' + 'locationId' + '}', location_id.to_s)
# query parameters
query_params = {}
@@ -65,11 +72,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -102,13 +110,33 @@
# @return [Array<(LocationEntityListing, Fixnum, Hash)>] LocationEntityListing data, response status code and response headers
def get_locations_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LocationsApi.get_locations ..."
end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
if opts[:'sort_order'] && !['asc', 'desc'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of asc, desc'
end
+
+
+
+
# resource path
local_var_path = "/api/v2/locations".sub('{format}','json')
# query parameters
query_params = {}
@@ -130,11 +158,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -165,12 +194,25 @@
# @return [Array<(LocationsSearchResponse, Fixnum, Hash)>] LocationsSearchResponse data, response status code and response headers
def get_locations_search_with_http_info(q64, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LocationsApi.get_locations_search ..."
end
+
+
# verify the required parameter 'q64' is set
fail ArgumentError, "Missing the required parameter 'q64' when calling LocationsApi.get_locations_search" if q64.nil?
+
+
+
+
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/locations/search".sub('{format}','json')
# query parameters
query_params = {}
@@ -191,11 +233,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
@@ -224,12 +267,19 @@
# @return [Array<(LocationsSearchResponse, Fixnum, Hash)>] LocationsSearchResponse data, response status code and response headers
def post_locations_search_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LocationsApi.post_locations_search ..."
end
+
+
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling LocationsApi.post_locations_search" if body.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/locations/search".sub('{format}','json')
# query parameters
query_params = {}
@@ -248,9 +298,10 @@
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
+
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,