Interface ProjectsClient


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

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ProjectInner> listByResourceGroup(String groupName, String serviceName)
      Get projects in a service

      The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      Returns:
      oData page of project resources 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<ProjectInner> listByResourceGroup(String groupName, String serviceName, com.azure.core.util.Context context)
      Get projects in a service

      The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      context - The context to associate with this operation.
      Returns:
      oData page of project resources 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ProjectInner> createOrUpdateWithResponse(String groupName, String serviceName, String projectName, ProjectInner parameters, com.azure.core.util.Context context)
      Create or update project

      The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      parameters - Information about the project.
      context - The context to associate with this operation.
      Returns:
      a project 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.
    • createOrUpdate

      ProjectInner createOrUpdate(String groupName, String serviceName, String projectName, ProjectInner parameters)
      Create or update project

      The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      parameters - Information about the project.
      Returns:
      a project 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.
    • getWithResponse

      com.azure.core.http.rest.Response<ProjectInner> getWithResponse(String groupName, String serviceName, String projectName, com.azure.core.util.Context context)
      Get project information

      The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      context - The context to associate with this operation.
      Returns:
      a project 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.
    • get

      ProjectInner get(String groupName, String serviceName, String projectName)
      Get project information

      The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      Returns:
      a project 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String groupName, String serviceName, String projectName, Boolean deleteRunningTasks, com.azure.core.util.Context context)
      Delete project

      The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      deleteRunningTasks - Delete the resource even if it contains running tasks.
      context - The context to associate with this operation.
      Returns:
      the 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 groupName, String serviceName, String projectName)
      Delete project

      The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      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<ProjectInner> updateWithResponse(String groupName, String serviceName, String projectName, ProjectInner parameters, com.azure.core.util.Context context)
      Update project

      The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      parameters - Information about the project.
      context - The context to associate with this operation.
      Returns:
      a project 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.
    • update

      ProjectInner update(String groupName, String serviceName, String projectName, ProjectInner parameters)
      Update project

      The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.

      Parameters:
      groupName - Name of the resource group.
      serviceName - Name of the service.
      projectName - Name of the project.
      parameters - Information about the project.
      Returns:
      a project 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.