Interface SqlVirtualMachineGroupsClient


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

    • getByResourceGroup

      SqlVirtualMachineGroupInner getByResourceGroup(String resourceGroupName, String sqlVirtualMachineGroupName)
      Gets a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      Returns:
      a SQL virtual machine group.
      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<SqlVirtualMachineGroupInner> getByResourceGroupWithResponse(String resourceGroupName, String sqlVirtualMachineGroupName, com.azure.core.util.Context context)
      Gets a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      context - The context to associate with this operation.
      Returns:
      a SQL virtual machine group 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<SqlVirtualMachineGroupInner>,SqlVirtualMachineGroupInner> beginCreateOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupInner parameters)
      Creates or updates a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      Returns:
      the SyncPoller for polling of a SQL virtual machine group.
      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<SqlVirtualMachineGroupInner>,SqlVirtualMachineGroupInner> beginCreateOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupInner parameters, com.azure.core.util.Context context)
      Creates or updates a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a SQL virtual machine group.
      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

      SqlVirtualMachineGroupInner createOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupInner parameters)
      Creates or updates a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      Returns:
      a SQL virtual machine group.
      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

      SqlVirtualMachineGroupInner createOrUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupInner parameters, com.azure.core.util.Context context)
      Creates or updates a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      context - The context to associate with this operation.
      Returns:
      a SQL virtual machine group.
      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 sqlVirtualMachineGroupName)
      Deletes a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      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 sqlVirtualMachineGroupName, com.azure.core.util.Context context)
      Deletes a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      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 sqlVirtualMachineGroupName)
      Deletes a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      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 sqlVirtualMachineGroupName, com.azure.core.util.Context context)
      Deletes a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlVirtualMachineGroupInner>,SqlVirtualMachineGroupInner> beginUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters)
      Updates SQL virtual machine group tags.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      Returns:
      the SyncPoller for polling of a SQL virtual machine group.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlVirtualMachineGroupInner>,SqlVirtualMachineGroupInner> beginUpdate(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, com.azure.core.util.Context context)
      Updates SQL virtual machine group tags.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a SQL virtual machine group.
      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

      SqlVirtualMachineGroupInner update(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters)
      Updates SQL virtual machine group tags.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      Returns:
      a SQL virtual machine group.
      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

      SqlVirtualMachineGroupInner update(String resourceGroupName, String sqlVirtualMachineGroupName, SqlVirtualMachineGroupUpdate parameters, com.azure.core.util.Context context)
      Updates SQL virtual machine group tags.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      parameters - The SQL virtual machine group.
      context - The context to associate with this operation.
      Returns:
      a SQL virtual machine group.
      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<SqlVirtualMachineGroupInner> listByResourceGroup(String resourceGroupName)
      Gets all SQL virtual machine groups in a resource group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      Returns:
      all SQL virtual machine groups 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<SqlVirtualMachineGroupInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets all SQL virtual machine groups in a resource group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      context - The context to associate with this operation.
      Returns:
      all SQL virtual machine groups 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.
    • list

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineGroupInner> list()
      Gets all SQL virtual machine groups in a subscription.
      Returns:
      all SQL virtual machine groups in a subscription 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<SqlVirtualMachineGroupInner> list(com.azure.core.util.Context context)
      Gets all SQL virtual machine groups in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all SQL virtual machine groups in a subscription 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.