Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationRemediation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_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) ⇒ GoogleCloudAssuredworkloadsV1ViolationRemediation

Returns a new instance of GoogleCloudAssuredworkloadsV1ViolationRemediation.



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

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>)


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

def compliant_values
  @compliant_values
end

#instructionsGoogle::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationRemediationInstructions

Instructions to remediate violation Corresponds to the JSON property instructions



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

def instructions
  @instructions
end

#remediation_typeString

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

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 590

def remediation_type
  @remediation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



597
598
599
600
601
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 597

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