com.pulumi.gcp.container.kotlin.outputs.ClusterFleet.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property membership The resource name of the fleet Membership resource associated to this cluster with format `//gkehub.googleapis.com/projects/{{project}}/locations/{{location}}/memberships/{{name}}`. See the official doc for [fleet management](https://cloud.google.com/kubernetes-engine/docs/fleets-overview).
* @property membershipId The short name of the fleet membership, extracted from `fleet.0.membership`. You can use this field to configure `membership_id` under google_gkehub_feature_membership.
* @property membershipLocation The location of the fleet membership, extracted from `fleet.0.membership`. You can use this field to configure `membership_location` under google_gkehub_feature_membership.
* @property preRegistered Whether the cluster has been registered via the fleet API.
* @property project The name of the Fleet host project where this cluster will be registered.
*/
public data class ClusterFleet(
public val membership: String? = null,
public val membershipId: String? = null,
public val membershipLocation: String? = null,
public val preRegistered: Boolean? = null,
public val project: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterFleet): ClusterFleet =
ClusterFleet(
membership = javaType.membership().map({ args0 -> args0 }).orElse(null),
membershipId = javaType.membershipId().map({ args0 -> args0 }).orElse(null),
membershipLocation = javaType.membershipLocation().map({ args0 -> args0 }).orElse(null),
preRegistered = javaType.preRegistered().map({ args0 -> args0 }).orElse(null),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
)
}
}