Class: Google::Apis::ContaineranalysisV1::KnowledgeBase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KnowledgeBase

Returns a new instance of KnowledgeBase.



4063
4064
4065
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4063

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


4055
4056
4057
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4055

def name
  @name
end

#urlString

A link to the KB in the Windows update catalog. Corresponds to the JSON property url

Returns:

  • (String)


4061
4062
4063
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4061

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4068
4069
4070
4071
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4068

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