R6 Class representing a resource for managing parts of the files' uploads.
Public fields
URLList of URL endpoints for this resource.
part_numberPart number.
part_sizePart size.
urlThe URL to which to make the HTTP part upload request.
expiresISO 8601 combined date and time representation in Coordinated Universal Time (UTC) by when the HTTP part upload request should be made.
headersA map of headers and values that should be set when making the HTTP part upload request.
success_codesA list of status codes returned by the HTTP part upload request that should be recognized as success. A successful part upload request should be reported back to the API in a call to report an uploaded file part by passing the information collected from the report object.
reportReport object.
etagETag received after starting a part upload.
authAuthentication object.
responseResponse object.
Methods
Method new()
Create a new Part object.
Usage
Part$new(
part_number = NA,
part_size = NA,
url = NA,
expires = NA,
headers = NA,
success_codes = NA,
report = NA,
etag = NA,
auth = NA
)Arguments
part_numberPart number.
part_sizePart size.
urlThe URL to which to make the HTTP part upload request.
expiresCombined date and time representation in UTC by when the HTTP part upload request should be made.
headersA map of headers and values that should be set when making the HTTP part upload request.
success_codesA list of status codes returned by the HTTP part upload request that should be recognized as success.
reportReport object.
etagETag received after starting a part upload.
authSeven Bridges Authentication object.
Method print()
Print method for Part class.
Examples
## ------------------------------------------------
## Method `Part$print`
## ------------------------------------------------
if (FALSE) { # \dontrun{
upload_part_object <- Part$new(
part_number = part_number,
part_size = part_size,
auth = auth
)
# Print upload part information
upload_part_object$print()
} # }
## ------------------------------------------------
## Method `Part$upload_info_part`
## ------------------------------------------------
if (FALSE) { # \dontrun{
upload_part_object <- Part$new(
part_number = part_number,
part_size = part_size,
auth = auth
)
# Get upload part status information
upload_part_object$upload_info_part(upload_id = upload_id)
} # }
## ------------------------------------------------
## Method `Part$upload_complete_part`
## ------------------------------------------------
if (FALSE) { # \dontrun{
upload_part_object <- Part$new(
part_number = part_number,
part_size = part_size,
auth = auth
)
# Report an uploaded part
upload_part_object$upload_complete_part(upload_id = upload_id)
} # }