Class: Google::Apis::RunV1::ContainerStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb

Overview

ContainerStatus holds the information of container name and image digest value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContainerStatus

Returns a new instance of ContainerStatus.



671
672
673
# File 'lib/google/apis/run_v1/classes.rb', line 671

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

Instance Attribute Details

#image_digestString

ImageDigest holds the resolved digest for the image specified, regardless of whether a tag or digest was originally specified in the Container object. Corresponds to the JSON property imageDigest

Returns:

  • (String)


664
665
666
# File 'lib/google/apis/run_v1/classes.rb', line 664

def image_digest
  @image_digest
end

#nameString

The name of the container, if specified. Corresponds to the JSON property name

Returns:

  • (String)


669
670
671
# File 'lib/google/apis/run_v1/classes.rb', line 669

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



676
677
678
679
# File 'lib/google/apis/run_v1/classes.rb', line 676

def update!(**args)
  @image_digest = args[:image_digest] if args.key?(:image_digest)
  @name = args[:name] if args.key?(:name)
end