mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-19 03:21:36 -04:00
34
extensions/mssql/src/mssql.d.ts
vendored
34
extensions/mssql/src/mssql.d.ts
vendored
@@ -45,6 +45,8 @@ declare module 'mssql' {
|
||||
readonly sqlMigration: ISqlMigrationService;
|
||||
|
||||
readonly azureBlob: IAzureBlobService;
|
||||
|
||||
readonly tdeMigration: ITdeMigrationService;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -831,4 +833,36 @@ declare module 'mssql' {
|
||||
completedStep: LoginMigrationStep;
|
||||
elapsedTime: string;
|
||||
}
|
||||
|
||||
// TDEMigration interfaces BEGIN -----------------------------------------------------------------------
|
||||
export interface TdeMigrationRequest {
|
||||
encryptedDatabases: string[];
|
||||
sourceSqlConnectionString: string;
|
||||
targetSubscriptionId: string;
|
||||
targetResourceGroupName: string;
|
||||
targetManagedInstanceName: string;
|
||||
}
|
||||
|
||||
export interface TdeMigrationEntryResult {
|
||||
dbName: string;
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface TdeMigrationResult {
|
||||
migrationStatuses: TdeMigrationEntryResult[];
|
||||
}
|
||||
|
||||
export interface ITdeMigrationService {
|
||||
migrateCertificate(
|
||||
encryptedDatabases: string[],
|
||||
sourceSqlConnectionString: string,
|
||||
targetSubscriptionId: string,
|
||||
targetResourceGroupName: string,
|
||||
targetManagedInstanceName: string,
|
||||
networkSharePath: string,
|
||||
accessToken: string,
|
||||
reportUpdate: (dbName: string, succeeded: boolean, message: string) => void): Promise<TdeMigrationResult>;
|
||||
}
|
||||
// TDEMigration interfaces END -----------------------------------------------------------------------
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user