[[["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 page provides reference documentation for the \u003ccode\u003eOSPolicyResourceCompliance\u003c/code\u003e class within the Google Cloud OS Config v1alpha API, specifically for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOSPolicyResourceCompliance\u003c/code\u003e class is used to represent compliance data for an OS policy resource and is the result of inheriting several different interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes information on the available versions, with the latest being \u003ccode\u003e2.0.0-alpha06\u003c/code\u003e, as well as obsolete versions such as the \u003ccode\u003e1.0.0-alpha04\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eConfigSteps\u003c/code\u003e, \u003ccode\u003eExecResourceOutput\u003c/code\u003e, \u003ccode\u003eOsPolicyResourceId\u003c/code\u003e, \u003ccode\u003eOutputCase\u003c/code\u003e, and \u003ccode\u003eState\u003c/code\u003e, each serving a distinct purpose in describing compliance details.\u003c/p\u003e\n"],["\u003cp\u003eThis class has two constuctors, one for an empty instance and one that accepts another OSPolicyResourceCompliance object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1alpha API - Class OSPolicyResourceCompliance (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.OSPolicyResourceCompliance)\n- [2.0.0-alpha05](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/2.0.0-alpha05/Google.Cloud.OsConfig.V1Alpha.OSPolicyResourceCompliance)\n- [1.0.0-alpha04](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/1.0.0-alpha04/Google.Cloud.OsConfig.V1Alpha.OSPolicyResourceCompliance) \n\n [Obsolete]\n public sealed class OSPolicyResourceCompliance : IMessage\u003cOSPolicyResourceCompliance\u003e, IEquatable\u003cOSPolicyResourceCompliance\u003e, IDeepCloneable\u003cOSPolicyResourceCompliance\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1alpha API class OSPolicyResourceCompliance.\n\nCompliance data for an OS policy resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OSPolicyResourceCompliance \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OSPolicyResourceCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.OSPolicyResourceCompliance), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OSPolicyResourceCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.OSPolicyResourceCompliance), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OSPolicyResourceCompliance](/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.OSPolicyResourceCompliance), [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### OSPolicyResourceCompliance()\n\n public OSPolicyResourceCompliance()\n\n### OSPolicyResourceCompliance(OSPolicyResourceCompliance)\n\n public OSPolicyResourceCompliance(OSPolicyResourceCompliance other)\n\nProperties\n----------\n\n### ConfigSteps\n\n [Obsolete]\n public RepeatedField\u003cOSPolicyResourceConfigStep\u003e ConfigSteps { get; }\n\nOrdered list of configuration steps taken by the agent for the OS policy\nresource.\n\n### ExecResourceOutput\n\n [Obsolete]\n public OSPolicyResourceCompliance.Types.ExecResourceOutput ExecResourceOutput { get; set; }\n\nExecResource specific output.\n\n### OsPolicyResourceId\n\n public string OsPolicyResourceId { get; set; }\n\nThe id of the OS policy resource.\n\n### OutputCase\n\n public OSPolicyResourceCompliance.OutputOneofCase OutputCase { get; }\n\n### State\n\n public OSPolicyComplianceState State { get; set; }\n\nCompliance state of the OS policy resource."]]