Interface SapVirtualInstances


public interface SapVirtualInstances
Resource collection API of SapVirtualInstances.
  • Method Details

    • getByResourceGroup

      SapVirtualInstance getByResourceGroup(String resourceGroupName, String sapVirtualInstanceName)
      Gets an Virtual Instance for SAP.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      Returns:
      an Virtual Instance for SAP.
      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<SapVirtualInstance> getByResourceGroupWithResponse(String resourceGroupName, String sapVirtualInstanceName, com.azure.core.util.Context context)
      Gets an Virtual Instance for SAP.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      context - The context to associate with this operation.
      Returns:
      an Virtual Instance for SAP 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.
    • deleteByResourceGroup

      OperationStatusResult deleteByResourceGroup(String resourceGroupName, String sapVirtualInstanceName)
      Deletes an Virtual Instance for SAP.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      Returns:
      the current status of an async 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

      OperationStatusResult delete(String resourceGroupName, String sapVirtualInstanceName, com.azure.core.util.Context context)
      Deletes an Virtual Instance for SAP.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      context - The context to associate with this operation.
      Returns:
      the current status of an async 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SapVirtualInstance> listByResourceGroup(String resourceGroupName)
      Gets all Virtual Instances for SAP in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      all Virtual Instances for SAP 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<SapVirtualInstance> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets all Virtual Instances for SAP in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      all Virtual Instances for SAP 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<SapVirtualInstance> list()
      Gets all Virtual Instances for SAP in the subscription.
      Returns:
      all Virtual Instances for SAP in the 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<SapVirtualInstance> list(com.azure.core.util.Context context)
      Gets all Virtual Instances for SAP in the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all Virtual Instances for SAP in the 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.
    • start

      OperationStatusResult start(String resourceGroupName, String sapVirtualInstanceName)
      Starts the SAP System.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      Returns:
      the current status of an async 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.
    • start

      OperationStatusResult start(String resourceGroupName, String sapVirtualInstanceName, com.azure.core.util.Context context)
      Starts the SAP System.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      context - The context to associate with this operation.
      Returns:
      the current status of an async 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.
    • stop

      OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName, StopRequest body)
      Stops the SAP System.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      body - The Virtual Instances for SAP stop request body.
      Returns:
      the current status of an async 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.
    • stop

      OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName)
      Stops the SAP System.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      Returns:
      the current status of an async 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.
    • stop

      OperationStatusResult stop(String resourceGroupName, String sapVirtualInstanceName, StopRequest body, com.azure.core.util.Context context)
      Stops the SAP System.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sapVirtualInstanceName - The name of the Virtual Instances for SAP.
      body - The Virtual Instances for SAP stop request body.
      context - The context to associate with this operation.
      Returns:
      the current status of an async 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.
    • getById

      Gets an Virtual Instance for SAP.
      Parameters:
      id - the resource ID.
      Returns:
      an Virtual Instance for SAP 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<SapVirtualInstance> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets an Virtual Instance for SAP.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      an Virtual Instance for SAP 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.
    • deleteById

      OperationStatusResult deleteById(String id)
      Deletes an Virtual Instance for SAP.
      Parameters:
      id - the resource ID.
      Returns:
      the current status of an async 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.
    • deleteByIdWithResponse

      OperationStatusResult deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes an Virtual Instance for SAP.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the current status of an async 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.
    • define

      Begins definition for a new SapVirtualInstance resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new SapVirtualInstance definition.