Class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
- Inherits:
-
Object
- Object
- Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/orgpolicy_v2/classes.rb,
lib/google/apis/orgpolicy_v2/representations.rb,
lib/google/apis/orgpolicy_v2/representations.rb
Overview
A constraint that is either enforced or not. For example, a constraint
constraints/compute.disableSerialPortAccess
. If it is enforced on a VM
instance, serial port connections will not be opened to that instance.
Instance Attribute Summary collapse
-
#custom_constraint_definition ⇒ Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Currently used for Managed Constraints.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
constructor
A new instance of GoogleCloudOrgpolicyV2ConstraintBooleanConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
Returns a new instance of GoogleCloudOrgpolicyV2ConstraintBooleanConstraint.
140 141 142 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_constraint_definition ⇒ Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Currently used for Managed Constraints. This represents a subset of fields
missing from Constraint proto that are required to describe CustomConstraint
Corresponds to the JSON property customConstraintDefinition
138 139 140 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 138 def custom_constraint_definition @custom_constraint_definition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 145 def update!(**args) @custom_constraint_definition = args[:custom_constraint_definition] if args.key?(:custom_constraint_definition) end |