Resource: MaterializedView
A materialized view object that can be referenced in SQL queries.
| JSON representation |
|---|
{
"name": string,
"query": string,
"etag": string,
"deletionProtection": boolean,
"clusterStates": {
string: {
object ( |
| Fields | |
|---|---|
name |
Identifier. The unique name of the materialized view. Format: |
query |
Required. Immutable. The materialized view's select query. Views: |
etag |
Optional. The etag for this materialized view. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag. Views: |
deletionProtection |
Set to true to make the MaterializedView protected against deletion. Views: |
clusterStates |
Output only. Map from cluster ID to per-cluster materialized view state. If it could not be determined whether or not the materialized view has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with An object containing a list of |
ClusterState
The state of a materialized view's data in a particular cluster.
| JSON representation |
|---|
{
"replicationState": enum ( |
| Fields | |
|---|---|
replicationState |
Output only. The state of the materialized view in this cluster. |
ReplicationState
Possible states for a materialized view in a given cluster.
| Enums | |
|---|---|
STATE_NOT_KNOWN |
The state of the materialized view is unknown in this cluster. |
INITIALIZING |
The cluster or view was recently created, and the materialized view must finish backfilling before it can begin serving Data API requests. |
READY |
The materialized view can serve Data API requests from this cluster. Depending on materialization and replication delay, reads may not immediately reflect the state of the materialized view in other clusters. |
Methods |
|
|---|---|
|
Creates a materialized view within an instance. |
|
Deletes a materialized view from an instance. |
|
Gets information about a materialized view. |
|
Gets the access control policy for an instance resource. |
|
Lists information about materialized views in an instance. |
|
Updates a materialized view within an instance. |
|
Sets the access control policy on an instance resource. |
|
Returns permissions that the caller has on the specified instance resource. |