Class: Google::Apis::BigqueryV2::MaterializedViewDefinition
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::MaterializedViewDefinition
- 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
-
#enable_refresh ⇒ Boolean
(also: #enable_refresh?)
[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated.
-
#last_refresh_time ⇒ Fixnum
[Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
-
#query ⇒ String
[Required] A query whose result is persisted.
-
#refresh_interval_ms ⇒ Fixnum
[Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaterializedViewDefinition
constructor
A new instance of MaterializedViewDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaterializedViewDefinition
Returns a new instance of MaterializedViewDefinition.
4216 4217 4218 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_refresh ⇒ Boolean Also known as: enable_refresh?
[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
4196 4197 4198 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4196 def enable_refresh @enable_refresh end |
#last_refresh_time ⇒ Fixnum
[Output-only] [TrustedTester] The time when this materialized view was last
modified, in milliseconds since the epoch.
Corresponds to the JSON property lastRefreshTime
4203 4204 4205 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4203 def last_refresh_time @last_refresh_time end |
#query ⇒ String
[Required] A query whose result is persisted.
Corresponds to the JSON property query
4208 4209 4210 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4208 def query @query end |
#refresh_interval_ms ⇒ Fixnum
[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
4214 4215 4216 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4214 def refresh_interval_ms @refresh_interval_ms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4221 4222 4223 4224 4225 4226 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4221 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 |