=begin #Cloudsmith API (v1) #The API to the Cloudsmith Service OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.26 =end require 'uri' module CloudsmithApi class ReposApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end # Retrieve the GeoIP status for this repository. # Retrieve the GeoIP status for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryGeoIpStatus] def api_repos_geoip_status(owner, identifier, opts = {}) data, _status_code, _headers = api_repos_geoip_status_with_http_info(owner, identifier, opts) data end # Retrieve the GeoIP status for this repository. # Retrieve the GeoIP status for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryGeoIpStatus, Fixnum, Hash)>] RepositoryGeoIpStatus data, response status code and response headers def api_repos_geoip_status_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.api_repos_geoip_status ...' 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 ReposApi.api_repos_geoip_status" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.api_repos_geoip_status" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip/status/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryGeoIpStatus') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#api_repos_geoip_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update the retention rules for the repository. # Update the retention rules for the repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [RepositoryRetentionRulesRequestPatch] :data # @return [RepositoryRetentionRules] def repo_retention_partial_update(owner, repo, opts = {}) data, _status_code, _headers = repo_retention_partial_update_with_http_info(owner, repo, opts) data end # Update the retention rules for the repository. # Update the retention rules for the repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [RepositoryRetentionRulesRequestPatch] :data # @return [Array<(RepositoryRetentionRules, Fixnum, Hash)>] RepositoryRetentionRules data, response status code and response headers def repo_retention_partial_update_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repo_retention_partial_update ...' 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 ReposApi.repo_retention_partial_update" 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 ReposApi.repo_retention_partial_update" end # resource path local_var_path = '/repos/{owner}/{repo}/retention/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RepositoryRetentionRules') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repo_retention_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve the retention rules for the repository. # Retrieve the retention rules for the repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @return [RepositoryRetentionRules] def repo_retention_read(owner, repo, opts = {}) data, _status_code, _headers = repo_retention_read_with_http_info(owner, repo, opts) data end # Retrieve the retention rules for the repository. # Retrieve the retention rules for the repository. # @param owner # @param repo # @param [Hash] opts the optional parameters # @return [Array<(RepositoryRetentionRules, Fixnum, Hash)>] RepositoryRetentionRules data, response status code and response headers def repo_retention_read_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repo_retention_read ...' 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 ReposApi.repo_retention_read" 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 ReposApi.repo_retention_read" end # resource path local_var_path = '/repos/{owner}/{repo}/retention/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryRetentionRules') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repo_retention_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a new repository in a given namespace. # Create a new repository in a given namespace. # @param owner # @param [Hash] opts the optional parameters # @option opts [RepositoryCreateRequest] :data # @return [RepositoryCreate] def repos_create(owner, opts = {}) data, _status_code, _headers = repos_create_with_http_info(owner, opts) data end # Create a new repository in a given namespace. # Create a new repository in a given namespace. # @param owner # @param [Hash] opts the optional parameters # @option opts [RepositoryCreateRequest] :data # @return [Array<(RepositoryCreate, Fixnum, Hash)>] RepositoryCreate data, response status code and response headers def repos_create_with_http_info(owner, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_create ...' 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 ReposApi.repos_create" end # resource path local_var_path = '/repos/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RepositoryCreate') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a repository in a given namespace. # Delete a repository in a given namespace. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [nil] def repos_delete(owner, identifier, opts = {}) repos_delete_with_http_info(owner, identifier, opts) nil end # Delete a repository in a given namespace. # Delete a repository in a given namespace. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_delete_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_delete ...' 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 ReposApi.repos_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Set the active ECDSA key for the Repository. # Set the active ECDSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryEcdsaKeyCreate] :data # @return [RepositoryEcdsaKey] def repos_ecdsa_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_ecdsa_create_with_http_info(owner, identifier, opts) data end # Set the active ECDSA key for the Repository. # Set the active ECDSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryEcdsaKeyCreate] :data # @return [Array<(RepositoryEcdsaKey, Fixnum, Hash)>] RepositoryEcdsaKey data, response status code and response headers def repos_ecdsa_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_ecdsa_create ...' 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 ReposApi.repos_ecdsa_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_ecdsa_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/ecdsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RepositoryEcdsaKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_ecdsa_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve the active ECDSA key for the Repository. # Retrieve the active ECDSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryEcdsaKey] def repos_ecdsa_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_ecdsa_list_with_http_info(owner, identifier, opts) data end # Retrieve the active ECDSA key for the Repository. # Retrieve the active ECDSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryEcdsaKey, Fixnum, Hash)>] RepositoryEcdsaKey data, response status code and response headers def repos_ecdsa_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_ecdsa_list ...' 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 ReposApi.repos_ecdsa_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_ecdsa_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/ecdsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryEcdsaKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_ecdsa_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Regenerate ECDSA Key for the Repository. # Regenerate ECDSA Key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryEcdsaKey] def repos_ecdsa_regenerate(owner, identifier, opts = {}) data, _status_code, _headers = repos_ecdsa_regenerate_with_http_info(owner, identifier, opts) data end # Regenerate ECDSA Key for the Repository. # Regenerate ECDSA Key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryEcdsaKey, Fixnum, Hash)>] RepositoryEcdsaKey data, response status code and response headers def repos_ecdsa_regenerate_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_ecdsa_regenerate ...' 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 ReposApi.repos_ecdsa_regenerate" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_ecdsa_regenerate" end # resource path local_var_path = '/repos/{owner}/{identifier}/ecdsa/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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 => 'RepositoryEcdsaKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_ecdsa_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Disable GeoIP for this repository. # Disable GeoIP for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RespositoryGeoIpEnableDisableRequest] :data # @return [nil] def repos_geoip_disable(owner, identifier, opts = {}) repos_geoip_disable_with_http_info(owner, identifier, opts) nil end # Disable GeoIP for this repository. # Disable GeoIP for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RespositoryGeoIpEnableDisableRequest] :data # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_geoip_disable_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_disable ...' 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 ReposApi.repos_geoip_disable" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_disable" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip/disable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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: ReposApi#repos_geoip_disable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Enable GeoIP for this repository. # Enable GeoIP for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RespositoryGeoIpEnableDisableRequest] :data # @return [nil] def repos_geoip_enable(owner, identifier, opts = {}) repos_geoip_enable_with_http_info(owner, identifier, opts) nil end # Enable GeoIP for this repository. # Enable GeoIP for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RespositoryGeoIpEnableDisableRequest] :data # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_geoip_enable_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_enable ...' 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 ReposApi.repos_geoip_enable" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_enable" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip/enable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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: ReposApi#repos_geoip_enable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update repository geoip rules. # Partially update repository geoip rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGeoIpRulesRequestPatch] :data # @return [RepositoryGeoIpRules] def repos_geoip_partial_update(owner, identifier, opts = {}) data, _status_code, _headers = repos_geoip_partial_update_with_http_info(owner, identifier, opts) data end # Partially update repository geoip rules. # Partially update repository geoip rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGeoIpRulesRequestPatch] :data # @return [Array<(RepositoryGeoIpRules, Fixnum, Hash)>] RepositoryGeoIpRules data, response status code and response headers def repos_geoip_partial_update_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_partial_update ...' 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 ReposApi.repos_geoip_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RepositoryGeoIpRules') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_geoip_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List all repository geoip rules. # List all repository geoip rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryGeoIpRules] def repos_geoip_read(owner, identifier, opts = {}) data, _status_code, _headers = repos_geoip_read_with_http_info(owner, identifier, opts) data end # List all repository geoip rules. # List all repository geoip rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryGeoIpRules, Fixnum, Hash)>] RepositoryGeoIpRules data, response status code and response headers def repos_geoip_read_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_read ...' 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 ReposApi.repos_geoip_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryGeoIpRules') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_geoip_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Test a list of IP addresses against the repository's current GeoIP rules. # Test a list of IP addresses against the repository's current GeoIP rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGeoIpTestAddress] :data # @return [RepositoryGeoIpTestAddressResponse] def repos_geoip_test(owner, identifier, opts = {}) data, _status_code, _headers = repos_geoip_test_with_http_info(owner, identifier, opts) data end # Test a list of IP addresses against the repository's current GeoIP rules. # Test a list of IP addresses against the repository's current GeoIP rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGeoIpTestAddress] :data # @return [Array<(RepositoryGeoIpTestAddressResponse, Fixnum, Hash)>] RepositoryGeoIpTestAddressResponse data, response status code and response headers def repos_geoip_test_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_test ...' 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 ReposApi.repos_geoip_test" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_test" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip/test/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RepositoryGeoIpTestAddressResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_geoip_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Replace repository geoip rules. # Replace repository geoip rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGeoIpRulesRequest] :data # @return [RepositoryGeoIpRules] def repos_geoip_update(owner, identifier, opts = {}) data, _status_code, _headers = repos_geoip_update_with_http_info(owner, identifier, opts) data end # Replace repository geoip rules. # Replace repository geoip rules. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGeoIpRulesRequest] :data # @return [Array<(RepositoryGeoIpRules, Fixnum, Hash)>] RepositoryGeoIpRules data, response status code and response headers def repos_geoip_update_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_update ...' 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 ReposApi.repos_geoip_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RepositoryGeoIpRules') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_geoip_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Set the active GPG key for the Repository. # Set the active GPG key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGpgKeyCreate] :data # @return [RepositoryGpgKey] def repos_gpg_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_gpg_create_with_http_info(owner, identifier, opts) data end # Set the active GPG key for the Repository. # Set the active GPG key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryGpgKeyCreate] :data # @return [Array<(RepositoryGpgKey, Fixnum, Hash)>] RepositoryGpgKey data, response status code and response headers def repos_gpg_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_create ...' 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 ReposApi.repos_gpg_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/gpg/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RepositoryGpgKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_gpg_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve the active GPG key for the Repository. # Retrieve the active GPG key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryGpgKey] def repos_gpg_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_gpg_list_with_http_info(owner, identifier, opts) data end # Retrieve the active GPG key for the Repository. # Retrieve the active GPG key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryGpgKey, Fixnum, Hash)>] RepositoryGpgKey data, response status code and response headers def repos_gpg_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_list ...' 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 ReposApi.repos_gpg_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/gpg/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryGpgKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_gpg_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Regenerate GPG Key for the Repository. # Regenerate GPG Key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryGpgKey] def repos_gpg_regenerate(owner, identifier, opts = {}) data, _status_code, _headers = repos_gpg_regenerate_with_http_info(owner, identifier, opts) data end # Regenerate GPG Key for the Repository. # Regenerate GPG Key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryGpgKey, Fixnum, Hash)>] RepositoryGpgKey data, response status code and response headers def repos_gpg_regenerate_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_regenerate ...' 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 ReposApi.repos_gpg_regenerate" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_regenerate" end # resource path local_var_path = '/repos/{owner}/{identifier}/gpg/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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 => 'RepositoryGpgKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_gpg_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a list of all repositories within a namespace. # Get a list of all repositories within a namespace. # @param owner # @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. # @return [Array] def repos_namespace_list(owner, opts = {}) data, _status_code, _headers = repos_namespace_list_with_http_info(owner, opts) data end # Get a list of all repositories within a namespace. # Get a list of all repositories within a namespace. # @param owner # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_namespace_list_with_http_info(owner, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_namespace_list ...' 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 ReposApi.repos_namespace_list" end # resource path local_var_path = '/repos/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_namespace_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update details about a repository in a given namespace. # Update details about a repository in a given namespace. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryRequestPatch] :data # @return [Repository] def repos_partial_update(owner, identifier, opts = {}) data, _status_code, _headers = repos_partial_update_with_http_info(owner, identifier, opts) data end # Update details about a repository in a given namespace. # Update details about a repository in a given namespace. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryRequestPatch] :data # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers def repos_partial_update_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_partial_update ...' 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 ReposApi.repos_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Repository') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List all explicity created privileges for the repository. # List all explicity created privileges for the repository. # @param owner # @param identifier # @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. # @return [RepositoryPrivilegeInput] def repos_privileges_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_privileges_list_with_http_info(owner, identifier, opts) data end # List all explicity created privileges for the repository. # List all explicity created privileges for the repository. # @param owner # @param identifier # @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. # @return [Array<(RepositoryPrivilegeInput, Fixnum, Hash)>] RepositoryPrivilegeInput data, response status code and response headers def repos_privileges_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_list ...' 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 ReposApi.repos_privileges_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryPrivilegeInput') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_privileges_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Modify privileges for the repository. # Modify privileges for the repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryPrivilegeInputRequestPatch] :data # @return [nil] def repos_privileges_partial_update(owner, identifier, opts = {}) repos_privileges_partial_update_with_http_info(owner, identifier, opts) nil end # Modify privileges for the repository. # Modify privileges for the repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryPrivilegeInputRequestPatch] :data # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_privileges_partial_update_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_partial_update ...' 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 ReposApi.repos_privileges_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, 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: ReposApi#repos_privileges_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Replace all existing repository privileges with those specified. # Replace all existing repository privileges with those specified. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryPrivilegeInputRequest] :data # @return [nil] def repos_privileges_update(owner, identifier, opts = {}) repos_privileges_update_with_http_info(owner, identifier, opts) nil end # Replace all existing repository privileges with those specified. # Replace all existing repository privileges with those specified. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryPrivilegeInputRequest] :data # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_privileges_update_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_update ...' 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 ReposApi.repos_privileges_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, 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: ReposApi#repos_privileges_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a specific repository. # Get a specific repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Repository] def repos_read(owner, identifier, opts = {}) data, _status_code, _headers = repos_read_with_http_info(owner, identifier, opts) data end # Get a specific repository. # Get a specific repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers def repos_read_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_read ...' 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 ReposApi.repos_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Repository') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Set the active RSA key for the Repository. # Set the active RSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryRsaKeyCreate] :data # @return [RepositoryRsaKey] def repos_rsa_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_rsa_create_with_http_info(owner, identifier, opts) data end # Set the active RSA key for the Repository. # Set the active RSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RepositoryRsaKeyCreate] :data # @return [Array<(RepositoryRsaKey, Fixnum, Hash)>] RepositoryRsaKey data, response status code and response headers def repos_rsa_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_create ...' 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 ReposApi.repos_rsa_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/rsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RepositoryRsaKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_rsa_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve the active RSA key for the Repository. # Retrieve the active RSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryRsaKey] def repos_rsa_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_rsa_list_with_http_info(owner, identifier, opts) data end # Retrieve the active RSA key for the Repository. # Retrieve the active RSA key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryRsaKey, Fixnum, Hash)>] RepositoryRsaKey data, response status code and response headers def repos_rsa_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_list ...' 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 ReposApi.repos_rsa_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/rsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RepositoryRsaKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_rsa_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Regenerate RSA Key for the Repository. # Regenerate RSA Key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [RepositoryRsaKey] def repos_rsa_regenerate(owner, identifier, opts = {}) data, _status_code, _headers = repos_rsa_regenerate_with_http_info(owner, identifier, opts) data end # Regenerate RSA Key for the Repository. # Regenerate RSA Key for the Repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @return [Array<(RepositoryRsaKey, Fixnum, Hash)>] RepositoryRsaKey data, response status code and response headers def repos_rsa_regenerate_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_regenerate ...' 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 ReposApi.repos_rsa_regenerate" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_regenerate" end # resource path local_var_path = '/repos/{owner}/{identifier}/rsa/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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 => 'RepositoryRsaKey') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_rsa_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Transfer a repository to a different region. # Transfer a repository to a different region. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [RepositoryTransferRegionRequest] :data # @return [nil] def repos_transfer_region(owner, repo, opts = {}) repos_transfer_region_with_http_info(owner, repo, opts) nil end # Transfer a repository to a different region. # Transfer a repository to a different region. # @param owner # @param repo # @param [Hash] opts the optional parameters # @option opts [RepositoryTransferRegionRequest] :data # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_transfer_region_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_transfer_region ...' 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 ReposApi.repos_transfer_region" 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 ReposApi.repos_transfer_region" end # resource path local_var_path = '/repos/{owner}/{repo}/transfer-region/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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: ReposApi#repos_transfer_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Composer upstream config for this repository. # Create a Composer upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [ComposerUpstreamRequest] :data # @return [ComposerUpstream] def repos_upstream_composer_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_composer_create_with_http_info(owner, identifier, opts) data end # Create a Composer upstream config for this repository. # Create a Composer upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [ComposerUpstreamRequest] :data # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers def repos_upstream_composer_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_create ...' 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 ReposApi.repos_upstream_composer_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'ComposerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Composer upstream config for this repository. # Delete a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_composer_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Composer upstream config for this repository. # Delete a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_delete ...' 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 ReposApi.repos_upstream_composer_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Composer upstream configs for this repository. # List Composer upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_composer_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_composer_list_with_http_info(owner, identifier, opts) data end # List Composer upstream configs for this repository. # List Composer upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_composer_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_list ...' 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 ReposApi.repos_upstream_composer_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Composer upstream config for this repository. # Partially update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [ComposerUpstreamRequestPatch] :data # @return [ComposerUpstream] def repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Composer upstream config for this repository. # Partially update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [ComposerUpstreamRequestPatch] :data # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers def repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_partial_update ...' 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 ReposApi.repos_upstream_composer_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ComposerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Composer upstream config for this repository. # Retrieve a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [ComposerUpstream] def repos_upstream_composer_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Composer upstream config for this repository. # Retrieve a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers def repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_read ...' 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 ReposApi.repos_upstream_composer_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'ComposerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Composer upstream config for this repository. # Update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [ComposerUpstreamRequest] :data # @return [ComposerUpstream] def repos_upstream_composer_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Composer upstream config for this repository. # Update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [ComposerUpstreamRequest] :data # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers def repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_update ...' 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 ReposApi.repos_upstream_composer_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ComposerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a CRAN upstream config for this repository. # Create a CRAN upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequest] :data # @return [CranUpstream] def repos_upstream_cran_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_cran_create_with_http_info(owner, identifier, opts) data end # Create a CRAN upstream config for this repository. # Create a CRAN upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequest] :data # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers def repos_upstream_cran_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_create ...' 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 ReposApi.repos_upstream_cran_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'CranUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a CRAN upstream config for this repository. # Delete a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_cran_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a CRAN upstream config for this repository. # Delete a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_delete ...' 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 ReposApi.repos_upstream_cran_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List CRAN upstream configs for this repository. # List CRAN upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_cran_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_cran_list_with_http_info(owner, identifier, opts) data end # List CRAN upstream configs for this repository. # List CRAN upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_cran_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_list ...' 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 ReposApi.repos_upstream_cran_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a CRAN upstream config for this repository. # Partially update a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequestPatch] :data # @return [CranUpstream] def repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a CRAN upstream config for this repository. # Partially update a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequestPatch] :data # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers def repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_partial_update ...' 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 ReposApi.repos_upstream_cran_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CranUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a CRAN upstream config for this repository. # Retrieve a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [CranUpstream] def repos_upstream_cran_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a CRAN upstream config for this repository. # Retrieve a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers def repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_read ...' 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 ReposApi.repos_upstream_cran_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'CranUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a CRAN upstream config for this repository. # Update a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequest] :data # @return [CranUpstream] def repos_upstream_cran_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a CRAN upstream config for this repository. # Update a CRAN upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequest] :data # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers def repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_update ...' 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 ReposApi.repos_upstream_cran_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CranUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Dart upstream config for this repository. # Create a Dart upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [DartUpstreamRequest] :data # @return [DartUpstream] def repos_upstream_dart_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_dart_create_with_http_info(owner, identifier, opts) data end # Create a Dart upstream config for this repository. # Create a Dart upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [DartUpstreamRequest] :data # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers def repos_upstream_dart_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_create ...' 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 ReposApi.repos_upstream_dart_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'DartUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Dart upstream config for this repository. # Delete a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_dart_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Dart upstream config for this repository. # Delete a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_delete ...' 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 ReposApi.repos_upstream_dart_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Dart upstream configs for this repository. # List Dart upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_dart_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_dart_list_with_http_info(owner, identifier, opts) data end # List Dart upstream configs for this repository. # List Dart upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_dart_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_list ...' 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 ReposApi.repos_upstream_dart_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Dart upstream config for this repository. # Partially update a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DartUpstreamRequestPatch] :data # @return [DartUpstream] def repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Dart upstream config for this repository. # Partially update a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DartUpstreamRequestPatch] :data # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers def repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_partial_update ...' 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 ReposApi.repos_upstream_dart_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DartUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Dart upstream config for this repository. # Retrieve a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [DartUpstream] def repos_upstream_dart_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Dart upstream config for this repository. # Retrieve a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers def repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_read ...' 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 ReposApi.repos_upstream_dart_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'DartUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Dart upstream config for this repository. # Update a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DartUpstreamRequest] :data # @return [DartUpstream] def repos_upstream_dart_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Dart upstream config for this repository. # Update a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DartUpstreamRequest] :data # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_update ...' 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 ReposApi.repos_upstream_dart_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DartUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Debian upstream config for this repository. # Create a Debian upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [DebUpstreamRequest] :data # @return [DebUpstream] def repos_upstream_deb_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_deb_create_with_http_info(owner, identifier, opts) data end # Create a Debian upstream config for this repository. # Create a Debian upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [DebUpstreamRequest] :data # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_create ...' 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 ReposApi.repos_upstream_deb_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'DebUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Debian upstream config for this repository. # Delete a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_deb_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Debian upstream config for this repository. # Delete a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_delete ...' 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 ReposApi.repos_upstream_deb_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Debian upstream configs for this repository. # List Debian upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_deb_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_deb_list_with_http_info(owner, identifier, opts) data end # List Debian upstream configs for this repository. # List Debian upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_deb_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_list ...' 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 ReposApi.repos_upstream_deb_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Debian upstream config for this repository. # Partially update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DebUpstreamRequestPatch] :data # @return [DebUpstream] def repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Debian upstream config for this repository. # Partially update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DebUpstreamRequestPatch] :data # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers def repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_partial_update ...' 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 ReposApi.repos_upstream_deb_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DebUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Debian upstream config for this repository. # Retrieve a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [DebUpstream] def repos_upstream_deb_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Debian upstream config for this repository. # Retrieve a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers def repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_read ...' 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 ReposApi.repos_upstream_deb_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'DebUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Debian upstream config for this repository. # Update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DebUpstreamRequest] :data # @return [DebUpstream] def repos_upstream_deb_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Debian upstream config for this repository. # Update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DebUpstreamRequest] :data # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers def repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_update ...' 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 ReposApi.repos_upstream_deb_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DebUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Docker upstream config for this repository. # Create a Docker upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [DockerUpstreamRequest] :data # @return [DockerUpstream] def repos_upstream_docker_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_docker_create_with_http_info(owner, identifier, opts) data end # Create a Docker upstream config for this repository. # Create a Docker upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [DockerUpstreamRequest] :data # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers def repos_upstream_docker_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_create ...' 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 ReposApi.repos_upstream_docker_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'DockerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Docker upstream config for this repository. # Delete a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_docker_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Docker upstream config for this repository. # Delete a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_delete ...' 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 ReposApi.repos_upstream_docker_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Docker upstream configs for this repository. # List Docker upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_docker_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_docker_list_with_http_info(owner, identifier, opts) data end # List Docker upstream configs for this repository. # List Docker upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_docker_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_list ...' 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 ReposApi.repos_upstream_docker_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Docker upstream config for this repository. # Partially update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DockerUpstreamRequestPatch] :data # @return [DockerUpstream] def repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Docker upstream config for this repository. # Partially update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DockerUpstreamRequestPatch] :data # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers def repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_partial_update ...' 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 ReposApi.repos_upstream_docker_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DockerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Docker upstream config for this repository. # Retrieve a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [DockerUpstream] def repos_upstream_docker_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Docker upstream config for this repository. # Retrieve a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers def repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_read ...' 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 ReposApi.repos_upstream_docker_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'DockerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Docker upstream config for this repository. # Update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DockerUpstreamRequest] :data # @return [DockerUpstream] def repos_upstream_docker_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Docker upstream config for this repository. # Update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [DockerUpstreamRequest] :data # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers def repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_update ...' 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 ReposApi.repos_upstream_docker_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DockerUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Helm upstream config for this repository. # Create a Helm upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [HelmUpstreamRequest] :data # @return [HelmUpstream] def repos_upstream_helm_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_helm_create_with_http_info(owner, identifier, opts) data end # Create a Helm upstream config for this repository. # Create a Helm upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [HelmUpstreamRequest] :data # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers def repos_upstream_helm_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_create ...' 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 ReposApi.repos_upstream_helm_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'HelmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Helm upstream config for this repository. # Delete a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_helm_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Helm upstream config for this repository. # Delete a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_delete ...' 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 ReposApi.repos_upstream_helm_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Helm upstream configs for this repository. # List Helm upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_helm_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_helm_list_with_http_info(owner, identifier, opts) data end # List Helm upstream configs for this repository. # List Helm upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_helm_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_list ...' 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 ReposApi.repos_upstream_helm_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Helm upstream config for this repository. # Partially update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HelmUpstreamRequestPatch] :data # @return [HelmUpstream] def repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Helm upstream config for this repository. # Partially update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HelmUpstreamRequestPatch] :data # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers def repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_partial_update ...' 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 ReposApi.repos_upstream_helm_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HelmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Helm upstream config for this repository. # Retrieve a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [HelmUpstream] def repos_upstream_helm_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Helm upstream config for this repository. # Retrieve a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers def repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_read ...' 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 ReposApi.repos_upstream_helm_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'HelmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Helm upstream config for this repository. # Update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HelmUpstreamRequest] :data # @return [HelmUpstream] def repos_upstream_helm_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Helm upstream config for this repository. # Update a Helm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HelmUpstreamRequest] :data # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers def repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_update ...' 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 ReposApi.repos_upstream_helm_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HelmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Hex upstream config for this repository. # Create a Hex upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [HexUpstreamRequest] :data # @return [HexUpstream] def repos_upstream_hex_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_hex_create_with_http_info(owner, identifier, opts) data end # Create a Hex upstream config for this repository. # Create a Hex upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [HexUpstreamRequest] :data # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers def repos_upstream_hex_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_create ...' 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 ReposApi.repos_upstream_hex_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/hex/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'HexUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Hex upstream config for this repository. # Delete a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_hex_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Hex upstream config for this repository. # Delete a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_hex_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_delete ...' 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 ReposApi.repos_upstream_hex_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Hex upstream configs for this repository. # List Hex upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_hex_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_hex_list_with_http_info(owner, identifier, opts) data end # List Hex upstream configs for this repository. # List Hex upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_hex_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_list ...' 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 ReposApi.repos_upstream_hex_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/hex/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Hex upstream config for this repository. # Partially update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HexUpstreamRequestPatch] :data # @return [HexUpstream] def repos_upstream_hex_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Hex upstream config for this repository. # Partially update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HexUpstreamRequestPatch] :data # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers def repos_upstream_hex_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_partial_update ...' 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 ReposApi.repos_upstream_hex_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HexUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Hex upstream config for this repository. # Retrieve a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [HexUpstream] def repos_upstream_hex_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Hex upstream config for this repository. # Retrieve a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers def repos_upstream_hex_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_read ...' 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 ReposApi.repos_upstream_hex_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'HexUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Hex upstream config for this repository. # Update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HexUpstreamRequest] :data # @return [HexUpstream] def repos_upstream_hex_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Hex upstream config for this repository. # Update a Hex upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [HexUpstreamRequest] :data # @return [Array<(HexUpstream, Fixnum, Hash)>] HexUpstream data, response status code and response headers def repos_upstream_hex_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_hex_update ...' 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 ReposApi.repos_upstream_hex_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_hex_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_hex_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/hex/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HexUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_hex_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Maven upstream config for this repository. # Create a Maven upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [MavenUpstreamRequest] :data # @return [MavenUpstream] def repos_upstream_maven_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_maven_create_with_http_info(owner, identifier, opts) data end # Create a Maven upstream config for this repository. # Create a Maven upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [MavenUpstreamRequest] :data # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers def repos_upstream_maven_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_create ...' 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 ReposApi.repos_upstream_maven_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'MavenUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Maven upstream config for this repository. # Delete a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_maven_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Maven upstream config for this repository. # Delete a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_delete ...' 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 ReposApi.repos_upstream_maven_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Maven upstream configs for this repository. # List Maven upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_maven_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_maven_list_with_http_info(owner, identifier, opts) data end # List Maven upstream configs for this repository. # List Maven upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_maven_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_list ...' 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 ReposApi.repos_upstream_maven_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Maven upstream config for this repository. # Partially update a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [MavenUpstreamRequestPatch] :data # @return [MavenUpstream] def repos_upstream_maven_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Maven upstream config for this repository. # Partially update a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [MavenUpstreamRequestPatch] :data # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers def repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_partial_update ...' 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 ReposApi.repos_upstream_maven_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'MavenUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Maven upstream config for this repository. # Retrieve a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [MavenUpstream] def repos_upstream_maven_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Maven upstream config for this repository. # Retrieve a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers def repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_read ...' 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 ReposApi.repos_upstream_maven_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'MavenUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Maven upstream config for this repository. # Update a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [MavenUpstreamRequest] :data # @return [MavenUpstream] def repos_upstream_maven_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Maven upstream config for this repository. # Update a Maven upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [MavenUpstreamRequest] :data # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers def repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_update ...' 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 ReposApi.repos_upstream_maven_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'MavenUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a npm upstream config for this repository. # Create a npm upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [NpmUpstreamRequest] :data # @return [NpmUpstream] def repos_upstream_npm_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_npm_create_with_http_info(owner, identifier, opts) data end # Create a npm upstream config for this repository. # Create a npm upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [NpmUpstreamRequest] :data # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers def repos_upstream_npm_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_create ...' 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 ReposApi.repos_upstream_npm_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'NpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a npm upstream config for this repository. # Delete a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_npm_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a npm upstream config for this repository. # Delete a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_delete ...' 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 ReposApi.repos_upstream_npm_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List npm upstream configs for this repository. # List npm upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_npm_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_npm_list_with_http_info(owner, identifier, opts) data end # List npm upstream configs for this repository. # List npm upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_npm_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_list ...' 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 ReposApi.repos_upstream_npm_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a npm upstream config for this repository. # Partially update a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NpmUpstreamRequestPatch] :data # @return [NpmUpstream] def repos_upstream_npm_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a npm upstream config for this repository. # Partially update a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NpmUpstreamRequestPatch] :data # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers def repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_partial_update ...' 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 ReposApi.repos_upstream_npm_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a npm upstream config for this repository. # Retrieve a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [NpmUpstream] def repos_upstream_npm_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a npm upstream config for this repository. # Retrieve a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers def repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_read ...' 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 ReposApi.repos_upstream_npm_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'NpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a npm upstream config for this repository. # Update a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NpmUpstreamRequest] :data # @return [NpmUpstream] def repos_upstream_npm_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a npm upstream config for this repository. # Update a npm upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NpmUpstreamRequest] :data # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers def repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_update ...' 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 ReposApi.repos_upstream_npm_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a NuGet upstream config for this repository. # Create a NuGet upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [NugetUpstreamRequest] :data # @return [NugetUpstream] def repos_upstream_nuget_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_nuget_create_with_http_info(owner, identifier, opts) data end # Create a NuGet upstream config for this repository. # Create a NuGet upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [NugetUpstreamRequest] :data # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers def repos_upstream_nuget_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_create ...' 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 ReposApi.repos_upstream_nuget_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'NugetUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a NuGet upstream config for this repository. # Delete a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_nuget_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a NuGet upstream config for this repository. # Delete a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_delete ...' 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 ReposApi.repos_upstream_nuget_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List NuGet upstream configs for this repository. # List NuGet upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_nuget_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_nuget_list_with_http_info(owner, identifier, opts) data end # List NuGet upstream configs for this repository. # List NuGet upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_nuget_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_list ...' 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 ReposApi.repos_upstream_nuget_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a NuGet upstream config for this repository. # Partially update a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NugetUpstreamRequestPatch] :data # @return [NugetUpstream] def repos_upstream_nuget_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a NuGet upstream config for this repository. # Partially update a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NugetUpstreamRequestPatch] :data # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers def repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_partial_update ...' 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 ReposApi.repos_upstream_nuget_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NugetUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a NuGet upstream config for this repository. # Retrieve a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [NugetUpstream] def repos_upstream_nuget_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a NuGet upstream config for this repository. # Retrieve a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers def repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_read ...' 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 ReposApi.repos_upstream_nuget_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'NugetUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a NuGet upstream config for this repository. # Update a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NugetUpstreamRequest] :data # @return [NugetUpstream] def repos_upstream_nuget_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a NuGet upstream config for this repository. # Update a NuGet upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [NugetUpstreamRequest] :data # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers def repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_update ...' 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 ReposApi.repos_upstream_nuget_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NugetUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Python upstream config for this repository. # Create a Python upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [PythonUpstreamRequest] :data # @return [PythonUpstream] def repos_upstream_python_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_python_create_with_http_info(owner, identifier, opts) data end # Create a Python upstream config for this repository. # Create a Python upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [PythonUpstreamRequest] :data # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers def repos_upstream_python_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_create ...' 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 ReposApi.repos_upstream_python_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'PythonUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Python upstream config for this repository. # Delete a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_python_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Python upstream config for this repository. # Delete a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_delete ...' 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 ReposApi.repos_upstream_python_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Python upstream configs for this repository. # List Python upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_python_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_python_list_with_http_info(owner, identifier, opts) data end # List Python upstream configs for this repository. # List Python upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_python_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_list ...' 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 ReposApi.repos_upstream_python_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Python upstream config for this repository. # Partially update a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [PythonUpstreamRequestPatch] :data # @return [PythonUpstream] def repos_upstream_python_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Python upstream config for this repository. # Partially update a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [PythonUpstreamRequestPatch] :data # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers def repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_partial_update ...' 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 ReposApi.repos_upstream_python_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PythonUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Python upstream config for this repository. # Retrieve a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [PythonUpstream] def repos_upstream_python_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Python upstream config for this repository. # Retrieve a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers def repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_read ...' 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 ReposApi.repos_upstream_python_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'PythonUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Python upstream config for this repository. # Update a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [PythonUpstreamRequest] :data # @return [PythonUpstream] def repos_upstream_python_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Python upstream config for this repository. # Update a Python upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [PythonUpstreamRequest] :data # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers def repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_update ...' 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 ReposApi.repos_upstream_python_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PythonUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a RedHat upstream config for this repository. # Create a RedHat upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RpmUpstreamRequest] :data # @return [RpmUpstream] def repos_upstream_rpm_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_rpm_create_with_http_info(owner, identifier, opts) data end # Create a RedHat upstream config for this repository. # Create a RedHat upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RpmUpstreamRequest] :data # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers def repos_upstream_rpm_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_create ...' 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 ReposApi.repos_upstream_rpm_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a RedHat upstream config for this repository. # Delete a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_rpm_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a RedHat upstream config for this repository. # Delete a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_delete ...' 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 ReposApi.repos_upstream_rpm_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List RedHat upstream configs for this repository. # List RedHat upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_rpm_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_rpm_list_with_http_info(owner, identifier, opts) data end # List RedHat upstream configs for this repository. # List RedHat upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_rpm_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_list ...' 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 ReposApi.repos_upstream_rpm_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a RedHat upstream config for this repository. # Partially update a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RpmUpstreamRequestPatch] :data # @return [RpmUpstream] def repos_upstream_rpm_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a RedHat upstream config for this repository. # Partially update a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RpmUpstreamRequestPatch] :data # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers def repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_partial_update ...' 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 ReposApi.repos_upstream_rpm_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a RedHat upstream config for this repository. # Retrieve a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [RpmUpstream] def repos_upstream_rpm_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a RedHat upstream config for this repository. # Retrieve a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers def repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_read ...' 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 ReposApi.repos_upstream_rpm_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a RedHat upstream config for this repository. # Update a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RpmUpstreamRequest] :data # @return [RpmUpstream] def repos_upstream_rpm_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a RedHat upstream config for this repository. # Update a RedHat upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RpmUpstreamRequest] :data # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers def repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_update ...' 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 ReposApi.repos_upstream_rpm_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RpmUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Ruby upstream config for this repository. # Create a Ruby upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RubyUpstreamRequest] :data # @return [RubyUpstream] def repos_upstream_ruby_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_ruby_create_with_http_info(owner, identifier, opts) data end # Create a Ruby upstream config for this repository. # Create a Ruby upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [RubyUpstreamRequest] :data # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers def repos_upstream_ruby_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_create ...' 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 ReposApi.repos_upstream_ruby_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'RubyUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Ruby upstream config for this repository. # Delete a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_ruby_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Ruby upstream config for this repository. # Delete a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_delete ...' 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 ReposApi.repos_upstream_ruby_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Ruby upstream configs for this repository. # List Ruby upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_ruby_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_ruby_list_with_http_info(owner, identifier, opts) data end # List Ruby upstream configs for this repository. # List Ruby upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_ruby_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_list ...' 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 ReposApi.repos_upstream_ruby_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Ruby upstream config for this repository. # Partially update a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RubyUpstreamRequestPatch] :data # @return [RubyUpstream] def repos_upstream_ruby_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Ruby upstream config for this repository. # Partially update a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RubyUpstreamRequestPatch] :data # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers def repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_partial_update ...' 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 ReposApi.repos_upstream_ruby_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RubyUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Ruby upstream config for this repository. # Retrieve a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [RubyUpstream] def repos_upstream_ruby_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Ruby upstream config for this repository. # Retrieve a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers def repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_read ...' 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 ReposApi.repos_upstream_ruby_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'RubyUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Ruby upstream config for this repository. # Update a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RubyUpstreamRequest] :data # @return [RubyUpstream] def repos_upstream_ruby_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Ruby upstream config for this repository. # Update a Ruby upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [RubyUpstreamRequest] :data # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers def repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_update ...' 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 ReposApi.repos_upstream_ruby_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RubyUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a Swift upstream config for this repository. # Create a Swift upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [SwiftUpstreamRequest] :data # @return [SwiftUpstream] def repos_upstream_swift_create(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_swift_create_with_http_info(owner, identifier, opts) data end # Create a Swift upstream config for this repository. # Create a Swift upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [SwiftUpstreamRequest] :data # @return [Array<(SwiftUpstream, Fixnum, Hash)>] SwiftUpstream data, response status code and response headers def repos_upstream_swift_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_create ...' 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 ReposApi.repos_upstream_swift_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_create" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/swift/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] 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 => 'SwiftUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a Swift upstream config for this repository. # Delete a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] def repos_upstream_swift_delete(owner, identifier, slug_perm, opts = {}) repos_upstream_swift_delete_with_http_info(owner, identifier, slug_perm, opts) nil end # Delete a Swift upstream config for this repository. # Delete a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_upstream_swift_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_delete ...' 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 ReposApi.repos_upstream_swift_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_delete" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # List Swift upstream configs for this repository. # List Swift upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array] def repos_upstream_swift_list(owner, identifier, opts = {}) data, _status_code, _headers = repos_upstream_swift_list_with_http_info(owner, identifier, opts) data end # List Swift upstream configs for this repository. # List Swift upstream configs for this repository. # @param owner # @param identifier # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_upstream_swift_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_list ...' 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 ReposApi.repos_upstream_swift_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_list" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/swift/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Partially update a Swift upstream config for this repository. # Partially update a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [SwiftUpstreamRequestPatch] :data # @return [SwiftUpstream] def repos_upstream_swift_partial_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_swift_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end # Partially update a Swift upstream config for this repository. # Partially update a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [SwiftUpstreamRequestPatch] :data # @return [Array<(SwiftUpstream, Fixnum, Hash)>] SwiftUpstream data, response status code and response headers def repos_upstream_swift_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_partial_update ...' 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 ReposApi.repos_upstream_swift_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_partial_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SwiftUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Retrieve a Swift upstream config for this repository. # Retrieve a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [SwiftUpstream] def repos_upstream_swift_read(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_swift_read_with_http_info(owner, identifier, slug_perm, opts) data end # Retrieve a Swift upstream config for this repository. # Retrieve a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(SwiftUpstream, Fixnum, Hash)>] SwiftUpstream data, response status code and response headers def repos_upstream_swift_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_read ...' 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 ReposApi.repos_upstream_swift_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_read" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'SwiftUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a Swift upstream config for this repository. # Update a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [SwiftUpstreamRequest] :data # @return [SwiftUpstream] def repos_upstream_swift_update(owner, identifier, slug_perm, opts = {}) data, _status_code, _headers = repos_upstream_swift_update_with_http_info(owner, identifier, slug_perm, opts) data end # Update a Swift upstream config for this repository. # Update a Swift upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @option opts [SwiftUpstreamRequest] :data # @return [Array<(SwiftUpstream, Fixnum, Hash)>] SwiftUpstream data, response status code and response headers def repos_upstream_swift_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_update ...' 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 ReposApi.repos_upstream_swift_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_update" end # resource path local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # 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) post_body = @api_client.object_to_http_body(opts[:'data']) auth_names = ['apikey', 'basic'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SwiftUpstream') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a list of all repositories associated with current user. # Get a list of all repositories associated with current user. # @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. # @return [Array] def repos_user_list(opts = {}) data, _status_code, _headers = repos_user_list_with_http_info(opts) data end # Get a list of all repositories associated with current user. # Get a list of all repositories associated with current user. # @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. # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_user_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReposApi.repos_user_list ...' end # resource path local_var_path = '/repos/' # query parameters query_params = {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].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) post_body = nil auth_names = ['apikey', 'basic'] 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, :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging @api_client.config.logger.debug "API called: ReposApi#repos_user_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end