PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint class

Constructors

PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint({required Input<String> actionType, required Input<String> condition, Input<String?>? description, Input<String?>? displayName, required Input<List<String>> methodTypes, required Input<String> name, required Input<List<String>> resourceTypes})
Creates a new PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint. actionType The action to take if the condition is met. condition A CEL condition that refers to a supported service resource, for example resource.management.autoUpgrade == false. For details about CEL usage, see Common Expression Language. description A human-friendly description of the constraint to display as an error message when the policy is violated. displayName A human-friendly name for the constraint. methodTypes A list of RESTful methods for which to enforce the constraint. Can be CREATE, UPDATE, or both. Not all Google Cloud services support both methods. To see supported methods for each service, find the service in Supported services. name Immutable. The name of the custom constraint. This is unique within the organization. resourceTypes Immutable. The fully qualified name of the Google Cloud REST resource containing the object and field you want to restrict. For example, container.googleapis.com/NodePool.
const
PosturePolicySetPolicyConstraintOrgPolicyConstraintCustomCustomConstraint.fromMap(Map<String, dynamic> map)
factory

Properties

actionType → Input<String>
The action to take if the condition is met. Possible values are: ALLOW, DENY.
final
condition → Input<String>
A CEL condition that refers to a supported service resource, for example resource.management.autoUpgrade == false. For details about CEL usage, see Common Expression Language.
final
description → Input<String?>?
A human-friendly description of the constraint to display as an error message when the policy is violated.
final
displayName → Input<String?>?
A human-friendly name for the constraint.
final
hashCode → int
The hash code for this object.
no setterinherited
methodTypes → Input<List<String>>
A list of RESTful methods for which to enforce the constraint. Can be CREATE, UPDATE, or both. Not all Google Cloud services support both methods. To see supported methods for each service, find the service in Supported services.
final
name → Input<String>
Immutable. The name of the custom constraint. This is unique within the organization.
final
resourceTypes → Input<List<String>>
Immutable. The fully qualified name of the Google Cloud REST resource containing the object and field you want to restrict. For example, container.googleapis.com/NodePool.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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