com.pulumi.gcp.compute.kotlin.outputs.ReservationSpecificReservationInstanceProperties.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.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property guestAccelerators Guest accelerator type and count.
* Structure is documented below.
* @property localSsds The amount of local ssd to reserve with each instance. This
* reserves disks of type `local-ssd`.
* Structure is documented below.
* @property machineType The name of the machine type to reserve.
* @property minCpuPlatform The minimum CPU platform for the reservation. For example,
* `"Intel Skylake"`. See
* the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones)
* for information on available CPU platforms.
*/
public data class ReservationSpecificReservationInstanceProperties(
public val guestAccelerators: List? = null,
public val localSsds: List? = null,
public val machineType: String,
public val minCpuPlatform: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.ReservationSpecificReservationInstanceProperties): ReservationSpecificReservationInstanceProperties =
ReservationSpecificReservationInstanceProperties(
guestAccelerators = javaType.guestAccelerators().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ReservationSpecificReservationInstancePropertiesGuestAccelerator.Companion.toKotlin(args0)
})
}),
localSsds = javaType.localSsds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ReservationSpecificReservationInstancePropertiesLocalSsd.Companion.toKotlin(args0)
})
}),
machineType = javaType.machineType(),
minCpuPlatform = javaType.minCpuPlatform().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy