com.pulumi.gcp.cloudscheduler.kotlin.inputs.JobHttpTargetOauthTokenArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudscheduler.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudscheduler.inputs.JobHttpTargetOauthTokenArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property scope OAuth scope to be used for generating OAuth access token. If not specified,
* "https://www.googleapis.com/auth/cloud-platform" will be used.
* @property serviceAccountEmail Service account email to be used for generating OAuth token.
* The service account must be within the same project as the job.
*/
public data class JobHttpTargetOauthTokenArgs(
public val scope: Output? = null,
public val serviceAccountEmail: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudscheduler.inputs.JobHttpTargetOauthTokenArgs =
com.pulumi.gcp.cloudscheduler.inputs.JobHttpTargetOauthTokenArgs.builder()
.scope(scope?.applyValue({ args0 -> args0 }))
.serviceAccountEmail(serviceAccountEmail.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobHttpTargetOauthTokenArgs].
*/
@PulumiTagMarker
public class JobHttpTargetOauthTokenArgsBuilder internal constructor() {
private var scope: Output? = null
private var serviceAccountEmail: Output? = null
/**
* @param value OAuth scope to be used for generating OAuth access token. If not specified,
* "https://www.googleapis.com/auth/cloud-platform" will be used.
*/
@JvmName("gioeapsodcshanhl")
public suspend fun scope(`value`: Output) {
this.scope = value
}
/**
* @param value Service account email to be used for generating OAuth token.
* The service account must be within the same project as the job.
*/
@JvmName("ohpdrtrkmqiuwpik")
public suspend fun serviceAccountEmail(`value`: Output) {
this.serviceAccountEmail = value
}
/**
* @param value OAuth scope to be used for generating OAuth access token. If not specified,
* "https://www.googleapis.com/auth/cloud-platform" will be used.
*/
@JvmName("erenkpwlmgjuslbb")
public suspend fun scope(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scope = mapped
}
/**
* @param value Service account email to be used for generating OAuth token.
* The service account must be within the same project as the job.
*/
@JvmName("albyuuwnsqfxvlrj")
public suspend fun serviceAccountEmail(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serviceAccountEmail = mapped
}
internal fun build(): JobHttpTargetOauthTokenArgs = JobHttpTargetOauthTokenArgs(
scope = scope,
serviceAccountEmail = serviceAccountEmail ?: throw PulumiNullFieldException("serviceAccountEmail"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy