Interface PhpWorkloadsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<PhpWorkloadResourceInner> 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<PhpWorkloadResourceInner> 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<PhpWorkloadResourceInner> 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<PhpWorkloadResourceInner> 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

      PhpWorkloadResourceInner 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<PhpWorkloadResourceInner> 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PhpWorkloadResourceInner>,PhpWorkloadResourceInner> beginCreateOrUpdate(String resourceGroupName, String phpWorkloadName, PhpWorkloadResourceInner phpWorkloadResource)
      Create or updated PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      phpWorkloadResource - Resource create or update request payload.
      Returns:
      the SyncPoller for polling of 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PhpWorkloadResourceInner>,PhpWorkloadResourceInner> beginCreateOrUpdate(String resourceGroupName, String phpWorkloadName, PhpWorkloadResourceInner phpWorkloadResource, com.azure.core.util.Context context)
      Create or updated PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      phpWorkloadResource - Resource create or update request payload.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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.
    • createOrUpdate

      PhpWorkloadResourceInner createOrUpdate(String resourceGroupName, String phpWorkloadName, PhpWorkloadResourceInner phpWorkloadResource)
      Create or updated PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      phpWorkloadResource - Resource create or update request payload.
      Returns:
      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.
    • createOrUpdate

      PhpWorkloadResourceInner createOrUpdate(String resourceGroupName, String phpWorkloadName, PhpWorkloadResourceInner phpWorkloadResource, com.azure.core.util.Context context)
      Create or updated PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      phpWorkloadResource - Resource create or update request payload.
      context - The context to associate with this operation.
      Returns:
      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.
    • update

      PhpWorkloadResourceInner update(String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody)
      Update PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      resourcePatchRequestBody - Workload resource update data.
      Returns:
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<PhpWorkloadResourceInner> updateWithResponse(String resourceGroupName, String phpWorkloadName, PatchResourceRequestBody resourcePatchRequestBody, com.azure.core.util.Context context)
      Update PHP workload resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      phpWorkloadName - Php workload name.
      resourcePatchRequestBody - Workload resource update data.
      context - The context to associate with this operation.
      Returns:
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      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 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.
      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 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.