Class: Google::Apis::BigqueryV2::SnapshotDefinition

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) ⇒ SnapshotDefinition

Returns a new instance of SnapshotDefinition.


5452
5453
5454
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5452

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

Instance Attribute Details

#base_table_referenceGoogle::Apis::BigqueryV2::TableReference

[Required] Reference describing the ID of the table that is snapshotted. Corresponds to the JSON property baseTableReference


5445
5446
5447
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5445

def base_table_reference
  @base_table_reference
end

#snapshot_timeDateTime

[Required] The time at which the base table was snapshot. Corresponds to the JSON property snapshotTime

Returns:

  • (DateTime)

5450
5451
5452
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5450

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5457
5458
5459
5460
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5457

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