# Cloud Spanner API - Class Google::Cloud::Spanner::Admin::Database::Configuration (v2.36.0)

2.36.0 (latest) 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.1 2.18.1 2.17.0 2.16.1 2.15.0 2.14.0 2.13.0 2.12.1 2.11.0 Reference documentation and code samples for the Cloud Spanner API class Google::Cloud::Spanner::Admin::Database::Configuration.

Configuration class for the Spanner Admin Database.


<br />

This class provides control over timeouts, retry behavior,
query options, and other low-level controls.

## Inherits

- Object

## Extended By

- Gapic::Config

## Methods

### #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::Credentials`) A googleauth credentials object (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
- (`Signet::OAuth2::Client`) A signet oauth2 client object (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
- (`GRPC::Core::Channel`) a gRPC channel with included credentials
- (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
- (`nil`) indicating no credentials
**Returns**

- (::Object)

### #credentials=

    def credentials=(value) -> ::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::Credentials`) A googleauth credentials object (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
- (`Signet::OAuth2::Client`) A signet oauth2 client object (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
- (`GRPC::Core::Channel`) a gRPC channel with included credentials
- (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
- (`nil`) indicating no credentials
**Parameter**

- **value** (::Object)
**Returns**

- (::Object)

### #endpoint

    def endpoint() -> ::String

The hostname or hostname:port of the service endpoint.
Defaults to `"spanner.googleapis.com"`.
**Returns**

- (::String)

### #endpoint=

    def endpoint=(value) -> ::String

The hostname or hostname:port of the service endpoint.
Defaults to `"spanner.googleapis.com"`.
**Parameter**

- **value** (::String)
**Returns**

- (::String)

### #interceptors

    def interceptors() -> ::Array<::GRPC::ClientInterceptor>

An array of interceptors that are run before calls are executed.
**Returns**

- (::Array\<::GRPC::ClientInterceptor\>)

### #interceptors=

    def interceptors=(value) -> ::Array<::GRPC::ClientInterceptor>

An array of interceptors that are run before calls are executed.
**Parameter**

- **value** (::Array\<::GRPC::ClientInterceptor\>)
**Returns**

- (::Array\<::GRPC::ClientInterceptor\>)

### #lib_name

    def lib_name() -> ::String

The library name as recorded in instrumentation and logging
**Returns**

- (::String)

### #lib_name=

    def lib_name=(value) -> ::String

The library name as recorded in instrumentation and logging
**Parameter**

- **value** (::String)
**Returns**

- (::String)

### #lib_version

    def lib_version() -> ::String

The library version as recorded in instrumentation and logging
**Returns**

- (::String)

### #lib_version=

    def lib_version=(value) -> ::String

The library version as recorded in instrumentation and logging
**Parameter**

- **value** (::String)
**Returns**

- (::String)

### #metadata

    def metadata() -> ::Hash{::Symbol=>::String}

Additional gRPC headers to be sent with the call.
**Returns**

- (::Hash{::Symbol=\>::String})

### #metadata=

    def metadata=(value) -> ::Hash{::Symbol=>::String}

Additional gRPC headers to be sent with the call.
**Parameter**

- **value** (::Hash{::Symbol=\>::String})
**Returns**

- (::Hash{::Symbol=\>::String})

### #quota_project

    def quota_project() -> ::String

A separate project against which to charge quota.
**Returns**

- (::String)

### #quota_project=

    def quota_project=(value) -> ::String

A separate project against which to charge quota.
**Parameter**

- **value** (::String)
**Returns**

- (::String)

### #retry_policy

    def retry_policy() -> ::Hash

The 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.
**Returns**

- (::Hash)

### #retry_policy=

    def retry_policy=(value) -> ::Hash

The 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.
**Parameter**

- **value** (::Hash)
**Returns**

- (::Hash)

### #scope

    def scope() -> ::Array<::String>

The OAuth scopes
**Returns**

- (::Array\<::String\>)

### #scope=

    def scope=(value) -> ::Array<::String>

The OAuth scopes
**Parameter**

- **value** (::Array\<::String\>)
**Returns**

- (::Array\<::String\>)

### #timeout

    def timeout() -> ::Numeric

The call timeout in seconds.
**Returns**

- (::Numeric)

### #timeout=

    def timeout=(value) -> ::Numeric

The call timeout in seconds.
**Parameter**

- **value** (::Numeric)
**Returns**

- (::Numeric)