Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class 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
Generated from protobuf message google.devtools.artifactregistry.v1.DockerImage
Namespace
Google \ Cloud \ ArtifactRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. registry_location, project_id, repository_name and image id forms a unique image name: projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>
. 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.
↳ uri
string
Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
↳ tags
array
Tags attached to this image.
↳ image_size_bytes
int|string
Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.
↳ upload_time
↳ media_type
string
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.
↳ build_time
Google\Protobuf\Timestamp
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.
↳ update_time
getName
Required. registry_location, project_id, repository_name and image id forms
a unique image
name: projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>
.
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.
string
setName
Required. registry_location, project_id, repository_name and image id forms
a unique image
name: projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>
.
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.
var
string
$this
getUri
Required. URL to access the image.
Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
string
setUri
Required. URL to access the image.
Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
var
string
$this
getTags
Tags attached to this image.
setTags
Tags attached to this image.
var
string[]
$this
getImageSizeBytes
Calculated size of the image.
This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.
int|string
setImageSizeBytes
Calculated size of the image.
This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.
var
int|string
$this
getUploadTime
Time the image was uploaded.
hasUploadTime
clearUploadTime
setUploadTime
Time the image was uploaded.
$this
getMediaType
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.
string
setMediaType
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.
var
string
$this
getBuildTime
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.
hasBuildTime
clearBuildTime
setBuildTime
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.
$this
getUpdateTime
Output only. The time when the docker image was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the docker image was last updated.
$this