Interface OrgPolicyViolationOrBuilder (0.49.0)

public interface OrgPolicyViolationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCustomConstraint()

public abstract CustomConstraint getCustomConstraint()

The custom constraint being violated.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;

Returns
Type Description
com.google.cloud.orgpolicy.v2.CustomConstraint

The customConstraint.

getCustomConstraintOrBuilder()

public abstract CustomConstraintOrBuilder getCustomConstraintOrBuilder()

The custom constraint being violated.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;

Returns
Type Description
com.google.cloud.orgpolicy.v2.CustomConstraintOrBuilder

getError()

public abstract Status getError()

Any error encountered during the evaluation.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public abstract StatusOrBuilder getErrorOrBuilder()

Any error encountered during the evaluation.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getName()

public abstract String getName()

The name of the OrgPolicyViolation. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the OrgPolicyViolation. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getResource()

public abstract ResourceContext getResource()

The resource violating the constraint.

.google.cloud.policysimulator.v1.ResourceContext resource = 2;

Returns
Type Description
ResourceContext

The resource.

getResourceOrBuilder()

public abstract ResourceContextOrBuilder getResourceOrBuilder()

The resource violating the constraint.

.google.cloud.policysimulator.v1.ResourceContext resource = 2;

Returns
Type Description
ResourceContextOrBuilder

hasCustomConstraint()

public abstract boolean hasCustomConstraint()

The custom constraint being violated.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 3;

Returns
Type Description
boolean

Whether the customConstraint field is set.

hasError()

public abstract boolean hasError()

Any error encountered during the evaluation.

.google.rpc.Status error = 4;

Returns
Type Description
boolean

Whether the error field is set.

hasResource()

public abstract boolean hasResource()

The resource violating the constraint.

.google.cloud.policysimulator.v1.ResourceContext resource = 2;

Returns
Type Description
boolean

Whether the resource field is set.