class Google::Shopping::Merchant::Accounts::V1beta::AccountTaxService::Rest::Client::Configuration
@return [::String,nil]
universe (usually the default “googleapis.com” universe).
default endpoint URL. The default value of nil uses the environment
The universe domain within which to make requests. This determines the
@!attribute [rw] universe_domain
@return [::String]
A separate project against which to charge quota.
@!attribute [rw] quota_project
@return [::Hash]
trigger a retry.
* ‘:retry_codes` (type: `Array<String>`) - The error codes that should
* `:multiplier` (type: `Numeric`) - The incremental backoff multiplier.
* `:max_delay` (type: `Numeric`) - The max delay in seconds.
* `:initial_delay` (type: `Numeric`) - The initial delay in seconds.
The retry policy. The value is a hash with the following keys:
@!attribute [rw] retry_policy
@return [::Hash{::Symbol=>::String}]
Additional headers to be sent with the call.
@!attribute [rw] metadata
@return [::Numeric]
The call timeout in seconds.
@!attribute [rw] timeout
@return [::String]
The library version as recorded in instrumentation and logging
@!attribute [rw] lib_version
@return [::String]
The library name as recorded in instrumentation and logging
@!attribute [rw] lib_name
@return [::Array<::String>]
The OAuth scopes
@!attribute [rw] scope
@return [::Object]
* (`nil`) indicating no credentials
(see the [signet docs](rubydoc.info/gems/signet/Signet/OAuth2/Client))
* (`Signet::OAuth2::Client`) A signet oauth2 client object
(see the [googleauth docs](rubydoc.info/gems/googleauth/Google/Auth/Credentials))
* (`Google::Auth::Credentials`) A googleauth credentials object
* (`Hash`) A service account key as a Hash
* (`String`) The path to a service account key file in JSON format
Credentials to send with calls. You may provide any of the following types:
@!attribute [rw] credentials
@return [::String,nil]
nil, indicating to use the default endpoint in the current universe domain.
A custom service endpoint, as a hostname or hostname:port. The default is
@!attribute [rw] endpoint
end
config.rpcs.get_account_tax.timeout = 20.0
config.timeout = 10.0
client = ::Google::Shopping::Merchant::Accounts::V1beta::AccountTaxService::Rest::Client.new do |config|
# Apply the above configuration only to a new client.
end
config.rpcs.get_account_tax.timeout = 20.0
config.timeout = 10.0
::Google::Shopping::Merchant::Accounts::V1beta::AccountTaxService::Rest::Client.configure do |config|
# and all remaining timeouts to 10 seconds.
# get_account_tax to 20 seconds,
# Modify the global config, setting the timeout for
@example
on construction.
Configuration can be applied globally to all clients, or to a single client
for a list of RPCs that can be configured independently.
{::Google::Shopping::Merchant::Accounts::V1beta::AccountTaxService::Rest::Client::Configuration::Rpcs}
applied individually to specific RPCs. See
parameters, and other low-level controls. Certain parameters can also be
providing control over timeouts, retry behavior, logging, transport
This class represents the configuration for AccountTaxService REST,
Configuration class for the AccountTaxService REST API.
#
def initialize parent_config = nil
- Private: -
def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end
def rpcs
-
(Rpcs)
-
def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end