Class: Google::Apis::SheetsV4::BigQueryTableSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb

Overview

Specifies a BigQuery table definition. Only native tables is allowed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BigQueryTableSpec

Returns a new instance of BigQueryTableSpec.



2038
2039
2040
# File 'lib/google/apis/sheets_v4/classes.rb', line 2038

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

Instance Attribute Details

#dataset_idString

The BigQuery dataset id. Corresponds to the JSON property datasetId

Returns:

  • (String)


2025
2026
2027
# File 'lib/google/apis/sheets_v4/classes.rb', line 2025

def dataset_id
  @dataset_id
end

#table_idString

The BigQuery table id. Corresponds to the JSON property tableId

Returns:

  • (String)


2030
2031
2032
# File 'lib/google/apis/sheets_v4/classes.rb', line 2030

def table_id
  @table_id
end

#table_project_idString

The ID of a BigQuery project the table belongs to. If not specified, the project_id is assumed. Corresponds to the JSON property tableProjectId

Returns:

  • (String)


2036
2037
2038
# File 'lib/google/apis/sheets_v4/classes.rb', line 2036

def table_project_id
  @table_project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2043
2044
2045
2046
2047
# File 'lib/google/apis/sheets_v4/classes.rb', line 2043

def update!(**args)
  @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
  @table_id = args[:table_id] if args.key?(:table_id)
  @table_project_id = args[:table_project_id] if args.key?(:table_project_id)
end