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

com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.ServiceReference.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs

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

/**
 * ServiceReference holds a reference to Service.legacy.k8s.io
 * @property name name is the name of the service. Required
 * @property namespace namespace is the namespace of the service. Required
 * @property path path is an optional URL path at which the webhook will be contacted.
 * @property port port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
 */
public data class ServiceReference(
    public val name: String,
    public val namespace: String,
    public val path: String? = null,
    public val port: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.apiextensions.v1beta1.outputs.ServiceReference): ServiceReference = ServiceReference(
            name = javaType.name(),
            namespace = javaType.namespace(),
            path = javaType.path().map({ args0 -> args0 }).orElse(null),
            port = javaType.port().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy