Files
azuredatastudio/extensions/asde-deployment/package.json
Aasim Khan 280a9d20f9 Added categories and search based filtering to the resource dialog. (#12658)
* added filtering to the resource type along with a new component.

* -Added caching of cards
-Removed unused component props
-localized tags
-limited the scope of list items

* Made some changes in the PR

* - Added Iot Category to SQL edge
- Moved category names to constants
- Moved localization strings to localized constants
- Made filtering logic more concise
- Changed how category list is generated
--Category list can now be ordered
-Added back event generation for selectedCard

* Fixed bugs, and some additional changes
-Fixed radiogroup height to avoid the movement of options below it
-Restoring the focus back to the search and listview components
- Added focus behaviour for listview
- Fixed a typo in comment

* Made categories an Enum

* Added localized string

* localized category string
converted categories to enum.

* made the filtering logic more concise.

* returning string if no localized string formed
removed unnecessary returns

* fixed the filtering tag logic
resetting search when category is changed

* removing the iot tag from sql edge deployment

* made filtering logic more concise
made enum const

* added vscode list

* some cleanup

* Some PR changes
- Made PR camelcase
- added comments to SQL
- removed unnecessary export

* -Some PR related changes
-Removing unsupported style property
-scoping down css and removing unused ones.

* Fixed a comment text

* Fixed typings for listview event
2020-10-07 13:38:12 -07:00

601 lines
24 KiB
JSON

{
"name": "asde-deployment",
"displayName": "%extension-displayName%",
"description": "%extension-description%",
"version": "0.3.0",
"publisher": "Microsoft",
"preview": true,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
"icon": "images/extension.png",
"aiKey": "AIF-444c3af9-8e69-4462-ab49-4191e6ad1916",
"engines": {
"vscode": "*",
"azdata": "*"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"forceReload": true,
"contributes": {
"resourceDeploymentTypes": [
{
"name": "sql-edge",
"displayName": "%resource-type-sql-edge-display-name%",
"description": "%resource-type-sql-edge-description%",
"platforms": "*",
"icon": {
"light": "./images/sqldb_edge.svg",
"dark": "./images/sqldb_edge_inverse.svg"
},
"tags": ["Hybrid", "SQL Server"],
"options": [
{
"name": "type",
"displayName": "%sql-edge-type-display-name%",
"values": [
{
"name": "local",
"displayName": "%sql-edge-local-display-name%"
},
{
"name": "remote",
"displayName": "%sql-edge-remote-display-name%"
},
{
"name": "azure-create-new",
"displayName": "%sql-edge-azure-display-name%"
},
{
"name": "azure-single-device",
"displayName": "%sql-edge-azure-single-device-display-name%"
},
{
"name": "azure-multi-device",
"displayName": "%sql-edge-azure-multi-device-display-name%"
}
]
}
],
"providers": [
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-local.ipynb",
"title": "%sql-edge-local-title%",
"name": "sql-edge-local-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "",
"fields": [
{
"label": "%docker-container-name-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_CONTAINER_NAME",
"type": "datetime_text",
"defaultValue": "SQLEDGE-",
"required": true
},
{
"label": "%docker-sql-password-field%",
"variableName": "AZDATA_NB_VAR_SA_PASSWORD",
"type": "sql_password",
"userName": "sa",
"confirmationRequired": true,
"confirmationLabel": "%docker-confirm-sql-password-field%",
"defaultValue": "",
"required": true
},
{
"label": "%docker-sql-port-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_PORT",
"type": "number",
"defaultValue": "1433",
"required": true,
"min": 1,
"max": 65535
}
]
},
{
"title": "%docker-settings-section-title%",
"collapsible": true,
"collapsed": true,
"fields": [
{
"label": "%docker-registry-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REGISTRY",
"type": "text",
"defaultValue": "mcr.microsoft.com",
"required": true
},
{
"label": "%docker-repository-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REPOSITORY",
"type": "text",
"defaultValue": "azure-sql-edge",
"required": true
},
{
"label": "%docker-imagetag-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_IMAGETAG",
"type": "text",
"defaultValue": "latest",
"required": true
},
{
"label": "%docker-username-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_USERNAME",
"type": "text",
"defaultValue": "",
"required": false
},
{
"label": "%docker-password-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_PASSWORD",
"type": "password",
"defaultValue": "",
"required": false
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "docker"
}
],
"when": "type=local"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-remote.ipynb",
"title": "%sql-edge-remote-title%",
"name": "sql-edge-remote-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "",
"fields": [
{
"label": "%docker-container-name-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_CONTAINER_NAME",
"type": "datetime_text",
"defaultValue": "SQLEDGE-",
"required": true
},
{
"label": "%docker-sql-password-field%",
"variableName": "AZDATA_NB_VAR_SA_PASSWORD",
"type": "sql_password",
"userName": "sa",
"confirmationRequired": true,
"confirmationLabel": "%docker-confirm-sql-password-field%",
"defaultValue": "",
"required": true
},
{
"label": "%docker-sql-port-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_PORT",
"type": "number",
"defaultValue": "1433",
"required": true,
"min": 1,
"max": 65535
}
]
},
{
"title": "%remote-info-section-title%",
"collapsible": true,
"collapsed": false,
"fields": [
{
"label": "%edge-remote-target-field%",
"variableName": "AZDATA_NB_VAR_SSH_TARGET",
"type": "text",
"defaultValue": "",
"required": true
},
{
"label": "%edge-remote-username-field%",
"variableName": "AZDATA_NB_VAR_SSH_USERNAME",
"type": "text",
"defaultValue": "",
"required": true
},
{
"label": "%edge-remote-password-field%",
"variableName": "AZDATA_NB_VAR_SSH_PASSWORD",
"type": "password",
"defaultValue": "",
"required": true
}
]
},
{
"title": "%docker-settings-section-title%",
"collapsible": true,
"collapsed": true,
"fields": [
{
"label": "%docker-registry-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REGISTRY",
"type": "text",
"defaultValue": "mcr.microsoft.com",
"required": true
},
{
"label": "%docker-repository-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REPOSITORY",
"type": "text",
"defaultValue": "azure-sql-edge",
"required": true
},
{
"label": "%docker-imagetag-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_IMAGETAG",
"type": "text",
"defaultValue": "latest",
"required": true
},
{
"label": "%docker-username-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_USERNAME",
"type": "text",
"defaultValue": "",
"required": false
},
{
"label": "%docker-password-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_PASSWORD",
"type": "password",
"defaultValue": "",
"required": false
}
]
}
]
}
]
},
"requiredTools": [],
"when": "type=remote"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-azure.ipynb",
"title": "%sql-edge-azure-title%",
"name": "sql-edge-azure-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "%azure-info-section-title%",
"collapsible": true,
"fields": [
{
"subscriptionVariableName": "AZDATA_NB_VAR_ASDE_SUBSCRIPTIONID",
"resourceGroupVariableName": "AZDATA_NB_VAR_ASDE_RESOURCEGROUP",
"type": "azure_account",
"required": true,
"allowNewResourceGroup": true,
"newResourceGroupFlagVariableName": "AZDATA_NB_VAR_ASDE_NEW_RESOURCEGROUP",
"newResourceGroupNameVariableName": "AZDATA_NB_VAR_ASDE_NEW_RESOURCEGROUP_NAME"
},
{
"type": "azure_locations",
"label": "%azure_location%",
"defaultValue": "westus",
"required": true,
"locationVariableName": "AZDATA_NB_VAR_ASDE_AZURE_LOCATION",
"displayLocationVariableName": "AZDATA_NB_VAR_ASDE_AZURE_LOCATION_TEXT",
"locations": [
"australiaeast",
"australiasoutheast",
"brazilsouth",
"canadacentral",
"canadaeast",
"centralindia",
"centralus",
"eastasia",
"eastus",
"eastus2",
"francecentral",
"japaneast",
"japanwest",
"koreacentral",
"koreasouth",
"northcentralus",
"northeurope",
"southcentralus",
"southindia",
"southeastasia",
"uksouth",
"ukwest",
"westcentralus",
"westeurope",
"westus",
"westus2"
]
},
{
"label": "%vm_admin%",
"variableName": "AZDATA_NB_VAR_ASDE_VM_ADMIN",
"type": "text",
"required": true
},
{
"label": "%vm_password%",
"variableName": "AZDATA_NB_VAR_ASDE_VM_PASSWORD",
"type": "password",
"confirmationRequired": true,
"confirmationLabel": "%vm_password_confirm%",
"required": true
}
]
},
{
"title": "%sqlserver-info-section-title%",
"collapsible": true,
"fields": [
{
"label": "%docker-sql-password-field%",
"variableName": "AZDATA_NB_VAR_SA_PASSWORD",
"type": "sql_password",
"userName": "sa",
"confirmationRequired": true,
"confirmationLabel": "%docker-confirm-sql-password-field%",
"defaultValue": "",
"required": true
},
{
"label": "%docker-sql-port-field%",
"variableName": "AZDATA_NB_VAR_ASDE_SQL_PORT",
"type": "number",
"defaultValue": 31433,
"required": true
},
{
"label": "%package_path%",
"description": "%package_path_description%",
"variableName": "AZDATA_NB_VAR_ASDE_PACKAGE_PATH",
"type": "file_picker",
"required": false,
"filter": {
"displayName": "%package-files%",
"fileTypes": [
"zip",
"bacpac",
"dacpac"
]
}
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "azure-cli",
"version": "2.9.1"
}
],
"when": "type=azure-create-new"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-single-device.ipynb",
"title": "%sql-edge-azure-single-device-title%",
"name": "sql-edge-azure-single-device-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "%azure-info-section-title%",
"collapsible": true,
"fields": [
{
"type": "azure_account",
"subscriptionVariableName": "AZDATA_NB_VAR_ASDE_SUBSCRIPTIONID",
"resourceGroupVariableName": "AZDATA_NB_VAR_ASDE_RESOURCEGROUP",
"required": true
},
{
"label": "%iot-hub-name%",
"variableName": "AZDATA_NB_VAR_ASDE_HUBNAME",
"type": "text",
"required": true
},
{
"label": "%device-id%",
"variableName": "AZDATA_NB_VAR_ASDE_DEVICE_ID",
"type": "text",
"required": true
},
{
"label": "%device-ip-address%",
"variableName": "AZDATA_NB_VAR_ASDE_DEVICE_IP_ADDRESS",
"type": "text",
"description": "%device-ip-address-description%",
"required": false
}
]
},
{
"title": "%sqlserver-info-section-title%",
"collapsible": true,
"fields": [
{
"label": "%docker-sql-password-field%",
"variableName": "AZDATA_NB_VAR_SA_PASSWORD",
"type": "sql_password",
"userName": "sa",
"confirmationRequired": true,
"confirmationLabel": "%docker-confirm-sql-password-field%",
"defaultValue": "",
"required": true
},
{
"label": "%docker-sql-port-field%",
"variableName": "AZDATA_NB_VAR_ASDE_SQL_PORT",
"type": "number",
"defaultValue": 31433,
"required": true
},
{
"label": "%package_path%",
"description": "%package_path_description%",
"variableName": "AZDATA_NB_VAR_ASDE_PACKAGE_PATH",
"type": "file_picker",
"required": false,
"filter": {
"displayName": "%package-files%",
"fileTypes": [
"zip",
"bacpac",
"dacpac"
]
}
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "azure-cli",
"version": "2.9.1"
}
],
"when": "type=azure-single-device"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-multi-device.ipynb",
"title": "%sql-edge-azure-multi-device-title%",
"name": "sql-edge-azure-multi-device-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "%azure-info-section-title%",
"collapsible": true,
"fields": [
{
"type": "azure_account",
"subscriptionVariableName": "AZDATA_NB_VAR_ASDE_SUBSCRIPTIONID",
"resourceGroupVariableName": "AZDATA_NB_VAR_ASDE_RESOURCEGROUP",
"required": true
},
{
"label": "%iot-hub-name%",
"variableName": "AZDATA_NB_VAR_ASDE_HUBNAME",
"type": "text",
"required": true
},
{
"label": "%device-target-condition%",
"variableName": "AZDATA_NB_VAR_ASDE_TARGET_CONDITION",
"type": "text",
"required": true
},
{
"type": "readonly_text",
"label": "{0}",
"links": [
{
"text": "%device-target-condition-learn-more%",
"url": "https://docs.microsoft.com/azure/iot-edge/module-deployment-monitoring#target-condition"
}
]
}
]
},
{
"title": "%sqlserver-info-section-title%",
"collapsible": true,
"fields": [
{
"label": "%docker-sql-password-field%",
"variableName": "AZDATA_NB_VAR_SA_PASSWORD",
"type": "sql_password",
"userName": "sa",
"confirmationRequired": true,
"confirmationLabel": "%docker-confirm-sql-password-field%",
"defaultValue": "",
"required": true
},
{
"label": "%docker-sql-port-field%",
"variableName": "AZDATA_NB_VAR_ASDE_SQL_PORT",
"type": "number",
"defaultValue": 31433,
"required": true
},
{
"label": "%package_path%",
"description": "%package_path_description%",
"variableName": "AZDATA_NB_VAR_ASDE_PACKAGE_PATH",
"type": "file_picker",
"required": false,
"filter": {
"displayName": "%package-files%",
"fileTypes": [
"zip",
"bacpac",
"dacpac"
]
}
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "azure-cli",
"version": "2.9.1"
}
],
"when": "type=azure-multi-device"
}
],
"agreement": {
"template": "%edge-agreement%",
"links": [
{
"text": "%microsoft-privacy-statement%",
"url": "https://go.microsoft.com/fwlink/?LinkId=853010"
},
{
"text": "%edge-eula%",
"url": "https://go.microsoft.com/fwlink/?linkid=2128283"
}
]
}
}
]
},
"__metadata": {
"id": "76",
"publisherDisplayName": "Microsoft",
"publisherId": "Microsoft"
}
}