Class MetastoreClient


  • public final class MetastoreClient
    extends Object
    Initializes a new instance of the synchronous ArtifactsClient type.
    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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.