Interface MigrationsClient
public interface MigrationsClient
An instance of this class provides access to all the operations defined in MigrationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters) Creates a new migration.createAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters) Creates a new migration.com.azure.core.http.rest.Response<MigrationResourceInner>createWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters, com.azure.core.util.Context context) Creates a new migration.Mono<com.azure.core.http.rest.Response<MigrationResourceInner>>createWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters) Creates a new migration.voiddelete(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.deleteAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.com.azure.core.http.rest.Response<Void>deleteWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, com.azure.core.util.Context context) Deletes a migration.deleteWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.get(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.getAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.com.azure.core.http.rest.Response<MigrationResourceInner>getWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, com.azure.core.util.Context context) Gets details of a migration.Mono<com.azure.core.http.rest.Response<MigrationResourceInner>>getWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.com.azure.core.http.rest.PagedIterable<MigrationResourceInner>listByTargetServer(String subscriptionId, String resourceGroupName, String targetDbServerName) List all the migrations on a given target server.com.azure.core.http.rest.PagedIterable<MigrationResourceInner>listByTargetServer(String subscriptionId, String resourceGroupName, String targetDbServerName, MigrationListFilter migrationListFilter, com.azure.core.util.Context context) List all the migrations on a given target server.com.azure.core.http.rest.PagedFlux<MigrationResourceInner>listByTargetServerAsync(String subscriptionId, String resourceGroupName, String targetDbServerName) List all the migrations on a given target server.com.azure.core.http.rest.PagedFlux<MigrationResourceInner>listByTargetServerAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, MigrationListFilter migrationListFilter) List all the migrations on a given target server.update(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration.updateAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration.com.azure.core.http.rest.Response<MigrationResourceInner>updateWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters, com.azure.core.util.Context context) Updates an existing migration.Mono<com.azure.core.http.rest.Response<MigrationResourceInner>>updateWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration.
-
Method Details
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationResourceInner>> createWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters) Creates a new migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for creating a migration.- Returns:
- represents a migration resource along with
Responseon successful completion ofMono. - 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.
-
createAsync
Mono<MigrationResourceInner> createAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters) Creates a new migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for creating a migration.- Returns:
- represents a migration resource on successful completion of
Mono. - 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.
-
createWithResponse
com.azure.core.http.rest.Response<MigrationResourceInner> createWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters, com.azure.core.util.Context context) Creates a new migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for creating a migration.context- The context to associate with this operation.- Returns:
- represents a migration 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.
-
create
MigrationResourceInner create(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceInner parameters) Creates a new migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for creating a migration.- Returns:
- represents a migration 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationResourceInner>> getWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.- Returns:
- details of a migration along with
Responseon successful completion ofMono. - 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.
-
getAsync
Mono<MigrationResourceInner> getAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.- Returns:
- details of a migration on successful completion of
Mono. - 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<MigrationResourceInner> getWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, com.azure.core.util.Context context) Gets details of a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.context- The context to associate with this operation.- Returns:
- details of a migration 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
MigrationResourceInner get(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.- Returns:
- details of a migration.
- 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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationResourceInner>> updateWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for updating a migration.- Returns:
- represents a migration resource along with
Responseon successful completion ofMono. - 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.
-
updateAsync
Mono<MigrationResourceInner> updateAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for updating a migration.- Returns:
- represents a migration resource on successful completion of
Mono. - 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<MigrationResourceInner> updateWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters, com.azure.core.util.Context context) Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for updating a migration.context- The context to associate with this operation.- Returns:
- represents a migration 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
MigrationResourceInner update(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.parameters- The required parameters for updating a migration.- Returns:
- represents a migration 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
deleteAsync
Mono<Void> deleteAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.- Returns:
- A
Monothat completes when a successful response is received. - 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 subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, com.azure.core.util.Context context) Deletes a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.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
void delete(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationName- The name of the migration.- 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.
-
listByTargetServerAsync
com.azure.core.http.rest.PagedFlux<MigrationResourceInner> listByTargetServerAsync(String subscriptionId, String resourceGroupName, String targetDbServerName, MigrationListFilter migrationListFilter) List all the migrations on a given target server.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationListFilter- Migration list filter. Retrieves either active migrations or all migrations.- Returns:
- a list of migration resources as paginated response with
PagedFlux. - 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.
-
listByTargetServerAsync
com.azure.core.http.rest.PagedFlux<MigrationResourceInner> listByTargetServerAsync(String subscriptionId, String resourceGroupName, String targetDbServerName) List all the migrations on a given target server.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.- Returns:
- a list of migration resources as paginated response with
PagedFlux. - 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.
-
listByTargetServer
com.azure.core.http.rest.PagedIterable<MigrationResourceInner> listByTargetServer(String subscriptionId, String resourceGroupName, String targetDbServerName) List all the migrations on a given target server.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.- Returns:
- a list of migration 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.
-
listByTargetServer
com.azure.core.http.rest.PagedIterable<MigrationResourceInner> listByTargetServer(String subscriptionId, String resourceGroupName, String targetDbServerName, MigrationListFilter migrationListFilter, com.azure.core.util.Context context) List all the migrations on a given target server.- Parameters:
subscriptionId- The subscription ID of the target database server.resourceGroupName- The resource group name of the target database server.targetDbServerName- The name of the target database server.migrationListFilter- Migration list filter. Retrieves either active migrations or all migrations.context- The context to associate with this operation.- Returns:
- a list of migration 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.
-