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.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String id, com.azure.core.util.Context context) Remove files in Syms.Gets status of the database.com.azure.core.http.rest.Response<MetastoreRequestSuccessResponse>
getDatabaseOperationsWithResponse
(String id, com.azure.core.util.Context context) Gets status of the database.register
(String id, MetastoreRegisterObject registerBody) Register files in Syms.com.azure.core.http.rest.Response<MetastoreRegistrationResponse>
registerWithResponse
(String id, MetastoreRegisterObject registerBody, com.azure.core.util.Context context) Register files in Syms.update
(String id, MetastoreUpdateObject updateBody) Update files in Syms.com.azure.core.http.rest.Response<MetastoreUpdationResponse>
updateWithResponse
(String id, MetastoreUpdateObject updateBody, com.azure.core.util.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 com.azure.core.http.rest.Response<MetastoreRegistrationResponse> registerWithResponse(String id, MetastoreRegisterObject registerBody, com.azure.core.util.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 com.azure.core.http.rest.Response<MetastoreRequestSuccessResponse> getDatabaseOperationsWithResponse(String id, com.azure.core.util.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 com.azure.core.http.rest.Response<MetastoreUpdationResponse> updateWithResponse(String id, MetastoreUpdateObject updateBody, com.azure.core.util.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
public com.azure.core.http.rest.Response<Void> deleteWithResponse(String id, com.azure.core.util.Context context) 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.
-