mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Added SQL MI tile and sub resource types to resource deployment (#14043)
* Made azure arc as resourcesubtype Added new azure arc resource type Added support for different eula statement for different subtypes Consolidated getSelectedOption * Fixed some PR based comments * Fixed more pr comments * Fixed the error in unit test by deep copying extension resourceTypes (to keep the original one intact) * Fixed property name 'agreement' to 'agreements' * Cloning subresourceTypes
This commit is contained in:
@@ -18,17 +18,35 @@ export interface ResourceType {
|
||||
icon: { light: string; dark: string } | string;
|
||||
options: ResourceTypeOption[];
|
||||
providers: DeploymentProvider[];
|
||||
agreement?: AgreementInfo;
|
||||
agreements?: AgreementInfo[];
|
||||
displayIndex?: number;
|
||||
okButtonText?: OkButtonTextValue[];
|
||||
getOkButtonText(selectedOptions: { option: string, value: string }[]): string | undefined;
|
||||
getProvider(selectedOptions: { option: string, value: string }[]): DeploymentProvider | undefined;
|
||||
getAgreementInfo(selectedOptions: { option: string, value: string }[]): AgreementInfo | undefined;
|
||||
getHelpText(selectedOption: { option: string, value: string }[]): string | undefined;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export interface ResourceSubType {
|
||||
/**
|
||||
* The name should match the name in Resource Type
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The option name should have a matching name in ResourceType.options
|
||||
*/
|
||||
options: ResourceTypeOption[];
|
||||
tags?: string[];
|
||||
provider: DeploymentProvider;
|
||||
okButtonText?: OkButtonTextValue;
|
||||
agreement?: AgreementInfo;
|
||||
}
|
||||
|
||||
export interface AgreementInfo {
|
||||
template: string;
|
||||
links: azdata.LinkArea[];
|
||||
when: string;
|
||||
}
|
||||
|
||||
export interface ResourceTypeOption {
|
||||
|
||||
Reference in New Issue
Block a user