class
GoogleDrive::Configuration
- GoogleDrive::Configuration
- Reference
- Object
Defined in:
google_drive/configuration.crConstructors
-
.new
Create a new
Configuration. -
.new(&)
Create a new
Configurationwith block.
Class Method Summary
-
.default
The default Configuration object.
Instance Method Summary
-
#access_token : String | Nil
Defines the access token (Bearer) used with OAuth2.
-
#access_token=(access_token : String | Nil)
Defines the access token (Bearer) used with OAuth2.
-
#api_key : Hash(String, String)
Defines API keys used with API Key authentications.
-
#api_key=(api_key : Hash(String, String))
Defines API keys used with API Key authentications.
-
#api_key_prefix : Hash(String, String)
Defines API key prefixes used with API Key authentications.
-
#api_key_prefix=(api_key_prefix : Hash(String, String))
Defines API key prefixes used with API Key authentications.
-
#api_key_with_prefix(param_name)
Gets API key (with prefix if set).
-
#auth_settings
Returns Auth Settings hash for api client.
-
#base_path : String
Defines url base path
-
#base_path=(base_path : String)
Defines url base path
- #base_path=(base_path)
-
#base_url(operation : String | Nil = nil)
Returns base URL for specified operation based on server settings
-
#basic_auth_token
Gets Basic Auth token string
- #cert_file : String | Nil
- #cert_file=(cert_file : String | Nil)
-
#client_side_validation=(client_side_validation : Bool)
Set this to false to skip client side validation in the operation.
-
#client_side_validation? : Bool
Set this to false to skip client side validation in the operation.
-
#configure(&)
Configure object with block.
-
#connect_timeout : Int32
The time limit for connection in seconds.
-
#connect_timeout=(connect_timeout : Int32)
The time limit for connection in seconds.
-
#debugging=(debugging : Bool)
Set this to enable/disable debugging.
-
#debugging? : Bool
Set this to enable/disable debugging.
-
#host : String
Defines url host
-
#host=(host : String)
Defines url host
- #host=(host)
- #key_file : String | Nil
- #key_file=(key_file : String | Nil)
- #operation_server_settings
-
#password : String | Nil
Defines the password used with HTTP basic authentication.
-
#password=(password : String | Nil)
Defines the password used with HTTP basic authentication.
-
#proxy_url : String | Nil
Defines the proxy url.
-
#proxy_url=(proxy_url : String | Nil)
Defines the proxy url.
-
#read_timeout : Int32
The time limit for reading in seconds.
-
#read_timeout=(read_timeout : Int32)
The time limit for reading in seconds.
-
#scheme : String
Defines url scheme
-
#scheme=(scheme : String)
Defines url scheme
- #scheme=(scheme)
-
#server_index : Int32
Define server configuration index
-
#server_index=(server_index : Int32)
Define server configuration index
-
#server_operation_index : Hash(String, String)
Define server operation configuration index
-
#server_operation_index=(server_operation_index : Hash(String, String))
Define server operation configuration index
-
#server_operation_variables : Hash(String, String)
Default server operation variables
-
#server_operation_variables=(server_operation_variables : Hash(String, String))
Default server operation variables
-
#server_settings
Returns an array of Server setting
-
#server_url(index_string, variables = {} of String => String, servers = nil)
Returns URL based on server settings
-
#server_variables : Hash(String, String)
Default server variables
-
#server_variables=(server_variables : Hash(String, String))
Default server variables
- #ssl_ca_cert : String | Nil
- #ssl_ca_cert=(ssl_ca_cert : String | Nil)
-
#temp_folder_path : String | Nil
Defines the temporary folder to store downloaded files (for API endpoints that have file response).
-
#temp_folder_path=(temp_folder_path : String | Nil)
Defines the temporary folder to store downloaded files (for API endpoints that have file response).
-
#timeout : Int32
The time limit for HTTP request in seconds.
-
#timeout=(timeout : Int32)
The time limit for HTTP request in seconds.
-
#username : String | Nil
Defines the username used with HTTP basic authentication.
-
#username=(username : String | Nil)
Defines the username used with HTTP basic authentication.
- #verify_ssl=(verify_ssl : Bool)
- #verify_ssl? : Bool
- #verify_ssl_host=(verify_ssl_host : Bool)
- #verify_ssl_host? : Bool
Constructor Detail
Create a new Configuration with block.
config = Petstore::Configuration.new do |config|
config.username = "xxx"
config.password = "xxx"
end
Class Method Detail
Instance Method Detail
Defines the access token (Bearer) used with OAuth2.
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"
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"
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"
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"
Gets API key (with prefix if set). @param [String] param_name the parameter name of API key auth
Returns base URL for specified operation based on server settings
Set this to false to skip client side validation in the operation. Default to true. @return [true, false]
Set this to false to skip client side validation in the operation. Default to true. @return [true, false]
The time limit for connection in seconds. Default to 60.
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]
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]
Defines the password used with HTTP basic authentication.
@return [String]
Defines the password used with HTTP basic authentication.
@return [String]
Define server operation configuration index
Define server operation configuration index
Default server operation variables
Default server operation variables
Returns URL based on server settings
@param index array index of the server settings @param variables hash of variable and the corresponding value
Default server variables
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
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
Defines the temporary folder to store downloaded files
(for API endpoints that have file response).
Default to use Tempfile.
@return [String]
Defines the temporary folder to store downloaded files
(for API endpoints that have file response).
Default to use Tempfile.
@return [String]
Defines the username used with HTTP basic authentication.
@return [String]
Defines the username used with HTTP basic authentication.
@return [String]
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]
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]
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]