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

com.pulumi.googlenative.compute.alpha.kotlin.outputs.AuthenticationPolicyResponse.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.googlenative.compute.alpha.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * [Deprecated] The authentication settings for the backend service. The authentication settings for the backend service.
 * @property origins List of authentication methods that can be used for origin authentication. Similar to peers, these will be evaluated in order the first valid one will be used to set origin identity. If none of these methods pass, the request will be rejected with authentication failed error (401). Leave the list empty if origin authentication is not required.
 * @property peers List of authentication methods that can be used for peer authentication. They will be evaluated in order the first valid one will be used to set peer identity. If none of these methods pass, the request will be rejected with authentication failed error (401). Leave the list empty if peer authentication is not required.
 * @property principalBinding Define whether peer or origin identity should be used for principal. Default value is USE_PEER. If peer (or origin) identity is not available, either because peer/origin authentication is not defined, or failed, principal will be left unset. In other words, binding rule does not affect the decision to accept or reject request. This field can be set to one of the following: USE_PEER: Principal will be set to the identity from peer authentication. USE_ORIGIN: Principal will be set to the identity from origin authentication.
 * @property serverTlsContext Configures the mechanism to obtain server-side security certificates and identity information.
 */
public data class AuthenticationPolicyResponse(
    public val origins: List,
    public val peers: List,
    public val principalBinding: String,
    public val serverTlsContext: TlsContextResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.alpha.outputs.AuthenticationPolicyResponse): AuthenticationPolicyResponse = AuthenticationPolicyResponse(
            origins = javaType.origins().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.googlenative.compute.alpha.kotlin.outputs.OriginAuthenticationMethodResponse.Companion.toKotlin(args0)
                })
            }),
            peers = javaType.peers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.googlenative.compute.alpha.kotlin.outputs.PeerAuthenticationMethodResponse.Companion.toKotlin(args0)
                })
            }),
            principalBinding = javaType.principalBinding(),
            serverTlsContext = javaType.serverTlsContext().let({ args0 ->
                com.pulumi.googlenative.compute.alpha.kotlin.outputs.TlsContextResponse.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy