[BindServiceMethod(typeof(CloudRedisCluster), "BindService")]
public abstract class CloudRedisCluster.CloudRedisClusterBase
Reference 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 |
BackupClusterRequest The request received from the client. |
context |
ServerCallContext The 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 |
CreateClusterRequest The request received from the client. |
context |
ServerCallContext The 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 |
DeleteBackupRequest The request received from the client. |
context |
ServerCallContext The 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 |
DeleteClusterRequest The request received from the client. |
context |
ServerCallContext The 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 |
ExportBackupRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetBackupRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetBackupCollectionRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetClusterRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetClusterCertificateAuthorityRequest The request received from the client. |
context |
ServerCallContext The 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 |
ListBackupCollectionsRequest The request received from the client. |
context |
ServerCallContext The 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 |
ListBackupsRequest The request received from the client. |
context |
ServerCallContext The 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 |
ListClustersRequest The request received from the client. |
context |
ServerCallContext The 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 |
RescheduleClusterMaintenanceRequest The request received from the client. |
context |
ServerCallContext The 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 |
UpdateClusterRequest The request received from the client. |
context |
ServerCallContext The 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). |