R6 Class representing a resource for managing parts of the files' uploads.
Public fields
URL
List of URL endpoints for this resource.
part_number
Part number.
part_size
Part size.
url
The URL to which to make the HTTP part upload request.
expires
ISO 8601 combined date and time representation in Coordinated Universal Time (UTC) by when the HTTP part upload request should be made.
headers
A map of headers and values that should be set when making the HTTP part upload request.
success_codes
A 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.
report
Report object.
etag
ETag received after starting a part upload.
auth
Authentication object.
response
Response 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_number
Part number.
part_size
Part size.
url
The URL to which to make the HTTP part upload request.
expires
Combined date and time representation in UTC by when the HTTP part upload request should be made.
headers
A map of headers and values that should be set when making the HTTP part upload request.
success_codes
A list of status codes returned by the HTTP part upload request that should be recognized as success.
report
Report object.
etag
ETag received after starting a part upload.
auth
Seven Bridges Authentication object.
Method print()
Print method for Part class.
Examples
## ------------------------------------------------
## Method `Part$print`
## ------------------------------------------------
if (FALSE) {
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) {
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) {
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)
}