Class MetastoreClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.MetastoreClient
-
public final class MetastoreClient extends Object
Initializes a new instance of the synchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String id)
Remove files in Syms.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String id, com.azure.core.util.Context context)
Remove files in Syms.MetastoreRequestSuccessResponse
getDatabaseOperations(String id)
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.MetastoreRegistrationResponse
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.MetastoreUpdationResponse
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 Detail
-
register
public 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.
- 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
public MetastoreRequestSuccessResponse getDatabaseOperations(String id)
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
public 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.
- 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
public void delete(String id)
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.
-
-