Class: Google::Apis::DatastreamV1::SpannerProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::SpannerProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
Profile for connecting to a Spanner source.
Instance Attribute Summary collapse
-
#database ⇒ String
Required.
-
#host ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpannerProfile
constructor
A new instance of SpannerProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpannerProfile
Returns a new instance of SpannerProfile.
4379 4380 4381 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Required. Immutable. Cloud Spanner database resource. This field is immutable.
Must be in the format: projects/project/instances/instance/databases/
database_id.
Corresponds to the JSON property database
4370 4371 4372 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4370 def database @database end |
#host ⇒ String
Optional. The Spanner endpoint to connect to. Defaults to the global endpoint (
https://spanner.googleapis.com). Must be in the format: https://spanner.`
region.rep.googleapis.com.
Corresponds to the JSON propertyhost`
4377 4378 4379 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4377 def host @host end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4384 4385 4386 4387 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4384 def update!(**args) @database = args[:database] if args.key?(:database) @host = args[:host] if args.key?(:host) end |