Class: Google::Apis::ContaineranalysisV1alpha1::Product
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::Product
- 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
-
#id ⇒ String
Token that identifies a product so that it can be referred to from other parts in the document.
-
#identifier_helper ⇒ Google::Apis::ContaineranalysisV1alpha1::IdentifierHelper
Helps in identifying the underlying product.
-
#name ⇒ String
Name of the product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Product
constructor
A new instance of Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Product
Returns a new instance of Product.
5895 5896 5897 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5895 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
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
5880 5881 5882 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5880 def id @id end |
#identifier_helper ⇒ Google::Apis::ContaineranalysisV1alpha1::IdentifierHelper
Helps in identifying the underlying product. This should be treated like a one-
of field. Only one field should be set in this proto. This is a workaround
because spanner indexes on one-of fields restrict addition and deletion of
fields.
Corresponds to the JSON property identifierHelper
5888 5889 5890 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5888 def identifier_helper @identifier_helper end |
#name ⇒ String
Name of the product.
Corresponds to the JSON property name
5893 5894 5895 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5893 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5900 5901 5902 5903 5904 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5900 def update!(**args) @id = args[:id] if args.key?(:id) @identifier_helper = args[:identifier_helper] if args.key?(:identifier_helper) @name = args[:name] if args.key?(:name) end |