# Security Center Management v1 API - Class UpdateSecurityCenterServiceRequest (1.3.0)

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

- [1.3.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/1.2.0/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/1.1.0/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/1.0.0/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest)

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

Reference documentation and code samples for the Security Center Management v1 API class UpdateSecurityCenterServiceRequest.

Request message for
\[SecurityCenterManagement.UpdateSecurityCenterService\]\[google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityCenterService\].

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateSecurityCenterServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateSecurityCenterServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateSecurityCenterServiceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest), [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.SecurityCenterManagement.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1)

## Assembly

Google.Cloud.SecurityCenterManagement.V1.dll

## Constructors

### UpdateSecurityCenterServiceRequest()

    public UpdateSecurityCenterServiceRequest()

### UpdateSecurityCenterServiceRequest(UpdateSecurityCenterServiceRequest)

    public UpdateSecurityCenterServiceRequest(UpdateSecurityCenterServiceRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1.UpdateSecurityCenterServiceRequest` |

## Properties

### SecurityCenterService

    public SecurityCenterService SecurityCenterService { get; set; }

Required. The updated service.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenterManagement.V1/latest/Google.Cloud.SecurityCenterManagement.V1.SecurityCenterService` |   |

### UpdateMask

    public FieldMask UpdateMask { get; set; }

Required. The fields to update. Accepts the following values:

- `intended_enablement_state`
- `modules`

If omitted, then all eligible fields are updated.

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

### ValidateOnly

    public bool ValidateOnly { get; set; }

Optional. When set to `true`, the request will be validated (including IAM
checks), but no service will be updated. An `OK` response indicates that
the request is valid, while an error response indicates that the request is
invalid.

If the request is valid, a subsequent request to update the service could
still fail for one of the following reasons:

- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during update of the service

Defaults to `false`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |