Class: Google::Apis::SecuritypostureV1::OrgPolicyConstraintCustom
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::OrgPolicyConstraintCustom
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securityposture_v1/classes.rb,
lib/google/apis/securityposture_v1/representations.rb,
lib/google/apis/securityposture_v1/representations.rb
Overview
A custom organization policy constraint.
Instance Attribute Summary collapse
-
#custom_constraint ⇒ Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1CustomConstraint
A custom, user-defined constraint.
-
#policy_rules ⇒ Array<Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRule>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrgPolicyConstraintCustom
constructor
A new instance of OrgPolicyConstraintCustom.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrgPolicyConstraintCustom
Returns a new instance of OrgPolicyConstraintCustom.
1022 1023 1024 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1022 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_constraint ⇒ Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1CustomConstraint
A custom, user-defined constraint. You can apply the constraint only to the
resource types specified in the constraint, and only within the organization
where the constraint is defined. When you create a custom constraint, it is
not enforced automatically. You must use an organization policy to enforce
the constraint.
Corresponds to the JSON property customConstraint
1015 1016 1017 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1015 def custom_constraint @custom_constraint end |
#policy_rules ⇒ Array<Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRule>
Required. The rules enforced by the constraint.
Corresponds to the JSON property policyRules
1020 1021 1022 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1020 def policy_rules @policy_rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1027 1028 1029 1030 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1027 def update!(**args) @custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint) @policy_rules = args[:policy_rules] if args.key?(:policy_rules) end |