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

com.pulumi.googlenative.compute.beta.kotlin.outputs.GetNodeGroupResult.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.compute.beta.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property autoscalingPolicy Specifies how autoscaling should behave.
 * @property creationTimestamp Creation timestamp in RFC3339 text format.
 * @property description An optional description of this resource. Provide this property when you create the resource.
 * @property fingerprint
 * @property kind The type of the resource. Always compute#nodeGroup for node group.
 * @property locationHint An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
 * @property maintenancePolicy Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.
 * @property maintenanceWindow
 * @property name The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
 * @property nodeTemplate URL of the node template to create the node group from.
 * @property selfLink Server-defined URL for the resource.
 * @property shareSettings Share-settings for the node group
 * @property size The total number of nodes in the node group.
 * @property status
 * @property zone The name of the zone where the node group resides, such as us-central1-a.
 */
public data class GetNodeGroupResult(
    public val autoscalingPolicy: NodeGroupAutoscalingPolicyResponse,
    public val creationTimestamp: String,
    public val description: String,
    public val fingerprint: String,
    public val kind: String,
    public val locationHint: String,
    public val maintenancePolicy: String,
    public val maintenanceWindow: NodeGroupMaintenanceWindowResponse,
    public val name: String,
    public val nodeTemplate: String,
    public val selfLink: String,
    public val shareSettings: ShareSettingsResponse,
    public val size: Int,
    public val status: String,
    public val zone: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.beta.outputs.GetNodeGroupResult): GetNodeGroupResult = GetNodeGroupResult(
            autoscalingPolicy = javaType.autoscalingPolicy().let({ args0 ->
                com.pulumi.googlenative.compute.beta.kotlin.outputs.NodeGroupAutoscalingPolicyResponse.Companion.toKotlin(args0)
            }),
            creationTimestamp = javaType.creationTimestamp(),
            description = javaType.description(),
            fingerprint = javaType.fingerprint(),
            kind = javaType.kind(),
            locationHint = javaType.locationHint(),
            maintenancePolicy = javaType.maintenancePolicy(),
            maintenanceWindow = javaType.maintenanceWindow().let({ args0 ->
                com.pulumi.googlenative.compute.beta.kotlin.outputs.NodeGroupMaintenanceWindowResponse.Companion.toKotlin(args0)
            }),
            name = javaType.name(),
            nodeTemplate = javaType.nodeTemplate(),
            selfLink = javaType.selfLink(),
            shareSettings = javaType.shareSettings().let({ args0 ->
                com.pulumi.googlenative.compute.beta.kotlin.outputs.ShareSettingsResponse.Companion.toKotlin(args0)
            }),
            size = javaType.size(),
            status = javaType.status(),
            zone = javaType.zone(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy