public final class LibraryClient extends Object
Modifier and Type | Method and Description |
---|---|
void |
append(String libraryName,
Flux<ByteBuffer> content,
long contentLength)
Append the content to the library resource created using the create operation.
|
void |
append(String libraryName,
Flux<ByteBuffer> content,
long contentLength,
Long blobConditionAppendPosition)
Append the content to the library resource created using the create operation.
|
com.azure.core.http.rest.Response<Void> |
appendWithResponse(String libraryName,
Flux<ByteBuffer> content,
long contentLength,
Long blobConditionAppendPosition,
com.azure.core.util.Context context)
Append the content to the library resource created using the create operation.
|
LibraryResourceInfo |
create(String libraryName)
Creates a library with the library name.
|
com.azure.core.http.rest.Response<LibraryResourceInfo> |
createWithResponse(String libraryName,
com.azure.core.util.Context context)
Creates a library with the library name.
|
LibraryResourceInfo |
delete(String libraryName)
Delete Library.
|
com.azure.core.http.rest.Response<LibraryResourceInfo> |
deleteWithResponse(String libraryName,
com.azure.core.util.Context context)
Delete Library.
|
LibraryResourceInfo |
flush(String libraryName)
Flush Library.
|
com.azure.core.http.rest.Response<LibraryResourceInfo> |
flushWithResponse(String libraryName,
com.azure.core.util.Context context)
Flush Library.
|
LibraryResource |
get(String libraryName)
Get Library.
|
LibraryResource |
getOperationResult(String operationId)
Get Operation result for Library.
|
com.azure.core.http.rest.Response<LibraryResource> |
getOperationResultWithResponse(String operationId,
com.azure.core.util.Context context)
Get Operation result for Library.
|
com.azure.core.http.rest.Response<LibraryResource> |
getWithResponse(String libraryName,
com.azure.core.util.Context context)
Get Library.
|
com.azure.core.http.rest.PagedIterable<LibraryResource> |
list()
Lists Library.
|
com.azure.core.http.rest.PagedIterable<LibraryResource> |
list(com.azure.core.util.Context context)
Lists Library.
|
public com.azure.core.http.rest.PagedIterable<LibraryResource> list()
CloudErrorAutoGeneratedException
- 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.PagedIterable<LibraryResource> list(com.azure.core.util.Context context)
context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public 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.CloudErrorAutoGeneratedException
- 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.Response<LibraryResourceInfo> flushWithResponse(String libraryName, com.azure.core.util.Context context)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public LibraryResource getOperationResult(String operationId)
operationId
- operation id for which status is requested.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- 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.Response<LibraryResource> getOperationResultWithResponse(String operationId, com.azure.core.util.Context context)
operationId
- operation id for which status is requested.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public 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.CloudErrorAutoGeneratedException
- 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.Response<LibraryResourceInfo> deleteWithResponse(String libraryName, com.azure.core.util.Context context)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public 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.CloudErrorAutoGeneratedException
- 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.Response<LibraryResource> getWithResponse(String libraryName, com.azure.core.util.Context context)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public 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.CloudErrorAutoGeneratedException
- 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.Response<LibraryResourceInfo> createWithResponse(String libraryName, com.azure.core.util.Context context)
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension
length.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public 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.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public 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.CloudErrorAutoGeneratedException
- 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.Response<Void> appendWithResponse(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition, com.azure.core.util.Context context)
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).context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorAutoGeneratedException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.