REST Resource: projects.instances.materializedViews

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 (ClusterState)
    },
    ...
  }
}
Fields
name

string

Identifier. The unique name of the materialized view. Format: projects/{project}/instances/{instance}/materializedViews/{materializedView} Views: SCHEMA_VIEW, REPLICATION_VIEW, FULL.

query

string

Required. Immutable. The materialized view's select query. Views: SCHEMA_VIEW, FULL.

etag

string

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: SCHEMA_VIEW, REPLICATION_VIEW, FULL.

deletionProtection

boolean

Set to true to make the MaterializedView protected against deletion. Views: SCHEMA_VIEW, REPLICATION_VIEW, FULL.

clusterStates

map (key: string, value: object (ClusterState))

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 STATE_NOT_KNOWN state. Views: REPLICATION_VIEW, FULL.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

ClusterState

The state of a materialized view's data in a particular cluster.

JSON representation
{
  "replicationState": enum (ReplicationState)
}
Fields
replicationState

enum (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

create

Creates a materialized view within an instance.

delete

Deletes a materialized view from an instance.

get

Gets information about a materialized view.

getIamPolicy

Gets the access control policy for an instance resource.

list

Lists information about materialized views in an instance.

patch

Updates a materialized view within an instance.

setIamPolicy

Sets the access control policy on an instance resource.

testIamPermissions

Returns permissions that the caller has on the specified instance resource.