All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.artifactregistry.kotlin.outputs.GetDockerImageResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.artifactregistry.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getDockerImage.
 * @property buildTime The time, as a RFC 3339 string, this image was built.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property imageName
 * @property imageSizeBytes Calculated size of the image in bytes.
 * @property location
 * @property mediaType Media type of this image, e.g. `application/vnd.docker.distribution.manifest.v2+json`.
 * @property name The fully qualified name of the fetched image.  This name has the form: `projects/{{project}}/locations/{{location}}/repository/{{repository_id}}/dockerImages/{{docker_image}}`. For example,
 * ```
 * projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
 * ```
 * @property project
 * @property repositoryId
 * @property selfLink The URI to access the image.  For example,
 * ```
 * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
 * ```
 * @property tags A list of all tags associated with the image.
 * @property updateTime The time, as a RFC 3339 string, this image was updated.
 * @property uploadTime The time, as a RFC 3339 string, the image was uploaded. For example, `2014-10-02T15:01:23.045123456Z`.
 */
public data class GetDockerImageResult(
    public val buildTime: String,
    public val id: String,
    public val imageName: String,
    public val imageSizeBytes: String,
    public val location: String,
    public val mediaType: String,
    public val name: String,
    public val project: String? = null,
    public val repositoryId: String,
    public val selfLink: String,
    public val tags: List,
    public val updateTime: String,
    public val uploadTime: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.artifactregistry.outputs.GetDockerImageResult): GetDockerImageResult = GetDockerImageResult(
            buildTime = javaType.buildTime(),
            id = javaType.id(),
            imageName = javaType.imageName(),
            imageSizeBytes = javaType.imageSizeBytes(),
            location = javaType.location(),
            mediaType = javaType.mediaType(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            repositoryId = javaType.repositoryId(),
            selfLink = javaType.selfLink(),
            tags = javaType.tags().map({ args0 -> args0 }),
            updateTime = javaType.updateTime(),
            uploadTime = javaType.uploadTime(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy