Interface WorkloadSpacesClient


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

    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<WorkloadSpaceInner> getByResourceGroupWithResponse(String resourceGroupName, String spaceName, com.azure.core.util.Context context)
      Gets a workload space.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      context - The context to associate with this operation.
      Returns:
      a workload space 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

      WorkloadSpaceInner getByResourceGroup(String resourceGroupName, String spaceName)
      Gets a workload space.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      Returns:
      a workload space.
      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<WorkloadSpaceInner>, WorkloadSpaceInner> beginCreateOrUpdate(String resourceGroupName, String spaceName, WorkloadSpaceInner resource)
      Creates or replaces a workload space.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      resource - Resource create parameters.
      Returns:
      the SyncPoller for polling of a regional governance and lifecycle boundary for composed runtimes.
      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<WorkloadSpaceInner>, WorkloadSpaceInner> beginCreateOrUpdate(String resourceGroupName, String spaceName, WorkloadSpaceInner resource, com.azure.core.util.Context context)
      Creates or replaces a workload space.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      resource - Resource create parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a regional governance and lifecycle boundary for composed runtimes.
      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

      WorkloadSpaceInner createOrUpdate(String resourceGroupName, String spaceName, WorkloadSpaceInner resource)
      Creates or replaces a workload space.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      resource - Resource create parameters.
      Returns:
      a regional governance and lifecycle boundary for composed runtimes.
      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

      WorkloadSpaceInner createOrUpdate(String resourceGroupName, String spaceName, WorkloadSpaceInner resource, com.azure.core.util.Context context)
      Creates or replaces a workload space.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      resource - Resource create parameters.
      context - The context to associate with this operation.
      Returns:
      a regional governance and lifecycle boundary for composed runtimes.
      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<WorkloadSpaceInner>, WorkloadSpaceInner> beginUpdate(String resourceGroupName, String spaceName, WorkloadSpaceUpdate properties)
      Updates mutable workload space properties.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      properties - The resource properties to be updated.
      Returns:
      the SyncPoller for polling of a regional governance and lifecycle boundary for composed runtimes.
      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<WorkloadSpaceInner>, WorkloadSpaceInner> beginUpdate(String resourceGroupName, String spaceName, WorkloadSpaceUpdate properties, com.azure.core.util.Context context)
      Updates mutable workload space properties.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      properties - The resource properties to be updated.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a regional governance and lifecycle boundary for composed runtimes.
      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

      WorkloadSpaceInner update(String resourceGroupName, String spaceName, WorkloadSpaceUpdate properties)
      Updates mutable workload space properties.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      properties - The resource properties to be updated.
      Returns:
      a regional governance and lifecycle boundary for composed runtimes.
      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

      WorkloadSpaceInner update(String resourceGroupName, String spaceName, WorkloadSpaceUpdate properties, com.azure.core.util.Context context)
      Updates mutable workload space properties.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      properties - The resource properties to be updated.
      context - The context to associate with this operation.
      Returns:
      a regional governance and lifecycle boundary for composed runtimes.
      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 spaceName)
      Deletes a workload space and its owned resources.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      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 spaceName, com.azure.core.util.Context context)
      Deletes a workload space and its owned resources.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      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 spaceName)
      Deletes a workload space and its owned resources.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      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 spaceName, com.azure.core.util.Context context)
      Deletes a workload space and its owned resources.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      spaceName - The name of the WorkloadSpace.
      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.
    • listByResourceGroup

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