Class LibraryAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.LibraryAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptionappend
(String libraryName, Flux<ByteBuffer> content, long contentLength) Append the content to the library resource created using the create operation.append
(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition) Append the content to the library resource created using the create operation.appendWithResponse
(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition) Append the content to the library resource created using the create operation.Creates a library with the library name.createWithResponse
(String libraryName) Creates a library with the library name.Delete Library.deleteWithResponse
(String libraryName) Delete Library.Flush Library.flushWithResponse
(String libraryName) Flush Library.Get Library.getOperationResult
(String operationId) Get Operation result for Library.getOperationResultWithResponse
(String operationId) Get Operation result for Library.getWithResponse
(String libraryName) Get Library.list()
Lists Library.
-
Method Details
-
list
Lists Library.- Returns:
- a list of Library resources as paginated response with
PagedFlux
. - Throws:
CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
flushWithResponse
Flush Library.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
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.
-
flush
Flush Library.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- the response body on successful completion of
Mono
. - Throws:
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.
-
getOperationResultWithResponse
Get Operation result for Library.- Parameters:
operationId
- operation id for which status is requested.- Returns:
- operation result for Library along with
Response
on successful completion ofMono
. - Throws:
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.
-
getOperationResult
Get Operation result for Library.- Parameters:
operationId
- operation id for which status is requested.- Returns:
- operation result for Library on successful completion of
Mono
. - Throws:
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.
-
deleteWithResponse
Delete Library.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
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.
-
delete
Delete Library.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- the response body on successful completion of
Mono
. - Throws:
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.
-
getWithResponse
Get Library.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- library along with
Response
on successful completion ofMono
. - Throws:
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.
-
get
Get Library.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- library on successful completion of
Mono
. - Throws:
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.
-
createWithResponse
Creates a library with the library name.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
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.
-
create
Creates a library with the library name.- Parameters:
libraryName
- file name to upload. Minimum length of the filename should be 1 excluding the extension length.- Returns:
- the response body on successful completion of
Mono
. - Throws:
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.
-
appendWithResponse
public Mono<Response<Void>> appendWithResponse(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition) Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks.- Parameters:
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).- Returns:
- the
Response
on successful completion ofMono
. - Throws:
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.
-
append
public Mono<Void> append(String libraryName, Flux<ByteBuffer> content, long contentLength, Long blobConditionAppendPosition) Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks.- Parameters:
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).- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
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.
-
append
Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks.- Parameters:
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.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
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.
-