Package com.google.cloud.asset.v1
Interface AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnalyzerOrgPolicyConstraint.CustomConstraint,AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
- Enclosing class:
- AnalyzerOrgPolicyConstraint
public static interface AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAllow or deny type.intAllow or deny type.Organization Policy condition/expression.com.google.protobuf.ByteStringOrganization Policy condition/expression.Detailed information about this custom policy constraint.com.google.protobuf.ByteStringDetailed information about this custom policy constraint.One line display name for the UI.com.google.protobuf.ByteStringOne line display name for the UI.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.getName()Name of the constraint.com.google.protobuf.ByteStringName of the constraint.getResourceTypes(int index) The Resource Instance type on which this policy applies to.com.google.protobuf.ByteStringgetResourceTypesBytes(int index) The Resource Instance type on which this policy applies to.intThe Resource Instance type on which this policy applies to.The Resource Instance type on which this policy applies to.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
-
getName
String getName()Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"string name = 1;- Returns:
- The bytes for name.
-
getResourceTypesList
The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Returns:
- A list containing the resourceTypes.
-
getResourceTypesCount
int getResourceTypesCount()The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Returns:
- The count of resourceTypes.
-
getResourceTypes
The Resource Instance type on which this policy applies to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- 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 to. Format will be of the form : "<canonical service name>/<type>" Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourceTypes at the given index.
-
getMethodTypesList
List<AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType> getMethodTypesList()All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Returns:
- A list containing the methodTypes.
-
getMethodTypesCount
int getMethodTypesCount()All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- Returns:
- The count of methodTypes.
-
getMethodTypes
All the operations being applied for this constraint.
repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- 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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- 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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;- 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()Organization Policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`string condition = 4;- Returns:
- The condition.
-
getConditionBytes
com.google.protobuf.ByteString getConditionBytes()Organization Policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`string condition = 4;- Returns:
- The bytes for condition.
-
getActionTypeValue
int getActionTypeValue()Allow or deny type.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;- Returns:
- The enum numeric value on the wire for actionType.
-
getActionType
AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType getActionType()Allow or deny type.
.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;- Returns:
- The actionType.
-
getDisplayName
String getDisplayName()One line display name for the UI.
string display_name = 6;- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()One line display name for the UI.
string display_name = 6;- Returns:
- The bytes for displayName.
-
getDescription
String getDescription()Detailed information about this custom policy constraint.
string description = 7;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Detailed information about this custom policy constraint.
string description = 7;- Returns:
- The bytes for description.
-