Class MetastoreAsyncClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.MetastoreAsyncClient
-
public final class MetastoreAsyncClient 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>
delete(String id)
Remove files in Syms.Mono<com.azure.core.http.rest.Response<Void>>
deleteWithResponse(String id)
Remove files in Syms.Mono<MetastoreRequestSuccessResponse>
getDatabaseOperations(String id)
Gets status of the database.Mono<com.azure.core.http.rest.Response<MetastoreRequestSuccessResponse>>
getDatabaseOperationsWithResponse(String id)
Gets status of the database.Mono<MetastoreRegistrationResponse>
register(String id, MetastoreRegisterObject registerBody)
Register files in Syms.Mono<com.azure.core.http.rest.Response<MetastoreRegistrationResponse>>
registerWithResponse(String id, MetastoreRegisterObject registerBody)
Register files in Syms.Mono<MetastoreUpdationResponse>
update(String id, MetastoreUpdateObject updateBody)
Update files in Syms.Mono<com.azure.core.http.rest.Response<MetastoreUpdationResponse>>
updateWithResponse(String id, MetastoreUpdateObject updateBody)
Update files in Syms.
-
-
-
Method Detail
-
registerWithResponse
public Mono<com.azure.core.http.rest.Response<MetastoreRegistrationResponse>> registerWithResponse(String id, MetastoreRegisterObject registerBody)
Register files in Syms.- Parameters:
id
- The name of the database to be created. The name can contain only alphanumeric characters and should not exceed 24 characters.registerBody
- The body for the register request.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
register
public Mono<MetastoreRegistrationResponse> register(String id, MetastoreRegisterObject registerBody)
Register files in Syms.- Parameters:
id
- The name of the database to be created. The name can contain only alphanumeric characters and should not exceed 24 characters.registerBody
- The body for the register request.- Returns:
- the response body on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDatabaseOperationsWithResponse
public Mono<com.azure.core.http.rest.Response<MetastoreRequestSuccessResponse>> getDatabaseOperationsWithResponse(String id)
Gets status of the database.- Parameters:
id
- The id parameter.- Returns:
- status of the database along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDatabaseOperations
public Mono<MetastoreRequestSuccessResponse> getDatabaseOperations(String id)
Gets status of the database.- Parameters:
id
- The id parameter.- Returns:
- status of the database on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
public Mono<com.azure.core.http.rest.Response<MetastoreUpdationResponse>> updateWithResponse(String id, MetastoreUpdateObject updateBody)
Update files in Syms.- Parameters:
id
- The name of the database to be updated.updateBody
- The body for the update request.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
public Mono<MetastoreUpdationResponse> update(String id, MetastoreUpdateObject updateBody)
Update files in Syms.- Parameters:
id
- The name of the database to be updated.updateBody
- The body for the update request.- Returns:
- the response body on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- 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<Void>> deleteWithResponse(String id)
Remove files in Syms.- Parameters:
id
- The id parameter.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
public Mono<Void> delete(String id)
Remove files in Syms.- Parameters:
id
- The id parameter.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-