Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb
Overview
BigQuery source import data from.
Instance Attribute Summary collapse
-
#data_schema ⇒ String
Optional.
-
#dataset_id ⇒ String
Required.
-
#gcs_staging_dir ⇒ String
Optional.
-
#project_id ⇒ String
Optional.
-
#table_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1BigQuerySource
constructor
A new instance of GoogleCloudRecommendationengineV1beta1BigQuerySource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1BigQuerySource
Returns a new instance of GoogleCloudRecommendationengineV1beta1BigQuerySource.
179 180 181 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 179 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_schema ⇒ String
Optional. The schema to use when parsing the data from the source. Supported
values for catalog imports: 1: "catalog_recommendations_ai" using https://
cloud.google.com/recommendations-ai/docs/upload-catalog#json (Default for
catalogItems.import) 2: "catalog_merchant_center" using https://cloud.google.
com/recommendations-ai/docs/upload-catalog#mc Supported values for user event
imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/
recommendations-ai/docs/manage-user-events#import (Default for userEvents.
import) 2. "user_events_ga360" using https://support.google.com/analytics/
answer/3437719?hl=en
Corresponds to the JSON property dataSchema
154 155 156 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 154 def data_schema @data_schema end |
#dataset_id ⇒ String
Required. The BigQuery data set to copy the data from.
Corresponds to the JSON property datasetId
159 160 161 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 159 def dataset_id @dataset_id end |
#gcs_staging_dir ⇒ String
Optional. Intermediate Cloud Storage directory used for the import. Can be
specified if one wants to have the BigQuery export to a specific Cloud Storage
directory.
Corresponds to the JSON property gcsStagingDir
166 167 168 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 166 def gcs_staging_dir @gcs_staging_dir end |
#project_id ⇒ String
Optional. The project id (can be project # or id) that the BigQuery source is
in. If not specified, inherits the project id from the parent request.
Corresponds to the JSON property projectId
172 173 174 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 172 def project_id @project_id end |
#table_id ⇒ String
Required. The BigQuery table to copy the data from.
Corresponds to the JSON property tableId
177 178 179 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 177 def table_id @table_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
184 185 186 187 188 189 190 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 184 def update!(**args) @data_schema = args[:data_schema] if args.key?(:data_schema) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) @gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir) @project_id = args[:project_id] if args.key?(:project_id) @table_id = args[:table_id] if args.key?(:table_id) end |