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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotDefinition

Returns a new instance of SnapshotDefinition.



6962
6963
6964
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6962

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

Instance Attribute Details

#base_table_referenceGoogle::Apis::BigqueryV2::TableReference

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



6954
6955
6956
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6954

def base_table_reference
  @base_table_reference
end

#snapshot_timeDateTime

[Required] The time at which the base table was snapshot. This value is reported in the JSON response using RFC3339 format. Corresponds to the JSON property snapshotTime

Returns:

  • (DateTime)


6960
6961
6962
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6960

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6967
6968
6969
6970
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6967

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