Class: Google::Apis::SecuritypostureV1::IaCValidationReport

Inherits:
Object
  • Object
show all
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

Details of an infrastructure-as-code (IaC) validation report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IaCValidationReport

Returns a new instance of IaCValidationReport.



587
588
589
# File 'lib/google/apis/securityposture_v1/classes.rb', line 587

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

Instance Attribute Details

#noteString

Additional information about the report. Corresponds to the JSON property note

Returns:

  • (String)


580
581
582
# File 'lib/google/apis/securityposture_v1/classes.rb', line 580

def note
  @note
end

#violationsArray<Google::Apis::SecuritypostureV1::Violation>

A list of every Violation found in the IaC configuration. Corresponds to the JSON property violations



585
586
587
# File 'lib/google/apis/securityposture_v1/classes.rb', line 585

def violations
  @violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



592
593
594
595
# File 'lib/google/apis/securityposture_v1/classes.rb', line 592

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