Interface PhpWorkloads


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

    • list

      com.azure.core.http.rest.PagedIterable<PhpWorkloadResource> list()
      Lists PHP workload resources for a subscription.
      Returns:
      php workload resource list 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<PhpWorkloadResource> list(com.azure.core.util.Context context)
      Lists PHP workload resources for a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      php workload resource list 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<PhpWorkloadResource> listByResourceGroup(String resourceGroupName)
      Lists PHP workload resources in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      php workload resource list 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<PhpWorkloadResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists PHP workload resources 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:
      php workload resource list 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.
    • getByResourceGroup

      PhpWorkloadResource getByResourceGroup(String resourceGroupName, String phpWorkloadName)
      Gets the PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      Returns:
      the PHP workload resource.
      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<PhpWorkloadResource> getByResourceGroupWithResponse(String resourceGroupName, String phpWorkloadName, com.azure.core.util.Context context)
      Gets the PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      context - The context to associate with this operation.
      Returns:
      the PHP workload resource 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.
    • delete

      void delete(String resourceGroupName, String phpWorkloadName, String deleteInfra)
      Delete PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      deleteInfra - Whether to delete infra along with workload resource.
      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 phpWorkloadName)
      Delete PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      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 phpWorkloadName, String deleteInfra, com.azure.core.util.Context context)
      Delete PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      deleteInfra - Whether to delete infra along with workload resource.
      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

      Gets the PHP workload resource.
      Parameters:
      id - the resource ID.
      Returns:
      the PHP workload resource 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<PhpWorkloadResource> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the PHP workload resource.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the PHP workload resource 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 PHP workload resource.
      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, String deleteInfra, com.azure.core.util.Context context)
      Delete PHP workload resource.
      Parameters:
      id - the resource ID.
      deleteInfra - Whether to delete infra along with workload resource.
      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 PhpWorkloadResource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new PhpWorkloadResource definition.