mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Backup/Restore Managed Instance (#1428)
* Enabled backup to and restore from URL * Created RPC, but when process tries to load Microsoft.Azure.Storage.Blob.dll, it crashes * Added create shared access token * Code refactor * Minor changes * Changed RPC path * Moved createSas RPC to the newly created BlobService, fixed PR comments * Added sas expiration date parameter to the RPC * Added copyright headers * Removed ConnectionInstance property from BlobService * Removed unhelpful comment * Removed unused using statements * Changed copy/paste comments * Disposable objects fix * Small formatting fix * Changed backup to/restore from url supported device types * Added backup to url integration test * Created restore integration test. Test are now getting azure blob params from env variables instead of file. * Culture invariant epiration date param, fixed comment, and typo * Updated headers * PR comments fix * Changed supported device type logic * string localization fix * String formatting fix * build failure fix * Typo * Updated supported restore device types
This commit is contained in:
committed by
GitHub
parent
35e1782a3f
commit
881c335cdf
@@ -2589,6 +2589,30 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string NotSupportedCloudCreateSas
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.NotSupportedCloudCreateSas);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CreateSasForBlobContainerFailed
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.CreateSasForBlobContainerFailed);
|
||||
}
|
||||
}
|
||||
|
||||
public static string WriteSASCredentialToSqlServerFailed
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.WriteSASCredentialToSqlServerFailed);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CategoryLocal
|
||||
{
|
||||
get
|
||||
@@ -9192,6 +9216,11 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.EditDataIncorrectTable, tableName);
|
||||
}
|
||||
|
||||
public static string UnsupportedDeviceType(String deviceType, String engineEdition)
|
||||
{
|
||||
return Keys.GetString(Keys.UnsupportedDeviceType, deviceType, engineEdition);
|
||||
}
|
||||
|
||||
public static string CreateSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.CreateSessionFailed, error);
|
||||
@@ -10388,6 +10417,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string NoBackupsetsToRestore = "NoBackupsetsToRestore";
|
||||
|
||||
|
||||
public const string UnsupportedDeviceType = "UnsupportedDeviceType";
|
||||
|
||||
|
||||
public const string ScriptTaskName = "ScriptTaskName";
|
||||
|
||||
|
||||
@@ -10418,6 +10450,15 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string SessionAlreadyExists = "SessionAlreadyExists";
|
||||
|
||||
|
||||
public const string NotSupportedCloudCreateSas = "NotSupportedCloudCreateSas";
|
||||
|
||||
|
||||
public const string CreateSasForBlobContainerFailed = "CreateSasForBlobContainerFailed";
|
||||
|
||||
|
||||
public const string WriteSASCredentialToSqlServerFailed = "WriteSASCredentialToSqlServerFailed";
|
||||
|
||||
|
||||
public const string CategoryLocal = "CategoryLocal";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user