class

GoogleDrive::Configuration

Inherits Reference / Object

Constructors

new

Create a new Configuration.

Source
new

Create a new Configuration with block.

config = Petstore::Configuration.new do |config|
  config.username = "xxx"
  config.password = "xxx"
end
Source

Class methods

default

The default Configuration object.

Source

Instance methods

access_token

Defines the access token (Bearer) used with OAuth2.

Source
access_token=(access_token : String | Nil)

Defines the access token (Bearer) used with OAuth2.

Source
api_key

Defines API keys used with API Key authentications.

@return [Hash] "key" => parameter name, value: parameter value (API key)

@example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) config.api_key["api_key"] = "xxx"

Source
api_key=(api_key : Hash(String, String))

Defines API keys used with API Key authentications.

@return [Hash] "key" => parameter name, value: parameter value (API key)

@example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) config.api_key["api_key"] = "xxx"

Source
api_key_prefix

Defines API key prefixes used with API Key authentications.

@return [Hash] "key" => parameter name, value: API key prefix

@example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) config.api_key_prefix["api_key"] = "Token"

Source
api_key_prefix=(api_key_prefix : Hash(String, String))

Defines API key prefixes used with API Key authentications.

@return [Hash] "key" => parameter name, value: API key prefix

@example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) config.api_key_prefix["api_key"] = "Token"

Source
api_key_with_prefix(param_name)

Gets API key (with prefix if set). @param [String] param_name the parameter name of API key auth

Source
auth_settings

Returns Auth Settings hash for api client.

Source
base_path

Defines url base path

Source
base_path=(base_path : String)

Defines url base path

Source
base_path=(base_path)
Source
base_url(operation : String | Nil = nil)

Returns base URL for specified operation based on server settings

Source
basic_auth_token

Gets Basic Auth token string

Source
cert_file

TLS/SSL setting

Client certificate file (for client certificate)

Source
cert_file=(cert_file : String | Nil)

TLS/SSL setting

Client certificate file (for client certificate)

Source
client_side_validation=(client_side_validation : Bool)

Set this to false to skip client side validation in the operation. Default to true. @return [true, false]

Source
client_side_validation?

Set this to false to skip client side validation in the operation. Default to true. @return [true, false]

Source
configure

Configure object with block.

Source
connect_timeout

The time limit for connection in seconds. Default to 60.

Source
connect_timeout=(connect_timeout : Int32)

The time limit for connection in seconds. Default to 60.

Source
debugging=(debugging : Bool)

Set this to enable/disable debugging. When enabled (set to true), HTTP request/response details will be logged with logger.debug (see the logger attribute). Default to false.

@return [true, false]

Source
debugging?

Set this to enable/disable debugging. When enabled (set to true), HTTP request/response details will be logged with logger.debug (see the logger attribute). Default to false.

@return [true, false]

Source
host

Defines url host

Source
host=(host : String)

Defines url host

Source
host=(host)
Source
key_file

TLS/SSL setting

Client private key file (for client certificate)

Source
key_file=(key_file : String | Nil)

TLS/SSL setting

Client private key file (for client certificate)

Source
operation_server_settings
Source
password

Defines the password used with HTTP basic authentication.

@return [String]

Source
password=(password : String | Nil)

Defines the password used with HTTP basic authentication.

@return [String]

Source
proxy_url

Defines the proxy url.

@return [String]

Source
proxy_url=(proxy_url : String | Nil)

Defines the proxy url.

@return [String]

Source
read_timeout

The time limit for reading in seconds. Default to 60.

Source
read_timeout=(read_timeout : Int32)

The time limit for reading in seconds. Default to 60.

Source
scheme

Defines url scheme

Source
scheme=(scheme : String)

Defines url scheme

Source
scheme=(scheme)
Source
server_index

Define server configuration index

Source
server_index=(server_index : Int32)

Define server configuration index

Source
server_operation_index

Define server operation configuration index

Source
server_operation_index=(server_operation_index : Hash(String, String))

Define server operation configuration index

Source
server_operation_variables

Default server operation variables

Source
server_operation_variables=(server_operation_variables : Hash(String, String))

Default server operation variables

Source
server_settings

Returns an array of Server setting

Source
server_url(index_string, variables = {} of String => String, servers = nil)

Returns URL based on server settings

@param index array index of the server settings @param variables hash of variable and the corresponding value

Source
server_variables

Default server variables

Source
server_variables=(server_variables : Hash(String, String))

Default server variables

Source
ssl_ca_cert

TLS/SSL setting

Set this to customize the certificate file to verify the peer.

@return [String] the path to the certificate file

@see The cainfo option of Typhoeus, --cert option of libcurl. Related source code: https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145

Source
ssl_ca_cert=(ssl_ca_cert : String | Nil)

TLS/SSL setting

Set this to customize the certificate file to verify the peer.

@return [String] the path to the certificate file

@see The cainfo option of Typhoeus, --cert option of libcurl. Related source code: https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145

Source
temp_folder_path

Defines the temporary folder to store downloaded files (for API endpoints that have file response). Default to use Tempfile.

@return [String]

Source
temp_folder_path=(temp_folder_path : String | Nil)

Defines the temporary folder to store downloaded files (for API endpoints that have file response). Default to use Tempfile.

@return [String]

Source
timeout

The time limit for HTTP request in seconds. Default to 60.

Source
timeout=(timeout : Int32)

The time limit for HTTP request in seconds. Default to 60.

Source
username

Defines the username used with HTTP basic authentication.

@return [String]

Source
username=(username : String | Nil)

Defines the username used with HTTP basic authentication.

@return [String]

Source
verify_ssl=(verify_ssl : Bool)

TLS/SSL setting

Set this to false to skip verifying SSL certificate when calling API from https server. Default to true.

@note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.

@return [true, false]

Source
verify_ssl?

TLS/SSL setting

Set this to false to skip verifying SSL certificate when calling API from https server. Default to true.

@note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.

@return [true, false]

Source
verify_ssl_host=(verify_ssl_host : Bool)

TLS/SSL setting

Set this to false to skip verifying SSL host name Default to true.

@note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.

@return [true, false]

Source
verify_ssl_host?

TLS/SSL setting

Set this to false to skip verifying SSL host name Default to true.

@note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.

@return [true, false]

Source