mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 18:46:36 -05:00
* Rebase from main branch * Made mssql a module * remove rpc specific stuff * Added create sas RPC call * Backup to url works now * Moved createSas RPC to the BlobService * Relocated createSas RPC from sql-dataprotocolclient to the mssql * After rebase * Removed duplicate symbol * Renamed Blob to AzureBlob and relocated CreateSasResponse to mssql extension * Removed AzureBlobProvider, removed AzureBlobService feature * renamed blob to azureblob, converted thenable to promise * Simplify API * fixes * docs update, blob to azureblob update * bumped sts version * Fix config Co-authored-by: chgagnon <chgagnon@microsoft.com>
25 lines
1.4 KiB
TypeScript
25 lines
1.4 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
|
import type * as mssql from 'mssql';
|
|
|
|
export const SERVICE_ID = 'azureBlobService';
|
|
|
|
export const IAzureBlobService = createDecorator<IAzureBlobService>(SERVICE_ID);
|
|
|
|
export interface IAzureBlobService {
|
|
_serviceBrand: undefined;
|
|
/**
|
|
* Create a shared access signature for the specified blob container URI and saves it to the server specified with the connectionUri
|
|
* @param connectionUri The connection URI of the server to save the SAS to
|
|
* @param blobContainerUri The blob container URI to create the SAS for
|
|
* @param blobStorageKey The key used to access the storage account
|
|
* @param storageAccountName The name of the storage account the SAS will be created for
|
|
* @param expirationDate The expiration date of the SAS
|
|
* @returns A created shared access signature token
|
|
*/
|
|
createSas(connectionUri: string, blobContainerUri: string, blobStorageKey: string, storageAccountName: string, expirationDate: string): Promise<mssql.CreateSasResponse>;
|
|
}
|