Class ProjectProcessMigrationBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.workitemtracking.projectprocessmigration.ProjectProcessMigrationBuilder
Provides functionality to work with Project process migration Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionProjectProcessMigrationBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionmigrate
(ProcessIdModel processIdModel) Migrates a project to a different process within the same OOB type.migrateAsync
(ProcessIdModel processIdModel) Migrates a project to a different process within the same OOB type.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
ProjectProcessMigrationBuilder
public ProjectProcessMigrationBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
migrateAsync
public CompletableFuture<ProcessMigrationResultModel> migrateAsync(ProcessIdModel processIdModel) throws AzDException Migrates a project to a different process within the same OOB type. For example, you can only migrate a project from agile/custom-agile to agile/custom-agile.- Parameters:
processIdModel
- Stores process ID.- Returns:
- Project ID and its migrated process ID.
ProcessMigrationResultModel
- Throws:
AzDException
-
migrate
Migrates a project to a different process within the same OOB type. For example, you can only migrate a project from agile/custom-agile to agile/custom-agile.- Parameters:
processIdModel
- Stores process ID.- Returns:
- Project ID and its migrated process ID.
ProcessMigrationResultModel
- Throws:
AzDException
-