lib/purecloud/api/stations_api.rb in purecloud-0.18.0 vs lib/purecloud/api/stations_api.rb in purecloud-0.25.0
- old
+ new
@@ -14,12 +14,12 @@
# @option opts [Integer] :page_size Page size
# @option opts [Integer] :page_number Page number
# @option opts [String] :sort_by Sort by
# @option opts [String] :name Name
# @return [StationEntityListing]
- def get(opts = {})
- data, status_code, headers = get_with_http_info(opts)
+ def get_stations(opts = {})
+ data, status_code, headers = get_stations_with_http_info(opts)
return data
end
# Get the list of available stations.
#
@@ -27,13 +27,13 @@
# @option opts [Integer] :page_size Page size
# @option opts [Integer] :page_number Page number
# @option opts [String] :sort_by Sort by
# @option opts [String] :name Name
# @return [Array<(StationEntityListing, Fixnum, Hash)>] StationEntityListing data, response status code and response headers
- def get_with_http_info(opts = {})
+ def get_stations_with_http_info(opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: StationsApi#get ..."
+ @api_client.config.logger.debug "Calling API: StationsApi#get_stations ..."
end
# resource path
path = "/api/v1/stations".sub('{format}','json')
@@ -69,30 +69,30 @@
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'StationEntityListing')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: StationsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: StationsApi#get_stations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Get station.
#
# @param id Station ID
# @param [Hash] opts the optional parameters
- # @return [UserStationResource]
+ # @return [Station]
def get_id(id, opts = {})
data, status_code, headers = get_id_with_http_info(id, opts)
return data
end
# Get station.
#
# @param id Station ID
# @param [Hash] opts the optional parameters
- # @return [Array<(UserStationResource, Fixnum, Hash)>] UserStationResource data, response status code and response headers
+ # @return [Array<(Station, Fixnum, Hash)>] Station data, response status code and response headers
def get_id_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: StationsApi#get_id ..."
end
@@ -128,10 +128,10 @@
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'UserStationResource')
+ :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}"
end
return data, status_code, headers
end