Interface ProjectsClient
public interface ProjectsClient
An instance of this class provides access to all the operations defined in ProjectsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete(String resourceGroupName, String storageMoverName, String projectName) Deletes a Project resource.beginDelete(String resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Deletes a Project resource.createOrUpdate(String resourceGroupName, String storageMoverName, String projectName, ProjectInner project) Creates or updates a Project resource, which is a logical grouping of related jobs.com.azure.core.http.rest.Response<ProjectInner> createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, String projectName, ProjectInner project, com.azure.core.util.Context context) Creates or updates a Project resource, which is a logical grouping of related jobs.voidDeletes a Project resource.voiddelete(String resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Deletes a Project resource.Gets a Project resource.com.azure.core.http.rest.Response<ProjectInner> getWithResponse(String resourceGroupName, String storageMoverName, String projectName, com.azure.core.util.Context context) Gets a Project resource.com.azure.core.http.rest.PagedIterable<ProjectInner> Lists all Projects in a Storage Mover.com.azure.core.http.rest.PagedIterable<ProjectInner> Lists all Projects in a Storage Mover.update(String resourceGroupName, String storageMoverName, String projectName, ProjectUpdateParameters project) Updates properties for a Project resource.com.azure.core.http.rest.Response<ProjectInner> updateWithResponse(String resourceGroupName, String storageMoverName, String projectName, ProjectUpdateParameters project, com.azure.core.util.Context context) Updates properties for a Project resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ProjectInner> 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<ProjectInner> 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<ProjectInner> 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ProjectInner> createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, String projectName, ProjectInner project, com.azure.core.util.Context context) Creates or updates a Project resource, which is a logical grouping of related jobs.- 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.project- The project parameter.context- The context to associate with this operation.- Returns:
- the 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 resourceGroupName, String storageMoverName, String projectName, ProjectInner project) Creates or updates a Project resource, which is a logical grouping of related jobs.- 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.project- The project parameter.- Returns:
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ProjectInner> updateWithResponse(String resourceGroupName, String storageMoverName, String projectName, ProjectUpdateParameters project, com.azure.core.util.Context context) Updates properties for a Project resource. Properties not specified in the request body will be unchanged.- 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.project- The project parameter.context- The context to associate with this operation.- Returns:
- the 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 resourceGroupName, String storageMoverName, String projectName, ProjectUpdateParameters project) Updates properties for a Project resource. Properties not specified in the request body will be unchanged.- 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.project- The project parameter.- Returns:
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String storageMoverName, String projectName) 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.- Returns:
- the
SyncPollerfor 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 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.- Returns:
- the
SyncPollerfor 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
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.
-