Interface OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder (2.15.0)

public static interface OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getComplianceState()

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState getComplianceState()

The compliance state of the resource.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState

The complianceState.

getComplianceStateReason()

public abstract String getComplianceStateReason()

A reason for the resource to be in the given compliance state. This field is always populated when compliance_state is UNKNOWN. The following values are supported when compliance_state == UNKNOWN

  • execution-errors: Errors were encountered by the agent while executing the resource and the compliance state couldn't be determined.
  • execution-skipped-by-agent: Resource execution was skipped by the agent because errors were encountered while executing prior resources in the OS policy.
  • os-policy-execution-attempt-failed: The execution of the OS policy containing this resource failed and the compliance state couldn't be determined.

string compliance_state_reason = 4;

Returns
TypeDescription
String

The complianceStateReason.

getComplianceStateReasonBytes()

public abstract ByteString getComplianceStateReasonBytes()

A reason for the resource to be in the given compliance state. This field is always populated when compliance_state is UNKNOWN. The following values are supported when compliance_state == UNKNOWN

  • execution-errors: Errors were encountered by the agent while executing the resource and the compliance state couldn't be determined.
  • execution-skipped-by-agent: Resource execution was skipped by the agent because errors were encountered while executing prior resources in the OS policy.
  • os-policy-execution-attempt-failed: The execution of the OS policy containing this resource failed and the compliance state couldn't be determined.

string compliance_state_reason = 4;

Returns
TypeDescription
ByteString

The bytes for complianceStateReason.

getComplianceStateValue()

public abstract int getComplianceStateValue()

The compliance state of the resource.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for complianceState.

getConfigSteps(int index)

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep getConfigSteps(int index)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep

getConfigStepsCount()

public abstract int getConfigStepsCount()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
int

getConfigStepsList()

public abstract List<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep> getConfigStepsList()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
List<OSPolicyResourceConfigStep>

getConfigStepsOrBuilder(int index)

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder getConfigStepsOrBuilder(int index)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder

getConfigStepsOrBuilderList()

public abstract List<? extends OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder> getConfigStepsOrBuilderList()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>

getExecResourceOutput()

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput getExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput

The execResourceOutput.

getExecResourceOutputOrBuilder()

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutputOrBuilder getExecResourceOutputOrBuilder()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutputOrBuilder

getOsPolicyResourceId()

public abstract String getOsPolicyResourceId()

The ID of the OS policy resource.

string os_policy_resource_id = 1;

Returns
TypeDescription
String

The osPolicyResourceId.

getOsPolicyResourceIdBytes()

public abstract ByteString getOsPolicyResourceIdBytes()

The ID of the OS policy resource.

string os_policy_resource_id = 1;

Returns
TypeDescription
ByteString

The bytes for osPolicyResourceId.

getOutputCase()

public abstract OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OutputCase getOutputCase()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OutputCase

hasExecResourceOutput()

public abstract boolean hasExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns
TypeDescription
boolean

Whether the execResourceOutput field is set.