PublishSinglePartitionRequest
Constructors
constructor
- new
Publish Single Partition Request(): PublishSinglePartitionRequest
-
Returns PublishSinglePartitionRequest
Methods
with Billing Tag
- with
Billing Tag(tag: string): PublishSinglePartitionRequest
-
Sets the billing tag.
Parameters-
tag: string
The free-form tag that is used for grouping billing records together. If supplied, it must be 4–16 characters long and contain only alphanumeric ASCII characters [A–Za–z0–9].
Returns PublishSinglePartitionRequestA reference to this object.
-
with Content Encoding
- with
Content Encoding(contentEncoding: string): PublishSinglePartitionRequest
-
Set the content encoding of the data to upload.
Can be
gzipor identity.ParametersReturns PublishSinglePartitionRequestA reference to this object
with Content Type
- with
Content Type(contentType: string): PublishSinglePartitionRequest
-
brief
Sets the content type of the data to upload.ParametersReturns PublishSinglePartitionRequestA reference to this object
with Data
- with
Data(data: ArrayBuffer | Buffer): PublishSinglePartitionRequest
-
Uses embedded data in the
PublishPartitionoruploadBlob()API.note
It will be used in stream layers and present only if the message size is less than or equal to 1 MB.Parameters-
data: ArrayBuffer | Buffer
The content published directly to the metadata and encoded in Base64. The size of the content is limited.
Returns PublishSinglePartitionRequestA reference to this object.
-
with Layer Id
- with
Layer Id(id: string): PublishSinglePartitionRequest
-
Sets the ID of the layer.
ParametersReturns PublishSinglePartitionRequestA reference to this object.
with Meta Data
- with
Meta Data(metaData: PublishPartition): PublishSinglePartitionRequest
-
Sets the metadata of the partition that you want to publish.
Parameters-
metaData: PublishPartition
The metadata for the blob data that you want to publish.
Returns PublishSinglePartitionRequestA reference to this object.
-
with Publication Id
- with
Publication Id(id: string): PublishSinglePartitionRequest
-
Sets the ID of the publication that you want to upload.
ParametersReturns PublishSinglePartitionRequestA reference to this object.
brief
Uploads a single partition.