VimŸUnDoĺŘ4Śś}IĘ^珞ܼ09iš0ýś–?q–uw'h*ţ4&&&&aˇW_Đ‚˙˙˙˙a?šő‚„˙ ő‚„ţ5_Đƒ˙˙˙˙a?Ÿőƒ… # őƒ…˙5_Đ„˙˙˙˙a?¤őƒ…, @host = 'http://docs.patch.test:3000/'5_Đ„˙˙˙˙a?¤őƒ…( @host = '://docs.patch.test:3000/'5_Đ„˙˙˙˙a?¤őƒ…' @host = '//docs.patch.test:3000/'5_Đ„˙˙˙˙a?Ľőƒ…& @host = '/docs.patch.test:3000/'5_Đ„˙˙˙˙a?Śőƒ…% @host = 'docs.patch.test:3000/'5_Đ ƒ˙˙˙˙a?Šő‚ƒ # TODO: change back5_Đ €˙˙˙˙a?Şő€‚˙ő€˙5_Đ ƒ˙˙˙˙‚ƒVa?Ťő‚„ @host = 'api.patch.io'őƒ @scheme = 'https'5_Đ ƒ˙˙˙˙‚ƒVa?Źőƒ… # őƒ…5_Đ  „˙˙˙˙‚ƒVa?Žőƒ… @change5_Đ  „˙˙˙˙‚ƒVaK“őƒ„ @scheme = 'http'! @host = '.patch.test:3000/'5_Đƒ˙˙˙˙‚ƒVaK”ő‚„ # @host = 'api.patch.io'őƒ # @scheme = 'https'5_Ё˙˙˙˙‚ƒVaK•ő€ # TODO: change back5_Đ˙˙˙˙‚Va˜őţ=begin #Patch API V14#The core API used to integrate with Patch's service'The version of the OpenAPI document: v1 Contact: developers@usepatch.com,Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1=end module Patch class Configuration # Defines url scheme attr_accessor :scheme # Defines url host attr_accessor :host # Defines url base path attr_accessor :base_path9 # Defines API keys used with API Key authentications. #J # @return [Hash] key: parameter name, value: parameter value (API key) #a # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)) # config.api_key['api_key'] = 'xxx' attr_accessor :api_keyA # Defines API key prefixes used with API Key authentications. #? # @return [Hash] key: parameter name, value: API key prefix #x # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)2 # config.api_key_prefix['api_key'] = 'Token'! attr_accessor :api_key_prefix? # Defines the username used with HTTP basic authentication. # # @return [String] attr_accessor :username? # Defines the password used with HTTP basic authentication. # # @return [String] attr_accessor :password9 # Defines the access token (Bearer) used with OAuth2. attr_accessor :access_token] # Set this to enable/disable debugging. When enabled (set to true), HTTP request/responseN # details will be logged with `logger.debug` (see the `logger` attribute). # Default to false. # # @return [true, false] attr_accessor :debugging, # Defines the logger used for debugging.E # Default to `Rails.logger` (when in Rails) or logging to STDOUT. # # @return [#debug] attr_accessor :logger< # Defines the temporary folder to store downloaded files2 # (for API endpoints that have file response). # Default to use `Tempfile`. # # @return [String]# attr_accessor :temp_folder_path1 # The time limit for HTTP request in seconds.% # Default to 0 (never times out). attr_accessor :timeoutH # Set this to false to skip client side validation in the operation. # Default to true. # @return [true, false]) attr_accessor :client_side_validation ### TLS/SSL setting] # Set this to false to skip verifying SSL certificate when calling API from https server. # Default to true. #x # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. # # @return [true, false] attr_accessor :verify_ssl ### TLS/SSL setting7 # Set this to false to skip verifying SSL host name # Default to true. #x # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. # # @return [true, false]" attr_accessor :verify_ssl_host ### TLS/SSL settingD # Set this to customize the certificate file to verify the peer. #7 # @return [String] the path to the certificate file #\ # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:X # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 attr_accessor :ssl_ca_cert ### TLS/SSL setting6 # Client certificate file (for client certificate) attr_accessor :cert_file ### TLS/SSL setting6 # Client private key file (for client certificate) attr_accessor :key_file_ # Set this to customize parameters encoding of array parameter with multi collectionFormat. # Default to nil. #D # @see The params_encoding option of Ethon. Related source code:S # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96" attr_accessor :params_encoding attr_accessor :inject_format& attr_accessor :force_ending_format def initialize @scheme = 'https' @host = 'api.patch.io' @base_path = '' @api_key = {} @api_key_prefix = {} @timeout = 0$ @client_side_validation = true @verify_ssl = true @verify_ssl_host = true @params_encoding = nil @cert_file = nil @key_file = nil @debugging = false @inject_format = false" @force_ending_format = falseC @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)! yield(self) if block_given? end' # The default Configuration object. def self.default% @@default ||= Configuration.new end def configure! yield(self) if block_given? end def scheme=(scheme) # remove :// from scheme' @scheme = scheme.sub(/:\/\//, '') end def host=(host)4 # remove http(s):// and anything after a slash: @host = host.sub(/https?:\/\//, '').split('/').first end def base_path=(base_path)5 # Add leading and trailing slashes to base_path3 @base_path = "/#{base_path}".gsub(/\/+/, '/')* @base_path = '' if @base_path == '/' end def base_urlT "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') end( # Gets API key (with prefix if set).C # @param [String] param_name the parameter name of API key auth' def api_key_with_prefix(param_name)$ if @api_key_prefix[param_name]@ "#{@api_key_prefix[param_name]} #{@api_key[param_name]}" else @api_key[param_name] end end" # Gets Basic Auth token string def basic_auth_tokenE 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") end0 # Returns Auth Settings hash for api client. def auth_settings { 'bearer_auth' => { type: 'bearer', in: 'header',! key: 'Authorization',+ value: "Bearer #{access_token}" }, } end( # Returns an array of Server setting def server_settings [ {' url: "https://{defaultHost}",1 description: "No description provided", variables: { defaultHost: {7 description: "No description provided",. default_value: "api.patch.io", } } } ] end* # Returns URL based on server settings #5 # @param index array index of the server settingsC # @param variables hash of variable and the corresponding value) def server_url(index, variables = {}) servers = server_settings& # check array index out of bound- if (index < 0 || index >= servers.size)q fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}" end server = servers[index] url = server[:url]. # go through variable and assign a value1 server[:variables].each do |name, variable| if variables.key?(name)N if (server[:variables][name][:enum_values].include? variables[name])< url.gsub! "{" + name.to_s + "}", variables[name] elseŁ fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}." end else # use default valueS url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value] end end url end endend5_Ё˙˙˙˙‚Va˜7ő€‚ţ @scheme = 'https'5_Ё*˙˙˙˙‚Va˜Pő€‚ţ2 @scheme = ENV.fetch('LOCAL_SDK_TEST')'https'5_Ё2˙˙˙˙‚Va˜Rő€‚ţ9 @scheme = ENV.fetch('LOCAL_SDK_TEST', false)'https'5_Ё6˙˙˙˙‚Va˜Yő€‚ţ< @scheme = ENV.fetch('LOCAL_SDK_TEST', false) ? 'https'5_Ё?˙˙˙˙‚Va˜]ő€‚ţF @scheme = ENV.fetch('LOCAL_SDK_TEST', false) ? 'http' : ''https'5_Đ‚˙˙˙˙‚Va˜aő‚„ţő‚ƒţ5_Đƒ˙˙˙˙‚Va˜bő‚„˙E @scheme = ENV.fetch('LOCAL_SDK_TEST', false) ? 'http' : 'https'5_Đ‚˙˙˙˙‚Va˜dő‚ @host = 'api.patch.io'5_Đ‚˙˙˙˙‚Va˜eő‚„ţő‚ƒţ5_Đ‚4˙˙˙˙‚Va˜iőƒ˙C @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'http' : 'https'5_Đ‚K˙˙˙˙‚Va˜sőƒ˙R @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : 'https' @host = 'api.patch.io'5_Đ ‚S˙˙˙˙‚Va˜tőƒţi @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : 'https' @host = 'api.patch.io'5_Đ! ‚S˙˙˙˙‚Va˜tőƒţh @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : 'https' host = 'api.patch.io'5_Đ "!‚L˙˙˙˙‚Va˜uőƒţd @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : 'https' = 'api.patch.io'5_Đ!#"‚N˙˙˙˙‚Va˜wőƒţ_ @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : '' = 'api.patch.io'5_Đ"$#‚K˙˙˙˙‚Va˜xőƒţ\ @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : = 'api.patch.io'5_Đ#%$‚K˙˙˙˙‚Va˜xőƒţ[ @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : = 'api.patch.io'5_Đ$&%‚K˙˙˙˙‚Va˜xőƒţZ @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : 'api.patch.io'5_Đ%&˙˙˙˙‚VaˇVőţ=begin #Patch API V14#The core API used to integrate with Patch's service'The version of the OpenAPI document: v1 Contact: developers@usepatch.com,Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1=end module Patch class Configuration # Defines url scheme attr_accessor :scheme # Defines url host attr_accessor :host # Defines url base path attr_accessor :base_path9 # Defines API keys used with API Key authentications. #J # @return [Hash] key: parameter name, value: parameter value (API key) #a # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)) # config.api_key['api_key'] = 'xxx' attr_accessor :api_keyA # Defines API key prefixes used with API Key authentications. #? # @return [Hash] key: parameter name, value: API key prefix #x # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)2 # config.api_key_prefix['api_key'] = 'Token'! attr_accessor :api_key_prefix? # Defines the username used with HTTP basic authentication. # # @return [String] attr_accessor :username? # Defines the password used with HTTP basic authentication. # # @return [String] attr_accessor :password9 # Defines the access token (Bearer) used with OAuth2. attr_accessor :access_token] # Set this to enable/disable debugging. When enabled (set to true), HTTP request/responseN # details will be logged with `logger.debug` (see the `logger` attribute). # Default to false. # # @return [true, false] attr_accessor :debugging, # Defines the logger used for debugging.E # Default to `Rails.logger` (when in Rails) or logging to STDOUT. # # @return [#debug] attr_accessor :logger< # Defines the temporary folder to store downloaded files2 # (for API endpoints that have file response). # Default to use `Tempfile`. # # @return [String]# attr_accessor :temp_folder_path1 # The time limit for HTTP request in seconds.% # Default to 0 (never times out). attr_accessor :timeoutH # Set this to false to skip client side validation in the operation. # Default to true. # @return [true, false]) attr_accessor :client_side_validation ### TLS/SSL setting] # Set this to false to skip verifying SSL certificate when calling API from https server. # Default to true. #x # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. # # @return [true, false] attr_accessor :verify_ssl ### TLS/SSL setting7 # Set this to false to skip verifying SSL host name # Default to true. #x # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. # # @return [true, false]" attr_accessor :verify_ssl_host ### TLS/SSL settingD # Set this to customize the certificate file to verify the peer. #7 # @return [String] the path to the certificate file #\ # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:X # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 attr_accessor :ssl_ca_cert ### TLS/SSL setting6 # Client certificate file (for client certificate) attr_accessor :cert_file ### TLS/SSL setting6 # Client private key file (for client certificate) attr_accessor :key_file_ # Set this to customize parameters encoding of array parameter with multi collectionFormat. # Default to nil. #D # @see The params_encoding option of Ethon. Related source code:S # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96" attr_accessor :params_encoding attr_accessor :inject_format& attr_accessor :force_ending_format def initializeE @scheme = ENV.fetch('LOCAL_SDK_TEST', false) ? 'http' : 'https'Y @host = ENV.fetch('LOCAL_SDK_TEST', false) ? 'api.patch.test:3000' : 'api.patch.io' @base_path = '' @api_key = {} @api_key_prefix = {} @timeout = 0$ @client_side_validation = true @verify_ssl = true @verify_ssl_host = true @params_encoding = nil @cert_file = nil @key_file = nil @debugging = false @inject_format = false" @force_ending_format = falseC @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)! yield(self) if block_given? end' # The default Configuration object. def self.default% @@default ||= Configuration.new end def configure! yield(self) if block_given? end def scheme=(scheme) # remove :// from scheme' @scheme = scheme.sub(/:\/\//, '') end def host=(host)4 # remove http(s):// and anything after a slash: @host = host.sub(/https?:\/\//, '').split('/').first end def base_path=(base_path)5 # Add leading and trailing slashes to base_path3 @base_path = "/#{base_path}".gsub(/\/+/, '/')* @base_path = '' if @base_path == '/' end def base_urlT "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') end( # Gets API key (with prefix if set).C # @param [String] param_name the parameter name of API key auth' def api_key_with_prefix(param_name)$ if @api_key_prefix[param_name]@ "#{@api_key_prefix[param_name]} #{@api_key[param_name]}" else @api_key[param_name] end end" # Gets Basic Auth token string def basic_auth_tokenE 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") end0 # Returns Auth Settings hash for api client. def auth_settings { 'bearer_auth' => { type: 'bearer', in: 'header',! key: 'Authorization',+ value: "Bearer #{access_token}" }, } end( # Returns an array of Server setting def server_settings [ {' url: "https://{defaultHost}",1 description: "No description provided", variables: { defaultHost: {7 description: "No description provided",. default_value: "api.patch.io", } } } ] end* # Returns URL based on server settings #5 # @param index array index of the server settingsC # @param variables hash of variable and the corresponding value) def server_url(index, variables = {}) servers = server_settings& # check array index out of bound- if (index < 0 || index >= servers.size)q fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}" end server = servers[index] url = server[:url]. # go through variable and assign a value1 server[:variables].each do |name, variable| if variables.key?(name)N if (server[:variables][name][:enum_values].include? variables[name])< url.gsub! "{" + name.to_s + "}", variables[name] elseŁ fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}." end else # use default valueS url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value] end end url end endend5_Đ  …˙˙˙˙‚ƒVa?łő„† @host = 'patch.test:3000/'5_Đ …˙˙˙˙‚ƒVa?śő„†$ @host = 'api.patch.test:3000/'5_Đ…"˙˙˙˙‚ƒVa?˝ő„†# @host = 'api.patch.test:3000'5çŞ