Class: Google::Apis::ContaineranalysisV1beta1::Resource
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::Resource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/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
Deprecated, do not use.
-
#uri ⇒ String
Required.
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.
3152 3153 3154 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3152 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
3138 3139 3140 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3138 def content_hash @content_hash end |
#name ⇒ String
Deprecated, do not use. Use uri instead. The name of the resource. For example,
the name of a Docker image - "Debian".
Corresponds to the JSON property name
3144 3145 3146 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3144 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
3150 3151 3152 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3150 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3157 3158 3159 3160 3161 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 3157 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 |