class Google::Apis::ContaineranalysisV1alpha1::Resource

Resource is an entity that can have metadata. E.g., a Docker image.

Attributes

content_hash[RW]

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

name[RW]

The name of the resource. E.g., the name of a Docker image - “Debian”. Corresponds to the JSON property `name` @return [String]

uri[RW]

The unique URI of the resource. E.g., “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_v1alpha1/classes.rb, line 3274
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_v1alpha1/classes.rb, line 3279
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