Class: Google::Apis::ContaineranalysisV1alpha1::Remediation

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

Overview

Specifies details on how to handle (and presumably, fix) a vulnerability.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Remediation

Returns a new instance of Remediation.



6139
6140
6141
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6139

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

Instance Attribute Details

#detailsString

Contains a comprehensive human-readable discussion of the remediation. Corresponds to the JSON property details

Returns:

  • (String)


6127
6128
6129
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6127

def details
  @details
end

#remediation_typeString

The type of remediation that can be applied. Corresponds to the JSON property remediationType

Returns:

  • (String)


6132
6133
6134
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6132

def remediation_type
  @remediation_type
end

#remediation_uriGoogle::Apis::ContaineranalysisV1alpha1::Uri

An URI message. Corresponds to the JSON property remediationUri



6137
6138
6139
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6137

def remediation_uri
  @remediation_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6144
6145
6146
6147
6148
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6144

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