lib/cloudsmith-api/api/distros_api.rb in cloudsmith-api-1.142.3 vs lib/cloudsmith-api/api/distros_api.rb in cloudsmith-api-2.0.0
- old
+ new
@@ -1,7 +1,7 @@
=begin
-#Cloudsmith API
+#Cloudsmith API (v1)
#The API to the Cloudsmith Service
OpenAPI spec version: v1
Contact: support@cloudsmith.io
@@ -20,20 +20,20 @@
@api_client = api_client
end
# Get a list of all supported distributions.
# Get a list of all supported distributions.
# @param [Hash] opts the optional parameters
- # @return [Array<Distribution>]
+ # @return [Array<DistributionFull>]
def distros_list(opts = {})
data, _status_code, _headers = distros_list_with_http_info(opts)
data
end
# Get a list of all supported distributions.
# Get a list of all supported distributions.
# @param [Hash] opts the optional parameters
- # @return [Array<(Array<Distribution>, Fixnum, Hash)>] Array<Distribution> data, response status code and response headers
+ # @return [Array<(Array<DistributionFull>, Fixnum, Hash)>] Array<DistributionFull> data, response status code and response headers
def distros_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DistrosApi.distros_list ...'
end
# resource path
@@ -42,10 +42,14 @@
# query parameters
query_params = {}
# header parameters
header_params = {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ # HTTP header 'Content-Type'
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
@@ -55,31 +59,31 @@
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'Array<Distribution>')
+ :return_type => 'Array<DistributionFull>')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: DistrosApi#distros_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# View for viewing/listing distributions.
# View for viewing/listing distributions.
# @param slug
# @param [Hash] opts the optional parameters
- # @return [Distribution]
+ # @return [DistributionFull]
def distros_read(slug, opts = {})
data, _status_code, _headers = distros_read_with_http_info(slug, opts)
data
end
# View for viewing/listing distributions.
# View for viewing/listing distributions.
# @param slug
# @param [Hash] opts the optional parameters
- # @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
+ # @return [Array<(DistributionFull, Fixnum, Hash)>] DistributionFull data, response status code and response headers
def distros_read_with_http_info(slug, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DistrosApi.distros_read ...'
end
# verify the required parameter 'slug' is set
@@ -92,10 +96,14 @@
# query parameters
query_params = {}
# header parameters
header_params = {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ # HTTP header 'Content-Type'
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
@@ -105,10 +113,10 @@
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'Distribution')
+ :return_type => 'DistributionFull')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: DistrosApi#distros_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end