Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SpannerSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

The Spanner source for importing data

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SpannerSource

Returns a new instance of GoogleCloudDiscoveryengineV1SpannerSource.



9940
9941
9942
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9940

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#database_idString

Required. The database ID of the source Spanner table. Corresponds to the JSON property databaseId

Returns:

  • (String)


9914
9915
9916
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9914

def database_id
  @database_id
end

#enable_data_boostBoolean Also known as: enable_data_boost?

Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found here. Corresponds to the JSON property enableDataBoost

Returns:

  • (Boolean)


9921
9922
9923
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9921

def enable_data_boost
  @enable_data_boost
end

#instance_idString

Required. The instance ID of the source Spanner table. Corresponds to the JSON property instanceId

Returns:

  • (String)


9927
9928
9929
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9927

def instance_id
  @instance_id
end

#project_idString

The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. Corresponds to the JSON property projectId

Returns:

  • (String)


9933
9934
9935
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9933

def project_id
  @project_id
end

#table_idString

Required. The table name of the Spanner database that needs to be imported. Corresponds to the JSON property tableId

Returns:

  • (String)


9938
9939
9940
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9938

def table_id
  @table_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9945
9946
9947
9948
9949
9950
9951
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 9945

def update!(**args)
  @database_id = args[:database_id] if args.key?(:database_id)
  @enable_data_boost = args[:enable_data_boost] if args.key?(:enable_data_boost)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @table_id = args[:table_id] if args.key?(:table_id)
end