mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add azurecore HTTP typings (#22828)
* Add azurecore HTTP typings * undo + spelling fix
This commit is contained in:
@@ -230,14 +230,14 @@ export async function activate(context: vscode.ExtensionContext): Promise<azurec
|
||||
ignoreErrors: boolean): Promise<azurecore.CreateResourceGroupResult> {
|
||||
return azureResourceUtils.createResourceGroup(account, subscription, resourceGroupName, location, ignoreErrors);
|
||||
},
|
||||
makeAzureRestRequest(account: azurecore.AzureAccount,
|
||||
makeAzureRestRequest<B>(account: azurecore.AzureAccount,
|
||||
subscription: azurecore.azureResource.AzureResourceSubscription,
|
||||
path: string,
|
||||
requestType: azurecore.HttpRequestMethod,
|
||||
requestBody: any,
|
||||
ignoreErrors: boolean,
|
||||
host: string = 'https://management.azure.com',
|
||||
requestHeaders: { [key: string]: string } = {}): Promise<azurecore.AzureRestResponse> {
|
||||
requestHeaders: Record<string, string> = {}): Promise<azurecore.AzureRestResponse<B>> {
|
||||
return azureResourceUtils.makeHttpRequest(account, subscription, path, requestType, requestBody, ignoreErrors, host, requestHeaders);
|
||||
},
|
||||
getRegionDisplayName: utils.getRegionDisplayName,
|
||||
|
||||
Reference in New Issue
Block a user