GetCustomConstraintResult class
Result data returned by getCustomConstraint.
Constructors
-
GetCustomConstraintResult({required String actionType, required String condition, required String description, required String displayName, required List<
String> methodTypes, required String name, required List<String> resourceTypes, required String updateTime}) -
Creates a new GetCustomConstraintResult.
actionTypeAllow or deny type.conditionOrg policy condition/expression. For example:resource.instanceName.matches("[production|test]_.*_(\d)+")or,resource.management.auto_upgrade == trueThe max length of the condition is 1000 characters.descriptionDetailed information about this custom policy constraint. The max length of the description is 2000 characters.displayNameOne line display name for the UI. The max length of the display_name is 200 characters.methodTypesAll the operations being applied for this constraint.nameImmutable. 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.createOnlyE2TypeVmsThe max length is 70 characters and the minimum length is 1. Note that the prefixorganizations/{organization_id}/customConstraints/is not counted.resourceTypesImmutable. The resource instance type on which this policy applies. Format will be of the form :/Example: *compute.googleapis.com/Instance.updateTimeThe last time this custom constraint was updated. This represents the last time that theCreateCustomConstraintorUpdateCustomConstraintRPC was calledconst -
GetCustomConstraintResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
- actionType → String
-
Allow or deny type.
final
- condition → String
-
Org policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")or,resource.management.auto_upgrade == trueThe max length of the condition is 1000 characters.final - description → String
-
Detailed information about this custom policy constraint. The max length of the description is 2000 characters.
final
- displayName → String
-
One line display name for the UI. The max length of the display_name is 200 characters.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
methodTypes
→ List<
String> -
All the operations being applied for this constraint.
final
- name → String
-
Immutable. 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.createOnlyE2TypeVmsThe max length is 70 characters and the minimum length is 1. Note that the prefixorganizations/{organization_id}/customConstraints/is not counted.final -
resourceTypes
→ List<
String> -
Immutable. The resource instance type on which this policy applies. Format will be of the form :
/Example: *compute.googleapis.com/Instance.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateTime → String
-
The last time this custom constraint was updated. This represents the last time that the
CreateCustomConstraintorUpdateCustomConstraintRPC was calledfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited