Skip to content

Commit 0634a45

Browse files
committed
add uninstall service method
1 parent 0a92667 commit 0634a45

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/clients/infra/Router.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ export class Router extends InfraClient {
8686
},
8787
})
8888
}
89+
90+
public uninstallService = (name: string, tracingConfig?: RequestTracingConfig) => {
91+
if (!this.context.account || !this.context.workspace) {
92+
throw new Error('Missing client parameters: {account, workspace}')
93+
}
94+
return this.http.delete(routes.InstalledService(this.context.account, this.context.workspace, name), {
95+
tracing: {
96+
requestSpanNameSuffix: 'uninstall-service',
97+
...tracingConfig?.tracing,
98+
},
99+
})
100+
}
89101
}
90102

91103
export interface AvaiableIO {

0 commit comments

Comments
 (0)