Class: Google::Apis::SecuritycenterV1beta1::OrgPolicyConstraint
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::OrgPolicyConstraint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb
Overview
Encapsulates data about a constraint associated with an organization policy.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of the constraint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrgPolicyConstraint
constructor
A new instance of OrgPolicyConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrgPolicyConstraint
Returns a new instance of OrgPolicyConstraint.
3332 3333 3334 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 3332 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The resource name of the constraint. Example: "organizations/organization_id/
constraints/constraint_name"
Corresponds to the JSON property name
3330 3331 3332 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 3330 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3337 3338 3339 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 3337 def update!(**args) @name = args[:name] if args.key?(:name) end |