Class: Google::Cloud::ArtifactRegistry::V1::DockerImage
- Inherits:
-
Object
- Object
- Google::Cloud::ArtifactRegistry::V1::DockerImage
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/artifactregistry/v1/artifact.rb
Overview
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
Instance Attribute Summary collapse
-
#build_time ⇒ ::Google::Protobuf::Timestamp
The time this image was built.
-
#image_size_bytes ⇒ ::Integer
Calculated size of the image.
-
#media_type ⇒ ::String
Media type of this image, e.g.
-
#name ⇒ ::String
Required.
-
#tags ⇒ ::Array<::String>
Tags attached to this image.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#upload_time ⇒ ::Google::Protobuf::Timestamp
Time the image was uploaded.
-
#uri ⇒ ::String
Required.
Instance Attribute Details
#build_time ⇒ ::Google::Protobuf::Timestamp
Returns 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.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#image_size_bytes ⇒ ::Integer
Returns Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#media_type ⇒ ::String
Returns 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.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns 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.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tags ⇒ ::Array<::String>
Returns Tags attached to this image.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the docker image was last updated.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#upload_time ⇒ ::Google::Protobuf::Timestamp
Returns Time the image was uploaded.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#uri ⇒ ::String
Returns Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf.
74 75 76 77 |
# File 'proto_docs/google/devtools/artifactregistry/v1/artifact.rb', line 74 class DockerImage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |