Interface EncryptionProtectorsClient


public interface EncryptionProtectorsClient
An instance of this class provides access to all the operations defined in EncryptionProtectorsClient.
  • Method Details

    • listByServerAsync

      com.azure.core.http.rest.PagedFlux<EncryptionProtectorInner> listByServerAsync(String resourceGroupName, String serverName)
      Gets a list of server encryption protectors.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      a list of server encryption protectors as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByServer

      com.azure.core.http.rest.PagedIterable<EncryptionProtectorInner> listByServer(String resourceGroupName, String serverName)
      Gets a list of server encryption protectors.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      a list of server encryption protectors as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByServer

      com.azure.core.http.rest.PagedIterable<EncryptionProtectorInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
      Gets a list of server encryption protectors.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      context - The context to associate with this operation.
      Returns:
      a list of server encryption protectors as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<EncryptionProtectorInner>> getWithResponseAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Gets a server encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be retrieved.
      Returns:
      a server encryption protector along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<EncryptionProtectorInner> getAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Gets a server encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be retrieved.
      Returns:
      a server encryption protector on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<EncryptionProtectorInner> getWithResponse(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, com.azure.core.util.Context context)
      Gets a server encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be retrieved.
      context - The context to associate with this operation.
      Returns:
      a server encryption protector along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      EncryptionProtectorInner get(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Gets a server encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be retrieved.
      Returns:
      a server encryption protector.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      Returns:
      the server encryption protector along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<EncryptionProtectorInner>,EncryptionProtectorInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      Returns:
      the PollerFlux for polling of the server encryption protector.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EncryptionProtectorInner>,EncryptionProtectorInner> beginCreateOrUpdate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      Returns:
      the SyncPoller for polling of the server encryption protector.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EncryptionProtectorInner>,EncryptionProtectorInner> beginCreateOrUpdate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters, com.azure.core.util.Context context)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the server encryption protector.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<EncryptionProtectorInner> createOrUpdateAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      Returns:
      the server encryption protector on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      EncryptionProtectorInner createOrUpdate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      Returns:
      the server encryption protector.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      EncryptionProtectorInner createOrUpdate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters, com.azure.core.util.Context context)
      Updates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      parameters - The requested encryption protector resource state.
      context - The context to associate with this operation.
      Returns:
      the server encryption protector.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revalidateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> revalidateWithResponseAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRevalidateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRevalidateAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRevalidate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRevalidate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRevalidate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRevalidate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, com.azure.core.util.Context context)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revalidateAsync

      Mono<Void> revalidateAsync(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revalidate

      void revalidate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revalidate

      void revalidate(String resourceGroupName, String serverName, EncryptionProtectorName encryptionProtectorName, com.azure.core.util.Context context)
      Revalidates an existing encryption protector.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      encryptionProtectorName - The name of the encryption protector to be updated.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.