sql db deployments into main (WIP) (#12767)

* added my resource-deployment

* changed notebook message

* Add more advanced properties for spark job submission dialog (#12732)

* Add more advanced properties for spark job submission dialog

* Add queue

* Revert "Add more advanced properties for spark job submission dialog (#12732)"

This reverts commit e6a7e86ddbe70b39660098a8ebd9ded2a1c5530c.

* Changes made for simplification

* changed error messages

* tags added

* tags removed due to redundancy

* Update package.json

* Update resourceTypePickerDialog.ts

* changes based on feedback

* activaterealtimevalidation removed

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
Alex Ma
2020-10-09 15:46:41 -07:00
committed by GitHub
parent ef8e86a78d
commit 0f6bb683d6
13 changed files with 1821 additions and 14 deletions

View File

@@ -19,7 +19,8 @@ export interface ResourceType {
providers: DeploymentProvider[];
agreement?: AgreementInfo;
displayIndex?: number;
okButtonText?: string;
okButtonText?: OkButtonTextValue[];
getOkButtonText(selectedOptions: { option: string, value: string }[]): string | undefined;
getProvider(selectedOptions: { option: string, value: string }[]): DeploymentProvider | undefined;
tags?: string[];
}
@@ -40,6 +41,11 @@ export interface ResourceTypeOptionValue {
displayName: string;
}
export interface OkButtonTextValue {
value: string;
when: string;
}
export interface DialogDeploymentProvider extends DeploymentProviderBase {
dialog: DialogInfo;
}
@@ -72,6 +78,10 @@ export interface AzureSQLVMDeploymentProvider extends DeploymentProviderBase {
azureSQLVMWizard: AzureSQLVMWizardInfo;
}
export interface AzureSQLDBDeploymentProvider extends DeploymentProviderBase {
azureSQLDBWizard: AzureSQLDBWizardInfo;
}
export function instanceOfDialogDeploymentProvider(obj: any): obj is DialogDeploymentProvider {
return obj && 'dialog' in obj;
}
@@ -104,12 +114,16 @@ export function instanceOfAzureSQLVMDeploymentProvider(obj: any): obj is AzureSQ
return obj && 'azureSQLVMWizard' in obj;
}
export function instanceOfAzureSQLDBDeploymentProvider(obj: any): obj is AzureSQLDBDeploymentProvider {
return obj && 'azureSQLDBWizard' in obj;
}
export interface DeploymentProviderBase {
requiredTools: ToolRequirementInfo[];
when: string;
}
export type DeploymentProvider = DialogDeploymentProvider | BdcWizardDeploymentProvider | NotebookWizardDeploymentProvider | NotebookDeploymentProvider | WebPageDeploymentProvider | DownloadDeploymentProvider | CommandDeploymentProvider | AzureSQLVMDeploymentProvider;
export type DeploymentProvider = DialogDeploymentProvider | BdcWizardDeploymentProvider | NotebookWizardDeploymentProvider | NotebookDeploymentProvider | WebPageDeploymentProvider | DownloadDeploymentProvider | CommandDeploymentProvider | AzureSQLVMDeploymentProvider | AzureSQLDBDeploymentProvider;
export interface BdcWizardInfo {
notebook: string | NotebookPathInfo;
@@ -182,6 +196,10 @@ export interface AzureSQLVMWizardInfo {
notebook: string | NotebookPathInfo;
}
export interface AzureSQLDBWizardInfo {
notebook: string | NotebookPathInfo;
}
export type DialogInfo = NotebookBasedDialogInfo | CommandBasedDialogInfo;
export function instanceOfNotebookBasedDialogInfo(obj: any): obj is NotebookBasedDialogInfo {