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

com.pulumi.kubernetes.admissionregistration.v1.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.admissionregistration.v1.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 which will be sent in any request to this service.
 * @property port If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
 */
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.admissionregistration.v1.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