Class DockerImage

public sealed class DockerImage : IMessage<DockerImage>, IEquatable<DockerImage>, IDeepCloneable<DockerImage>, IBufferMessage, IMessage

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

Inheritance

Object > DockerImage

Namespace

Google.Cloud.ArtifactRegistry.V1

Assembly

Google.Cloud.ArtifactRegistry.V1.dll

Constructors

DockerImage()

public DockerImage()

DockerImage(DockerImage)

public DockerImage(DockerImage other)
Parameter
NameDescription
otherDockerImage

Properties

BuildTime

public Timestamp BuildTime { get; set; }

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.

Property Value
TypeDescription
Timestamp

DockerImageName

public DockerImageName DockerImageName { get; set; }

DockerImageName-typed view over the Name resource name property.

Property Value
TypeDescription
DockerImageName

ImageSizeBytes

public long ImageSizeBytes { get; set; }

Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.

Property Value
TypeDescription
Int64

MediaType

public string MediaType { get; set; }

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.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

Required. registry_location, project_id, repository_name and image id forms a unique image name:projects/&lt;project_id>/locations/&lt;location>/repository/&lt;repository_name>/dockerImages/&lt;docker_image>. For example, "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf&quot;, where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and &quot;nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf&quot; is the image's digest.

Property Value
TypeDescription
String

Tags

public RepeatedField<string> Tags { get; }

Tags attached to this image.

Property Value
TypeDescription
RepeatedField<String>

UploadTime

public Timestamp UploadTime { get; set; }

Time the image was uploaded.

Property Value
TypeDescription
Timestamp

Uri

public string Uri { get; set; }

Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf

Property Value
TypeDescription
String