Nothing
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include backupstorage_service.R
NULL
#' Delete Object from the incremental base Backup
#'
#' @description
#' Delete Object from the incremental base Backup.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_delete_object/](https://www.paws-r-sdk.com/docs/backupstorage_delete_object/) for full documentation.
#'
#' @param BackupJobId [required] Backup job Id for the in-progress backup.
#' @param ObjectName [required] The name of the Object.
#'
#' @keywords internal
#'
#' @rdname backupstorage_delete_object
backupstorage_delete_object <- function(BackupJobId, ObjectName) {
op <- new_operation(
name = "DeleteObject",
http_method = "DELETE",
http_path = "/backup-jobs/{jobId}/object/{objectName}",
paginator = list()
)
input <- .backupstorage$delete_object_input(BackupJobId = BackupJobId, ObjectName = ObjectName)
output <- .backupstorage$delete_object_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$delete_object <- backupstorage_delete_object
#' Gets the specified object's chunk
#'
#' @description
#' Gets the specified object's chunk.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_get_chunk/](https://www.paws-r-sdk.com/docs/backupstorage_get_chunk/) for full documentation.
#'
#' @param StorageJobId [required] Storage job id
#' @param ChunkToken [required] Chunk token
#'
#' @keywords internal
#'
#' @rdname backupstorage_get_chunk
backupstorage_get_chunk <- function(StorageJobId, ChunkToken) {
op <- new_operation(
name = "GetChunk",
http_method = "GET",
http_path = "/restore-jobs/{jobId}/chunk/{chunkToken}",
paginator = list()
)
input <- .backupstorage$get_chunk_input(StorageJobId = StorageJobId, ChunkToken = ChunkToken)
output <- .backupstorage$get_chunk_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$get_chunk <- backupstorage_get_chunk
#' Get metadata associated with an Object
#'
#' @description
#' Get metadata associated with an Object.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_get_object_metadata/](https://www.paws-r-sdk.com/docs/backupstorage_get_object_metadata/) for full documentation.
#'
#' @param StorageJobId [required] Backup job id for the in-progress backup.
#' @param ObjectToken [required] Object token.
#'
#' @keywords internal
#'
#' @rdname backupstorage_get_object_metadata
backupstorage_get_object_metadata <- function(StorageJobId, ObjectToken) {
op <- new_operation(
name = "GetObjectMetadata",
http_method = "GET",
http_path = "/restore-jobs/{jobId}/object/{objectToken}/metadata",
paginator = list()
)
input <- .backupstorage$get_object_metadata_input(StorageJobId = StorageJobId, ObjectToken = ObjectToken)
output <- .backupstorage$get_object_metadata_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$get_object_metadata <- backupstorage_get_object_metadata
#' List chunks in a given Object
#'
#' @description
#' List chunks in a given Object
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_list_chunks/](https://www.paws-r-sdk.com/docs/backupstorage_list_chunks/) for full documentation.
#'
#' @param StorageJobId [required] Storage job id
#' @param ObjectToken [required] Object token
#' @param MaxResults Maximum number of chunks
#' @param NextToken Pagination token
#'
#' @keywords internal
#'
#' @rdname backupstorage_list_chunks
backupstorage_list_chunks <- function(StorageJobId, ObjectToken, MaxResults = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListChunks",
http_method = "GET",
http_path = "/restore-jobs/{jobId}/chunks/{objectToken}/list",
paginator = list(input_token = "NextToken", output_token = "NextToken", limit_key = "MaxResults")
)
input <- .backupstorage$list_chunks_input(StorageJobId = StorageJobId, ObjectToken = ObjectToken, MaxResults = MaxResults, NextToken = NextToken)
output <- .backupstorage$list_chunks_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$list_chunks <- backupstorage_list_chunks
#' List all Objects in a given Backup
#'
#' @description
#' List all Objects in a given Backup.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_list_objects/](https://www.paws-r-sdk.com/docs/backupstorage_list_objects/) for full documentation.
#'
#' @param StorageJobId [required] Storage job id
#' @param StartingObjectName Optional, specifies the starting Object name to list from. Ignored if
#' NextToken is not NULL
#' @param StartingObjectPrefix Optional, specifies the starting Object prefix to list from. Ignored if
#' NextToken is not NULL
#' @param MaxResults Maximum objects count
#' @param NextToken Pagination token
#' @param CreatedBefore (Optional) Created before filter
#' @param CreatedAfter (Optional) Created after filter
#'
#' @keywords internal
#'
#' @rdname backupstorage_list_objects
backupstorage_list_objects <- function(StorageJobId, StartingObjectName = NULL, StartingObjectPrefix = NULL, MaxResults = NULL, NextToken = NULL, CreatedBefore = NULL, CreatedAfter = NULL) {
op <- new_operation(
name = "ListObjects",
http_method = "GET",
http_path = "/restore-jobs/{jobId}/objects/list",
paginator = list(input_token = "NextToken", output_token = "NextToken", limit_key = "MaxResults")
)
input <- .backupstorage$list_objects_input(StorageJobId = StorageJobId, StartingObjectName = StartingObjectName, StartingObjectPrefix = StartingObjectPrefix, MaxResults = MaxResults, NextToken = NextToken, CreatedBefore = CreatedBefore, CreatedAfter = CreatedAfter)
output <- .backupstorage$list_objects_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$list_objects <- backupstorage_list_objects
#' Complete upload
#'
#' @description
#' Complete upload
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_notify_object_complete/](https://www.paws-r-sdk.com/docs/backupstorage_notify_object_complete/) for full documentation.
#'
#' @param BackupJobId [required] Backup job Id for the in-progress backup
#' @param UploadId [required] Upload Id for the in-progress upload
#' @param ObjectChecksum [required] Object checksum
#' @param ObjectChecksumAlgorithm [required] Checksum algorithm
#' @param MetadataString Optional metadata associated with an Object. Maximum string length is
#' 256 bytes.
#' @param MetadataBlob Optional metadata associated with an Object. Maximum length is 4MB.
#' @param MetadataBlobLength The size of MetadataBlob.
#' @param MetadataBlobChecksum Checksum of MetadataBlob.
#' @param MetadataBlobChecksumAlgorithm Checksum algorithm.
#'
#' @keywords internal
#'
#' @rdname backupstorage_notify_object_complete
backupstorage_notify_object_complete <- function(BackupJobId, UploadId, ObjectChecksum, ObjectChecksumAlgorithm, MetadataString = NULL, MetadataBlob = NULL, MetadataBlobLength = NULL, MetadataBlobChecksum = NULL, MetadataBlobChecksumAlgorithm = NULL) {
op <- new_operation(
name = "NotifyObjectComplete",
http_method = "PUT",
http_path = "/backup-jobs/{jobId}/object/{uploadId}/complete",
paginator = list()
)
input <- .backupstorage$notify_object_complete_input(BackupJobId = BackupJobId, UploadId = UploadId, ObjectChecksum = ObjectChecksum, ObjectChecksumAlgorithm = ObjectChecksumAlgorithm, MetadataString = MetadataString, MetadataBlob = MetadataBlob, MetadataBlobLength = MetadataBlobLength, MetadataBlobChecksum = MetadataBlobChecksum, MetadataBlobChecksumAlgorithm = MetadataBlobChecksumAlgorithm)
output <- .backupstorage$notify_object_complete_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$notify_object_complete <- backupstorage_notify_object_complete
#' Upload chunk
#'
#' @description
#' Upload chunk.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_put_chunk/](https://www.paws-r-sdk.com/docs/backupstorage_put_chunk/) for full documentation.
#'
#' @param BackupJobId [required] Backup job Id for the in-progress backup.
#' @param UploadId [required] Upload Id for the in-progress upload.
#' @param ChunkIndex [required] Describes this chunk's position relative to the other chunks
#' @param Data [required] Data to be uploaded
#' @param Length [required] Data length
#' @param Checksum [required] Data checksum
#' @param ChecksumAlgorithm [required] Checksum algorithm
#'
#' @keywords internal
#'
#' @rdname backupstorage_put_chunk
backupstorage_put_chunk <- function(BackupJobId, UploadId, ChunkIndex, Data, Length, Checksum, ChecksumAlgorithm) {
op <- new_operation(
name = "PutChunk",
http_method = "PUT",
http_path = "/backup-jobs/{jobId}/chunk/{uploadId}/{chunkIndex}",
paginator = list()
)
input <- .backupstorage$put_chunk_input(BackupJobId = BackupJobId, UploadId = UploadId, ChunkIndex = ChunkIndex, Data = Data, Length = Length, Checksum = Checksum, ChecksumAlgorithm = ChecksumAlgorithm)
output <- .backupstorage$put_chunk_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$put_chunk <- backupstorage_put_chunk
#' Upload object that can store object metadata String and data blob in
#' single API call using inline chunk field
#'
#' @description
#' Upload object that can store object metadata String and data blob in single API call using inline chunk field.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_put_object/](https://www.paws-r-sdk.com/docs/backupstorage_put_object/) for full documentation.
#'
#' @param BackupJobId [required] Backup job Id for the in-progress backup.
#' @param ObjectName [required] The name of the Object to be uploaded.
#' @param MetadataString Store user defined metadata like backup checksum, disk ids, restore
#' metadata etc.
#' @param InlineChunk Inline chunk data to be uploaded.
#' @param InlineChunkLength Length of the inline chunk data.
#' @param InlineChunkChecksum Inline chunk checksum
#' @param InlineChunkChecksumAlgorithm Inline chunk checksum algorithm
#' @param ObjectChecksum object checksum
#' @param ObjectChecksumAlgorithm object checksum algorithm
#' @param ThrowOnDuplicate Throw an exception if Object name is already exist.
#'
#' @keywords internal
#'
#' @rdname backupstorage_put_object
backupstorage_put_object <- function(BackupJobId, ObjectName, MetadataString = NULL, InlineChunk = NULL, InlineChunkLength = NULL, InlineChunkChecksum = NULL, InlineChunkChecksumAlgorithm = NULL, ObjectChecksum = NULL, ObjectChecksumAlgorithm = NULL, ThrowOnDuplicate = NULL) {
op <- new_operation(
name = "PutObject",
http_method = "PUT",
http_path = "/backup-jobs/{jobId}/object/{objectName}/put-object",
paginator = list()
)
input <- .backupstorage$put_object_input(BackupJobId = BackupJobId, ObjectName = ObjectName, MetadataString = MetadataString, InlineChunk = InlineChunk, InlineChunkLength = InlineChunkLength, InlineChunkChecksum = InlineChunkChecksum, InlineChunkChecksumAlgorithm = InlineChunkChecksumAlgorithm, ObjectChecksum = ObjectChecksum, ObjectChecksumAlgorithm = ObjectChecksumAlgorithm, ThrowOnDuplicate = ThrowOnDuplicate)
output <- .backupstorage$put_object_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$put_object <- backupstorage_put_object
#' Start upload containing one or many chunks
#'
#' @description
#' Start upload containing one or many chunks.
#'
#' See [https://www.paws-r-sdk.com/docs/backupstorage_start_object/](https://www.paws-r-sdk.com/docs/backupstorage_start_object/) for full documentation.
#'
#' @param BackupJobId [required] Backup job Id for the in-progress backup
#' @param ObjectName [required] Name for the object.
#' @param ThrowOnDuplicate Throw an exception if Object name is already exist.
#'
#' @keywords internal
#'
#' @rdname backupstorage_start_object
backupstorage_start_object <- function(BackupJobId, ObjectName, ThrowOnDuplicate = NULL) {
op <- new_operation(
name = "StartObject",
http_method = "PUT",
http_path = "/backup-jobs/{jobId}/object/{objectName}",
paginator = list()
)
input <- .backupstorage$start_object_input(BackupJobId = BackupJobId, ObjectName = ObjectName, ThrowOnDuplicate = ThrowOnDuplicate)
output <- .backupstorage$start_object_output()
config <- get_config()
svc <- .backupstorage$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.backupstorage$operations$start_object <- backupstorage_start_object
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.