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

com.pulumi.gcp.compute.kotlin.outputs.GetSnapshotResult.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getSnapshot.
 * @property chainName
 * @property creationTimestamp
 * @property description
 * @property diskSizeGb
 * @property effectiveLabels
 * @property filter
 * @property id The provider-assigned unique ID for this managed resource.
 * @property labelFingerprint
 * @property labels
 * @property licenses
 * @property mostRecent
 * @property name
 * @property project
 * @property pulumiLabels
 * @property selfLink
 * @property snapshotEncryptionKeys
 * @property snapshotId
 * @property sourceDisk
 * @property sourceDiskEncryptionKeys
 * @property storageBytes
 * @property storageLocations
 * @property zone
 */
public data class GetSnapshotResult(
    public val chainName: String,
    public val creationTimestamp: String,
    public val description: String,
    public val diskSizeGb: Int,
    public val effectiveLabels: Map,
    public val filter: String? = null,
    public val id: String,
    public val labelFingerprint: String,
    public val labels: Map,
    public val licenses: List,
    public val mostRecent: Boolean? = null,
    public val name: String? = null,
    public val project: String? = null,
    public val pulumiLabels: Map,
    public val selfLink: String,
    public val snapshotEncryptionKeys: List,
    public val snapshotId: Int,
    public val sourceDisk: String,
    public val sourceDiskEncryptionKeys: List,
    public val storageBytes: Int,
    public val storageLocations: List,
    public val zone: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetSnapshotResult): GetSnapshotResult = GetSnapshotResult(
            chainName = javaType.chainName(),
            creationTimestamp = javaType.creationTimestamp(),
            description = javaType.description(),
            diskSizeGb = javaType.diskSizeGb(),
            effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            filter = javaType.filter().map({ args0 -> args0 }).orElse(null),
            id = javaType.id(),
            labelFingerprint = javaType.labelFingerprint(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            licenses = javaType.licenses().map({ args0 -> args0 }),
            mostRecent = javaType.mostRecent().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            selfLink = javaType.selfLink(),
            snapshotEncryptionKeys = javaType.snapshotEncryptionKeys().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetSnapshotSnapshotEncryptionKey.Companion.toKotlin(args0)
                })
            }),
            snapshotId = javaType.snapshotId(),
            sourceDisk = javaType.sourceDisk(),
            sourceDiskEncryptionKeys = javaType.sourceDiskEncryptionKeys().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetSnapshotSourceDiskEncryptionKey.Companion.toKotlin(args0)
                })
            }),
            storageBytes = javaType.storageBytes(),
            storageLocations = javaType.storageLocations().map({ args0 -> args0 }),
            zone = javaType.zone(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy