public sealed class SecretOperationsServiceClientImpl : SecretOperationsServiceClientReference documentation and code samples for the Secret Manager v1 API class SecretOperationsServiceClientImpl.
SecretOperationsService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.SecretManager.V1Assembly
Google.Cloud.SecretManager.V1.dll
Remarks
Secret Operations Service
Manages backups of secrets. Implements a REST model with the following objects:
- [Backup][google.cloud.secretmanager.v1.Backup]
Note: SecretOperationsService is a regional service and must be called
using regional endpoints (secretmanager.{location}.rep.googleapis.com).
Constructors
SecretOperationsServiceClientImpl(SecretOperationsServiceClient, SecretOperationsServiceSettings, ILogger)
public SecretOperationsServiceClientImpl(SecretOperationsService.SecretOperationsServiceClient grpcClient, SecretOperationsServiceSettings settings, ILogger logger)Constructs a client wrapper for the SecretOperationsService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
SecretOperationsServiceSecretOperationsServiceClientThe underlying gRPC client. |
settings |
SecretOperationsServiceSettingsThe base SecretOperationsServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
CreateBackupOperationsClient
public override OperationsClient CreateBackupOperationsClient { get; }The long-running operations client for CreateBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteBackupOperationsClient
public override OperationsClient DeleteBackupOperationsClient { get; }The long-running operations client for DeleteBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override SecretOperationsService.SecretOperationsServiceClient GrpcClient { get; }The underlying gRPC SecretOperationsService client
| Property Value | |
|---|---|
| Type | Description |
SecretOperationsServiceSecretOperationsServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
RestoreBackupOperationsClient
public override OperationsClient RestoreBackupOperationsClient { get; }The long-running operations client for RestoreBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateBackupOperationsClient
public override OperationsClient UpdateBackupOperationsClient { get; }The long-running operations client for UpdateBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
CreateBackup(CreateBackupRequest, CallSettings)
public override Operation<Backup, OperationMetadata> CreateBackup(CreateBackupRequest request, CallSettings callSettings = null)Creates a new Backup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
CreateBackupAsync(CreateBackupRequest, CallSettings)
public override Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(CreateBackupRequest request, CallSettings callSettings = null)Creates a new Backup in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
DeleteBackup(DeleteBackupRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteBackup(DeleteBackupRequest request, CallSettings callSettings = null)Deletes a single Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
DeleteBackupAsync(DeleteBackupRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(DeleteBackupRequest request, CallSettings callSettings = null)Deletes a single Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
GetBackup(GetBackupRequest, CallSettings)
public override Backup GetBackup(GetBackupRequest request, CallSettings callSettings = null)Gets details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Backup |
The RPC response. |
GetBackupAsync(GetBackupRequest, CallSettings)
public override Task<Backup> GetBackupAsync(GetBackupRequest request, CallSettings callSettings = null)Gets details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
ListBackups(ListBackupsRequest, CallSettings)
public override PagedEnumerable<ListBackupsResponse, Backup> ListBackups(ListBackupsRequest request, CallSettings callSettings = null)Lists Backups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupsResponseBackup |
A pageable sequence of Backup resources. |
ListBackupsAsync(ListBackupsRequest, CallSettings)
public override PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(ListBackupsRequest request, CallSettings callSettings = null)Lists Backups in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupsResponseBackup |
A pageable asynchronous sequence of Backup resources. |
RestoreBackup(RestoreBackupRequest, CallSettings)
public override Operation<Secret, OperationMetadata> RestoreBackup(RestoreBackupRequest request, CallSettings callSettings = null)Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given [Backup][google.cloud.secretmanager.v1.Backup]. This creates a new [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration process, and the result of the LRO is the newly created Secret.
| Parameters | |
|---|---|
| Name | Description |
request |
RestoreBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSecretOperationMetadata |
The RPC response. |
RestoreBackupAsync(RestoreBackupRequest, CallSettings)
public override Task<Operation<Secret, OperationMetadata>> RestoreBackupAsync(RestoreBackupRequest request, CallSettings callSettings = null)Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given [Backup][google.cloud.secretmanager.v1.Backup]. This creates a new [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration process, and the result of the LRO is the newly created Secret.
| Parameters | |
|---|---|
| Name | Description |
request |
RestoreBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSecretOperationMetadata |
A Task containing the RPC response. |
UpdateBackup(UpdateBackupRequest, CallSettings)
public override Operation<Backup, OperationMetadata> UpdateBackup(UpdateBackupRequest request, CallSettings callSettings = null)Updates the parameters of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
UpdateBackupAsync(UpdateBackupRequest, CallSettings)
public override Task<Operation<Backup, OperationMetadata>> UpdateBackupAsync(UpdateBackupRequest request, CallSettings callSettings = null)Updates the parameters of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |