Part | R Documentation |
R6 Class representing a resource for managing parts of the files' uploads.
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.
new()
Create a new Part object.
Part$new( part_number = NA, part_size = NA, url = NA, expires = NA, headers = NA, success_codes = NA, report = NA, etag = NA, auth = NA )
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.
print()
Print method for Part class.
Part$print()
\dontrun{ upload_part_object <- Part$new( part_number = part_number, part_size = part_size, auth = auth ) # Print upload part information upload_part_object$print() }
upload_info_part()
Get upload part info.
Part$upload_info_part(upload_id)
upload_id
Upload object or ID of the upload process to which the part belongs.
\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) }
upload_complete_part()
Report an uploaded part.
Part$upload_complete_part(upload_id)
upload_id
Upload object or ID of the upload process that part belongs to.
\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) }
clone()
The objects of this class are cloneable with this method.
Part$clone(deep = FALSE)
deep
Whether to make a deep clone.
## ------------------------------------------------
## Method `Part$print`
## ------------------------------------------------
## Not run:
upload_part_object <- Part$new(
part_number = part_number,
part_size = part_size,
auth = auth
)
# Print upload part information
upload_part_object$print()
## End(Not run)
## ------------------------------------------------
## Method `Part$upload_info_part`
## ------------------------------------------------
## Not run:
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)
## End(Not run)
## ------------------------------------------------
## Method `Part$upload_complete_part`
## ------------------------------------------------
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.