WriteRequest

Request object for ByteStream.Write.

JSON representation
 { 
 "resourceName" 
 : 
 string 
 , 
 "writeOffset" 
 : 
 string 
 , 
 "finishWrite" 
 : 
 boolean 
 , 
 "data" 
 : 
 string 
 } 
Fields
resourceName

string

The name of the resource to write. This mustbe set on the first WriteRequest of each Write() action. If it is set on subsequent calls, it mustmatch the value of the first request.

writeOffset

string ( int64 format)

The offset from the beginning of the resource at which the data should be written. It is required on all WriteRequest s.

In the first WriteRequest of a Write() action, it indicates the initial offset for the Write() call. The value mustbe equal to the committedSize that a call to QueryWriteStatus() would return.

On subsequent calls, this value mustbe set and mustbe equal to the sum of the first writeOffset and the sizes of all data bundles sent previously on this stream.

An incorrect value will cause an error.

finishWrite

boolean

If true , this indicates that the write is complete. Sending any WriteRequest s subsequent to one in which finishWrite is true will cause an error.

data

string ( bytes format)

A portion of the data for the resource. The client mayleave data empty for any given WriteRequest . This enables the client to inform the service that the request is still live while it is running an operation to generate more data.

A base64-encoded string.

Design a Mobile Site
View Site in Mobile | Classic
Share by: