class Google::Apis::ArtifactregistryV1::DockerImage
DockerImage
represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata. imageSizeBytes): - imageSizeBytes - mediaType - buildTime
Attributes
The time this image was built. This field is returned as the 'metadata. buildTime' field in the Version resource. The build time is returned to the client as an RFC 3339 string, which can be easily used with the JavaScript Date constructor and keeps the Version timestamps returned via OnePlatform consistent, as JSON marshals google.protobuf.Timestamp into an RFC 3339 string. Corresponds to the JSON property `buildTime` @return [String]
Calculated size of the image. This field is returned as the 'metadata. imageSizeBytes' field in the Version resource. Corresponds to the JSON property `imageSizeBytes` @return [Fixnum]
Media type of this image, e.g. “application/vnd.docker.distribution.manifest. v2+json”. This field is returned as the 'metadata.mediaType' field in the Version resource. Corresponds to the JSON property `mediaType` @return [String]
Required. registry_location, project_id, repository_name and image id forms a unique image name:`projects//locations//repository//dockerImages/`. For example, “projects/test-project/locations/us-west4/repositories/test-repo/ dockerImages/ nginx@sha256: e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf”, where “us- west4” is the registry_location, “test-project” is the project_id, “test-repo” is the repository_name and “nginx@sha256: e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf” is the image' s digest. Corresponds to the JSON property `name` @return [String]
Time the image was uploaded. Corresponds to the JSON property `uploadTime` @return [String]
Required. URL to access the image. Example: us-west4-docker.pkg.dev/test- sha256 at project/test-repo/nginx
: e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf Corresponds to the JSON property `uri` @return [String]
Public Class Methods
# File lib/google/apis/artifactregistry_v1/classes.rb, line 148 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/artifactregistry_v1/classes.rb, line 153 def update!(**args) @build_time = args[:build_time] if args.key?(:build_time) @image_size_bytes = args[:image_size_bytes] if args.key?(:image_size_bytes) @media_type = args[:media_type] if args.key?(:media_type) @name = args[:name] if args.key?(:name) @tags = args[:tags] if args.key?(:tags) @upload_time = args[:upload_time] if args.key?(:upload_time) @uri = args[:uri] if args.key?(:uri) end