14.45. Payloads Upload RPC

Requests the upload of a blob (file) from a known payload.

rpc Upload (stream PayloadsUploadRequest) returns (PayloadsUploadResponse)

14.45.1. Messages

  • PayloadsUploadRequest

  • PayloadsUploadResponse


14.46. PayloadsUploadRequest

message PayloadsUploadRequest {
  RequestHeader header = 1;
  Identifier payload_id = 2;
  PayloadFileDetails details = 3;
  bytes data = 4;
}

This request is streamed. Files larger than the maximum chunk size must be broken up into multiple chunks. Only the first chunk is required to contain a header message. All chunks should contain payload_id, details, and data values.

14.46.1. Properties

14.46.1.2. payload_id

type: message

Unique identifier of the payload to upload.

Required. If the identifier value is omitted from the request or does not match any known payload identifier, Clara Deploy SDK will be unable to fulfill the request.

See Identifier for details.

14.46.1.3. details

type: message

Details about the file being uploaded. Unlike other RPC which use the PayloadFileDetails message, requests from the Upload RPC are relative to the root of the payload’s input folder, and are not relative to the root of the payload itself.

Payload file names are case-preserving. Uploading two files which have names that differ in case will create multiple files in the payload.

See PayloadFileDetails for details.

14.46.1.4. data

type: bytes

Contents of the file as raw bytes.


14.47. PayloadsUploadResponse

message PipelineUploadResponse {
  ResponseHeader header = 1;
  PayloadFileDetails details = 2;
}

Clara Deploy SDK Payloads service will respond to any upload request with a PayloadsUploadResponse message. Requestors can use the response message to determine the result of their request.

14.47.1. Properties

type: message

Standard RPC response header.

See ResponseHeader for details.

14.47.1.1. details

type: message

Details about the file being uploaded. Unlike other RPC which use the PayloadFileDetails message, responses from the Upload RPC are relative to the root of the payload’s input folder, and are not relative to the root of the payload itself.

See PayloadFileDetails for details.