Interface WorkspaceManagedSqlServerEncryptionProtectorsClient


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

      • get

        EncryptionProtectorInner get​(String resourceGroupName,
                                     String workspaceName,
                                     EncryptionProtectorName encryptionProtectorName)
        Get workspace managed sql server's encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        Returns:
        workspace managed sql server's 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.
      • getWithResponse

        com.azure.core.http.rest.Response<EncryptionProtectorInner> getWithResponse​(String resourceGroupName,
                                                                                    String workspaceName,
                                                                                    EncryptionProtectorName encryptionProtectorName,
                                                                                    com.azure.core.util.Context context)
        Get workspace managed sql server's encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        context - The context to associate with this operation.
        Returns:
        workspace managed sql server's 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<EncryptionProtectorInner>,​EncryptionProtectorInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                          String workspaceName,
                                                                                                                                                                          EncryptionProtectorName encryptionProtectorName,
                                                                                                                                                                          EncryptionProtectorInner parameters)
        Updates workspace managed sql server's encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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 workspaceName,
                                                                                                                                                                          EncryptionProtectorName encryptionProtectorName,
                                                                                                                                                                          EncryptionProtectorInner parameters,
                                                                                                                                                                          com.azure.core.util.Context context)
        Updates workspace managed sql server's encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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.
      • createOrUpdate

        EncryptionProtectorInner createOrUpdate​(String resourceGroupName,
                                                String workspaceName,
                                                EncryptionProtectorName encryptionProtectorName,
                                                EncryptionProtectorInner parameters)
        Updates workspace managed sql server's encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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 workspaceName,
                                                EncryptionProtectorName encryptionProtectorName,
                                                EncryptionProtectorInner parameters,
                                                com.azure.core.util.Context context)
        Updates workspace managed sql server's encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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.
      • list

        com.azure.core.http.rest.PagedIterable<EncryptionProtectorInner> list​(String resourceGroupName,
                                                                              String workspaceName)
        Get list of encryption protectors for workspace managed sql server.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        Returns:
        list of encryption protectors for workspace managed sql server 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.
      • list

        com.azure.core.http.rest.PagedIterable<EncryptionProtectorInner> list​(String resourceGroupName,
                                                                              String workspaceName,
                                                                              com.azure.core.util.Context context)
        Get list of encryption protectors for workspace managed sql server.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        context - The context to associate with this operation.
        Returns:
        list of encryption protectors for workspace managed sql server 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.
      • beginRevalidate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRevalidate​(String resourceGroupName,
                                                                                                                              String workspaceName,
                                                                                                                              EncryptionProtectorName encryptionProtectorName)
        Revalidates workspace managed sql server's existing encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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 workspaceName,
                                                                                                                              EncryptionProtectorName encryptionProtectorName,
                                                                                                                              com.azure.core.util.Context context)
        Revalidates workspace managed sql server's existing encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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.
      • revalidate

        void revalidate​(String resourceGroupName,
                        String workspaceName,
                        EncryptionProtectorName encryptionProtectorName)
        Revalidates workspace managed sql server's existing encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the 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.
      • revalidate

        void revalidate​(String resourceGroupName,
                        String workspaceName,
                        EncryptionProtectorName encryptionProtectorName,
                        com.azure.core.util.Context context)
        Revalidates workspace managed sql server's existing encryption protector.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        workspaceName - The name of the workspace.
        encryptionProtectorName - The name of the encryption protector.
        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.