Class: Google::Apis::SecuritycenterV1beta2::OrgPolicyConstraint

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Encapsulates data about a constraint associated with an organization policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrgPolicyConstraint

Returns a new instance of OrgPolicyConstraint.



2558
2559
2560
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2558

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The resource name of the constraint. Example: "organizations/organization_id/ constraints/constraint_name" Corresponds to the JSON property name

Returns:

  • (String)


2556
2557
2558
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2556

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2563
2564
2565
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2563

def update!(**args)
  @name = args[:name] if args.key?(:name)
end