mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 08:30:07 +00:00
feat(delete-context): add the ability to delete a compute context
This commit is contained in:
@@ -128,11 +128,11 @@ export default class SASjs {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
public async deleteContext(contextId: string) {
|
public async deleteContext(contextId: string, accessToken?: string) {
|
||||||
if (this.sasjsConfig.serverType !== ServerType.SASViya) {
|
if (this.sasjsConfig.serverType !== ServerType.SASViya) {
|
||||||
throw new Error('This operation is only supported on SAS Viya servers.')
|
throw new Error('This operation is only supported on SAS Viya servers.')
|
||||||
}
|
}
|
||||||
return await this.sasViyaApiClient!.deleteContext(contextId)
|
return await this.sasViyaApiClient!.deleteContext(contextId, accessToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
public async createSession(contextName: string, accessToken: string) {
|
public async createSession(contextName: string, accessToken: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user