[BindServiceMethod(typeof(CloudRedisCluster), "BindService")]
public abstract class CloudRedisCluster.CloudRedisClusterBaseReference documentation and code samples for the Google Cloud Memorystore for Redis (cluster management) v1 API class CloudRedisCluster.CloudRedisClusterBase.
Base class for server-side implementations of CloudRedisCluster
Namespace
Google.Cloud.Redis.Cluster.V1Assembly
Google.Cloud.Redis.Cluster.V1.dll
Methods
BackupCluster(BackupClusterRequest, ServerCallContext)
public virtual Task<Operation> BackupCluster(BackupClusterRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
BackupClusterRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
CreateCluster(CreateClusterRequest, ServerCallContext)
public virtual Task<Operation> CreateCluster(CreateClusterRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateClusterRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DeleteBackup(DeleteBackupRequest, ServerCallContext)
public virtual Task<Operation> DeleteBackup(DeleteBackupRequest request, ServerCallContext context)Deletes a specific backup.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DeleteCluster(DeleteClusterRequest, ServerCallContext)
public virtual Task<Operation> DeleteCluster(DeleteClusterRequest request, ServerCallContext context)Deletes a specific Redis cluster. Cluster stops serving and data is deleted.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteClusterRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
ExportBackup(ExportBackupRequest, ServerCallContext)
public virtual Task<Operation> ExportBackup(ExportBackupRequest request, ServerCallContext context)Exports a specific backup to a customer target Cloud Storage URI.
| Parameters | |
|---|---|
| Name | Description |
request |
ExportBackupRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
GetBackup(GetBackupRequest, ServerCallContext)
public virtual Task<Backup> GetBackup(GetBackupRequest request, ServerCallContext context)Gets the details of a specific backup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
The response to send back to the client (wrapped by a task). |
GetBackupCollection(GetBackupCollectionRequest, ServerCallContext)
public virtual Task<BackupCollection> GetBackupCollection(GetBackupCollectionRequest request, ServerCallContext context)Get a backup collection.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupCollectionRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupCollection |
The response to send back to the client (wrapped by a task). |
GetCluster(GetClusterRequest, ServerCallContext)
public virtual Task<Cluster> GetCluster(GetClusterRequest request, ServerCallContext context)Gets the details of a specific Redis cluster.
| Parameters | |
|---|---|
| Name | Description |
request |
GetClusterRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCluster |
The response to send back to the client (wrapped by a task). |
GetClusterCertificateAuthority(GetClusterCertificateAuthorityRequest, ServerCallContext)
public virtual Task<CertificateAuthority> GetClusterCertificateAuthority(GetClusterCertificateAuthorityRequest request, ServerCallContext context)Gets the details of certificate authority information for Redis cluster.
| Parameters | |
|---|---|
| Name | Description |
request |
GetClusterCertificateAuthorityRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCertificateAuthority |
The response to send back to the client (wrapped by a task). |
ListBackupCollections(ListBackupCollectionsRequest, ServerCallContext)
public virtual Task<ListBackupCollectionsResponse> ListBackupCollections(ListBackupCollectionsRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupCollectionsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListBackupCollectionsResponse |
The response to send back to the client (wrapped by a task). |
ListBackups(ListBackupsRequest, ServerCallContext)
public virtual Task<ListBackupsResponse> ListBackups(ListBackupsRequest request, ServerCallContext context)Lists all backups owned by a backup collection.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListBackupsResponse |
The response to send back to the client (wrapped by a task). |
ListClusters(ListClustersRequest, ServerCallContext)
public virtual Task<ListClustersResponse> ListClusters(ListClustersRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
ListClustersRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListClustersResponse |
The response to send back to the client (wrapped by a task). |
RescheduleClusterMaintenance(RescheduleClusterMaintenanceRequest, ServerCallContext)
public virtual Task<Operation> RescheduleClusterMaintenance(RescheduleClusterMaintenanceRequest request, ServerCallContext context)Reschedules upcoming maintenance event.
| Parameters | |
|---|---|
| Name | Description |
request |
RescheduleClusterMaintenanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UpdateCluster(UpdateClusterRequest, ServerCallContext)
public virtual Task<Operation> UpdateCluster(UpdateClusterRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateClusterRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |