Class: Google::Apis::CloudcontrolspartnerV1::Remediation

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

Overview

Represents remediation guidance to resolve compliance violation for AssuredWorkload

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Remediation

Returns a new instance of Remediation.



678
679
680
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 678

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

Instance Attribute Details

#compliant_valuesArray<String>

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values Corresponds to the JSON property compliantValues

Returns:

  • (Array<String>)


666
667
668
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 666

def compliant_values
  @compliant_values
end

#instructionsGoogle::Apis::CloudcontrolspartnerV1::Instructions

Instructions to remediate violation Corresponds to the JSON property instructions



671
672
673
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 671

def instructions
  @instructions
end

#remediation_typeString

Output only. Remediation type based on the type of org policy values violated Corresponds to the JSON property remediationType

Returns:

  • (String)


676
677
678
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 676

def remediation_type
  @remediation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



683
684
685
686
687
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 683

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