Interface Migrations
public interface Migrations
Resource collection API of Migrations.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MigrationResource resource.voiddelete(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Deletes a migration.voiddeleteById(String id) Deletes a migration.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context) 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.get(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName) Gets details of a migration.Gets details of a migration.com.azure.core.http.rest.Response<MigrationResource>getByIdWithResponse(String id, com.azure.core.util.Context context) Gets details of a migration.com.azure.core.http.rest.Response<MigrationResource>getWithResponse(String subscriptionId, String resourceGroupName, String targetDbServerName, String migrationName, com.azure.core.util.Context context) Gets details of a migration.com.azure.core.http.rest.PagedIterable<MigrationResource>listByTargetServer(String subscriptionId, String resourceGroupName, String targetDbServerName) List all the migrations on a given target server.com.azure.core.http.rest.PagedIterable<MigrationResource>listByTargetServer(String subscriptionId, String resourceGroupName, String targetDbServerName, MigrationListFilter migrationListFilter, com.azure.core.util.Context context) List all the migrations on a given target server.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<MigrationResource> 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
MigrationResource 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.
-
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.
-
listByTargetServer
com.azure.core.http.rest.PagedIterable<MigrationResource> 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<MigrationResource> 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.
-
getById
Gets details of a migration.- Parameters:
id- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<MigrationResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets details of a migration.- Parameters:
id- the resource ID.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.
-
deleteById
Deletes a migration.- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a migration.- Parameters:
id- the resource ID.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.
-
define
Begins definition for a new MigrationResource resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new MigrationResource definition.
-