JobHttpTarget

data class JobHttpTarget(val body: String? = null, val headers: Map<String, String>? = null, val httpMethod: String? = null, val oauthToken: JobHttpTargetOauthToken? = null, val oidcToken: JobHttpTargetOidcToken? = null, val uri: String)

Constructors

Link copied to clipboard
constructor(body: String? = null, headers: Map<String, String>? = null, httpMethod: String? = null, oauthToken: JobHttpTargetOauthToken? = null, oidcToken: JobHttpTargetOidcToken? = null, uri: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val body: String? = null

HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible HttpMethod. A base64-encoded string.

Link copied to clipboard
val headers: Map<String, String>? = null

This map contains the header field names and values. Repeated headers are not supported, but a header value can contain commas.

Link copied to clipboard
val httpMethod: String? = null

Which HTTP method to use for the request.

Link copied to clipboard

Contains information needed for generating an OAuth token. This type of authorization should be used when sending requests to a GCP endpoint. Structure is documented below.

Link copied to clipboard

Contains information needed for generating an OpenID Connect token. This type of authorization should be used when sending requests to third party endpoints or Cloud Run. Structure is documented below.

Link copied to clipboard
val uri: String

The full URI path that the request will be sent to.