Class: Google::Apis::ContaineranalysisV1alpha1::IdentifierHelper
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::IdentifierHelper
- 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
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.
Instance Attribute Summary collapse
-
#field ⇒ String
The field that is set in the API proto.
-
#generic_uri ⇒ String
Contains a URI which is vendor-specific.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IdentifierHelper
constructor
A new instance of IdentifierHelper.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IdentifierHelper
Returns a new instance of IdentifierHelper.
4421 4422 4423 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ String
The field that is set in the API proto.
Corresponds to the JSON property field
4413 4414 4415 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4413 def field @field end |
#generic_uri ⇒ String
Contains a URI which is vendor-specific. Example: The artifact repository URL
of an image.
Corresponds to the JSON property genericUri
4419 4420 4421 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4419 def generic_uri @generic_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4426 4427 4428 4429 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4426 def update!(**args) @field = args[:field] if args.key?(:field) @generic_uri = args[:generic_uri] if args.key?(:generic_uri) end |