Interface MigrationsClient
public interface MigrationsClient
An instance of this class provides access to all the operations defined in MigrationsClient.
-
Method Summary
Modifier and TypeMethodDescriptionCancels an active migration.cancelAsync(String resourceGroupName, String serverName, String migrationName) Cancels an active migration.com.azure.core.http.rest.Response<MigrationInner> cancelWithResponse(String resourceGroupName, String serverName, String migrationName, com.azure.core.util.Context context) Cancels an active migration.Mono<com.azure.core.http.rest.Response<MigrationInner>> cancelWithResponseAsync(String resourceGroupName, String serverName, String migrationName) Cancels an active migration.checkNameAvailability(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters) Check the validity and availability of the given name, to assign it to a new migration.checkNameAvailabilityAsync(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters) Check the validity and availability of the given name, to assign it to a new migration.com.azure.core.http.rest.Response<MigrationNameAvailabilityInner> checkNameAvailabilityWithResponse(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters, com.azure.core.util.Context context) Check the validity and availability of the given name, to assign it to a new migration.Mono<com.azure.core.http.rest.Response<MigrationNameAvailabilityInner>> checkNameAvailabilityWithResponseAsync(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters) Check the validity and availability of the given name, to assign it to a new migration.create(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters) Creates a new migration.createAsync(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters) Creates a new migration.com.azure.core.http.rest.Response<MigrationInner> createWithResponse(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters, com.azure.core.util.Context context) Creates a new migration.Mono<com.azure.core.http.rest.Response<MigrationInner>> createWithResponseAsync(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters) Creates a new migration.Gets information about a migration.Gets information about a migration.com.azure.core.http.rest.Response<MigrationInner> getWithResponse(String resourceGroupName, String serverName, String migrationName, com.azure.core.util.Context context) Gets information about a migration.Mono<com.azure.core.http.rest.Response<MigrationInner>> getWithResponseAsync(String resourceGroupName, String serverName, String migrationName) Gets information about a migration.com.azure.core.http.rest.PagedIterable<MigrationInner> listByTargetServer(String resourceGroupName, String serverName) Lists all migrations of a target flexible server.com.azure.core.http.rest.PagedIterable<MigrationInner> listByTargetServer(String resourceGroupName, String serverName, MigrationListFilter migrationListFilter, com.azure.core.util.Context context) Lists all migrations of a target flexible server.com.azure.core.http.rest.PagedFlux<MigrationInner> listByTargetServerAsync(String resourceGroupName, String serverName) Lists all migrations of a target flexible server.com.azure.core.http.rest.PagedFlux<MigrationInner> listByTargetServerAsync(String resourceGroupName, String serverName, MigrationListFilter migrationListFilter) Lists all migrations of a target flexible server.update(String resourceGroupName, String serverName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration.updateAsync(String resourceGroupName, String serverName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration.com.azure.core.http.rest.Response<MigrationInner> updateWithResponse(String resourceGroupName, String serverName, String migrationName, MigrationResourceForPatch parameters, com.azure.core.util.Context context) Updates an existing migration.Mono<com.azure.core.http.rest.Response<MigrationInner>> updateWithResponseAsync(String resourceGroupName, String serverName, String migrationName, MigrationResourceForPatch parameters) Updates an existing migration.
-
Method Details
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationInner>> createWithResponseAsync(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters) Creates a new migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required for creating a migration.- Returns:
- properties 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.
-
createAsync
Mono<MigrationInner> createAsync(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters) Creates a new migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required for creating a migration.- Returns:
- properties 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.
-
createWithResponse
com.azure.core.http.rest.Response<MigrationInner> createWithResponse(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters, com.azure.core.util.Context context) Creates a new migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required for creating a migration.context- The context to associate with this operation.- Returns:
- properties 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.
-
create
MigrationInner create(String resourceGroupName, String serverName, String migrationName, MigrationInner parameters) Creates a new migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required for creating a migration.- Returns:
- properties 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationInner>> getWithResponseAsync(String resourceGroupName, String serverName, String migrationName) Gets information about a migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.- Returns:
- information about 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
Gets information about a migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.- Returns:
- information about 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<MigrationInner> getWithResponse(String resourceGroupName, String serverName, String migrationName, com.azure.core.util.Context context) Gets information about a migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.context- The context to associate with this operation.- Returns:
- information about 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
Gets information about a migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.- Returns:
- information about 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<MigrationInner>> updateWithResponseAsync(String resourceGroupName, String serverName, 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:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required to update an existing migration.- Returns:
- properties 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.
-
updateAsync
Mono<MigrationInner> updateAsync(String resourceGroupName, String serverName, 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:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required to update an existing migration.- Returns:
- properties 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.
-
updateWithResponse
com.azure.core.http.rest.Response<MigrationInner> updateWithResponse(String resourceGroupName, String serverName, 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:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required to update an existing migration.context- The context to associate with this operation.- Returns:
- properties 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.
-
update
MigrationInner update(String resourceGroupName, String serverName, 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:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.parameters- Parameters required to update an existing migration.- Returns:
- properties 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.
-
cancelWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationInner>> cancelWithResponseAsync(String resourceGroupName, String serverName, String migrationName) Cancels an active migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.- Returns:
- properties 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.
-
cancelAsync
Cancels an active migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.- Returns:
- properties 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.
-
cancelWithResponse
com.azure.core.http.rest.Response<MigrationInner> cancelWithResponse(String resourceGroupName, String serverName, String migrationName, com.azure.core.util.Context context) Cancels an active migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.context- The context to associate with this operation.- Returns:
- properties 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.
-
cancel
Cancels an active migration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationName- Name of migration.- Returns:
- properties 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.
-
listByTargetServerAsync
com.azure.core.http.rest.PagedFlux<MigrationInner> listByTargetServerAsync(String resourceGroupName, String serverName, MigrationListFilter migrationListFilter) Lists all migrations of a target flexible server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationListFilter- Migration list filter. Indicates if the request should retrieve only active migrations or all migrations. Defaults to Active.- Returns:
- list of migrations 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<MigrationInner> listByTargetServerAsync(String resourceGroupName, String serverName) Lists all migrations of a target flexible server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of migrations 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<MigrationInner> listByTargetServer(String resourceGroupName, String serverName) Lists all migrations of a target flexible server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of migrations 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<MigrationInner> listByTargetServer(String resourceGroupName, String serverName, MigrationListFilter migrationListFilter, com.azure.core.util.Context context) Lists all migrations of a target flexible server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.migrationListFilter- Migration list filter. Indicates if the request should retrieve only active migrations or all migrations. Defaults to Active.context- The context to associate with this operation.- Returns:
- list of migrations 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.
-
checkNameAvailabilityWithResponseAsync
Mono<com.azure.core.http.rest.Response<MigrationNameAvailabilityInner>> checkNameAvailabilityWithResponseAsync(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters) Check the validity and availability of the given name, to assign it to a new migration. Checks if a proposed migration name is valid and available.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.parameters- Parameters required to check if a migration name is valid and available.- Returns:
- availability of a migration name 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.
-
checkNameAvailabilityAsync
Mono<MigrationNameAvailabilityInner> checkNameAvailabilityAsync(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters) Check the validity and availability of the given name, to assign it to a new migration. Checks if a proposed migration name is valid and available.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.parameters- Parameters required to check if a migration name is valid and available.- Returns:
- availability of a migration name 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.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<MigrationNameAvailabilityInner> checkNameAvailabilityWithResponse(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters, com.azure.core.util.Context context) Check the validity and availability of the given name, to assign it to a new migration. Checks if a proposed migration name is valid and available.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.parameters- Parameters required to check if a migration name is valid and available.context- The context to associate with this operation.- Returns:
- availability of a migration name 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.
-
checkNameAvailability
MigrationNameAvailabilityInner checkNameAvailability(String resourceGroupName, String serverName, MigrationNameAvailabilityInner parameters) Check the validity and availability of the given name, to assign it to a new migration. Checks if a proposed migration name is valid and available.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.parameters- Parameters required to check if a migration name is valid and available.- Returns:
- availability of a migration name.
- 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.
-