com.pulumi.gcp.cloudscheduler.kotlin.outputs.JobAppEngineHttpTarget.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property appEngineRouting App Engine Routing setting for the job.
* Structure is documented below.
* @property body HTTP request body.
* A request body is allowed only if the HTTP method is POST or PUT.
* It will result in invalid argument error to set a body on a job with an incompatible HttpMethod.
* A base64-encoded string.
* @property headers HTTP request headers.
* This map contains the header field names and values.
* Headers can be set when the job is created.
* @property httpMethod Which HTTP method to use for the request.
* @property relativeUri The relative URI.
* The relative URL must begin with "/" and must be a valid HTTP relative URL.
* It can contain a path, query string arguments, and \# fragments.
* If the relative URL is empty, then the root path "/" will be used.
* No spaces are allowed, and the maximum length allowed is 2083 characters
*/
public data class JobAppEngineHttpTarget(
public val appEngineRouting: JobAppEngineHttpTargetAppEngineRouting? = null,
public val body: String? = null,
public val headers: Map? = null,
public val httpMethod: String? = null,
public val relativeUri: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudscheduler.outputs.JobAppEngineHttpTarget): JobAppEngineHttpTarget = JobAppEngineHttpTarget(
appEngineRouting = javaType.appEngineRouting().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudscheduler.kotlin.outputs.JobAppEngineHttpTargetAppEngineRouting.Companion.toKotlin(args0)
})
}).orElse(null),
body = javaType.body().map({ args0 -> args0 }).orElse(null),
headers = javaType.headers().map({ args0 -> args0.key.to(args0.value) }).toMap(),
httpMethod = javaType.httpMethod().map({ args0 -> args0 }).orElse(null),
relativeUri = javaType.relativeUri(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy