Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediation
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediationInstructions
Instructions to remediate violation Corresponds to the JSON property
instructions. -
#remediation_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1ViolationRemediation
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1ViolationRemediation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1ViolationRemediation
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1ViolationRemediation.
308 309 310 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 308 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
296 297 298 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 296 def compliant_values @compliant_values end |
#instructions ⇒ Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ViolationRemediationInstructions
Instructions to remediate violation
Corresponds to the JSON property instructions
301 302 303 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 301 def instructions @instructions end |
#remediation_type ⇒ String
Output only. Reemediation type based on the type of org policy values violated
Corresponds to the JSON property remediationType
306 307 308 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 306 def remediation_type @remediation_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
313 314 315 316 317 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 313 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 |