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

com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckResult.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.12.0.0
Show newest version
@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 getHealthCheck.
 * @property checkIntervalSec
 * @property creationTimestamp
 * @property description
 * @property grpcHealthChecks
 * @property healthyThreshold
 * @property http2HealthChecks
 * @property httpHealthChecks
 * @property httpsHealthChecks
 * @property id The provider-assigned unique ID for this managed resource.
 * @property logConfigs
 * @property name
 * @property project
 * @property selfLink
 * @property sslHealthChecks
 * @property tcpHealthChecks
 * @property timeoutSec
 * @property type
 * @property unhealthyThreshold
 */
public data class GetHealthCheckResult(
    public val checkIntervalSec: Int,
    public val creationTimestamp: String,
    public val description: String,
    public val grpcHealthChecks: List,
    public val healthyThreshold: Int,
    public val http2HealthChecks: List,
    public val httpHealthChecks: List,
    public val httpsHealthChecks: List,
    public val id: String,
    public val logConfigs: List,
    public val name: String,
    public val project: String? = null,
    public val selfLink: String,
    public val sslHealthChecks: List,
    public val tcpHealthChecks: List,
    public val timeoutSec: Int,
    public val type: String,
    public val unhealthyThreshold: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetHealthCheckResult): GetHealthCheckResult = GetHealthCheckResult(
            checkIntervalSec = javaType.checkIntervalSec(),
            creationTimestamp = javaType.creationTimestamp(),
            description = javaType.description(),
            grpcHealthChecks = javaType.grpcHealthChecks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckGrpcHealthCheck.Companion.toKotlin(args0)
                })
            }),
            healthyThreshold = javaType.healthyThreshold(),
            http2HealthChecks = javaType.http2HealthChecks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckHttp2HealthCheck.Companion.toKotlin(args0)
                })
            }),
            httpHealthChecks = javaType.httpHealthChecks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckHttpHealthCheck.Companion.toKotlin(args0)
                })
            }),
            httpsHealthChecks = javaType.httpsHealthChecks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckHttpsHealthCheck.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            logConfigs = javaType.logConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckLogConfig.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            selfLink = javaType.selfLink(),
            sslHealthChecks = javaType.sslHealthChecks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckSslHealthCheck.Companion.toKotlin(args0)
                })
            }),
            tcpHealthChecks = javaType.tcpHealthChecks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckTcpHealthCheck.Companion.toKotlin(args0)
                })
            }),
            timeoutSec = javaType.timeoutSec(),
            type = javaType.type(),
            unhealthyThreshold = javaType.unhealthyThreshold(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy