class
Google::Apis::Core::ResumableUpload
- Google::Apis::Core::ResumableUpload
- Reference
- Object
Defined in:
google/apis/core/resumable_upload.crConstant Summary
-
DEFAULT_CHUNK_SIZE =
(8 * 1024) * 1024
Constructors
Instance Method Summary
- #bytes_sent : Int64
- #bytes_sent=(bytes_sent : Int64)
- #chunk_size : Int32
- #chunk_size=(chunk_size : Int32)
-
#initiate(host : String, path : String, headers : HTTP::Headers, metadata_json : String | Nil = nil) : String
Initiate a resumable upload session
-
#query_status(max_retries : Int32 = 3) : Int64
Query the upload status to resume
- #session_uri : String | Nil
- #session_uri=(session_uri : String | Nil)
- #total_size : Int64
- #total_size=(total_size : Int64)
-
#upload(source : IO, max_retries : Int32 = 3) : HTTP::Client::Response
Upload the entire file in chunks
Constructor Detail
Instance Method Detail
def initiate(host : String, path : String, headers : HTTP::Headers, metadata_json : String | Nil = nil) : String
#
Initiate a resumable upload session
def upload(source : IO, max_retries : Int32 = 3) : HTTP::Client::Response
#
Upload the entire file in chunks