Class: Google::Apis::DatastreamV1::SpannerProfile

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#databaseString

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

Returns:

  • (String)


4370
4371
4372
# File 'lib/google/apis/datastream_v1/classes.rb', line 4370

def database
  @database
end

#hostString

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`

Returns:

  • (String)


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