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



2514
2515
2516
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2514

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)


2507
2508
2509
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2507

def last_refresh_time
  @last_refresh_time
end

#queryString

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

Returns:

  • (String)


2512
2513
2514
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2512

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2519
2520
2521
2522
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2519

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