Files
azuredatastudio/samples/sample-resource-deployment/package.json
Charles Gagnon fb05c4304e Switch to 1DS endpoint (#20769)
* Update to 1DS client

* remove product config

* Update ai keys

* use our own event prefix

* re-enable telemetry

* Update distro and remove default enableTelemetry

* distro

* Remove asimovKey references

* add comment

* distro

* distro

* distro

* add files that break precommit hook

* cleanup/fixes

* distro

* distro + event prefix update

* distro

* more
2022-11-03 08:45:06 -07:00

790 lines
30 KiB
JSON

{
"name": "sample-resource-deployment",
"displayName": "%extension-displayName%",
"description": "%extension-description%",
"version": "0.0.1",
"publisher": "Contoso",
"preview": true,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
"icon": "images/sqlserver.png",
"aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380",
"engines": {
"vscode": "*",
"azdata": ">=1.19.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:azdata.resource.deploy"
],
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"extensionDependencies": [
"microsoft.mssql",
"microsoft.notebook",
"microsoft.resource-deployment"
],
"main": "./out/extension",
"scripts": {
"compile": "node node_modules/typescript/bin/tsc -p ./tsconfig.json",
"watch": "node node_modules/typescript/bin/tsc --watch -p ./tsconfig.json"
},
"contributes": {
"resourceDeploymentTypes": [
{
"name": "validations-wizard",
"displayName": "%validation.wizard.display.name%",
"description": "%validation.wizard.description%",
"platforms": "*",
"icon": {
"light": "./images/book.svg",
"dark": "./images/book_inverse.svg"
},
"providers": [
{
"name": "validations-wizard",
"notebookWizard": {
"notebook": "./notebooks/deploy-x-data-service-1.ipynb",
"runNotebook": false,
"codeCellInsertionPosition": 1,
"actionText": "%deploy.wizard.action%",
"title": "%wizard.new.wizard.title%",
"name": "wizard.new.wizard",
"labelPosition": "left",
"generateSummaryPage": false,
"pages": [
{
"title": "%wizard.select.cluster.title%",
"sections": [
{
"fields": [
{
"label": "%cores-limit.label%",
"description": "%cores-limit.description%",
"variableName": "AZDATA_NB_VAR_CORES_LIMIT",
"type": "number",
"defaultValue": 5,
"required": false,
"validations": [
{
"type": "is_integer",
"description": "%cores.limit.should.be.integer%"
},
{
"type": ">=",
"target": "AZDATA_NB_VAR_CORES_REQUEST",
"description": "%cores.limit.greater.than.or.equal.to.requested.cores%"
}
]
},
{
"label": "%cores-request.label%",
"description": "%cores-request.description%",
"variableName": "AZDATA_NB_VAR_CORES_REQUEST",
"type": "number",
"defaultValue": 2,
"required": false,
"validations": [
{
"type": "is_integer",
"description": "%requested.cores.should.be.integer%"
},
{
"type": "<=",
"target": "AZDATA_NB_VAR_CORES_LIMIT",
"description": "%requested.cores.less.than.or.equal.to.cores.limit%"
}
]
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "kubectl"
}
],
"when": true
}
],
"agreements": [
{
"template": "%wizard.data.controller.agreement%",
"links": [
{
"text": "%contoso.agreement.privacy.statement%",
"url": "https://go.contoso.com/fwlink/?LinkId=853010"
},
{
"text": "%wizard.agreement.contosoCmd.eula%",
"url": "https://aka.ms/eula-contosoCmd-en"
}
],
"when": true
}
]
},
{
"name": "sample-deployment-type",
"displayName": "%resource.type.sample.display.name%",
"description": "%resource.type.sample.description%",
"platforms": "*",
"icon": {
"light": "./images/book.svg",
"dark": "./images/book_inverse.svg"
},
"options": [
{
"name": "sample-type",
"displayName": "%option-sample-type%",
"values": [
{
"name": "wizard",
"displayName": "%option-wizard%"
},
{
"name": "value-provider",
"displayName": "%option-value-provider%"
},
{
"name": "options",
"displayName": "%option-options%"
}
]
}
],
"providers": [
{
"name": "test-wizard",
"notebookWizard": {
"notebook": "./notebooks/deploy-x-data-service-1.ipynb",
"runNotebook": false,
"codeCellInsertionPosition": 1,
"actionText": "%deploy.wizard.action%",
"title": "%wizard.new.wizard.title%",
"name": "wizard.new.wizard",
"labelPosition": "left",
"generateSummaryPage": false,
"pages": [
{
"title": "%wizard.select.cluster.title%",
"sections": [
{
"fields": [
{
"type": "kube_cluster_context_picker",
"label": "%wizard.kube.cluster.context%",
"required": true,
"inputWidth": "350px",
"variableName": "AZDATA_NB_VAR_CLUSTER_CONTEXT",
"configFileVariableName": "AZDATA_NB_VAR_CONFIG_FILE"
}
]
}
]
},
{
"title": "%wizard.cluster.config.profile.title%",
"sections": [
{
"fields": [
{
"type": "readonly_text",
"label": "%wizard.project.details.description%",
"labelWidth": "600px"
},
{
"type": "options",
"label": "%wizard.cluster.config.profile%",
"required": true,
"variableName": "AZDATA_NB_VAR_PROFILE",
"editable": false,
"options": {
"values": [
"aks-dev-test",
"aks-dev-test-ha",
"aks-dev-test",
"aks-private-preview",
"kubeadm-dev-test",
"kubeadm-private-preview"
],
"defaultValue": "aks-dev-test",
"optionsType": "radio"
}
},
{
"type": "options",
"label": "%wizard.data.controllers%",
"required": true,
"variableName": "AZDATA_NB_VAR_CONTROLLER",
"editable": false,
"options": {
"source": {
"type": "ArcControllersOptionsSource",
"variableNames": {
"endpoint": "AZDATA_NB_VAR_CONTROLLER_ENDPOINT",
"username": "AZDATA_NB_VAR_CONTROLLER_USERNAME",
"password": "AZDATA_NB_VAR_CONTROLLER_PASSWORD"
}
},
"values": [
"ignored1",
"ignored2"
],
"optionsType": "dropdown"
}
},
{
"label": "%wizard.dropdown.options.field%",
"variableName": "AZDATA_NB_VAR_DROPDOWN_OPTIONS",
"type": "options",
"options": {
"values": [
"1",
"2",
"3"
],
"defaultValue": "2",
"optionsType": "dropdown"
}
}
]
}
]
},
{
"title": "%wizard.data.controller.create.summary.title%",
"isSummaryPage": true,
"fieldHeight": "16px",
"sections": [
{
"title": "",
"collapsible": false,
"fieldWidth": "200px",
"fieldHeight": "12px",
"spaceBetweenFields": 0,
"rows": [
{
"items": [
{
"items": [
{
"label": "%wizard.summary.data.controller%",
"type": "readonly_text",
"enabled": true,
"labelWidth": "185px"
}
]
},
{
"items": [
{
"label": "%wizard.summary.estimated.cost.per.month%",
"type": "readonly_text",
"enabled": true,
"labelWidth": "190px",
"labelCSSStyles": {
"fontWeight": "Bold"
}
}
]
}
]
},
{
"items": [
{
"items": [
{
"label": "%wizard.summary.by.contoso%",
"type": "readonly_text",
"labelWidth": "185px"
}
]
},
{
"items": [
{
"label": "%wizard.summary.free%",
"type": "readonly_text",
"enabled": true,
"defaultValue": "",
"labelWidth": "100px"
}
]
}
]
},
{
"items": [
{
"items": [
{
"label": "{0}",
"type": "readonly_text",
"enabled": true,
"labelCSSStyles": {
"color": "#0078D4"
},
"labelWidth": "67px",
"links": [
{
"text": "%wizard.summary.terms.of.use%",
"url": "https://aka.ms/eula-azdata-en"
}
]
},
{
"label": "|",
"type": "readonly_text",
"enabled": true,
"defaultValue": "",
"labelWidth": "4px",
"fieldWidth": "6px"
},
{
"label": "{0}",
"type": "readonly_text",
"enabled": true,
"labelCSSStyles": {
"color": "#0078D4"
},
"labelWidth": "102px",
"links": [
{
"text": "%wizard.summary.terms.privacy.policy%",
"url": "https://go.contoso.com/fwlink/?LinkId=853010"
}
]
}
]
}
]
}
]
},
{
"title": "%wizard.summary.terms%",
"fieldHeight": "88px",
"fields": [
{
"label": "%wizard.summary.terms.description%",
"type": "readonly_text",
"enabled": true,
"labelWidth": "750px"
}
]
},
{
"title": "%wizard.summary.kubernetes%",
"fields": [
{
"label": "%wizard.summary.kube.config.file.path%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_CONFIG_FILE)"
},
{
"label": "%wizard.summary.cluster.context%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_CLUSTER_CONTEXT)"
},
{
"label": "%wizard.summary.profile%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_PROFILE)"
},
{
"label": "%wizard.dropdown.options.field%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_DROPDOWN_OPTIONS)"
},
{
"label": "%wizard.summary.controller%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_CONTROLLER)"
},
{
"label": "%wizard.summary.controller.endpoint%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_CONTROLLER_ENDPOINT)"
},
{
"label": "%wizard.summary.controller.username%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_CONTROLLER_USERNAME)"
},
{
"label": "%wizard.summary.controller.password%",
"type": "readonly_text",
"isEvaluated": true,
"defaultValue": "$(AZDATA_NB_VAR_CONTROLLER_PASSWORD)"
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "kubectl"
}
],
"when": "sample-type=wizard"
},
{
"name": "sample-value-provider",
"notebookWizard": {
"notebook": "./notebooks/empty-notebook.ipynb",
"codeCellInsertionPosition": 1,
"actionText": "%deploy.wizard.action%",
"title": "%sample.value-provider.title%",
"name": "sample.value-provider",
"labelPosition": "left",
"generateSummaryPage": false,
"pages": [
{
"title": "%sample.value-provider.single.title%",
"sections": [
{
"fields": [
{
"type": "readonly_text",
"label": "%sample.value-provider.single.field.label%",
"labelWidth": "600px",
"isEvaluated": true,
"defaultValue": "",
"valueProvider": {
"providerId": "sample-resource-deployment.sample-value-provider",
"triggerFields": [
"AZDATA_NB_VAR_SAMPLE_VALUE_PROVIDER_SINGLE_NAME"
]
}
},
{
"label": "%sample.value-provider.trigger-name.label%",
"type": "text",
"variableName": "AZDATA_NB_VAR_SAMPLE_VALUE_PROVIDER_SINGLE_NAME",
"defaultValue": "<Name>",
"required": true
}
]
}
]
},
{
"title": "%sample.value-provider.multiple.title%",
"sections": [
{
"fields": [
{
"type": "readonly_text",
"label": "%sample.value-provider.multiple.field.label%",
"labelWidth": "600px",
"defaultValue": "",
"valueProvider": {
"providerId": "sample-resource-deployment.sample-value-provider",
"triggerFields": [
"AZDATA_NB_VAR_SAMPLE_VALUE_PROVIDER_MULTIPLE_NAME",
"AZDATA_NB_VAR_SAMPLE_VALUE_PROVIDER_MULTIPLE_PLACE"
]
}
},
{
"label": "%sample.value-provider.trigger-name.label%",
"type": "text",
"variableName": "AZDATA_NB_VAR_SAMPLE_VALUE_PROVIDER_MULTIPLE_NAME",
"defaultValue": "<Name>",
"required": true
},
{
"type": "options",
"label": "%sample.value-provider.trigger-place.label%",
"required": true,
"variableName": "AZDATA_NB_VAR_SAMPLE_VALUE_PROVIDER_MULTIPLE_PLACE",
"editable": true,
"defaultValue": "Seattle",
"options": [
"Seattle",
"Redmond",
"Bellevue"
]
}
]
}
]
}
]
},
"requiredTools": [ ],
"when": "sample-type=value-provider"
},
{
"name": "sample-options",
"notebookWizard": {
"notebook": "./notebooks/empty-notebook.ipynb",
"codeCellInsertionPosition": 1,
"actionText": "%deploy.wizard.action%",
"title": "%sample.options.title%",
"name": "sample.options",
"labelPosition": "left",
"generateSummaryPage": false,
"pages": [
{
"title": "%sample.options.title%",
"sections": [
{
"title": "%sample.options.stringarray.title%",
"collapsible": false,
"fields": [
{
"label": "%sample.options.stringarray.label%",
"description": "%sample.options.stringarray.description%",
"type": "options",
"variableName": "AZDATA_NB_VAR_SAMPLE_OPTIONS_STRINGARRAY",
"defaultValue": "String option 2",
"required": true,
"options": [
"String option 1",
"String option 2",
"%sample.options.value3.displayname%"
]
}
]
},
{
"title": "%sample.options.categoryvalue.title%",
"collapsible": false,
"fields": [
{
"label": "%sample.options.categoryvalue.label%",
"description": "%sample.options.categoryvalue.description%",
"type": "options",
"variableName": "AZDATA_NB_VAR_SAMPLE_OPTIONS_CATEGORYVALUE",
"defaultValue": "value2",
"required": true,
"options": [
{
"name": "value1",
"displayName": "%sample.options.value1.displayname%"
},
{
"name": "value2",
"displayName": "%sample.options.value2.displayname%"
},
{
"name": "value3",
"displayName": "%sample.options.value3.displayname%"
}
]
}
]
}
]
}
]
},
"requiredTools": [ ],
"when": "sample-type=options"
}
],
"agreements": [
{
"template": "%wizard.data.controller.agreement%",
"links": [
{
"text": "%contoso.agreement.privacy.statement%",
"url": "https://go.contoso.com/fwlink/?LinkId=853010"
},
{
"text": "%wizard.agreement.contosoCmd.eula%",
"url": "https://aka.ms/eula-contosoCmd-en"
}
],
"when": true
}
]
},
{
"name": "x-data-service",
"displayName": "%resource-type-display-name%",
"description": "%resource-type-description%",
"platforms": [
"darwin",
"win32",
"linux"
],
"icon": {
"light": "./images/book.svg",
"dark": "./images/book_inverse.svg"
},
"options": [
{
"name": "edition",
"displayName": "%option-display-name%",
"values": [
{
"name": "evaluation",
"displayName": "%option-value-name-1%"
},
{
"name": "standard",
"displayName": "%option-value-name-2%"
}
]
}
],
"providers": [
{
"name": "edition_evaluation",
"dialog": {
"notebook": "./notebooks/deploy-x-data-service-1.ipynb",
"title": "%dialog-title-1%",
"name": "dialog1",
"tabs": [
{
"title": "",
"sections": [
{
"title": "",
"fields": [
{
"label": "%text-field%",
"variableName": "AZDATA_NB_VAR_TEXT",
"type": "text",
"defaultValue": "abc",
"required": true
},
{
"label": "%password-field%",
"variableName": "AZDATA_NB_VAR_PASSWORD",
"type": "password",
"confirmationRequired": true,
"confirmationLabel": "%confirm-password%",
"defaultValue": "",
"required": true
},
{
"type": "kube_cluster_context_picker",
"label": "%kube.cluster.context%",
"required": true,
"inputWidth": "350px",
"variableName": "AZDATA_NB_VAR_CLUSTER_CONTEXT",
"configFileVariableName": "AZDATA_NB_VAR_CONFIG_FILE"
},
{
"label": "%number-field%",
"variableName": "AZDATA_NB_VAR_NUMBER",
"type": "number",
"defaultValue": "100",
"required": true,
"min": 1,
"max": 65535
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "kubectl"
}
],
"when": "edition=evaluation"
},
{
"name": "edition_standard",
"dialog": {
"notebook": "./notebooks/deploy-x-data-service-2.ipynb",
"title": "%dialog-title-2%",
"name": "dialog2",
"tabs": [
{
"title": "",
"sections": [
{
"title": "",
"fields": [
{
"label": "%text-field%",
"variableName": "AZDATA_NB_VAR_TEXT",
"type": "text",
"defaultValue": "abc",
"required": true
},
{
"label": "%password-field%",
"variableName": "AZDATA_NB_VAR_PASSWORD",
"type": "password",
"confirmationRequired": true,
"confirmationLabel": "%confirm-password%",
"defaultValue": "",
"required": true
},
{
"label": "%number-field%",
"variableName": "AZDATA_NB_VAR_NUMBER",
"type": "number",
"defaultValue": "100",
"required": true,
"min": 1,
"max": 65535
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "docker"
}
],
"when": "edition=standard"
}
],
"agreements": [
{
"template": "%agreement%",
"links": [
{
"text": "%agreement-1-name%",
"url": "https://www.contoso.com"
},
{
"text": "%agreement-2-name%",
"url": "https://portal.azure.com"
}
],
"when": "edition=standard"
}
]
}
]
},
"dependencies": {
},
"devDependencies": {
"@types/azdata": "^1.33.0",
"@types/vscode": "^1.61.0",
"@types/node": "14.x",
"typescript": "^4.4.0-dev.20210607"
}
}