Package com.google.cloud.orgpolicy.v2
Interface Constraint.CustomConstraintDefinitionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Constraint.CustomConstraintDefinition,Constraint.CustomConstraintDefinition.Builder
- Enclosing class:
- Constraint
public static interface Constraint.CustomConstraintDefinitionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameters(String key) Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition.Allow or deny type.intAllow or deny type.Org policy condition/expression.com.google.protobuf.ByteStringOrg policy condition/expression.getMethodTypes(int index) All the operations being applied for this constraint.intAll the operations being applied for this constraint.All the operations being applied for this constraint.intgetMethodTypesValue(int index) All the operations being applied for this constraint.All the operations being applied for this constraint.Deprecated.intStores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition.Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition.getParametersOrDefault(String key, Constraint.CustomConstraintDefinition.Parameter defaultValue) Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition.Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition.getResourceTypes(int index) The resource instance type on which this policy applies.com.google.protobuf.ByteStringgetResourceTypesBytes(int index) The resource instance type on which this policy applies.intThe resource instance type on which this policy applies.The resource instance type on which this policy applies.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getResourceTypesList
The resource instance type on which this policy applies. Format will be of the form : `<service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 1;- Returns:
- A list containing the resourceTypes.
-
getResourceTypesCount
int getResourceTypesCount()The resource instance type on which this policy applies. Format will be of the form : `<service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 1;- Returns:
- The count of resourceTypes.
-
getResourceTypes
The resource instance type on which this policy applies. Format will be of the form : `<service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 1;- Parameters:
index- The index of the element to return.- Returns:
- The resourceTypes at the given index.
-
getResourceTypesBytes
com.google.protobuf.ByteString getResourceTypesBytes(int index) The resource instance type on which this policy applies. Format will be of the form : `<service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 1;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourceTypes at the given index.
-
getMethodTypesList
List<Constraint.CustomConstraintDefinition.MethodType> getMethodTypesList()All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;- Returns:
- A list containing the methodTypes.
-
getMethodTypesCount
int getMethodTypesCount()All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;- Returns:
- The count of methodTypes.
-
getMethodTypes
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;- Parameters:
index- The index of the element to return.- Returns:
- The methodTypes at the given index.
-
getMethodTypesValueList
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;- Returns:
- A list containing the enum numeric values on the wire for methodTypes.
-
getMethodTypesValue
int getMethodTypesValue(int index) All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of methodTypes at the given index.
-
getCondition
String getCondition()Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.string condition = 3;- Returns:
- The condition.
-
getConditionBytes
com.google.protobuf.ByteString getConditionBytes()Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.string condition = 3;- Returns:
- The bytes for condition.
-
getActionTypeValue
int getActionTypeValue()Allow or deny type.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.ActionType action_type = 4;- Returns:
- The enum numeric value on the wire for actionType.
-
getActionType
Constraint.CustomConstraintDefinition.ActionType getActionType()Allow or deny type.
.google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.ActionType action_type = 4;- Returns:
- The actionType.
-
getParametersCount
int getParametersCount()Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition. The key of `map` represents the name of the parameter.
map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5; -
containsParameters
Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition. The key of `map` represents the name of the parameter.
map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5; -
getParameters
Deprecated.UsegetParametersMap()instead. -
getParametersMap
Map<String,Constraint.CustomConstraintDefinition.Parameter> getParametersMap()Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition. The key of `map` represents the name of the parameter.
map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5; -
getParametersOrDefault
Constraint.CustomConstraintDefinition.Parameter getParametersOrDefault(String key, Constraint.CustomConstraintDefinition.Parameter defaultValue) Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition. The key of `map` represents the name of the parameter.
map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5; -
getParametersOrThrow
Stores the structure of [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter] used by the constraint condition. The key of `map` represents the name of the parameter.
map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5;
-