lib/cloudsmith-api/api/files_api.rb in cloudsmith-api-1.142.3 vs lib/cloudsmith-api/api/files_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
@@ -23,11 +23,11 @@
# Abort a multipart file upload.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [FilesAbort] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [nil]
def files_abort(owner, repo, identifier, opts = {})
files_abort_with_http_info(owner, repo, identifier, opts)
nil
end
@@ -36,11 +36,11 @@
# Abort a multipart file upload.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [FilesAbort] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
def files_abort_with_http_info(owner, repo, identifier, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: FilesApi.files_abort ...'
end
@@ -62,10 +62,12 @@
# 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 = {}
@@ -88,11 +90,11 @@
# Complete a multipart file upload.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [FilesComplete] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [PackageFileUpload]
def files_complete(owner, repo, identifier, opts = {})
data, _status_code, _headers = files_complete_with_http_info(owner, repo, identifier, opts)
data
end
@@ -101,11 +103,11 @@
# Complete a multipart file upload.
# @param owner
# @param repo
# @param identifier
# @param [Hash] opts the optional parameters
- # @option opts [FilesComplete] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [Array<(PackageFileUpload, Fixnum, Hash)>] PackageFileUpload data, response status code and response headers
def files_complete_with_http_info(owner, repo, identifier, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: FilesApi.files_complete ...'
end
@@ -127,10 +129,12 @@
# 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 = {}
@@ -153,11 +157,11 @@
# Request URL(s) to upload new package file upload(s) to.
# Request URL(s) to upload new package file upload(s) to.
# @param owner
# @param repo
# @param [Hash] opts the optional parameters
- # @option opts [FilesCreate] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [PackageFileUpload]
def files_create(owner, repo, opts = {})
data, _status_code, _headers = files_create_with_http_info(owner, repo, opts)
data
end
@@ -165,11 +169,11 @@
# Request URL(s) to upload new package file upload(s) to.
# Request URL(s) to upload new package file upload(s) to.
# @param owner
# @param repo
# @param [Hash] opts the optional parameters
- # @option opts [FilesCreate] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [Array<(PackageFileUpload, Fixnum, Hash)>] PackageFileUpload data, response status code and response headers
def files_create_with_http_info(owner, repo, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: FilesApi.files_create ...'
end
@@ -187,10 +191,12 @@
# 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 = {}
@@ -261,10 +267,14 @@
query_params[:'filename'] = filename
query_params[:'part_number'] = opts[:'part_number'] if !opts[:'part_number'].nil?
# 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)
@@ -285,11 +295,11 @@
# Validate parameters used for create.
# Validate parameters used for create.
# @param owner
# @param repo
# @param [Hash] opts the optional parameters
- # @option opts [FilesValidate] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [nil]
def files_validate(owner, repo, opts = {})
files_validate_with_http_info(owner, repo, opts)
nil
end
@@ -297,11 +307,11 @@
# Validate parameters used for create.
# Validate parameters used for create.
# @param owner
# @param repo
# @param [Hash] opts the optional parameters
- # @option opts [FilesValidate] :data
+ # @option opts [PackageFileUploadRequest] :data
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
def files_validate_with_http_info(owner, repo, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: FilesApi.files_validate ...'
end
@@ -319,9 +329,11 @@
# 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 = {}