lib/cloudsmith-api/api/packages_api.rb in cloudsmith-api-0.54.15 vs lib/cloudsmith-api/api/packages_api.rb in cloudsmith-api-0.57.1
- old
+ new
@@ -349,11 +349,10 @@
# Schedule a package for resynchronisation.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [PackagesResync] :data
# @return [Package]
def packages_resync(owner, repo, identifier, opts = {})
data, _status_code, _headers = packages_resync_with_http_info(owner, repo, identifier, opts)
return data
end
@@ -362,11 +361,10 @@
# Schedule a package for resynchronisation.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [PackagesResync] :data
# @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers
def packages_resync_with_http_info(owner, repo, identifier, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: PackagesApi.packages_resync ..."
end
@@ -388,18 +386,16 @@
# query parameters
query_params = {}
# header parameters
header_params = {}
- # HTTP header 'Content-Type'
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'data'])
+ post_body = nil
auth_names = ['apikey']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -416,11 +412,10 @@
# Schedule a package for scanning.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [PackagesScan] :data
# @return [Package]
def packages_scan(owner, repo, identifier, opts = {})
data, _status_code, _headers = packages_scan_with_http_info(owner, repo, identifier, opts)
return data
end
@@ -429,11 +424,10 @@
# Schedule a package for scanning.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [PackagesScan] :data
# @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers
def packages_scan_with_http_info(owner, repo, identifier, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: PackagesApi.packages_scan ..."
end
@@ -455,17 +449,15 @@
# query parameters
query_params = {}
# header parameters
header_params = {}
- # HTTP header 'Content-Type'
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'data'])
+ post_body = nil
auth_names = ['apikey']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,