Binary Authorization V1beta1 API - Class Google::Cloud::BinaryAuthorization::V1beta1::SystemPolicy::Client::Configuration (v0.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Binary Authorization V1beta1 API class Google::Cloud::BinaryAuthorization::V1beta1::SystemPolicy::Client::Configuration.
Configuration class for the SystemPolicy API.
This class represents the configuration for SystemPolicy, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Inherits
- Object
Extended By
- Gapic::Config
Example
# Modify the global config, setting the timeout for # get_system_policy to 20 seconds, # and all remaining timeouts to 10 seconds. ::Google::Cloud::BinaryAuthorization::V1beta1::SystemPolicy::Client.configuredo|config| config.timeout=10.0 config.rpcs.get_system_policy.timeout=20.0 end # Apply the above configuration only to a new client. client=::Google::Cloud::BinaryAuthorization::V1beta1::SystemPolicy::Client.newdo|config| config.timeout=10.0 config.rpcs.get_system_policy.timeout=20.0 end
Methods
#channel_args
defchannel_args()->::HashExtra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel object is provided as the credential.
- (::Hash)
#channel_args=
defchannel_args=(value)->::HashExtra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel object is provided as the credential.
- value (::Hash)
- (::Hash)
#channel_pool
defchannel_pool()->::Gapic::ServiceStub::ChannelPool::ConfigurationConfiguration for the channel pool
- (::Gapic::ServiceStub::ChannelPool::Configuration)
#credentials
defcredentials()->::ObjectCredentials to send with calls. You may provide any of the following types:
- (
String) The path to a service account key file in JSON format - (
Hash) A service account key as a Hash - (
Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials) a gRPC credentails object - (
nil) indicating no credentials
Warning: If you accept a credential configuration (JSON file or Hash) from an external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.
- (::Object)
#credentials=
defcredentials=(value)->::ObjectCredentials to send with calls. You may provide any of the following types:
- (
String) The path to a service account key file in JSON format - (
Hash) A service account key as a Hash - (
Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials) a gRPC credentails object - (
nil) indicating no credentials
Warning: If you accept a credential configuration (JSON file or Hash) from an external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.
- value (::Object)
- (::Object)
#endpoint
defendpoint()->::String,nilA custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
- (::String, nil)
#endpoint=
defendpoint=(value)->::String,nilA custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
- value (::String, nil)
- (::String, nil)
#interceptors
definterceptors()->::Array<::GRPC::ClientInterceptor>An array of interceptors that are run before calls are executed.
- (::Array<::GRPC::ClientInterceptor>)
#interceptors=
definterceptors=(value)->::Array<::GRPC::ClientInterceptor>An array of interceptors that are run before calls are executed.
- value (::Array<::GRPC::ClientInterceptor>)
- (::Array<::GRPC::ClientInterceptor>)
#lib_name
deflib_name()->::StringThe library name as recorded in instrumentation and logging
- (::String)
#lib_name=
deflib_name=(value)->::StringThe library name as recorded in instrumentation and logging
- value (::String)
- (::String)
#lib_version
deflib_version()->::StringThe library version as recorded in instrumentation and logging
- (::String)
#lib_version=
deflib_version=(value)->::StringThe library version as recorded in instrumentation and logging
- value (::String)
- (::String)
#logger
deflogger()->::Logger,:default,nilA custom logger to use for request/response debug logging, or the value
:default (the default) to construct a default logger, or nil to
explicitly disable logging.
- (::Logger, :default, nil)
#logger=
deflogger=(value)->::Logger,:default,nilA custom logger to use for request/response debug logging, or the value
:default (the default) to construct a default logger, or nil to
explicitly disable logging.
- value (::Logger, :default, nil)
- (::Logger, :default, nil)
#metadata
defmetadata()->::Hash{::Symbol=>::String}Additional gRPC headers to be sent with the call.
- (::Hash{::Symbol=>::String})
#metadata=
defmetadata=(value)->::Hash{::Symbol=>::String}Additional gRPC headers to be sent with the call.
- value (::Hash{::Symbol=>::String})
- (::Hash{::Symbol=>::String})
#quota_project
defquota_project()->::StringA separate project against which to charge quota.
- (::String)
#quota_project=
defquota_project=(value)->::StringA separate project against which to charge quota.
- value (::String)
- (::String)
#retry_policy
defretry_policy()->::HashThe retry policy. The value is a hash with the following keys:
-
:initial_delay(type:Numeric) - The initial delay in seconds. -
:max_delay(type:Numeric) - The max delay in seconds. -
:multiplier(type:Numeric) - The incremental backoff multiplier. -
:retry_codes(type:Array<String>) - The error codes that should trigger a retry.
- (::Hash)
#retry_policy=
defretry_policy=(value)->::HashThe retry policy. The value is a hash with the following keys:
-
:initial_delay(type:Numeric) - The initial delay in seconds. -
:max_delay(type:Numeric) - The max delay in seconds. -
:multiplier(type:Numeric) - The incremental backoff multiplier. -
:retry_codes(type:Array<String>) - The error codes that should trigger a retry.
- value (::Hash)
- (::Hash)
#rpcs
defrpcs()->RpcsConfigurations for individual RPCs
- (Rpcs)
#scope
defscope()->::Array<::String>The OAuth scopes
- (::Array<::String>)
#scope=
defscope=(value)->::Array<::String>The OAuth scopes
- value (::Array<::String>)
- (::Array<::String>)
#timeout
deftimeout()->::NumericThe call timeout in seconds.
- (::Numeric)
#timeout=
deftimeout=(value)->::NumericThe call timeout in seconds.
- value (::Numeric)
- (::Numeric)
#universe_domain
defuniverse_domain()->::String,nilThe universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
- (::String, nil)
#universe_domain=
defuniverse_domain=(value)->::String,nilThe universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
- value (::String, nil)
- (::String, nil)