Class: Google::Apis::CloudcontrolspartnerV1::Remediation
- Inherits:
-
Object
- Object
- Google::Apis::CloudcontrolspartnerV1::Remediation
- 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
-
#compliant_values ⇒ Array<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
. -
#instructions ⇒ Google::Apis::CloudcontrolspartnerV1::Instructions
Instructions to remediate violation Corresponds to the JSON property
instructions
. -
#remediation_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Remediation
constructor
A new instance of Remediation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Remediation
Returns a new instance of Remediation.
701 702 703 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 701 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compliant_values ⇒ Array<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
689 690 691 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 689 def compliant_values @compliant_values end |
#instructions ⇒ Google::Apis::CloudcontrolspartnerV1::Instructions
Instructions to remediate violation
Corresponds to the JSON property instructions
694 695 696 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 694 def instructions @instructions end |
#remediation_type ⇒ String
Output only. Remediation type based on the type of org policy values violated
Corresponds to the JSON property remediationType
699 700 701 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 699 def remediation_type @remediation_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
706 707 708 709 710 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 706 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 |