Google Cloud OS Config v1alpha API - Class OSPolicyAssignmentReport (2.0.0-alpha04)

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

Reference documentation and code samples for the Google Cloud OS Config v1alpha API class OSPolicyAssignmentReport.

A report of the OS policy assignment status for a given instance.

Inheritance

object > OSPolicyAssignmentReport

Namespace

Google.Cloud.OsConfig.V1Alpha

Assembly

Google.Cloud.OsConfig.V1Alpha.dll

Constructors

OSPolicyAssignmentReport()

public OSPolicyAssignmentReport()

OSPolicyAssignmentReport(OSPolicyAssignmentReport)

public OSPolicyAssignmentReport(OSPolicyAssignmentReport other)
Parameter
NameDescription
otherOSPolicyAssignmentReport

Properties

Instance

public string Instance { get; set; }

The Compute Engine VM instance name.

Property Value
TypeDescription
string

LastRunId

public string LastRunId { get; set; }

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.

Property Value
TypeDescription
string

Name

public string Name { get; set; }

The OSPolicyAssignmentReport API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

Property Value
TypeDescription
string

OSPolicyAssignmentReportName

public OSPolicyAssignmentReportName OSPolicyAssignmentReportName { get; set; }

OSPolicyAssignmentReportName-typed view over the Name resource name property.

Property Value
TypeDescription
OSPolicyAssignmentReportName

OsPolicyAssignment

public string OsPolicyAssignment { get; set; }

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

Property Value
TypeDescription
string

OsPolicyAssignmentAsOSPolicyAssignmentName

public OSPolicyAssignmentName OsPolicyAssignmentAsOSPolicyAssignmentName { get; set; }

OSPolicyAssignmentName-typed view over the OsPolicyAssignment resource name property.

Property Value
TypeDescription
OSPolicyAssignmentName

OsPolicyCompliances

public RepeatedField<OSPolicyAssignmentReport.Types.OSPolicyCompliance> OsPolicyCompliances { get; }

Compliance data for each OSPolicy that is applied to the VM.

Property Value
TypeDescription
RepeatedFieldOSPolicyAssignmentReportTypesOSPolicyCompliance

UpdateTime

public Timestamp UpdateTime { get; set; }

Timestamp for when the report was last generated.

Property Value
TypeDescription
Timestamp