Skip to main content

clusters_memory_layer

Creates, updates, deletes, gets or lists a clusters_memory_layer resource.

Overview​

Nameclusters_memory_layer
TypeResource
Idgoogle.bigtableadmin.clusters_memory_layer

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the memory layer. This is always: "projects/{project}/instances/{instance}/clusters/{cluster}/memoryLayer".
etagstringOptional. The etag for this memory layer. 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.
memoryConfigobjectThe configuration of this memory layer. Set an empty memory_config to enable the memory layer. Unset this to disable the memory layer. (id: GoogleBigtableAdminV2MemoryLayerMemoryConfig)
statestringOutput only. The current state of the memory layer. (STATE_NOT_KNOWN, READY, ENABLING, RESIZING, DISABLED)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_memory_layerselectprojectsId, instancesId, clustersIdGets information about the memory layer of a cluster.
update_memory_layerupdateprojectsId, instancesId, clustersIdupdateMaskUpdates the memory layer of a cluster. To enable the memory layer, set the memory_config. To disable the memory layer, unset the memory_config.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
clustersIdstring
instancesIdstring
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets information about the memory layer of a cluster.

SELECT
name,
etag,
memoryConfig,
state
FROM google.bigtableadmin.clusters_memory_layer
WHERE projectsId = '{{ projectsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required
AND clustersId = '{{ clustersId }}' -- required
;

UPDATE examples​

Updates the memory layer of a cluster. To enable the memory layer, set the memory_config. To disable the memory layer, unset the memory_config.

UPDATE google.bigtableadmin.clusters_memory_layer
SET
data__etag = '{{ etag }}',
data__memoryConfig = '{{ memoryConfig }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND clustersId = '{{ clustersId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;