class

Google::Apis::Core::ResumableUpload

Inherits Reference < Object

Constants

DEFAULT_CHUNK_SIZE = (8 * 1024) * 1024

Constructors

new(chunk_size : Int32 = DEFAULT_CHUNK_SIZE, total_size : Int64 = 0)
Source

Instance methods

bytes_sent
Source
bytes_sent=(bytes_sent : Int64)
Source
chunk_size
Source
chunk_size=(chunk_size : Int32)
Source
initiate(host : String, path : String, headers : HTTP::Headers, metadata_json : String | Nil = nil) : String

Initiate a resumable upload session

Source
query_status(max_retries : Int32 = 3) : Int64

Query the upload status to resume

Source
session_uri
Source
session_uri=(session_uri : String | Nil)
Source
total_size
Source
total_size=(total_size : Int64)
Source
upload(source : IO, max_retries : Int32 = 3) : HTTP::Client::Response

Upload the entire file in chunks

Source