Interface Projects
public interface Projects
Resource collection API of Projects.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Project resource.voidDeletes a Project resource.voiddelete(String resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Deletes a Project resource.voiddeleteById(String id) Deletes a Project resource.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a Project resource.Gets a Project resource.Gets a Project resource.com.azure.core.http.rest.Response<Project> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a Project resource.com.azure.core.http.rest.Response<Project> getWithResponse(String resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Gets a Project resource.com.azure.core.http.rest.PagedIterable<Project> Lists all Projects in a Storage Mover.com.azure.core.http.rest.PagedIterable<Project> Lists all Projects in a Storage Mover.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Project> list(String resourceGroupName, String storageMoverName) Lists all Projects in a Storage Mover.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.- Returns:
- list 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.
-
list
com.azure.core.http.rest.PagedIterable<Project> list(String resourceGroupName, String storageMoverName, com.azure.core.util.Context context) Lists all Projects in a Storage Mover.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.context- The context to associate with this operation.- Returns:
- list 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 resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Gets a Project resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.projectName- The name of the Project resource.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
Gets a Project resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.projectName- The name of the Project resource.- 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.
-
delete
Deletes a Project resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.projectName- The name of the 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.
-
delete
void delete(String resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Deletes a Project resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.projectName- The name of the Project 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.
-
getById
Gets a Project resource.- 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) Gets a Project resource.- 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
Deletes a Project resource.- 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
Deletes a Project resource.- Parameters:
id- the resource ID.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.
-
define
Begins definition for a new Project resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new Project definition.
-