Class: Google::Apis::ContaineranalysisV1beta1::WindowsDetail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WindowsDetail

Returns a new instance of WindowsDetail



2915
2916
2917
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2915

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

Instance Attribute Details

#cpe_uriString

Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. Corresponds to the JSON property cpeUri

Returns:

  • (String)


2895
2896
2897
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2895

def cpe_uri
  @cpe_uri
end

#descriptionString

The description of the vulnerability. Corresponds to the JSON property description

Returns:

  • (String)


2900
2901
2902
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2900

def description
  @description
end

#fixing_kbsArray<Google::Apis::ContaineranalysisV1beta1::KnowledgeBase>

Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb's presence is considered a fix. Corresponds to the JSON property fixingKbs



2908
2909
2910
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2908

def fixing_kbs
  @fixing_kbs
end

#nameString

Required. The name of the vulnerability. Corresponds to the JSON property name

Returns:

  • (String)


2913
2914
2915
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2913

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2920
2921
2922
2923
2924
2925
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2920

def update!(**args)
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
  @description = args[:description] if args.key?(:description)
  @fixing_kbs = args[:fixing_kbs] if args.key?(:fixing_kbs)
  @name = args[:name] if args.key?(:name)
end