Class MetastoreClient
java.lang.Object
com.azure.analytics.synapse.artifacts.MetastoreClient
Initializes a new instance of the synchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Remove files in Syms.deleteWithResponse
(String id, Context context) Remove files in Syms.Gets status of the database.getDatabaseOperationsWithResponse
(String id, Context context) Gets status of the database.register
(String id, MetastoreRegisterObject registerBody) Register files in Syms.registerWithResponse
(String id, MetastoreRegisterObject registerBody, Context context) Register files in Syms.update
(String id, MetastoreUpdateObject updateBody) Update files in Syms.updateWithResponse
(String id, MetastoreUpdateObject updateBody, Context context) Update files in Syms.
-
Method Details
-
register
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.
- 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.
-
registerWithResponse
public Response<MetastoreRegistrationResponse> registerWithResponse(String id, MetastoreRegisterObject registerBody, Context context) 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.context
- The context to associate with this operation.- Returns:
- the response body along with
Response
. - 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.
- 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 Response<MetastoreRequestSuccessResponse> getDatabaseOperationsWithResponse(String id, Context context) Gets status of the database.- Parameters:
id
- The id parameter.context
- The context to associate with this operation.- Returns:
- status of the database along with
Response
. - 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.
- 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 Response<MetastoreUpdationResponse> updateWithResponse(String id, MetastoreUpdateObject updateBody, Context context) Update files in Syms.- Parameters:
id
- The name of the database to be updated.updateBody
- The body for the update request.context
- The context to associate with this operation.- Returns:
- the response body along with
Response
. - 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.- 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.context
- The context to associate with this operation.- Returns:
- the
Response
. - 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.
-