# Secret Manager v1beta1 API - Class UpdateSecretRequest (3.0.0-beta07)

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

- [3.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest)
- [3.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/3.0.0-beta06/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/2.0.0-beta05/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest)

    public sealed class UpdateSecretRequest : IMessage<UpdateSecretRequest>, IEquatable<UpdateSecretRequest>, IDeepCloneable<UpdateSecretRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Secret Manager v1beta1 API class UpdateSecretRequest.

Request message for
\[SecretManagerService.UpdateSecret\]\[google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> UpdateSecretRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.SecretManager.V1Beta1.dll

## Constructors

### UpdateSecretRequest()

    public UpdateSecretRequest()

### UpdateSecretRequest(UpdateSecretRequest)

    public UpdateSecretRequest(UpdateSecretRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.UpdateSecretRequest` |

## Properties

### Secret

    public Secret Secret { get; set; }

Required. \[Secret\]\[google.cloud.secrets.v1beta1.Secret\] with updated field
values.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.Secret` |   |

### UpdateMask

    public FieldMask UpdateMask { get; set; }

Required. Specifies the fields to be updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` |   |