Interface ContainerAppsSessionPools


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

    • list

      com.azure.core.http.rest.PagedIterable<SessionPool> list()
      Get the session pools in a given subscription.
      Returns:
      the session pools in a given 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<SessionPool> list(com.azure.core.util.Context context)
      Get the session pools in a given subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the session pools in a given 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SessionPool> listByResourceGroup(String resourceGroupName)
      Get the session pools in a given resource group of a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the session pools in a given resource group of 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SessionPool> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Get the session pools in a given resource group of a subscription.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the session pools in a given resource group of 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<SessionPool> getByResourceGroupWithResponse(String resourceGroupName, String sessionPoolName, com.azure.core.util.Context context)
      Get the properties of a session pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sessionPoolName - Name of the session pool.
      context - The context to associate with this operation.
      Returns:
      the properties of a session pool 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

      SessionPool getByResourceGroup(String resourceGroupName, String sessionPoolName)
      Get the properties of a session pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sessionPoolName - Name of the session pool.
      Returns:
      the properties of a session pool.
      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

      void deleteByResourceGroup(String resourceGroupName, String sessionPoolName)
      Delete a session pool. Delete the session pool with the given name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sessionPoolName - Name of the session pool.
      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 sessionPoolName, com.azure.core.util.Context context)
      Delete a session pool. Delete the session pool with the given name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      sessionPoolName - Name of the session pool.
      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.
    • getById

      SessionPool getById(String id)
      Get the properties of a session pool.
      Parameters:
      id - the resource ID.
      Returns:
      the properties of a session pool 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<SessionPool> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get the properties of a session pool.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the properties of a session pool 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

      void deleteById(String id)
      Delete a session pool. Delete the session pool with the given name.
      Parameters:
      id - the resource ID.
      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a session pool. Delete the session pool with the given name.
      Parameters:
      id - the resource ID.
      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.
    • define

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