Class: Google::Apis::ContaineranalysisV1beta1::Resource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resource

Returns a new instance of Resource.



2585
2586
2587
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2585

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#content_hashGoogle::Apis::ContaineranalysisV1beta1::HashProp

Container message for hash values. Corresponds to the JSON property contentHash



2571
2572
2573
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2571

def content_hash
  @content_hash
end

#nameString

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

Returns:

  • (String)


2577
2578
2579
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2577

def name
  @name
end

#uriString

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

Returns:

  • (String)


2583
2584
2585
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2583

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2590
2591
2592
2593
2594
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2590

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