[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eInstanceOSPoliciesCompliance.Types.OSPolicyCompliance\u003c/code\u003e class in the Google Cloud OS Config v1alpha API, detailing its purpose as compliance data for an OS policy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstanceOSPoliciesCompliance.Types.OSPolicyCompliance\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is \u003ccode\u003e2.0.0-alpha06\u003c/code\u003e, and older versions \u003ccode\u003e2.0.0-alpha05\u003c/code\u003e and \u003ccode\u003e1.0.0-alpha04\u003c/code\u003e are also available for review.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eOsPolicyAssignment\u003c/code\u003e, \u003ccode\u003eOsPolicyId\u003c/code\u003e, \u003ccode\u003eOsPolicyResourceCompliances\u003c/code\u003e, and \u003ccode\u003eState\u003c/code\u003e, which provide information on the OS policy's resource assignment, ID, resource compliances and the state of the compliance.\u003c/p\u003e\n"],["\u003cp\u003eThere is an \u003ccode\u003eObsolete\u003c/code\u003e constructor and property within the class, such as \u003ccode\u003eOsPolicyAssignmentAsOSPolicyAssignmentName\u003c/code\u003e, and the \u003ccode\u003eOsPolicyResourceCompliances\u003c/code\u003e properties.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1alpha API - Class InstanceOSPoliciesCompliance.Types.OSPolicyCompliance (2.0.0-alpha06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-alpha06 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance)\n- [2.0.0-alpha05](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/2.0.0-alpha05/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance)\n- [1.0.0-alpha04](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/1.0.0-alpha04/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance) \n\n [Obsolete]\n public sealed class InstanceOSPoliciesCompliance.Types.OSPolicyCompliance : IMessage\u003cInstanceOSPoliciesCompliance.Types.OSPolicyCompliance\u003e, IEquatable\u003cInstanceOSPoliciesCompliance.Types.OSPolicyCompliance\u003e, IDeepCloneable\u003cInstanceOSPoliciesCompliance.Types.OSPolicyCompliance\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1alpha API class InstanceOSPoliciesCompliance.Types.OSPolicyCompliance.\n\nCompliance data for an OS policy \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e InstanceOSPoliciesCompliance.Types.OSPolicyCompliance \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InstanceOSPoliciesCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance)[Types](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types)[OSPolicyCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InstanceOSPoliciesCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance)[Types](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types)[OSPolicyCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InstanceOSPoliciesCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance)[Types](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types)[OSPolicyCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsConfig.V1Alpha](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1Alpha.dll\n\nConstructors\n------------\n\n### OSPolicyCompliance()\n\n public OSPolicyCompliance()\n\n### OSPolicyCompliance(OSPolicyCompliance)\n\n public OSPolicyCompliance(InstanceOSPoliciesCompliance.Types.OSPolicyCompliance other)\n\nProperties\n----------\n\n### OsPolicyAssignment\n\n public string OsPolicyAssignment { get; set; }\n\nReference to the `OSPolicyAssignment` API resource that the `OSPolicy`\nbelongs to.\n\nFormat:\n`projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`\n\n### OsPolicyAssignmentAsOSPolicyAssignmentName\n\n [Obsolete]\n public OSPolicyAssignmentName OsPolicyAssignmentAsOSPolicyAssignmentName { get; set; }\n\n[OSPolicyAssignmentName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.OSPolicyAssignmentName)-typed view over the [OsPolicyAssignment](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesCompliance.Types.OSPolicyCompliance#Google_Cloud_OsConfig_V1Alpha_InstanceOSPoliciesCompliance_Types_OSPolicyCompliance_OsPolicyAssignment) resource\nname property.\n\n### OsPolicyId\n\n public string OsPolicyId { get; set; }\n\nThe OS policy id\n\n### OsPolicyResourceCompliances\n\n [Obsolete]\n public RepeatedField\u003cOSPolicyResourceCompliance\u003e OsPolicyResourceCompliances { get; }\n\nCompliance data for each `OSPolicyResource` that is applied to the\nVM.\n\n### State\n\n public OSPolicyComplianceState State { get; set; }\n\nCompliance state of the OS policy."]]