{
  "name": "resource-deployment",
  "displayName": "%extension-displayName%",
  "description": "%extension-description%",
  "version": "0.0.1",
  "publisher": "Microsoft",
  "preview": true,
  "license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/master/LICENSE.txt",
  "icon": "images/sqlserver.png",
  "aiKey": "AIF-444c3af9-8e69-4462-ab49-4191e6ad1916",
  "engines": {
    "vscode": "*",
    "azdata": ">=1.6.0"
  },
  "activationEvents": [
    "*"
  ],
  "main": "./out/main",
  "repository": {
    "type": "git",
    "url": "https://github.com/Microsoft/azuredatastudio.git"
  },
  "extensionDependencies": [
    "microsoft.mssql",
    "microsoft.notebook"
  ],
  "contributes": {
    "commands": [
      {
        "command": "azdata.resource.deploy",
        "title": "%deploy-resource-command-name%",
        "category": "%deploy-resource-command-category%"
      },
      {
        "command": "azdata.openNotebookInputDialog",
        "title": "Open notebook input dialog",
        "category": "Notebook"
      }
    ],
    "menus": {
      "commandPalette": [
        {
          "command": "azdata.openNotebookInputDialog",
          "when": "false"
        }
      ],
      "dataExplorer/action": [
        {
          "command": "azdata.resource.deploy",
          "group": "secondary"
        }
      ]
    },
    "resourceDeploymentTypes": [
      {
        "name": "sql-image",
        "displayIndex": 2,
        "displayName": "%resource-type-sql-image-display-name%",
        "description": "%resource-type-sql-image-description%",
        "platforms": "*",
        "icon": {
          "light": "./images/sql_server_container.svg",
          "dark": "./images/sql_server_container_inverse.svg"
        },
        "options": [
          {
            "name": "version",
            "displayName": "%version-display-name%",
            "values": [
              {
                "name": "sql2017",
                "displayName": "%sql-2017-display-name%"
              },
              {
                "name": "sql2019",
                "displayName": "%sql-2019-display-name%"
              }
            ]
          }
        ],
        "providers": [
          {
            "dialog": {
              "notebook": "%sql-2017-docker-notebook%",
              "title": "%docker-sql-2017-title%",
              "name": "docker-sql-2017-dialog",
              "tabs": [
                {
                  "title": "",
                  "sections": [
                    {
                      "title": "",
                      "fields": [
                        {
                          "label": "%docker-container-name-field%",
                          "variableName": "AZDATA_NB_VAR_DOCKER_CONTAINER_NAME",
                          "type": "datetime_text",
                          "defaultValue": "SQL2017-",
                          "required": true
                        },
                        {
                          "label": "%docker-sql-password-field%",
                          "variableName": "AZDATA_NB_VAR_DOCKER_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
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            "requiredTools": [
              {
                "name": "docker"
              }
            ],
            "when": "version=sql2017"
          },
          {
            "dialog": {
              "notebook": "%sql-2019-docker-notebook%",
              "title": "%docker-sql-2019-title%",
              "name": "docker-sql-2019-dialog",
              "tabs": [
                {
                  "title": "",
                  "sections": [
                    {
                      "title": "",
                      "fields": [
                        {
                          "label": "%docker-container-name-field%",
                          "variableName": "AZDATA_NB_VAR_DOCKER_CONTAINER_NAME",
                          "type": "datetime_text",
                          "defaultValue": "SQL2019-",
                          "required": true
                        },
                        {
                          "label": "%docker-sql-password-field%",
                          "variableName": "AZDATA_NB_VAR_DOCKER_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
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            "requiredTools": [
              {
                "name": "docker"
              }
            ],
            "when": "version=sql2019"
          }
        ]
      },
      {
        "name": "sql-bdc",
        "displayIndex": 3,
        "displayName": "%resource-type-sql-bdc-display-name%",
        "description": "%resource-type-sql-bdc-description%",
        "platforms": "*",
        "icon": {
          "light": "./images/sql_bdc.svg",
          "dark": "./images/sql_bdc_inverse.svg"
        },
        "options": [
          {
            "name": "version",
            "displayName": "%version-display-name%",
            "values": [
              {
                "name": "bdc2019",
                "displayName": "%bdc-2019-display-name%"
              }
            ]
          },
          {
            "name": "target",
            "displayName": "%bdc-deployment-target%",
            "values": [
              {
                "name": "new-aks",
                "displayName": "%bdc-deployment-target-new-aks%"
              },
              {
                "name": "existing-aks",
                "displayName": "%bdc-deployment-target-existing-aks%"
              },
              {
                "name": "existing-kubeadm",
                "displayName": "%bdc-deployment-target-existing-kubeadm%"
              }
            ]
          }
        ],
        "providers": [
          {
            "wizard": {
              "type": "new-aks",
              "notebook": "%bdc-2019-aks-notebook%",
              "azdata_notebook": "%azdata-bdc-2019-aks-notebook%"
            },
            "requiredTools": [
              {
                "name": "kubectl"
              },
              {
                "name": "azcli"
              },
              {
                "name": "azdata"
              }
            ],
            "when": "target=new-aks&&version=bdc2019"
          },
          {
            "wizard": {
              "type": "existing-aks",
              "notebook": "%bdc-2019-existing-aks-notebook%",
              "azdata_notebook": "%azdata-bdc-2019-existing-aks-notebook"
            },
            "requiredTools": [
              {
                "name": "kubectl"
              },
              {
                "name": "azdata"
              }
            ],
            "when": "target=existing-aks&&version=bdc2019"
          },
          {
            "wizard": {
              "type": "existing-kubeadm",
              "notebook": "%bdc-2019-existing-kubeadm-notebook%",
              "azdata_notebook": "%azdata-bdc-2019-existing-kubeadm-notebook%"
            },
            "requiredTools": [
              {
                "name": "kubectl"
              },
              {
                "name": "azdata"
              }
            ],
            "when": "target=existing-kubeadm&&version=bdc2019"
          }
        ],
        "agreement": {
          "template": "%bdc-agreement%",
          "links": [
            {
              "text": "%bdc-agreement-privacy-statement%",
              "url": "https://go.microsoft.com/fwlink/?LinkId=853010"
            },
            {
              "text": "%bdc-agreement-bdc-eula%",
              "url": "https://go.microsoft.com/fwlink/?LinkId=2002534"
            },
            {
              "text": "%bdc-agreement-azdata-eula%",
              "url": "https://aka.ms/azdata-eula"
            }
          ]
        }
      },
      {
        "name": "sql-windows-setup",
        "displayIndex": 1,
        "displayName": "%resource-type-sql-windows-setup-display-name%",
        "description": "%resource-type-sql-windows-setup-description%",
        "platforms": [
          "win32"
        ],
        "icon": {
          "light": "./images/sql_server_on_windows.svg",
          "dark": "./images/sql_server_on_windows_inverse.svg"
        },
        "options": [
          {
            "name": "version",
            "displayName": "%version-display-name%",
            "values": [
              {
                "name": "sql2017",
                "displayName": "%sql-2017-display-name%"
              },
              {
                "name": "sql2019",
                "displayName": "%sql-2019-display-name%"
              }
            ]
          }
        ],
        "providers": [
          {
            "downloadUrl": "https://go.microsoft.com/fwlink/?linkid=853016",
            "requiredTools": [],
            "when": "version=sql2017"
          },
          {
            "webPageUrl": "https://www.microsoft.com/evalcenter/evaluate-sql-server-2019-rc",
            "requiredTools": [],
            "when": "version=sql2019"
          }
        ]
      }
    ]
  },
  "dependencies": {
    "vscode-nls": "^4.0.0",
    "yamljs": "^0.3.0"
  },
  "devDependencies": {
    "typemoq": "^2.1.0",
    "vscode": "^1.1.26",
    "@types/yamljs": "0.2.30",
    "mocha-junit-reporter": "^1.17.0",
    "mocha-multi-reporters": "^1.1.7"
  }
}
