public final class LibraryAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
append(String libraryName,
Flux<ByteBuffer> content,
long contentLength)
Append the content to the library resource created using the create operation.
|
Mono<Void> |
append(String libraryName,
Flux<ByteBuffer> content,
long contentLength,
Long blobConditionAppendPosition)
Append the content to the library resource created using the create operation.
|
Mono<com.azure.core.http.rest.Response<Void>> |
appendWithResponse(String libraryName,
Flux<ByteBuffer> content,
long contentLength,
Long blobConditionAppendPosition)
Append the content to the library resource created using the create operation.
|
Mono<LibraryResourceInfo> |
create(String libraryName)
Creates a library with the library name.
|
Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> |
createWithResponse(String libraryName)
Creates a library with the library name.
|
Mono<LibraryResourceInfo> |
delete(String libraryName)
Delete Library.
|
Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> |
deleteWithResponse(String libraryName)
Delete Library.
|
Mono<LibraryResourceInfo> |
flush(String libraryName)
Flush Library.
|
Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> |
flushWithResponse(String libraryName)
Flush Library.
|
Mono<LibraryResource> |
get(String libraryName)
Get Library.
|
Mono<LibraryResource> |
getOperationResult(String operationId)
Get Operation result for Library.
|
Mono<com.azure.core.http.rest.Response<LibraryResource>> |
getOperationResultWithResponse(String operationId)
Get Operation result for Library.
|
Mono<com.azure.core.http.rest.Response<LibraryResource>> |
getWithResponse(String libraryName)
Get Library.
|
com.azure.core.http.rest.PagedFlux<LibraryResource> |
list()
Lists Library.
|
Mono<com.azure.core.http.rest.PagedResponse<LibraryResource>> |
listNextSinglePage(String nextLink)
Get the next page of items.
|
Mono<com.azure.core.http.rest.PagedResponse<LibraryResource>> |
listSinglePage()
Lists Library.
|
public Mono<com.azure.core.http.rest.PagedResponse<LibraryResource>> listSinglePage()
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedFlux<LibraryResource> list()
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> flushWithResponse(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<LibraryResourceInfo> flush(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<LibraryResource>> getOperationResultWithResponse(String operationId)
operationId
- operation id for which status is requested.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<LibraryResource> getOperationResult(String operationId)
operationId
- operation id for which status is requested.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> deleteWithResponse(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<LibraryResourceInfo> delete(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<LibraryResource>> getWithResponse(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<LibraryResource> get(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> createWithResponse(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<LibraryResourceInfo> create(String libraryName)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<Void>> appendWithResponse(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.content
- Library file chunk.contentLength
- The contentLength parameter.blobConditionAppendPosition
- Set this header to a byte offset at which the block is expected to be
appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails
with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed).IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<Void> append(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.content
- Library file chunk.contentLength
- The contentLength parameter.blobConditionAppendPosition
- Set this header to a byte offset at which the block is expected to be
appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails
with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed).IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<Void> append(String libraryName, Flux<ByteBuffer> content, long contentLength)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.content
- Library file chunk.contentLength
- The contentLength parameter.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.PagedResponse<LibraryResource>> listNextSinglePage(String nextLink)
nextLink
- The nextLink parameter.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.