Class MetastoreAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.MetastoreAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptionRemove files in Syms.Remove files in Syms.Gets status of the database.Gets status of the database.register
(String id, MetastoreRegisterObject registerBody) Register files in Syms.registerWithResponse
(String id, MetastoreRegisterObject registerBody) Register files in Syms.update
(String id, MetastoreUpdateObject updateBody) Update files in Syms.updateWithResponse
(String id, MetastoreUpdateObject updateBody) Update files in Syms.
-
Method Details
-
registerWithResponse
public Mono<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
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
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<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
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
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
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.
-