lib/cloudsmith-api/api/packages_api.rb in cloudsmith-api-0.30.7 vs lib/cloudsmith-api/api/packages_api.rb in cloudsmith-api-0.44.4

- old
+ new

@@ -71,11 +71,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -134,11 +134,11 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -147,12 +147,12 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Views for working with repository packages. - # Views for working with repository packages. + # Get a list of all packages associated with repository. + # Get a list of all packages associated with repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. @@ -161,12 +161,12 @@ def packages_list(owner, repo, opts = {}) data, _status_code, _headers = packages_list_with_http_info(owner, repo, opts) return data end - # Views for working with repository packages. - # Views for working with repository packages. + # Get a list of all packages associated with repository. + # Get a list of all packages associated with repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. @@ -199,11 +199,11 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -266,11 +266,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -329,11 +329,11 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -349,10 +349,11 @@ # 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 @@ -361,10 +362,11 @@ # 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 @@ -386,17 +388,19 @@ # 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 = nil - auth_names = ['apikey', 'basic', 'csrf_token'] + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -455,11 +459,11 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -469,10 +473,132 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Create a new Alpine package + # Create a new Alpine package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadAlpine] :data + # @return [Package] + def packages_upload_alpine(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_alpine_with_http_info(owner, repo, opts) + return data + end + + # Create a new Alpine package + # Create a new Alpine package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadAlpine] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_alpine_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_alpine ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_alpine" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_alpine" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/alpine/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_alpine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create a new Cargo package + # Create a new Cargo package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadCargo] :data + # @return [Package] + def packages_upload_cargo(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_cargo_with_http_info(owner, repo, opts) + return data + end + + # Create a new Cargo package + # Create a new Cargo package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadCargo] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_cargo_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_cargo ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_cargo" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_cargo" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/cargo/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_cargo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a new Composer package # Create a new Composer package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -516,11 +642,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -530,10 +656,71 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_composer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Create a new CRAN package + # Create a new CRAN package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadCran] :data + # @return [Package] + def packages_upload_cran(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_cran_with_http_info(owner, repo, opts) + return data + end + + # Create a new CRAN package + # Create a new CRAN package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadCran] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_cran_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_cran ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_cran" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_cran" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/cran/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_cran\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a new Debian package # Create a new Debian package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -577,11 +764,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -591,10 +778,254 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_deb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Create a new Docker package + # Create a new Docker package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadDocker] :data + # @return [Package] + def packages_upload_docker(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_docker_with_http_info(owner, repo, opts) + return data + end + + # Create a new Docker package + # Create a new Docker package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadDocker] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_docker_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_docker ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_docker" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_docker" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/docker/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_docker\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create a new Go package + # Create a new Go package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadGo] :data + # @return [Package] + def packages_upload_go(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_go_with_http_info(owner, repo, opts) + return data + end + + # Create a new Go package + # Create a new Go package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadGo] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_go_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_go ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_go" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_go" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/go/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_go\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create a new Helm package + # Create a new Helm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadHelm] :data + # @return [Package] + def packages_upload_helm(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_helm_with_http_info(owner, repo, opts) + return data + end + + # Create a new Helm package + # Create a new Helm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadHelm] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_helm_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_helm ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_helm" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_helm" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/helm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_helm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create a new LuaRocks package + # Create a new LuaRocks package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadLuarocks] :data + # @return [Package] + def packages_upload_luarocks(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_luarocks_with_http_info(owner, repo, opts) + return data + end + + # Create a new LuaRocks package + # Create a new LuaRocks package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadLuarocks] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_luarocks_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_luarocks ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_luarocks" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_luarocks" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/luarocks/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_luarocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a new Maven package # Create a new Maven package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -638,11 +1069,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -652,10 +1083,132 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_maven\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Create a new npm package + # Create a new npm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadNpm] :data + # @return [Package] + def packages_upload_npm(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_npm_with_http_info(owner, repo, opts) + return data + end + + # Create a new npm package + # Create a new npm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadNpm] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_npm_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_npm ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_npm" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_npm" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/npm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_npm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Create a new NuGet package + # Create a new NuGet package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadNuget] :data + # @return [Package] + def packages_upload_nuget(owner, repo, opts = {}) + data, _status_code, _headers = packages_upload_nuget_with_http_info(owner, repo, opts) + return data + end + + # Create a new NuGet package + # Create a new NuGet package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesUploadNuget] :data + # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers + def packages_upload_nuget_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_nuget ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_nuget" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_nuget" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/upload/nuget/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Package') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_upload_nuget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a new Python package # Create a new Python package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -699,11 +1252,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -760,11 +1313,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -821,11 +1374,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -882,11 +1435,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -943,11 +1496,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -957,10 +1510,130 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_vagrant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Validate parameters for create Alpine package + # Validate parameters for create Alpine package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadAlpine] :data + # @return [nil] + def packages_validate_upload_alpine(owner, repo, opts = {}) + packages_validate_upload_alpine_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create Alpine package + # Validate parameters for create Alpine package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadAlpine] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_alpine_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_alpine ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_alpine" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_alpine" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/alpine/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_alpine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Validate parameters for create Cargo package + # Validate parameters for create Cargo package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadCargo] :data + # @return [nil] + def packages_validate_upload_cargo(owner, repo, opts = {}) + packages_validate_upload_cargo_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create Cargo package + # Validate parameters for create Cargo package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadCargo] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_cargo_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_cargo ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_cargo" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_cargo" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/cargo/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_cargo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Validate parameters for create Composer package # Validate parameters for create Composer package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -1004,11 +1677,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1017,10 +1690,70 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_composer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Validate parameters for create CRAN package + # Validate parameters for create CRAN package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadCran] :data + # @return [nil] + def packages_validate_upload_cran(owner, repo, opts = {}) + packages_validate_upload_cran_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create CRAN package + # Validate parameters for create CRAN package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadCran] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_cran_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_cran ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_cran" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_cran" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/cran/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_cran\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Validate parameters for create Debian package # Validate parameters for create Debian package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -1064,11 +1797,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1077,10 +1810,250 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_deb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Validate parameters for create Docker package + # Validate parameters for create Docker package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadDocker] :data + # @return [nil] + def packages_validate_upload_docker(owner, repo, opts = {}) + packages_validate_upload_docker_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create Docker package + # Validate parameters for create Docker package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadDocker] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_docker_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_docker ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_docker" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_docker" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/docker/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_docker\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Validate parameters for create Go package + # Validate parameters for create Go package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadGo] :data + # @return [nil] + def packages_validate_upload_go(owner, repo, opts = {}) + packages_validate_upload_go_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create Go package + # Validate parameters for create Go package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadGo] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_go_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_go ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_go" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_go" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/go/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_go\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Validate parameters for create Helm package + # Validate parameters for create Helm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadHelm] :data + # @return [nil] + def packages_validate_upload_helm(owner, repo, opts = {}) + packages_validate_upload_helm_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create Helm package + # Validate parameters for create Helm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadHelm] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_helm_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_helm ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_helm" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_helm" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/helm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_helm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Validate parameters for create LuaRocks package + # Validate parameters for create LuaRocks package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadLuarocks] :data + # @return [nil] + def packages_validate_upload_luarocks(owner, repo, opts = {}) + packages_validate_upload_luarocks_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create LuaRocks package + # Validate parameters for create LuaRocks package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadLuarocks] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_luarocks_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_luarocks ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_luarocks" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_luarocks" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/luarocks/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_luarocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Validate parameters for create Maven package # Validate parameters for create Maven package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -1124,11 +2097,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1137,10 +2110,130 @@ @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_maven\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Validate parameters for create npm package + # Validate parameters for create npm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadNpm] :data + # @return [nil] + def packages_validate_upload_npm(owner, repo, opts = {}) + packages_validate_upload_npm_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create npm package + # Validate parameters for create npm package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadNpm] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_npm_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_npm ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_npm" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_npm" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/npm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_npm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Validate parameters for create NuGet package + # Validate parameters for create NuGet package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadNuget] :data + # @return [nil] + def packages_validate_upload_nuget(owner, repo, opts = {}) + packages_validate_upload_nuget_with_http_info(owner, repo, opts) + return nil + end + + # Validate parameters for create NuGet package + # Validate parameters for create NuGet package + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [PackagesValidateuploadNuget] :data + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def packages_validate_upload_nuget_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_nuget ..." + end + # verify the required parameter 'owner' is set + if @api_client.config.client_side_validation && owner.nil? + fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_nuget" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_nuget" + end + # resource path + local_var_path = "/packages/{owner}/{repo}/validate-upload/nuget/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # 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']) + auth_names = ['apikey', 'csrf_token'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_nuget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Validate parameters for create Python package # Validate parameters for create Python package # @param owner # @param repo # @param [Hash] opts the optional parameters @@ -1184,11 +2277,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1244,11 +2337,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1304,11 +2397,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1364,11 +2457,11 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1424,10 +2517,10 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey', 'basic', 'csrf_token'] + auth_names = ['apikey', 'csrf_token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body,