mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
* Added customlocation, location, resource group, and connection mode to controllerinfo. Updated SQL MIAA create notebook with direct mode params. * Removed annotations from metadata in postgres test file. * Only parse the customlocation if the connection mode is direct. Co-authored-by: Candice Ye <canye@microsoft.com>
57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
declare module 'arc' {
|
|
|
|
/**
|
|
* Covers defining what the arc extension exports to other extensions
|
|
*
|
|
* IMPORTANT: THIS IS NOT A HARD DEFINITION unlike vscode; therefore no enums or classes should be defined here
|
|
* (const enums get evaluated when typescript -> javascript so those are fine)
|
|
*/
|
|
export const enum extension {
|
|
name = 'Microsoft.arc'
|
|
}
|
|
export const enum ResourceType {
|
|
dataControllers = 'dataControllers',
|
|
postgresInstances = 'postgresInstances',
|
|
sqlManagedInstances = 'sqlManagedInstances'
|
|
}
|
|
|
|
export type MiaaResourceInfo = ResourceInfo & {
|
|
userName?: string
|
|
};
|
|
|
|
export type PGResourceInfo = ResourceInfo & {
|
|
userName?: string
|
|
};
|
|
|
|
export type ResourceInfo = {
|
|
name: string,
|
|
resourceType: ResourceType | string,
|
|
connectionId?: string
|
|
};
|
|
|
|
export type ControllerInfo = {
|
|
id: string,
|
|
kubeConfigFilePath: string,
|
|
kubeClusterContext: string,
|
|
namespace: string,
|
|
name: string,
|
|
resources: ResourceInfo[],
|
|
resourceGroup: string,
|
|
connectionMode: string,
|
|
location: string,
|
|
customLocation: string
|
|
};
|
|
|
|
export interface DataController {
|
|
label: string,
|
|
info: ControllerInfo
|
|
}
|
|
export interface IExtension {
|
|
getRegisteredDataControllers(): Promise<DataController[]>;
|
|
}
|
|
}
|