Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBigQuerySource
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBigQuerySource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
BigQuery source import data from.
Instance Attribute Summary collapse
-
#data_schema ⇒ String
The schema to use when parsing the data from the source.
-
#dataset_id ⇒ String
Required.
-
#gcs_staging_dir ⇒ String
Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.
-
#partition_date ⇒ Google::Apis::RetailV2beta::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#project_id ⇒ String
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters.
-
#table_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaBigQuerySource
constructor
A new instance of GoogleCloudRetailV2betaBigQuerySource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaBigQuerySource
Returns a new instance of GoogleCloudRetailV2betaBigQuerySource.
2843 2844 2845 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2843 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_schema ⇒ String
The schema to use when parsing the data from the source. Supported values for
product imports: * product
(default): One JSON Product per line. Each
product must have a valid Product.id. * product_merchant_center
: See
Importing catalog data from Merchant Center. Supported values for user events
imports: * user_event
(default): One JSON UserEvent per line. *
user_event_ga360
: The schema is available here: https://support.google.com/
analytics/answer/3437719. * user_event_ga4
: The schema is available here:
https://support.google.com/analytics/answer/7029846. Supported values for
autocomplete imports: * suggestions
(default): One JSON completion
suggestion per line. * denylist
: One JSON deny suggestion per line. *
allowlist
: One JSON allow suggestion per line.
Corresponds to the JSON property dataSchema
2803 2804 2805 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2803 def data_schema @data_schema end |
#dataset_id ⇒ String
Required. The BigQuery data set to copy the data from with a length limit of 1,
024 characters.
Corresponds to the JSON property datasetId
2809 2810 2811 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2809 def dataset_id @dataset_id end |
#gcs_staging_dir ⇒ String
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 BigQuery export
to a specific Cloud Storage directory.
Corresponds to the JSON property gcsStagingDir
2816 2817 2818 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2816 def gcs_staging_dir @gcs_staging_dir end |
#partition_date ⇒ Google::Apis::RetailV2beta::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property partitionDate
2828 2829 2830 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2828 def partition_date @partition_date end |
#project_id ⇒ String
The project ID (can be project # or ID) that the BigQuery 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
2835 2836 2837 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2835 def project_id @project_id end |
#table_id ⇒ String
Required. The BigQuery table to copy the data from with a length limit of 1,
024 characters.
Corresponds to the JSON property tableId
2841 2842 2843 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2841 def table_id @table_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2848 2849 2850 2851 2852 2853 2854 2855 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2848 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) @partition_date = args[:partition_date] if args.key?(:partition_date) @project_id = args[:project_id] if args.key?(:project_id) @table_id = args[:table_id] if args.key?(:table_id) end |