class Google::Apis::ContaineranalysisV1beta1::Resource

An entity that can have metadata. For example, a Docker image.

Attributes

content_hash[RW]

Container message for hash values. Corresponds to the JSON property `contentHash` @return [Google::Apis::ContaineranalysisV1beta1::HashProp]

name[RW]

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` @return [String]

uri[RW]

Required. The unique URI of the resource. For example, `gcr.io/project/ image@sha256:foo` for a Docker image. Corresponds to the JSON property `uri` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 3172
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 3177
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