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

com.pulumi.gcp.networkmanagement.kotlin.outputs.ConnectivityTestDestination.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkmanagement.kotlin.outputs

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

/**
 *
 * @property instance A Compute Engine instance URI.
 * @property ipAddress The IP address of the endpoint, which can be an external or
 * internal IP. An IPv6 address is only allowed when the test's
 * destination is a global load balancer VIP.
 * @property network A Compute Engine network URI.
 * @property port The IP protocol port of the endpoint. Only applicable when
 * protocol is TCP or UDP.
 * @property projectId Project ID where the endpoint is located. The Project ID can be
 * derived from the URI if you provide a VM instance or network URI.
 * The following are two cases where you must provide the project ID:
 * 1. Only the IP address is specified, and the IP address is within
 * a GCP project. 2. When you are using Shared VPC and the IP address
 * that you provide is from the service project. In this case, the
 * network that the IP address resides in is defined in the host
 * project.
 * - - -
 */
public data class ConnectivityTestDestination(
    public val instance: String? = null,
    public val ipAddress: String? = null,
    public val network: String? = null,
    public val port: Int? = null,
    public val projectId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkmanagement.outputs.ConnectivityTestDestination): ConnectivityTestDestination = ConnectivityTestDestination(
            instance = javaType.instance().map({ args0 -> args0 }).orElse(null),
            ipAddress = javaType.ipAddress().map({ args0 -> args0 }).orElse(null),
            network = javaType.network().map({ args0 -> args0 }).orElse(null),
            port = javaType.port().map({ args0 -> args0 }).orElse(null),
            projectId = javaType.projectId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy