mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Exposing Azure HTTP requests method in Azurecore extension for external consumption (#14135)
* Exposing azure HTTP request in azurecore Moving migration specific request from azurecore to migration Created a migrations typing file * Deleting the typings file in sql migration * Fixed typos in comments * Adding default host for azure https requests * Fixed operator in service url modification * Changed path and host logic * Made chagned requested in the PR * Fixed variable names * Adding / check for path. * Changing error code check * Fixed status logic in azure rest request Fixed comment logic Converting error array to string while throwing * Fixed status check * Fixed typos and cleaning up
This commit is contained in:
@@ -196,29 +196,14 @@ export async function activate(context: vscode.ExtensionContext): Promise<azurec
|
||||
ignoreErrors: boolean): Promise<azurecore.GetFileSharesResult> {
|
||||
return azureResourceUtils.getFileShares(account, subscription, storageAccount, ignoreErrors);
|
||||
},
|
||||
getMigrationController(account: azdata.Account,
|
||||
makeAzureRestRequest(account: azdata.Account,
|
||||
subscription: azureResource.AzureResourceSubscription,
|
||||
resourceGroupName: string,
|
||||
regionName: string,
|
||||
controllerName: string,
|
||||
ignoreErrors: boolean): Promise<azurecore.GetMigrationControllerResult> {
|
||||
return azureResourceUtils.getMigrationControllers(account, subscription, resourceGroupName, regionName, controllerName, ignoreErrors);
|
||||
},
|
||||
createMigrationController(account: azdata.Account,
|
||||
subscription: azureResource.AzureResourceSubscription,
|
||||
resourceGroupName: string,
|
||||
regionName: string,
|
||||
controllerName: string,
|
||||
ignoreErrors: boolean): Promise<azurecore.CreateMigrationControllerResult> {
|
||||
return azureResourceUtils.createMigrationController(account, subscription, resourceGroupName, regionName, controllerName, ignoreErrors);
|
||||
},
|
||||
getMigrationControllerAuthKeys(account: azdata.Account,
|
||||
subscription: azureResource.AzureResourceSubscription,
|
||||
resourceGroupName: string,
|
||||
regionName: string,
|
||||
controllerName: string,
|
||||
ignoreErrors: boolean): Promise<azurecore.GetMigrationControllerAuthKeysResult> {
|
||||
return azureResourceUtils.getMigrationControllerAuthKeys(account, subscription, resourceGroupName, regionName, controllerName, ignoreErrors);
|
||||
path: string,
|
||||
requestType: azurecore.HttpRequestMethod,
|
||||
requestBody: any,
|
||||
ignoreErrors: boolean,
|
||||
host: string = 'https://management.azure.com'): Promise<azurecore.AzureRestResponse> {
|
||||
return azureResourceUtils.makeHttpRequest(account, subscription, path, requestType, requestBody, ignoreErrors, host);
|
||||
},
|
||||
getRegionDisplayName: utils.getRegionDisplayName,
|
||||
runGraphQuery<T extends azureResource.AzureGraphResource>(account: azdata.Account,
|
||||
|
||||
Reference in New Issue
Block a user