mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
ML - dashboard icons and links (#10153)
* ML - dashboard icons and links
This commit is contained in:
28
extensions/machine-learning/src/typings/azure-resource.d.ts
vendored
Normal file
28
extensions/machine-learning/src/typings/azure-resource.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Account } from 'azdata';
|
||||
import * as msRest from '@azure/ms-rest-js';
|
||||
|
||||
export namespace azureResource {
|
||||
|
||||
export interface AzureResource {
|
||||
name: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface AzureResourceSubscription extends AzureResource {
|
||||
}
|
||||
|
||||
export interface AzureResourceResourceGroup extends AzureResource {
|
||||
}
|
||||
|
||||
export interface IAzureResourceService<T extends AzureResource> {
|
||||
getResources(subscription: AzureResourceSubscription, credential: msRest.ServiceClientCredentials): Promise<T[]>;
|
||||
}
|
||||
|
||||
export type GetSubscriptionsResult = { subscriptions: AzureResourceSubscription[], errors: Error[] };
|
||||
export type GetResourceGroupsResult = { resourceGroups: AzureResourceResourceGroup[], errors: Error[] };
|
||||
}
|
||||
106
extensions/machine-learning/src/typings/notebookServices.d.ts
vendored
Normal file
106
extensions/machine-learning/src/typings/notebookServices.d.ts
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as azdata from 'azdata';
|
||||
|
||||
/**
|
||||
* The API provided by this extension.
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export interface IExtensionApi {
|
||||
getJupyterController(): IJupyterController;
|
||||
registerPackageManager(providerId: string, packageManagerProvider: IPackageManageProvider): void
|
||||
getPackageManagers(): Map<string, IPackageManageProvider>
|
||||
}
|
||||
|
||||
export interface IJupyterController {
|
||||
jupyterInstallation: IJupyterServerInstallation;
|
||||
}
|
||||
|
||||
export interface IJupyterServerInstallation {
|
||||
installPipPackages(packages: IPackageDetails[], useMinVersion: boolean): Promise<void>;
|
||||
uninstallPipPackages(packages: IPackageDetails[]): Promise<void>;
|
||||
installCondaPackages(packages: IPackageDetails[], useMinVersion: boolean): Promise<void>;
|
||||
uninstallCondaPackages(packages: IPackageDetails[]): Promise<void>;
|
||||
getInstalledPipPackages(): Promise<IPackageDetails[]>;
|
||||
pythonExecutable: string;
|
||||
pythonInstallationPath: string;
|
||||
executeBufferedCommand(command: string): Promise<string>;
|
||||
executeStreamedCommand(command: string): Promise<void>;
|
||||
installPythonPackage(backgroundOperation: azdata.BackgroundOperation, usingExistingPython: boolean, pythonInstallationPath: string, outputChannel: vscode.OutputChannel): Promise<void>;
|
||||
}
|
||||
|
||||
|
||||
export interface IPackageDetails {
|
||||
name: string;
|
||||
version: string;
|
||||
}
|
||||
|
||||
export interface IPackageTarget {
|
||||
location: string;
|
||||
packageType: string;
|
||||
}
|
||||
|
||||
export interface IPackageOverview {
|
||||
name: string;
|
||||
versions: string[];
|
||||
summary: string;
|
||||
}
|
||||
|
||||
export interface IPackageLocation {
|
||||
name: string;
|
||||
displayName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Package manage provider interface
|
||||
*/
|
||||
export interface IPackageManageProvider {
|
||||
/**
|
||||
* Provider id
|
||||
*/
|
||||
providerId: string;
|
||||
|
||||
/**
|
||||
* package target
|
||||
*/
|
||||
packageTarget: IPackageTarget;
|
||||
|
||||
/**
|
||||
* Returns list of installed packages
|
||||
*/
|
||||
listPackages(location?: string): Promise<IPackageDetails[]>;
|
||||
|
||||
/**
|
||||
* Installs give packages
|
||||
* @param package Packages to install
|
||||
* @param useMinVersion if true, minimal version will be used
|
||||
*/
|
||||
installPackages(package: IPackageDetails[], useMinVersion: boolean, location?: string): Promise<void>;
|
||||
|
||||
/**
|
||||
* Uninstalls given packages
|
||||
* @param package package to uninstall
|
||||
*/
|
||||
uninstallPackages(package: IPackageDetails[], location?: string): Promise<void>;
|
||||
|
||||
/**
|
||||
* Returns true if the provider can be used in current context
|
||||
*/
|
||||
canUseProvider(): Promise<boolean>;
|
||||
|
||||
/**
|
||||
* Returns location title
|
||||
*/
|
||||
getLocations(): Promise<IPackageLocation[]>;
|
||||
|
||||
/**
|
||||
* Returns Package Overview
|
||||
* @param packageName package name
|
||||
*/
|
||||
getPackageOverview(packageName: string): Promise<IPackageOverview>;
|
||||
}
|
||||
9
extensions/machine-learning/src/typings/ref.d.ts
vendored
Normal file
9
extensions/machine-learning/src/typings/ref.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/// <reference path='../../../../src/vs/vscode.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.proposed.d.ts'/>
|
||||
/// <reference types='@types/node'/>
|
||||
Reference in New Issue
Block a user