Class LibraryAsyncClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.LibraryAsyncClient
-
public final class LibraryAsyncClient extends Object
Initializes a new instance of the asynchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
list
public com.azure.core.http.rest.PagedFlux<LibraryResource> 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
public Mono<LibraryResourceInfo> flush(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 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
public Mono<LibraryResource> getOperationResult(String operationId)
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
public Mono<LibraryResourceInfo> delete(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 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
public Mono<com.azure.core.http.rest.Response<LibraryResource>> getWithResponse(String libraryName)
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
public Mono<LibraryResource> get(String libraryName)
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
public Mono<LibraryResourceInfo> create(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 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 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
public Mono<Void> append(String libraryName, Flux<ByteBuffer> 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 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.
-
-