public sealed class OSPolicyAssignmentReport : IMessage<OSPolicyAssignmentReport>, IEquatable<OSPolicyAssignmentReport>, IDeepCloneable<OSPolicyAssignmentReport>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class OSPolicyAssignmentReport.
A report of the OS policy assignment status for a given instance.
Unique identifier of the last attempted run to apply the OS policies
associated with this assignment on the VM.
This ID is logged by the OS Config agent while applying the OS
policies associated with this assignment on the VM.
NOTE: If the service is unable to successfully connect to the agent for
this run, then this id will not be available in the agent logs.
[[["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-12 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eOSPolicyAssignmentReport\u003c/code\u003e class within the Google Cloud OS Config v1 API, detailing its structure and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOSPolicyAssignmentReport\u003c/code\u003e class is used to track the status of OS policy assignments on a given instance, as well as being implemented by the \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers multiple versions of the API, from version 1.3.0 up to the latest version, 2.4.0, allowing developers to refer to the different revisions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOSPolicyAssignmentReport\u003c/code\u003e class has several properties including \u003ccode\u003eInstance\u003c/code\u003e, \u003ccode\u003eLastRunId\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eOsPolicyAssignment\u003c/code\u003e, \u003ccode\u003eOsPolicyCompliances\u003c/code\u003e, and \u003ccode\u003eUpdateTime\u003c/code\u003e, each providing specific data points about the OS policy assignment report.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for the \u003ccode\u003eOSPolicyAssignmentReport\u003c/code\u003e class, a default constructor and one that accepts another \u003ccode\u003eOSPolicyAssignmentReport\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class OSPolicyAssignmentReport (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport) \n\n public sealed class OSPolicyAssignmentReport : IMessage\u003cOSPolicyAssignmentReport\u003e, IEquatable\u003cOSPolicyAssignmentReport\u003e, IDeepCloneable\u003cOSPolicyAssignmentReport\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class OSPolicyAssignmentReport.\n\nA report of the OS policy assignment status for a given instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OSPolicyAssignmentReport \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OSPolicyAssignmentReport](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OSPolicyAssignmentReport](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OSPolicyAssignmentReport](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport), [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.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### OSPolicyAssignmentReport()\n\n public OSPolicyAssignmentReport()\n\n### OSPolicyAssignmentReport(OSPolicyAssignmentReport)\n\n public OSPolicyAssignmentReport(OSPolicyAssignmentReport other)\n\nProperties\n----------\n\n### Instance\n\n public string Instance { get; set; }\n\nThe Compute Engine VM instance name.\n\n### LastRunId\n\n public string LastRunId { get; set; }\n\nUnique identifier of the last attempted run to apply the OS policies\nassociated with this assignment on the VM.\n\nThis ID is logged by the OS Config agent while applying the OS\npolicies associated with this assignment on the VM.\nNOTE: If the service is unable to successfully connect to the agent for\nthis run, then this id will not be available in the agent logs.\n\n### Name\n\n public string Name { get; set; }\n\nThe `OSPolicyAssignmentReport` API resource name.\n\nFormat:\n`projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`\n\n### OSPolicyAssignmentReportName\n\n public OSPolicyAssignmentReportName OSPolicyAssignmentReportName { get; set; }\n\n[OSPolicyAssignmentReportName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReportName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport#Google_Cloud_OsConfig_V1_OSPolicyAssignmentReport_Name) resource name\nproperty.\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 public OSPolicyAssignmentName OsPolicyAssignmentAsOSPolicyAssignmentName { get; set; }\n\n[OSPolicyAssignmentName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentName)-typed view over the [OsPolicyAssignment](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentReport#Google_Cloud_OsConfig_V1_OSPolicyAssignmentReport_OsPolicyAssignment) resource name\nproperty.\n\n### OsPolicyCompliances\n\n public RepeatedField\u003cOSPolicyAssignmentReport.Types.OSPolicyCompliance\u003e OsPolicyCompliances { get; }\n\nCompliance data for each `OSPolicy` that is applied to the VM.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nTimestamp for when the report was last generated."]]