Class: Google::Apis::ContaineranalysisV1beta1::KnowledgeBase

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) ⇒ KnowledgeBase

Returns a new instance of KnowledgeBase.



1655
1656
1657
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1655

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

Instance Attribute Details

#nameString

The KB name (generally of the form KB[0-9]+ i.e. KB123456). Corresponds to the JSON property name

Returns:

  • (String)


1647
1648
1649
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1647

def name
  @name
end

#urlString

A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/ Corresponds to the JSON property url

Returns:

  • (String)


1653
1654
1655
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1653

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1660
1661
1662
1663
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1660

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