Class: Google::Apis::CloudassetV1::AnalyzerOrgPolicyConstraint

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

Overview

The organization policy constraint definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyzerOrgPolicyConstraint

Returns a new instance of AnalyzerOrgPolicyConstraint.



353
354
355
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 353

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

Instance Attribute Details

#custom_constraintGoogle::Apis::CloudassetV1::GoogleCloudAssetV1CustomConstraint

The definition of a custom constraint. Corresponds to the JSON property customConstraint



346
347
348
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 346

def custom_constraint
  @custom_constraint
end

#google_defined_constraintGoogle::Apis::CloudassetV1::GoogleCloudAssetV1Constraint

The definition of a constraint. Corresponds to the JSON property googleDefinedConstraint



351
352
353
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 351

def google_defined_constraint
  @google_defined_constraint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



358
359
360
361
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 358

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