Class: Google::Apis::BigqueryV2::MaterializedViewDefinition

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

Returns a new instance of MaterializedViewDefinition



2582
2583
2584
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2582

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

Instance Attribute Details

#last_refresh_timeFixnum

[Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch. Corresponds to the JSON property lastRefreshTime

Returns:

  • (Fixnum)


2575
2576
2577
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2575

def last_refresh_time
  @last_refresh_time
end

#queryString

[Required] A query whose result is persisted. Corresponds to the JSON property query

Returns:

  • (String)


2580
2581
2582
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2580

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2587
2588
2589
2590
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2587

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