Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCloudSqlSource
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCloudSqlSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Cloud SQL source import data from.
Instance Attribute Summary collapse
-
#database_id ⇒ String
Required.
-
#gcs_staging_dir ⇒ String
Optional.
-
#instance_id ⇒ String
Required.
-
#offload ⇒ Boolean
(also: #offload?)
Optional.
-
#project_id ⇒ String
Optional.
-
#table_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCloudSqlSource
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaCloudSqlSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCloudSqlSource
Returns a new instance of GoogleCloudDiscoveryengineV1alphaCloudSqlSource.
2176 2177 2178 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_id ⇒ String
Required. The Cloud SQL database to copy the data from with a length limit of
256 characters.
Corresponds to the JSON property databaseId
2139 2140 2141 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2139 def database_id @database_id end |
#gcs_staging_dir ⇒ String
Optional. Intermediate Cloud Storage directory used for the import with a
length limit of 2,000 characters. Can be specified if one wants to have the
Cloud SQL export to a specific Cloud Storage directory. Please ensure that the
Cloud SQL service account has the necessary GCS Storage Admin permissions to
access the specified GCS directory.
Corresponds to the JSON property gcsStagingDir
2148 2149 2150 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2148 def gcs_staging_dir @gcs_staging_dir end |
#instance_id ⇒ String
Required. The Cloud SQL instance to copy the data from with a length limit of
256 characters.
Corresponds to the JSON property instanceId
2154 2155 2156 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2154 def instance_id @instance_id end |
#offload ⇒ Boolean Also known as: offload?
Optional. Option for serverless export. Enabling this option will incur
additional cost. More info: https://cloud.google.com/sql/pricing#serverless
Corresponds to the JSON property offload
2160 2161 2162 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2160 def offload @offload end |
#project_id ⇒ String
Optional. The project ID (can be project # or ID) that the Cloud SQL source is
in with a length limit of 128 characters. If not specified, inherits the
project ID from the parent request.
Corresponds to the JSON property projectId
2168 2169 2170 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2168 def project_id @project_id end |
#table_id ⇒ String
Required. The Cloud SQL table to copy the data from with a length limit of 256
characters.
Corresponds to the JSON property tableId
2174 2175 2176 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2174 def table_id @table_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2181 2182 2183 2184 2185 2186 2187 2188 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2181 def update!(**args) @database_id = args[:database_id] if args.key?(:database_id) @gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir) @instance_id = args[:instance_id] if args.key?(:instance_id) @offload = args[:offload] if args.key?(:offload) @project_id = args[:project_id] if args.key?(:project_id) @table_id = args[:table_id] if args.key?(:table_id) end |