Class: Google::Apis::ContaineranalysisV1alpha1::Product

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

Product contains information about a product and how to uniquely identify it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Product

Returns a new instance of Product.



5347
5348
5349
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5347

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

Instance Attribute Details

#generic_uriString

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. Corresponds to the JSON property genericUri

Returns:

  • (String)


5333
5334
5335
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5333

def generic_uri
  @generic_uri
end

#idString

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document. Corresponds to the JSON property id

Returns:

  • (String)


5340
5341
5342
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5340

def id
  @id
end

#nameString

Name of the product. Corresponds to the JSON property name

Returns:

  • (String)


5345
5346
5347
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5345

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5352
5353
5354
5355
5356
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5352

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