Interface Projects
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Project resource.void
Delete projectvoid
deleteById
(String id) Delete projectcom.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, Boolean deleteRunningTasks, com.azure.core.util.Context context) 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 informationGet project informationcom.azure.core.http.rest.Response<Project>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get project informationcom.azure.core.http.rest.Response<Project>
getWithResponse
(String groupName, String serviceName, String projectName, com.azure.core.util.Context context) Get project informationcom.azure.core.http.rest.PagedIterable<Project>
listByResourceGroup
(String groupName, String serviceName) Get projects in a servicecom.azure.core.http.rest.PagedIterable<Project>
listByResourceGroup
(String groupName, String serviceName, com.azure.core.util.Context context) Get projects in a service
-
Method Details
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Project> 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<Project> 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.
-
getWithResponse
com.azure.core.http.rest.Response<Project> 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.
-
getById
Get project informationThe project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.
- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Project> getByIdWithResponse(String id, 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:
id
- the resource ID.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.
-
deleteById
Delete projectThe project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.
- 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
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, 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:
id
- the resource ID.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.
-
define
Begins definition for a new Project resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Project definition.
-