Interface OSPolicyAssignmentReportOrBuilder (2.57.0)

public interface OSPolicyAssignmentReportOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getInstance()

public abstract String getInstance()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
String

The instance.

getInstanceBytes()

public abstract ByteString getInstanceBytes()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
ByteString

The bytes for instance.

getLastRunId()

public abstract String getLastRunId()

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.

string last_run_id = 6;

Returns
Type Description
String

The lastRunId.

getLastRunIdBytes()

public abstract ByteString getLastRunIdBytes()

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.

string last_run_id = 6;

Returns
Type Description
ByteString

The bytes for lastRunId.

getName()

public abstract String getName()

The OSPolicyAssignmentReport API resource name.

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The OSPolicyAssignmentReport API resource name.

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOsPolicyAssignment()

public abstract String getOsPolicyAssignment()

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

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

string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The osPolicyAssignment.

getOsPolicyAssignmentBytes()

public abstract ByteString getOsPolicyAssignmentBytes()

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

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

string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for osPolicyAssignment.

getOsPolicyCompliances(int index)

public abstract OSPolicyAssignmentReport.OSPolicyCompliance getOsPolicyCompliances(int index)

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

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.OSPolicyCompliance

getOsPolicyCompliancesCount()

public abstract int getOsPolicyCompliancesCount()

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

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
Type Description
int

getOsPolicyCompliancesList()

public abstract List<OSPolicyAssignmentReport.OSPolicyCompliance> getOsPolicyCompliancesList()

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

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
Type Description
List<OSPolicyCompliance>

getOsPolicyCompliancesOrBuilder(int index)

public abstract OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder getOsPolicyCompliancesOrBuilder(int index)

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

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder

getOsPolicyCompliancesOrBuilderList()

public abstract List<? extends OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()

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

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder>

getUpdateTime()

public abstract Timestamp getUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public abstract boolean hasUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
boolean

Whether the updateTime field is set.