com.pulumi.gcp.compute.kotlin.outputs.GetInstanceGroupResult.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
/**
* A collection of values returned by getInstanceGroup.
* @property description Textual description of the instance group.
* @property id The provider-assigned unique ID for this managed resource.
* @property instances List of instances in the group.
* @property name
* @property namedPorts List of named ports in the group.
* @property network The URL of the network the instance group is in.
* @property project
* @property selfLink The URI of the resource.
* @property size The number of instances in the group.
* @property zone
*/
public data class GetInstanceGroupResult(
public val description: String,
public val id: String,
public val instances: List,
public val name: String? = null,
public val namedPorts: List,
public val network: String,
public val project: String,
public val selfLink: String,
public val size: Int,
public val zone: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetInstanceGroupResult): GetInstanceGroupResult = GetInstanceGroupResult(
description = javaType.description(),
id = javaType.id(),
instances = javaType.instances().map({ args0 -> args0 }),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
namedPorts = javaType.namedPorts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetInstanceGroupNamedPort.Companion.toKotlin(args0)
})
}),
network = javaType.network(),
project = javaType.project(),
selfLink = javaType.selfLink(),
size = javaType.size(),
zone = javaType.zone(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy