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

com.pulumi.azure.compute.kotlin.outputs.GetManagedDiskResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.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 getManagedDisk.
 * @property createOption
 * @property diskAccessId The ID of the disk access resource for using private endpoints on disks.
 * @property diskEncryptionSetId The ID of the Disk Encryption Set used to encrypt this Managed Disk.
 * @property diskIopsReadWrite The number of IOPS allowed for this disk, where one operation can transfer between 4k and 256k bytes.
 * @property diskMbpsReadWrite The bandwidth allowed for this disk.
 * @property diskSizeGb The size of the Managed Disk in gigabytes.
 * @property encryptionSettings A `encryption_settings` block as defined below.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property imageReferenceId The ID of the source image used for creating this Managed Disk.
 * @property name
 * @property networkAccessPolicy Policy for accessing the disk via network.
 * @property osType The operating system used for this Managed Disk.
 * @property resourceGroupName
 * @property sourceResourceId The ID of an existing Managed Disk which this Disk was created from.
 * @property sourceUri The Source URI for this Managed Disk.
 * @property storageAccountId The ID of the Storage Account where the `source_uri` is located.
 * @property storageAccountType The storage account type for the Managed Disk.
 * @property tags A mapping of tags assigned to the resource.
 * @property zones A list of Availability Zones where the Managed Disk exists.
 */
public data class GetManagedDiskResult(
    public val createOption: String,
    public val diskAccessId: String,
    public val diskEncryptionSetId: String,
    public val diskIopsReadWrite: Int,
    public val diskMbpsReadWrite: Int,
    public val diskSizeGb: Int,
    public val encryptionSettings: List,
    public val id: String,
    public val imageReferenceId: String,
    public val name: String,
    public val networkAccessPolicy: String,
    public val osType: String,
    public val resourceGroupName: String,
    public val sourceResourceId: String,
    public val sourceUri: String,
    public val storageAccountId: String,
    public val storageAccountType: String,
    public val tags: Map,
    public val zones: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.GetManagedDiskResult): GetManagedDiskResult = GetManagedDiskResult(
            createOption = javaType.createOption(),
            diskAccessId = javaType.diskAccessId(),
            diskEncryptionSetId = javaType.diskEncryptionSetId(),
            diskIopsReadWrite = javaType.diskIopsReadWrite(),
            diskMbpsReadWrite = javaType.diskMbpsReadWrite(),
            diskSizeGb = javaType.diskSizeGb(),
            encryptionSettings = javaType.encryptionSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.compute.kotlin.outputs.GetManagedDiskEncryptionSetting.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            imageReferenceId = javaType.imageReferenceId(),
            name = javaType.name(),
            networkAccessPolicy = javaType.networkAccessPolicy(),
            osType = javaType.osType(),
            resourceGroupName = javaType.resourceGroupName(),
            sourceResourceId = javaType.sourceResourceId(),
            sourceUri = javaType.sourceUri(),
            storageAccountId = javaType.storageAccountId(),
            storageAccountType = javaType.storageAccountType(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            zones = javaType.zones().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy