Class: Google::Apis::ContaineranalysisV1beta1::Resource
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::Resource
- Defined in:
- generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb
Overview
An entity that can have metadata. For example, a Docker image.
Instance Attribute Summary collapse
-
#content_hash ⇒ Google::Apis::ContaineranalysisV1beta1::HashProp
Container message for hash values.
-
#name ⇒ String
The name of the resource.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Resource
constructor
A new instance of Resource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Resource
Returns a new instance of Resource
2277 2278 2279 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2277 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_hash ⇒ Google::Apis::ContaineranalysisV1beta1::HashProp
Container message for hash values.
Corresponds to the JSON property contentHash
2263 2264 2265 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2263 def content_hash @content_hash end |
#name ⇒ String
The name of the resource. For example, the name of a Docker image -
"Debian".
Corresponds to the JSON property name
2269 2270 2271 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2269 def name @name end |
#uri ⇒ String
Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo
for a Docker image.
Corresponds to the JSON property uri
2275 2276 2277 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2275 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2282 2283 2284 2285 2286 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2282 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 |