Redis
import { Redis } from "https://googleapis.deno.dev/v1/redis:v1.ts";
Creates and manages Redis instances on the Google Cloud Platform.
§Methods
Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
Required. The resource name of the cluster location using the form: projects/{project_id}/locations/{location_id}
where location_id
refers to a GCP region.
Deletes a specific Redis cluster. Cluster stops serving and data is deleted.
Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
where location_id
refers to a GCP region.
Gets the details of certificate authority information for Redis cluster.
Required. Redis cluster certificate authority resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority
where location_id
refers to a GCP region.
Lists all Redis clusters owned by a project in either the specified
location (region) or all locations. The location should have the following
format: * projects/{project_id}/locations/{location_id}
If location_id
is specified as -
(wildcard), then all regions available to the project
are queried, and the results are aggregated.
Required. The resource name of the cluster location using the form: projects/{project_id}/locations/{location_id}
where location_id
refers to a GCP region.
Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's default network. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
Required. The resource name of the instance location using the form: projects/{project_id}/locations/{location_id}
where location_id
refers to a GCP region.
Deletes a specific Redis instance. Instance stops serving and data is deleted.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Lists all Redis instances owned by a project in either the specified
location (region) or all locations. The location should have the following
format: * projects/{project_id}/locations/{location_id}
If location_id
is specified as -
(wildcard), then all regions available to the project
are queried, and the results are aggregated.
Required. The resource name of the instance location using the form: projects/{project_id}/locations/{location_id}
where location_id
refers to a GCP region.
Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details.
Reschedule maintenance for a given instance in a given project and location.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Upgrades Redis instance to the newer Redis version specified in the request.
Required. Redis instance resource name using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id
refers to a GCP region.
Lists information about the supported locations for this service.
The resource that owns the locations collection, if applicable.
Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation, the
operation is not deleted; instead, it becomes an operation with an
Operation.error value with a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
.
The name of the operation resource to be cancelled.
Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
.
The name of the operation resource to be deleted.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.