Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::TensorboardService::Operations::Configuration (v0.27.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::TensorboardService::Operations::Configuration.

Configuration class for the Operations API.

This class represents the configuration for Operations, 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 Longrunning::Operations::Client::Configuration::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
# list_operations to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Longrunning::Operations::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.list_operations.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Longrunning::Operations::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.list_operations.timeout = 20.0
end

Methods

#channel_args

def channel_args() -> ::Hash

Extra parameters passed to the gRPC channel. Note: this is ignored if a GRPC::Core::Channel object is provided as the credential.

Returns
  • (::Hash)

#channel_args=

def channel_args=(value) -> ::Hash

Extra parameters passed to the gRPC channel. Note: this is ignored if a GRPC::Core::Channel object is provided as the credential.

Parameter
  • value (::Hash)
Returns
  • (::Hash)

#credentials

def credentials() -> ::Object

Credentials 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::Cr