Nasc/delete instance code removal (#12307)

* Formatted page

* Removed ResourceHealthPage from the dashboard

* Deleted files that no longer applies to the public preview backend

* shouldn't be able to open the postgres dashboard
This commit is contained in:
nasc17
2020-09-15 14:53:00 -07:00
committed by GitHub
parent f79ff99d0b
commit 14b534eb64
7 changed files with 17 additions and 100 deletions

View File

@@ -78,6 +78,9 @@ export class AzdataTool implements IAzdataTool {
},
postgres: {
server: {
delete: async (name: string) => {
return this.executeCommand<void>(['arc', 'postgres', 'server', 'delete', '-n', name]);
},
list: async () => {
return this.executeCommand<azdataExt.PostgresServerListResult[]>(['arc', 'postgres', 'server', 'list']);
},

View File

@@ -85,6 +85,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<azdata
},
postgres: {
server: {
delete: async (name: string) => {
await throwIfNoAzdataOrEulaNotAccepted();
return localAzdata!.arc.postgres.server.delete(name);
},
list: async () => {
await throwIfNoAzdataOrEulaNotAccepted();
return localAzdata!.arc.postgres.server.list();

View File

@@ -228,6 +228,7 @@ declare module 'azdata-ext' {
},
postgres: {
server: {
delete(name: string): Promise<AzdataOutput<void>>,
list(): Promise<AzdataOutput<PostgresServerListResult[]>>,
show(name: string): Promise<AzdataOutput<PostgresServerShowResult>>,
edit(args: {