lib/purecloud/api/stations_api.rb in purecloud-0.36.1 vs lib/purecloud/api/stations_api.rb in purecloud-0.37.1
- old
+ new
@@ -1,18 +1,18 @@
=begin
-PureCloud API
+PureCloud Platform API
-PureCloud API
+With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
-OpenAPI spec version: v1
-Contact: chuck.pulfer@inin.com
+OpenAPI spec version: v2
+Contact: DeveloperEvangelists@inin.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
License: ININ
http://www.inin.com
-Terms of Service: http://www.inin.com
+Terms of Service: https://developer.mypurecloud.com/tos
=end
require "uri"
@@ -24,33 +24,33 @@
@api_client = api_client
end
# Unassigns the user assigned to this station
#
- # @param id Station ID
+ # @param station_id Station ID
# @param [Hash] opts the optional parameters
# @return [String]
- def delete_id_associateduser(id, opts = {})
- data, status_code, headers = delete_id_associateduser_with_http_info(id, opts)
+ def delete_station_id_associateduser(station_id, opts = {})
+ data, status_code, headers = delete_station_id_associateduser_with_http_info(station_id, opts)
return data
end
# Unassigns the user assigned to this station
#
- # @param id Station ID
+ # @param station_id Station ID
# @param [Hash] opts the optional parameters
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
- def delete_id_associateduser_with_http_info(id, opts = {})
+ def delete_station_id_associateduser_with_http_info(station_id, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: StationsApi#delete_id_associateduser ..."
+ @api_client.config.logger.debug "Calling API: StationsApi#delete_station_id_associateduser ..."
end
- # verify the required parameter 'id' is set
- fail "Missing the required parameter 'id' when calling delete_id_associateduser" if id.nil?
+ # verify the required parameter 'station_id' is set
+ fail "Missing the required parameter 'station_id' when calling delete_station_id_associateduser" if station_id.nil?
# resource path
- local_var_path = "/api/v2/stations/{id}/associateduser".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
+ local_var_path = "/api/v2/stations/{stationId}/associateduser".sub('{format}','json').sub('{' + 'stationId' + '}', station_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -77,40 +77,40 @@
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'String')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: StationsApi#delete_id_associateduser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: StationsApi#delete_station_id_associateduser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Get station.
#
- # @param id Station ID
+ # @param station_id Station ID
# @param [Hash] opts the optional parameters
# @return [Station]
- def get_id(id, opts = {})
- data, status_code, headers = get_id_with_http_info(id, opts)
+ def get_station_id(station_id, opts = {})
+ data, status_code, headers = get_station_id_with_http_info(station_id, opts)
return data
end
# Get station.
#
- # @param id Station ID
+ # @param station_id Station ID
# @param [Hash] opts the optional parameters
# @return [Array<(Station, Fixnum, Hash)>] Station data, response status code and response headers
- def get_id_with_http_info(id, opts = {})
+ def get_station_id_with_http_info(station_id, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: StationsApi#get_id ..."
+ @api_client.config.logger.debug "Calling API: StationsApi#get_station_id ..."
end
- # verify the required parameter 'id' is set
- fail "Missing the required parameter 'id' when calling get_id" if id.nil?
+ # verify the required parameter 'station_id' is set
+ fail "Missing the required parameter 'station_id' when calling get_station_id" if station_id.nil?
# resource path
- local_var_path = "/api/v2/stations/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
+ local_var_path = "/api/v2/stations/{stationId}".sub('{format}','json').sub('{' + 'stationId' + '}', station_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -137,10 +137,10 @@
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Station')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: StationsApi#get_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: StationsApi#get_station_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Get the list of available stations.