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

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

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

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

/**
 *
 * @property enableConfidentialCompute A flag to enable confidential compute mode on boot disk
 * @property image The image from which this disk was initialised.
 * @property labels A set of key/value label pairs assigned to the disk.
 * @property provisionedIops Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
 * @property provisionedThroughput Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
 * @property resourceManagerTags A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
 * @property size The size of the image in gigabytes.
 * @property type The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
 */
public data class InstanceFromMachineImageBootDiskInitializeParams(
    public val enableConfidentialCompute: Boolean? = null,
    public val image: String? = null,
    public val labels: Map? = null,
    public val provisionedIops: Int? = null,
    public val provisionedThroughput: Int? = null,
    public val resourceManagerTags: Map? = null,
    public val size: Int? = null,
    public val type: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InstanceFromMachineImageBootDiskInitializeParams): InstanceFromMachineImageBootDiskInitializeParams =
            InstanceFromMachineImageBootDiskInitializeParams(
                enableConfidentialCompute = javaType.enableConfidentialCompute().map({ args0 ->
                    args0
                }).orElse(null),
                image = javaType.image().map({ args0 -> args0 }).orElse(null),
                labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                provisionedIops = javaType.provisionedIops().map({ args0 -> args0 }).orElse(null),
                provisionedThroughput = javaType.provisionedThroughput().map({ args0 -> args0 }).orElse(null),
                resourceManagerTags = javaType.resourceManagerTags().map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap(),
                size = javaType.size().map({ args0 -> args0 }).orElse(null),
                type = javaType.type().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy