Class: Google::Apis::BigqueryV2::DatasetList::Dataset

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Dataset

Returns a new instance of Dataset.


516
517
518
# File 'generated/google/apis/bigquery_v2/classes.rb', line 516

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

Instance Attribute Details

#dataset_referenceGoogle::Apis::BigqueryV2::DatasetReference

The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID. Corresponds to the JSON property datasetReference


493
494
495
# File 'generated/google/apis/bigquery_v2/classes.rb', line 493

def dataset_reference
  @dataset_reference
end

#friendly_nameString

A descriptive name for the dataset, if one exists. Corresponds to the JSON property friendlyName

Returns:

  • (String)

498
499
500
# File 'generated/google/apis/bigquery_v2/classes.rb', line 498

def friendly_name
  @friendly_name
end

#idString

The fully-qualified, unique, opaque ID of the dataset. Corresponds to the JSON property id

Returns:

  • (String)

503
504
505
# File 'generated/google/apis/bigquery_v2/classes.rb', line 503

def id
  @id
end

#kindString

The resource type. This property always returns the value "bigquery#dataset". Corresponds to the JSON property kind

Returns:

  • (String)

508
509
510
# File 'generated/google/apis/bigquery_v2/classes.rb', line 508

def kind
  @kind
end

#labelsHash<String,String>

[Experimental] The labels associated with this dataset. You can use these to organize and group your datasets. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)

514
515
516
# File 'generated/google/apis/bigquery_v2/classes.rb', line 514

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


521
522
523
524
525
526
527
# File 'generated/google/apis/bigquery_v2/classes.rb', line 521

def update!(**args)
  @dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
end