Interface ProjectsClient
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String groupName, String serviceName, String projectName, ProjectInner parameters) Create or update projectcom.azure.core.http.rest.Response<ProjectInner>
createOrUpdateWithResponse
(String groupName, String serviceName, String projectName, ProjectInner parameters, com.azure.core.util.Context context) Create or update projectvoid
Delete projectcom.azure.core.http.rest.Response<Void>
deleteWithResponse
(String groupName, String serviceName, String projectName, Boolean deleteRunningTasks, com.azure.core.util.Context context) Delete projectGet project informationcom.azure.core.http.rest.Response<ProjectInner>
getWithResponse
(String groupName, String serviceName, String projectName, com.azure.core.util.Context context) Get project informationcom.azure.core.http.rest.PagedIterable<ProjectInner>
listByResourceGroup
(String groupName, String serviceName) Get projects in a servicecom.azure.core.http.rest.PagedIterable<ProjectInner>
listByResourceGroup
(String groupName, String serviceName, com.azure.core.util.Context context) Get projects in a serviceupdate
(String groupName, String serviceName, String projectName, ProjectInner parameters) Update projectcom.azure.core.http.rest.Response<ProjectInner>
updateWithResponse
(String groupName, String serviceName, String projectName, ProjectInner parameters, com.azure.core.util.Context context) Update project
-
Method Details
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ProjectInner> listByResourceGroup(String groupName, String serviceName) Get projects in a serviceThe 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 serviceThe 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 projectThe 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 projectThe 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 informationThe 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
Get project informationThe 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 projectThe 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
Delete projectThe 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 projectThe 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 projectThe 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.
-