class Google::Apis::BigqueryV2::MaterializedViewDefinition

Attributes

enable_refresh[RW]
Optional
TrustedTester

Enable automatic refresh of the materialized view

when the base table is updated. The default value is “true”. Corresponds to the JSON property `enableRefresh` @return [Boolean]

enable_refresh?[RW]
Optional
TrustedTester

Enable automatic refresh of the materialized view

when the base table is updated. The default value is “true”. Corresponds to the JSON property `enableRefresh` @return [Boolean]

last_refresh_time[RW]
Output-only
TrustedTester

The time when this materialized view was last

modified, in milliseconds since the epoch. Corresponds to the JSON property `lastRefreshTime` @return [Fixnum]

query[RW]
Required

A query whose result is persisted.

Corresponds to the JSON property `query` @return [String]

refresh_interval_ms[RW]
Optional
TrustedTester

The maximum frequency at which this materialized

view will be refreshed. The default value is “1800000” (30 minutes). Corresponds to the JSON property `refreshIntervalMs` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 4496
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquery_v2/classes.rb, line 4501
def update!(**args)
  @enable_refresh = args[:enable_refresh] if args.key?(:enable_refresh)
  @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
  @query = args[:query] if args.key?(:query)
  @refresh_interval_ms = args[:refresh_interval_ms] if args.key?(:refresh_interval_ms)
end