Redis
import { Redis } from "https://googleapis.deno.dev/v1/redis:v1.ts";
Creates and manages Redis instances on the Google Cloud Platform.
§Methods
Deletes a specific backup.
Required. Redis backup resource name using the form: projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}
Exports a specific backup to a customer target Cloud Storage URI.
Required. Redis backup resource name using the form: projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}
Lists all backups owned by a backup collection.
Required. The resource name of the backupCollection using the form: projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}
Get a backup collection.
Required. Redis backupCollection resource name using the form: projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}
where location_id
refers to a Google Cloud region.
Lists all backup collections owned by a consumer project in either the
specified location (region) or all locations. 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 backupCollection location using the form: projects/{project_id}/locations/{location_id}
where location_id
refers to a Google Cloud region.
Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.
Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
where location_id
refers to a Google Cloud region.
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 Google Cloud 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 Google Cloud 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 Google Cloud 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 Google Cloud 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. Identifier. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
Reschedules upcoming maintenance event.
Required. Redis Cluster instance resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
where location_id
refers to a Google Cloud region.
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.