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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnalyzerOrgPolicyConstraint.CustomConstraint.ActionTypegetActionType()Allow or deny type.intgetActionTypeValue()Allow or deny type.StringgetCondition()Organization Policy condition/expression.com.google.protobuf.ByteStringgetConditionBytes()Organization Policy condition/expression.StringgetDescription()Detailed information about this custom policy constraint.com.google.protobuf.ByteStringgetDescriptionBytes()Detailed information about this custom policy constraint.StringgetDisplayName()One line display name for the UI.com.google.protobuf.ByteStringgetDisplayNameBytes()One line display name for the UI.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodTypegetMethodTypes(int index)All the operations being applied for this constraint.intgetMethodTypesCount()All the operations being applied for this constraint.List<AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType>getMethodTypesList()All the operations being applied for this constraint.intgetMethodTypesValue(int index)All the operations being applied for this constraint.List<Integer>getMethodTypesValueList()All the operations being applied for this constraint.StringgetName()Name of the constraint.com.google.protobuf.ByteStringgetNameBytes()Name of the constraint.StringgetResourceTypes(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.intgetResourceTypesCount()The Resource Instance type on which this policy applies to.List<String>getResourceTypesList()The Resource Instance type on which this policy applies to.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
List<String> 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
String getResourceTypes(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 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
AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType getMethodTypes(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 element to return.- Returns:
- The methodTypes at the given index.
-
getMethodTypesValueList
List<Integer> 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.
-
-