Interface SqlServerInstancesClient


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

    • list

      com.azure.core.http.rest.PagedIterable<SqlServerInstanceInner> list()
      List sqlServerInstance resources in the subscription.
      Returns:
      a list of SqlServerInstance as paginated response with PagedIterable.
      Throws:
      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<SqlServerInstanceInner> list(com.azure.core.util.Context context)
      List sqlServerInstance resources in the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of SqlServerInstance 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SqlServerInstanceInner> listByResourceGroup(String resourceGroupName)
      List sqlServerInstance resources in the resource group

      Gets all sqlServerInstances in a resource group.

      Parameters:
      resourceGroupName - The name of the Azure resource group.
      Returns:
      all sqlServerInstances in a resource group 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SqlServerInstanceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List sqlServerInstance resources in the resource group

      Gets all sqlServerInstances in a resource group.

      Parameters:
      resourceGroupName - The name of the Azure resource group.
      context - The context to associate with this operation.
      Returns:
      all sqlServerInstances in a resource group 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<SqlServerInstanceInner> getByResourceGroupWithResponse(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context)
      Retrieves a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - Name of SQL Server Instance.
      context - The context to associate with this operation.
      Returns:
      a SqlServerInstance 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.
    • getByResourceGroup

      SqlServerInstanceInner getByResourceGroup(String resourceGroupName, String sqlServerInstanceName)
      Retrieves a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - Name of SQL Server Instance.
      Returns:
      a SqlServerInstance.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlServerInstanceInner>,SqlServerInstanceInner> beginCreate(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance)
      Creates or replaces a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      sqlServerInstance - The SQL Server Instance to be created or updated.
      Returns:
      the SyncPoller for polling of a SqlServerInstance.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlServerInstanceInner>,SqlServerInstanceInner> beginCreate(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance, com.azure.core.util.Context context)
      Creates or replaces a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      sqlServerInstance - The SQL Server Instance to be created or updated.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a SqlServerInstance.
      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.
    • create

      SqlServerInstanceInner create(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance)
      Creates or replaces a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      sqlServerInstance - The SQL Server Instance to be created or updated.
      Returns:
      a SqlServerInstance.
      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.
    • create

      SqlServerInstanceInner create(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceInner sqlServerInstance, com.azure.core.util.Context context)
      Creates or replaces a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      sqlServerInstance - The SQL Server Instance to be created or updated.
      context - The context to associate with this operation.
      Returns:
      a SqlServerInstance.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String sqlServerInstanceName)
      Deletes a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context)
      Deletes a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      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.
    • delete

      void delete(String resourceGroupName, String sqlServerInstanceName)
      Deletes a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      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.
    • delete

      void delete(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context)
      Deletes a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<SqlServerInstanceInner> updateWithResponse(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceUpdate parameters, com.azure.core.util.Context context)
      Updates a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - Name of sqlServerInstance.
      parameters - The SQL Server Instance.
      context - The context to associate with this operation.
      Returns:
      a SqlServerInstance 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.
    • update

      SqlServerInstanceInner update(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceUpdate parameters)
      Updates a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - Name of sqlServerInstance.
      parameters - The SQL Server Instance.
      Returns:
      a SqlServerInstance.
      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.