Interface ProjectsClient
public interface ProjectsClient
An instance of this class provides access to all the operations defined in ProjectsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,
ProjectInner> beginCreateOrUpdate
(String resourceGroupName, String projectName, ProjectInner body) Creates or updates a project.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,
ProjectInner> beginCreateOrUpdate
(String resourceGroupName, String projectName, ProjectInner body, com.azure.core.util.Context context) Creates or updates a project.beginDelete
(String resourceGroupName, String projectName) Deletes a project resource.beginDelete
(String resourceGroupName, String projectName, com.azure.core.util.Context context) Deletes a project resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,
ProjectInner> beginUpdate
(String resourceGroupName, String projectName, ProjectUpdate body) Partially updates a project.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,
ProjectInner> beginUpdate
(String resourceGroupName, String projectName, ProjectUpdate body, com.azure.core.util.Context context) Partially updates a project.createOrUpdate
(String resourceGroupName, String projectName, ProjectInner body) Creates or updates a project.createOrUpdate
(String resourceGroupName, String projectName, ProjectInner body, com.azure.core.util.Context context) Creates or updates a project.void
Deletes a project resource.void
Deletes a project resource.getByResourceGroup
(String resourceGroupName, String projectName) Gets a specific project.com.azure.core.http.rest.Response<ProjectInner>
getByResourceGroupWithResponse
(String resourceGroupName, String projectName, com.azure.core.util.Context context) Gets a specific project.com.azure.core.http.rest.PagedIterable<ProjectInner>
list()
Lists all projects in the subscription.com.azure.core.http.rest.PagedIterable<ProjectInner>
Lists all projects in the subscription.com.azure.core.http.rest.PagedIterable<ProjectInner>
listByResourceGroup
(String resourceGroupName) Lists all projects in the resource group.com.azure.core.http.rest.PagedIterable<ProjectInner>
listByResourceGroup
(String resourceGroupName, Integer top, com.azure.core.util.Context context) Lists all projects in the resource group.update
(String resourceGroupName, String projectName, ProjectUpdate body) Partially updates a project.update
(String resourceGroupName, String projectName, ProjectUpdate body, com.azure.core.util.Context context) Partially updates a project.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ProjectInner> list()Lists all projects in the subscription.- Returns:
- results of the project list operation as paginated response with
PagedIterable
. - Throws:
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(Integer top, com.azure.core.util.Context context) Lists all projects in the subscription.- Parameters:
top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- results of the project list operation 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
Lists all projects in the resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- results of the project list operation 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 resourceGroupName, Integer top, com.azure.core.util.Context context) Lists all projects in the resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- results of the project list operation 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ProjectInner> getByResourceGroupWithResponse(String resourceGroupName, String projectName, com.azure.core.util.Context context) Gets a specific project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.context
- The context to associate with this operation.- Returns:
- a specific project 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.
-
getByResourceGroup
Gets a specific project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.- Returns:
- a specific 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,ProjectInner> beginCreateOrUpdate(String resourceGroupName, String projectName, ProjectInner body) Creates or updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Represents a project.- Returns:
- the
SyncPoller
for polling of represents 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,ProjectInner> beginCreateOrUpdate(String resourceGroupName, String projectName, ProjectInner body, com.azure.core.util.Context context) Creates or updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Represents a project.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents 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.
-
createOrUpdate
Creates or updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Represents a project.- Returns:
- represents 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.
-
createOrUpdate
ProjectInner createOrUpdate(String resourceGroupName, String projectName, ProjectInner body, com.azure.core.util.Context context) Creates or updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Represents a project.context
- The context to associate with this operation.- Returns:
- represents 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,ProjectInner> beginUpdate(String resourceGroupName, String projectName, ProjectUpdate body) Partially updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Updatable project properties.- Returns:
- the
SyncPoller
for polling of represents 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ProjectInner>,ProjectInner> beginUpdate(String resourceGroupName, String projectName, ProjectUpdate body, com.azure.core.util.Context context) Partially updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Updatable project properties.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents 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.
-
update
Partially updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Updatable project properties.- Returns:
- represents 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.
-
update
ProjectInner update(String resourceGroupName, String projectName, ProjectUpdate body, com.azure.core.util.Context context) Partially updates a project.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.body
- Updatable project properties.context
- The context to associate with this operation.- Returns:
- represents 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName) Deletes a project resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.- Returns:
- the
SyncPoller
for 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 projectName, com.azure.core.util.Context context) Deletes a project resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for 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.projectName
- The 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.
-
delete
Deletes a project resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.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.
-