public interface ConstraintOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getBooleanConstraint()
public abstract Constraint.BooleanConstraint getBooleanConstraint()Defines this constraint as being a boolean constraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
| Returns | |
|---|---|
| Type | Description |
Constraint.BooleanConstraint |
The booleanConstraint. |
getBooleanConstraintOrBuilder()
public abstract Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()Defines this constraint as being a boolean constraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
| Returns | |
|---|---|
| Type | Description |
Constraint.BooleanConstraintOrBuilder |
|
getConstraintDefault()
public abstract Constraint.ConstraintDefault getConstraintDefault()The evaluation behavior of this constraint in the absence of a policy.
.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;
| Returns | |
|---|---|
| Type | Description |
Constraint.ConstraintDefault |
The constraintDefault. |
getConstraintDefaultValue()
public abstract int getConstraintDefaultValue()The evaluation behavior of this constraint in the absence of a policy.
.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for constraintDefault. |
getConstraintTypeCase()
public abstract Constraint.ConstraintTypeCase getConstraintTypeCase()| Returns | |
|---|---|
| Type | Description |
Constraint.ConstraintTypeCase |
|
getDescription()
public abstract String getDescription()Detailed description of what this constraint controls as well as how and where it is enforced.
Mutable.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public abstract ByteString getDescriptionBytes()Detailed description of what this constraint controls as well as how and where it is enforced.
Mutable.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDisplayName()
public abstract String getDisplayName()The human readable name.
Mutable.
string display_name = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public abstract ByteString getDisplayNameBytes()The human readable name.
Mutable.
string display_name = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getEquivalentConstraint()
public abstract String getEquivalentConstraint()Managed constraint and canned constraint sometimes can have equivalents. This field is used to store the equivalent constraint name.
string equivalent_constraint = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The equivalentConstraint. |
getEquivalentConstraintBytes()
public abstract ByteString getEquivalentConstraintBytes()Managed constraint and canned constraint sometimes can have equivalents. This field is used to store the equivalent constraint name.
string equivalent_constraint = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for equivalentConstraint. |
getListConstraint()
public abstract Constraint.ListConstraint getListConstraint()Defines this constraint as being a list constraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
| Returns | |
|---|---|
| Type | Description |
Constraint.ListConstraint |
The listConstraint. |
getListConstraintOrBuilder()
public abstract Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()Defines this constraint as being a list constraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
| Returns | |
|---|---|
| Type | Description |
Constraint.ListConstraintOrBuilder |
|
getName()
public abstract String getName()Immutable. The resource name of the constraint. Must be in one of the following forms:
projects/{project_number}/constraints/{constraint_name}folders/{folder_id}/constraints/{constraint_name}organizations/{organization_id}/constraints/{constraint_name}For example, "/projects/123/constraints/compute.disableSerialPortAccess".
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()Immutable. The resource name of the constraint. Must be in one of the following forms:
projects/{project_number}/constraints/{constraint_name}folders/{folder_id}/constraints/{constraint_name}organizations/{organization_id}/constraints/{constraint_name}For example, "/projects/123/constraints/compute.disableSerialPortAccess".
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSupportsDryRun()
public abstract boolean getSupportsDryRun()Shows if dry run is supported for this constraint or not.
bool supports_dry_run = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
The supportsDryRun. |
getSupportsSimulation()
public abstract boolean getSupportsSimulation()Shows if simulation is supported for this constraint or not.
bool supports_simulation = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
The supportsSimulation. |
hasBooleanConstraint()
public abstract boolean hasBooleanConstraint()Defines this constraint as being a boolean constraint.
.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the booleanConstraint field is set. |
hasListConstraint()
public abstract boolean hasListConstraint()Defines this constraint as being a list constraint.
.google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the listConstraint field is set. |