Class: Google::Apis::BigqueryV2::DatasetReference

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

Overview

Identifier for a dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatasetReference

Returns a new instance of DatasetReference.



2256
2257
2258
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2256

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

Instance Attribute Details

#dataset_idString

Required. A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. Corresponds to the JSON property datasetId

Returns:

  • (String)


2249
2250
2251
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2249

def dataset_id
  @dataset_id
end

#project_idString

Optional. The ID of the project containing this dataset. Corresponds to the JSON property projectId

Returns:

  • (String)


2254
2255
2256
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2254

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2261
2262
2263
2264
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2261

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