1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class SecurityPosture.Types.PolicyDriftDetails : IMessage<SecurityPosture.Types.PolicyDriftDetails>, IEquatable<SecurityPosture.Types.PolicyDriftDetails>, IDeepCloneable<SecurityPosture.Types.PolicyDriftDetails>, IBufferMessage, IMessage

Reference documentation and code samples for the Security Command Center v2 API class SecurityPosture.Types.PolicyDriftDetails.

The policy field that violates the deployed posture and its expected and
detected values.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SecurityPosture](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.Types.md.txt)[PolicyDriftDetails](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.Types.PolicyDriftDetails.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecurityPosture](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.Types.md.txt)[PolicyDriftDetails](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.Types.PolicyDriftDetails.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SecurityPosture](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.Types.md.txt)[PolicyDriftDetails](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SecurityPosture.Types.PolicyDriftDetails.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.SecurityCenter.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.md.txt)

## Assembly

Google.Cloud.SecurityCenter.V2.dll

## Constructors

### PolicyDriftDetails()

    public PolicyDriftDetails()

### PolicyDriftDetails(PolicyDriftDetails)

    public PolicyDriftDetails(SecurityPosture.Types.PolicyDriftDetails other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SecurityPostureTypesPolicyDriftDetails` |

## Properties

### DetectedValue

    public string DetectedValue { get; set; }

The detected value that violates the deployed posture, for example,
`false` or `allowed_values={"projects/22831892"}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExpectedValue

    public string ExpectedValue { get; set; }

The value of this field that was configured in a posture, for example,
`true` or `allowed_values={"projects/29831892"}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Field

    public string Field { get; set; }

The name of the updated field, for example
constraint.implementation.policy_rules\[0\].enforce

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |