Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBigQuerySource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaBigQuerySource

Returns a new instance of GoogleCloudRetailV2betaBigQuerySource.



855
856
857
# File 'lib/google/apis/retail_v2beta/classes.rb', line 855

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

Instance Attribute Details

#data_schemaString

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: Using https://support.google.com/analytics/answer/3437719? hl=en. Corresponds to the JSON property dataSchema

Returns:

  • (String)


827
828
829
# File 'lib/google/apis/retail_v2beta/classes.rb', line 827

def data_schema
  @data_schema
end

#dataset_idString

Required. The BigQuery data set to copy the data from with a length limit of 1, 024 characters. Corresponds to the JSON property datasetId

Returns:

  • (String)


833
834
835
# File 'lib/google/apis/retail_v2beta/classes.rb', line 833

def dataset_id
  @dataset_id
end

#gcs_staging_dirString

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

Returns:

  • (String)


840
841
842
# File 'lib/google/apis/retail_v2beta/classes.rb', line 840

def gcs_staging_dir
  @gcs_staging_dir
end

#project_idString

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

Returns:

  • (String)


847
848
849
# File 'lib/google/apis/retail_v2beta/classes.rb', line 847

def project_id
  @project_id
end

#table_idString

Required. The BigQuery table to copy the data from with a length limit of 1, 024 characters. Corresponds to the JSON property tableId

Returns:

  • (String)


853
854
855
# File 'lib/google/apis/retail_v2beta/classes.rb', line 853

def table_id
  @table_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



860
861
862
863
864
865
866
# File 'lib/google/apis/retail_v2beta/classes.rb', line 860

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