Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SpannerSource
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SpannerSource
- 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
-
#database_id ⇒ String
Required.
-
#enable_data_boost ⇒ Boolean
(also: #enable_data_boost?)
Whether to apply data boost on Spanner export.
-
#instance_id ⇒ String
Required.
-
#project_id ⇒ String
The project ID that contains the Spanner source.
-
#table_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SpannerSource
constructor
A new instance of GoogleCloudDiscoveryengineV1SpannerSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SpannerSource
Returns a new instance of GoogleCloudDiscoveryengineV1SpannerSource.
8736 8737 8738 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8736 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_id ⇒ String
Required. The database ID of the source Spanner table.
Corresponds to the JSON property databaseId
8710 8711 8712 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8710 def database_id @database_id end |
#enable_data_boost ⇒ Boolean 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
8717 8718 8719 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8717 def enable_data_boost @enable_data_boost end |
#instance_id ⇒ String
Required. The instance ID of the source Spanner table.
Corresponds to the JSON property instanceId
8723 8724 8725 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8723 def instance_id @instance_id end |
#project_id ⇒ String
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
8729 8730 8731 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8729 def project_id @project_id end |
#table_id ⇒ String
Required. The table name of the Spanner database that needs to be imported.
Corresponds to the JSON property tableId
8734 8735 8736 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8734 def table_id @table_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8741 8742 8743 8744 8745 8746 8747 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8741 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 |