com.pulumi.azurenative.cdn.kotlin.outputs.GetTunnelPolicyResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cdn.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Tunnel Policy maps domains to target endpoints to process traffic over the tunnelling protocol.
* @property deploymentStatus
* @property domains Domains referenced by this tunnel policy.
* @property id Resource ID.
* @property name Resource name.
* @property provisioningState Provisioning status
* @property systemData Read only system data
* @property targetGroups Target Groups referenced by this tunnel policy.
* @property tunnelType Protocol this tunnel will use for allowing traffic to backends.
* @property type Resource type.
*/
public data class GetTunnelPolicyResult(
public val deploymentStatus: String,
public val domains: List,
public val id: String,
public val name: String,
public val provisioningState: String,
public val systemData: SystemDataResponse,
public val targetGroups: List? = null,
public val tunnelType: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.cdn.outputs.GetTunnelPolicyResult): GetTunnelPolicyResult = GetTunnelPolicyResult(
deploymentStatus = javaType.deploymentStatus(),
domains = javaType.domains().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.cdn.kotlin.outputs.ActivatedResourceReferenceResponse.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
name = javaType.name(),
provisioningState = javaType.provisioningState(),
systemData = javaType.systemData().let({ args0 ->
com.pulumi.azurenative.cdn.kotlin.outputs.SystemDataResponse.Companion.toKotlin(args0)
}),
targetGroups = javaType.targetGroups().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.cdn.kotlin.outputs.ResourceReferenceResponse.Companion.toKotlin(args0)
})
}),
tunnelType = javaType.tunnelType().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}