Class: Google::Apis::ArtifactregistryV1::DockerImage
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::DockerImage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/artifactregistry_v1/classes.rb,
generated/google/apis/artifactregistry_v1/representations.rb,
generated/google/apis/artifactregistry_v1/representations.rb
Overview
DockerImage represents a docker artifact.
Instance Attribute Summary collapse
-
#image_size_bytes ⇒ Fixnum
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.
-
#upload_time ⇒ String
Time the image was uploaded.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DockerImage
constructor
A new instance of DockerImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DockerImage
Returns a new instance of DockerImage.
83 84 85 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 83 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_size_bytes ⇒ Fixnum
Calculated size of the image.
Corresponds to the JSON property imageSizeBytes
45 46 47 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 45 def image_size_bytes @image_size_bytes end |
#media_type ⇒ String
Media type of this image, e.g. "application/vnd.docker.distribution.manifest.
v2+json".
Corresponds to the JSON property mediaType
51 52 53 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 51 def media_type @media_type end |
#name ⇒ 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
64 65 66 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 64 def name @name end |
#tags ⇒ Array<String>
Tags attached to this image.
Corresponds to the JSON property tags
69 70 71 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 69 def @tags end |
#upload_time ⇒ String
Time the image was uploaded.
Corresponds to the JSON property uploadTime
74 75 76 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 74 def upload_time @upload_time end |
#uri ⇒ String
Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-
project/test-repo/nginx@sha256:
e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
Corresponds to the JSON property uri
81 82 83 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 81 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
88 89 90 91 92 93 94 95 |
# File 'generated/google/apis/artifactregistry_v1/classes.rb', line 88 def update!(**args) @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 |