Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.cloudtasks.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudtasks.inputs.QueueHttpTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property headerOverrides HTTP target headers.
* This map contains the header field names and values.
* Headers will be set when running the CreateTask and/or BufferTask.
* These headers represent a subset of the headers that will be configured for the task's HTTP request.
* Some HTTP request headers will be ignored or replaced.
* Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values.
* The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.
* Structure is documented below.
* @property httpMethod The HTTP method to use for the request.
* When specified, it overrides HttpRequest for the task.
* Note that if the value is set to GET the body of the task will be ignored at execution time.
* Possible values are: `HTTP_METHOD_UNSPECIFIED`, `POST`, `GET`, `HEAD`, `PUT`, `DELETE`, `PATCH`, `OPTIONS`.
* @property oauthToken If specified, an OAuth token is generated and attached as the Authorization header in the HTTP request.
* This type of authorization should generally be used only when calling Google APIs hosted on *.googleapis.com.
* Note that both the service account email and the scope MUST be specified when using the queue-level authorization override.
* Structure is documented below.
* @property oidcToken If specified, an OIDC token is generated and attached as an Authorization header in the HTTP request.
* This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
* Note that both the service account email and the audience MUST be specified when using the queue-level authorization override.
* Structure is documented below.
* @property uriOverride URI override.
* When specified, overrides the execution URI for all the tasks in the queue.
* Structure is documented below.
*/
public data class QueueHttpTargetArgs(
public val headerOverrides: Output>? = null,
public val httpMethod: Output? = null,
public val oauthToken: Output? = null,
public val oidcToken: Output? = null,
public val uriOverride: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudtasks.inputs.QueueHttpTargetArgs =
com.pulumi.gcp.cloudtasks.inputs.QueueHttpTargetArgs.builder()
.headerOverrides(
headerOverrides?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.httpMethod(httpMethod?.applyValue({ args0 -> args0 }))
.oauthToken(oauthToken?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.oidcToken(oidcToken?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.uriOverride(uriOverride?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [QueueHttpTargetArgs].
*/
@PulumiTagMarker
public class QueueHttpTargetArgsBuilder internal constructor() {
private var headerOverrides: Output>? = null
private var httpMethod: Output? = null
private var oauthToken: Output? = null
private var oidcToken: Output? = null
private var uriOverride: Output? = null
/**
* @param value HTTP target headers.
* This map contains the header field names and values.
* Headers will be set when running the CreateTask and/or BufferTask.
* These headers represent a subset of the headers that will be configured for the task's HTTP request.
* Some HTTP request headers will be ignored or replaced.
* Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values.
* The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.
* Structure is documented below.
*/
@JvmName("tfnebopwqyfbxnle")
public suspend fun headerOverrides(`value`: Output>) {
this.headerOverrides = value
}
@JvmName("rrbamlcrcewqmwew")
public suspend fun headerOverrides(vararg values: Output) {
this.headerOverrides = Output.all(values.asList())
}
/**
* @param values HTTP target headers.
* This map contains the header field names and values.
* Headers will be set when running the CreateTask and/or BufferTask.
* These headers represent a subset of the headers that will be configured for the task's HTTP request.
* Some HTTP request headers will be ignored or replaced.
* Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values.
* The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue.
* Structure is documented below.
*/
@JvmName("ceomhvtwcfmyoyqo")
public suspend fun headerOverrides(values: List