# Secret Manager v1 API - Namespace Google.Cloud.SecretManager.V1 (2.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.7.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.6.0/Google.Cloud.SecretManager.V1)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.5.0/Google.Cloud.SecretManager.V1)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.4.0/Google.Cloud.SecretManager.V1)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.3.0/Google.Cloud.SecretManager.V1)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.2.0/Google.Cloud.SecretManager.V1)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.1.0/Google.Cloud.SecretManager.V1)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.0.0/Google.Cloud.SecretManager.V1)
- [1.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.9.0/Google.Cloud.SecretManager.V1)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.8.0/Google.Cloud.SecretManager.V1)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.7.0/Google.Cloud.SecretManager.V1)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.6.0/Google.Cloud.SecretManager.V1)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.5.0/Google.Cloud.SecretManager.V1)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.4.0/Google.Cloud.SecretManager.V1)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.3.0/Google.Cloud.SecretManager.V1)

## Classes

### [AccessSecretVersionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.AccessSecretVersionRequest)

Request message for
\[SecretManagerService.AccessSecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion\].

### [AccessSecretVersionResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.AccessSecretVersionResponse)

Response message for
\[SecretManagerService.AccessSecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion\].

### [AddSecretVersionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.AddSecretVersionRequest)

Request message for
\[SecretManagerService.AddSecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion\].

### [CreateSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.CreateSecretRequest)

Request message for
\[SecretManagerService.CreateSecret\]\[google.cloud.secretmanager.v1.SecretManagerService.CreateSecret\].

### [CustomerManagedEncryption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.CustomerManagedEncryption)

Configuration for encrypting secret payloads using customer-managed
encryption keys (CMEK).

### [CustomerManagedEncryptionStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus)

Describes the status of customer-managed encryption.

### [DeleteSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.DeleteSecretRequest)

Request message for
\[SecretManagerService.DeleteSecret\]\[google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret\].

### [DestroySecretVersionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.DestroySecretVersionRequest)

Request message for
\[SecretManagerService.DestroySecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion\].

### [DisableSecretVersionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.DisableSecretVersionRequest)

Request message for
\[SecretManagerService.DisableSecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion\].

### [EnableSecretVersionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.EnableSecretVersionRequest)

Request message for
\[SecretManagerService.EnableSecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion\].

### [GetSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.GetSecretRequest)

Request message for
\[SecretManagerService.GetSecret\]\[google.cloud.secretmanager.v1.SecretManagerService.GetSecret\].

### [GetSecretVersionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.GetSecretVersionRequest)

Request message for
\[SecretManagerService.GetSecretVersion\]\[google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion\].

### [ListSecretVersionsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretVersionsRequest)

Request message for
\[SecretManagerService.ListSecretVersions\]\[google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions\].

### [ListSecretVersionsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretVersionsResponse)

Response message for
\[SecretManagerService.ListSecretVersions\]\[google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions\].

### [ListSecretsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsRequest)

Request message for
\[SecretManagerService.ListSecrets\]\[google.cloud.secretmanager.v1.SecretManagerService.ListSecrets\].

### [ListSecretsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse)

Response message for
\[SecretManagerService.ListSecrets\]\[google.cloud.secretmanager.v1.SecretManagerService.ListSecrets\].

### [Replication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication)

A policy that defines the replication and encryption configuration of data.

### [Replication.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types)

Container for nested types declared in the Replication message type.

### [Replication.Types.Automatic](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.Automatic)

A replication policy that replicates the
\[Secret\]\[google.cloud.secretmanager.v1.Secret\] payload without any
restrictions.

### [Replication.Types.UserManaged](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged)

A replication policy that replicates the
\[Secret\]\[google.cloud.secretmanager.v1.Secret\] payload into the locations
specified in
\[Replication.UserManaged.replicas\]\[google.cloud.secretmanager.v1.Replication.UserManaged.replicas\]

### [Replication.Types.UserManaged.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types)

Container for nested types declared in the UserManaged message type.

### [Replication.Types.UserManaged.Types.Replica](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica)

Represents a Replica for this
\[Secret\]\[google.cloud.secretmanager.v1.Secret\].

### [ReplicationStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus)

The replication status of a
\[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\].

### [ReplicationStatus.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus.Types)

Container for nested types declared in the ReplicationStatus message type.

### [ReplicationStatus.Types.AutomaticStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus.Types.AutomaticStatus)

The replication status of a
\[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\] using
automatic replication.

Only populated if the parent \[Secret\]\[google.cloud.secretmanager.v1.Secret\]
has an automatic replication policy.

### [ReplicationStatus.Types.UserManagedStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus)

The replication status of a
\[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\] using
user-managed replication.

Only populated if the parent \[Secret\]\[google.cloud.secretmanager.v1.Secret\]
has a user-managed replication policy.

### [ReplicationStatus.Types.UserManagedStatus.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus.Types)

Container for nested types declared in the UserManagedStatus message type.

### [ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus)

Describes the status of a user-managed replica for the
\[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\].

### [Rotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Rotation)

The rotation time and period for a
\[Secret\]\[google.cloud.secretmanager.v1.Secret\]. At next_rotation_time, Secret
Manager will send a Pub/Sub notification to the topics configured on the
Secret. \[Secret.topics\]\[google.cloud.secretmanager.v1.Secret.topics\] must be
set to configure rotation.

### [Secret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Secret)

A \[Secret\]\[google.cloud.secretmanager.v1.Secret\] is a logical secret whose
value and versions can be accessed.

A \[Secret\]\[google.cloud.secretmanager.v1.Secret\] is made up of zero or more
\[SecretVersions\]\[google.cloud.secretmanager.v1.SecretVersion\] that represent
the secret data.

### [SecretManagerService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerService)

Secret Manager Service

Manages secrets and operations using those secrets. Implements a REST
model with the following objects:

- \[Secret\]\[google.cloud.secretmanager.v1.Secret\]
- \[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\]

### [SecretManagerService.SecretManagerServiceBase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerService.SecretManagerServiceBase)

Base class for server-side implementations of SecretManagerService

### [SecretManagerService.SecretManagerServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerService.SecretManagerServiceClient)

Client for SecretManagerService

### [SecretManagerServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerServiceClient)

SecretManagerService client wrapper, for convenient use.

### [SecretManagerServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerServiceClientBuilder)

Builder class for [SecretManagerServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerServiceClient) to provide simple configuration of credentials,
endpoint etc.

### [SecretManagerServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerServiceClientImpl)

SecretManagerService client wrapper implementation, for convenient use.

### [SecretManagerServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerServiceSettings)

Settings for [SecretManagerServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretManagerServiceClient) instances.

### [SecretName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretName)

Resource name for the `Secret` resource.

### [SecretPayload](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretPayload)

A secret payload resource in the Secret Manager API. This contains the
sensitive secret payload that is associated with a
\[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\].

### [SecretVersion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretVersion)

A secret version resource in the Secret Manager API.

### [SecretVersion.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretVersion.Types)

Container for nested types declared in the SecretVersion message type.

### [SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretVersionName)

Resource name for the `SecretVersion` resource.

### [Topic](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Topic)

A Pub/Sub topic which Secret Manager will publish to when control plane
events occur on this secret.

### [TopicName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.TopicName)

Resource name for the `Topic` resource.

### [UpdateSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.UpdateSecretRequest)

Request message for
\[SecretManagerService.UpdateSecret\]\[google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret\].

## Enums

### [Replication.ReplicationOneofCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Replication.ReplicationOneofCase)

Enum of possible cases for the "replication" oneof.

### [ReplicationStatus.ReplicationStatusOneofCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ReplicationStatus.ReplicationStatusOneofCase)

Enum of possible cases for the "replication_status" oneof.

### [Secret.ExpirationOneofCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Secret.ExpirationOneofCase)

Enum of possible cases for the "expiration" oneof.

### [SecretName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretName.ResourceNameType)

The possible contents of [SecretName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretName).

### [SecretVersion.Types.State](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretVersion.Types.State)

The state of a
\[SecretVersion\]\[google.cloud.secretmanager.v1.SecretVersion\], indicating if
it can be accessed.

### [SecretVersionName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretVersionName.ResourceNameType)

The possible contents of [SecretVersionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretVersionName).

### [TopicName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.TopicName.ResourceNameType)

The possible contents of [TopicName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.TopicName).