Class: Google::Apis::ContaineranalysisV1alpha1::Resource
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::Resource
- 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
Resource is an entity that can have metadata. E.g., a Docker image.
Instance Attribute Summary collapse
-
#content_hash ⇒ Google::Apis::ContaineranalysisV1alpha1::HashProp
Container message for hash values.
-
#name ⇒ String
The name of the resource.
-
#uri ⇒ String
The unique URI of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resource
constructor
A new instance of Resource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Resource
Returns a new instance of Resource.
6215 6216 6217 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6215 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_hash ⇒ Google::Apis::ContaineranalysisV1alpha1::HashProp
Container message for hash values.
Corresponds to the JSON property contentHash
6202 6203 6204 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6202 def content_hash @content_hash end |
#name ⇒ String
The name of the resource. E.g., the name of a Docker image - "Debian".
Corresponds to the JSON property name
6207 6208 6209 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6207 def name @name end |
#uri ⇒ String
The unique URI of the resource. E.g., "https://gcr.io/project/image@sha256:foo"
for a Docker image.
Corresponds to the JSON property uri
6213 6214 6215 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6213 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6220 6221 6222 6223 6224 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6220 def update!(**args) @content_hash = args[:content_hash] if args.key?(:content_hash) @name = args[:name] if args.key?(:name) @uri = args[:uri] if args.key?(:uri) end |