Class: Google::Apis::ContaineranalysisV1alpha1::Assessment

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

Assessment provides all information that is related to a single vulnerability for this product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Assessment

Returns a new instance of Assessment.



151
152
153
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 151

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

Instance Attribute Details

#cveString

Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Corresponds to the JSON property cve

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 103

def cve
  @cve
end

#impactsArray<String>

Contains information about the impact of this vulnerability, this will change with time. Corresponds to the JSON property impacts

Returns:

  • (Array<String>)


109
110
111
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 109

def impacts
  @impacts
end

#justificationGoogle::Apis::ContaineranalysisV1alpha1::Justification

Justification provides the justification when the state of the assessment if NOT_AFFECTED. Corresponds to the JSON property justification



115
116
117
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 115

def justification
  @justification
end

#long_descriptionString

A detailed description of this Vex. Corresponds to the JSON property longDescription

Returns:

  • (String)


120
121
122
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 120

def long_description
  @long_description
end

Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g. Link to a document which details how this assessment concluded the state of this vulnerability. Corresponds to the JSON property relatedUris



128
129
130
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 128

def related_uris
  @related_uris
end

#remediationsArray<Google::Apis::ContaineranalysisV1alpha1::Remediation>

Specifies details on how to handle (and presumably, fix) a vulnerability. Corresponds to the JSON property remediations



133
134
135
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 133

def remediations
  @remediations
end

#short_descriptionString

A one sentence description of this Vex. Corresponds to the JSON property shortDescription

Returns:

  • (String)


138
139
140
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 138

def short_description
  @short_description
end

#stateString

Provides the state of this Vulnerability assessment. Corresponds to the JSON property state

Returns:

  • (String)


143
144
145
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 143

def state
  @state
end

#vulnerability_idString

The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. Corresponds to the JSON property vulnerabilityId

Returns:

  • (String)


149
150
151
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 149

def vulnerability_id
  @vulnerability_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 156

def update!(**args)
  @cve = args[:cve] if args.key?(:cve)
  @impacts = args[:impacts] if args.key?(:impacts)
  @justification = args[:justification] if args.key?(:justification)
  @long_description = args[:long_description] if args.key?(:long_description)
  @related_uris = args[:related_uris] if args.key?(:related_uris)
  @remediations = args[:remediations] if args.key?(:remediations)
  @short_description = args[:short_description] if args.key?(:short_description)
  @state = args[:state] if args.key?(:state)
  @vulnerability_id = args[:vulnerability_id] if args.key?(:vulnerability_id)
end