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

com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaCredentialResponse.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.integrations.v1alpha.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Defines parameters for a single, canonical credential.
 * @property authToken Auth token credential
 * @property credentialType Credential type associated with auth config.
 * @property jwt JWT credential
 * @property oauth2AuthorizationCode The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is implemented. ApiKey api_key = 3; OAuth2 authorization code credential
 * @property oauth2ClientCredentials OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials
 * @property oauth2ResourceOwnerCredentials OAuth2 resource owner credentials
 * @property oidcToken Google OIDC ID Token
 * @property serviceAccountCredentials Service account credential
 * @property usernameAndPassword Username and password credential
 */
public data class GoogleCloudIntegrationsV1alphaCredentialResponse(
    public val authToken: GoogleCloudIntegrationsV1alphaAuthTokenResponse,
    public val credentialType: String,
    public val jwt: GoogleCloudIntegrationsV1alphaJwtResponse,
    public val oauth2AuthorizationCode: GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeResponse,
    public val oauth2ClientCredentials: GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsResponse,
    public val oauth2ResourceOwnerCredentials: GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsResponse,
    public val oidcToken: GoogleCloudIntegrationsV1alphaOidcTokenResponse,
    public val serviceAccountCredentials: GoogleCloudIntegrationsV1alphaServiceAccountCredentialsResponse,
    public val usernameAndPassword: GoogleCloudIntegrationsV1alphaUsernameAndPasswordResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.integrations.v1alpha.outputs.GoogleCloudIntegrationsV1alphaCredentialResponse): GoogleCloudIntegrationsV1alphaCredentialResponse =
            GoogleCloudIntegrationsV1alphaCredentialResponse(
                authToken = javaType.authToken().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaAuthTokenResponse.Companion.toKotlin(args0)
                }),
                credentialType = javaType.credentialType(),
                jwt = javaType.jwt().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaJwtResponse.Companion.toKotlin(args0)
                }),
                oauth2AuthorizationCode = javaType.oauth2AuthorizationCode().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeResponse.Companion.toKotlin(args0)
                }),
                oauth2ClientCredentials = javaType.oauth2ClientCredentials().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsResponse.Companion.toKotlin(args0)
                }),
                oauth2ResourceOwnerCredentials = javaType.oauth2ResourceOwnerCredentials().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsResponse.Companion.toKotlin(args0)
                }),
                oidcToken = javaType.oidcToken().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaOidcTokenResponse.Companion.toKotlin(args0)
                }),
                serviceAccountCredentials = javaType.serviceAccountCredentials().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaServiceAccountCredentialsResponse.Companion.toKotlin(args0)
                }),
                usernameAndPassword = javaType.usernameAndPassword().let({ args0 ->
                    com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.GoogleCloudIntegrationsV1alphaUsernameAndPasswordResponse.Companion.toKotlin(args0)
                }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy