com.pulumi.gcp.compute.kotlin.outputs.GetRegionDiskResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getRegionDisk.
* @property asyncPrimaryDisks
* @property creationTimestamp
* @property description
* @property diskEncryptionKeys
* @property effectiveLabels
* @property guestOsFeatures
* @property id The provider-assigned unique ID for this managed resource.
* @property interface
* @property labelFingerprint
* @property labels
* @property lastAttachTimestamp
* @property lastDetachTimestamp
* @property licenses
* @property name
* @property physicalBlockSizeBytes
* @property project
* @property pulumiLabels
* @property region
* @property replicaZones
* @property selfLink
* @property size
* @property snapshot
* @property sourceDisk
* @property sourceDiskId
* @property sourceSnapshotEncryptionKeys
* @property sourceSnapshotId
* @property type
* @property users
*/
public data class GetRegionDiskResult(
public val asyncPrimaryDisks: List,
public val creationTimestamp: String,
public val description: String,
public val diskEncryptionKeys: List,
public val effectiveLabels: Map,
public val guestOsFeatures: List,
public val id: String,
public val `interface`: String,
public val labelFingerprint: String,
public val labels: Map,
public val lastAttachTimestamp: String,
public val lastDetachTimestamp: String,
public val licenses: List,
public val name: String,
public val physicalBlockSizeBytes: Int,
public val project: String? = null,
public val pulumiLabels: Map,
public val region: String? = null,
public val replicaZones: List,
public val selfLink: String,
public val size: Int,
public val snapshot: String,
public val sourceDisk: String,
public val sourceDiskId: String,
public val sourceSnapshotEncryptionKeys: List,
public val sourceSnapshotId: String,
public val type: String,
public val users: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetRegionDiskResult): GetRegionDiskResult = GetRegionDiskResult(
asyncPrimaryDisks = javaType.asyncPrimaryDisks().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionDiskAsyncPrimaryDisk.Companion.toKotlin(args0)
})
}),
creationTimestamp = javaType.creationTimestamp(),
description = javaType.description(),
diskEncryptionKeys = javaType.diskEncryptionKeys().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionDiskDiskEncryptionKey.Companion.toKotlin(args0)
})
}),
effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
guestOsFeatures = javaType.guestOsFeatures().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionDiskGuestOsFeature.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
`interface` = javaType.interface_(),
labelFingerprint = javaType.labelFingerprint(),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
lastAttachTimestamp = javaType.lastAttachTimestamp(),
lastDetachTimestamp = javaType.lastDetachTimestamp(),
licenses = javaType.licenses().map({ args0 -> args0 }),
name = javaType.name(),
physicalBlockSizeBytes = javaType.physicalBlockSizeBytes(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
region = javaType.region().map({ args0 -> args0 }).orElse(null),
replicaZones = javaType.replicaZones().map({ args0 -> args0 }),
selfLink = javaType.selfLink(),
size = javaType.size(),
snapshot = javaType.snapshot(),
sourceDisk = javaType.sourceDisk(),
sourceDiskId = javaType.sourceDiskId(),
sourceSnapshotEncryptionKeys = javaType.sourceSnapshotEncryptionKeys().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionDiskSourceSnapshotEncryptionKey.Companion.toKotlin(args0)
})
}),
sourceSnapshotId = javaType.sourceSnapshotId(),
type = javaType.type(),
users = javaType.users().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy