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 the content to the library resource created using the create operation.append
(String libraryName, com.azure.core.util.BinaryData content, long contentLength, Long blobConditionAppendPosition) Append the content to the library resource created using the create operation.append
(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, com.azure.core.util.BinaryData 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.Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>>
createWithResponse
(String libraryName) Creates a library with the library name.Delete Library.Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>>
deleteWithResponse
(String libraryName) Delete Library.Flush Library.Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>>
flushWithResponse
(String libraryName) Flush Library.Get Library.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.
-
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
public Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> flushWithResponse(String libraryName) 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
public Mono<com.azure.core.http.rest.Response<LibraryResource>> getOperationResultWithResponse(String operationId) 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
public Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> deleteWithResponse(String libraryName) 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
public Mono<com.azure.core.http.rest.Response<LibraryResourceInfo>> createWithResponse(String libraryName) 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<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. 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 Content-Length header for the request.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 Content-Length header for the request.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 Content-Length header for the request.- 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.
-
appendWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> appendWithResponse(String libraryName, com.azure.core.util.BinaryData 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 Content-Length header for the request.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, com.azure.core.util.BinaryData 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 Content-Length header for the request.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
public Mono<Void> append(String libraryName, com.azure.core.util.BinaryData content, long contentLength) 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 Content-Length header for the request.- 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.
-