GoogleDrive::Configuration
Constructors
Create a new Configuration with block.
config = Petstore::Configuration.new do |config|
config.username = "xxx"
config.password = "xxx"
end
Class methods
Instance methods
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
TLS/SSL setting
Client certificate file (for client certificate)
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]
TLS/SSL setting
Client private key file (for client certificate)
Defines the password used with HTTP basic authentication.
@return [String]
Define server operation configuration index
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
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]
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]
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]