Class JobHttpTarget


  • public final class JobHttpTarget
    extends java.lang.Object
    • Method Detail

      • body

        public java.util.Optional<java.lang.String> body()
        Returns:
        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.
      • headers

        public java.util.Map<java.lang.String,​java.lang.String> headers()
        Returns:
        This map contains the header field names and values. Repeated headers are not supported, but a header value can contain commas.
      • httpMethod

        public java.util.Optional<java.lang.String> httpMethod()
        Returns:
        Which HTTP method to use for the request.
      • oauthToken

        public java.util.Optional<JobHttpTargetOauthToken> oauthToken()
        Returns:
        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.
      • oidcToken

        public java.util.Optional<JobHttpTargetOidcToken> oidcToken()
        Returns:
        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.
      • uri

        public java.lang.String uri()
        Returns:
        The full URI path that the request will be sent to.