1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-14 07:30:05 +00:00

feat(context-edit): restricted editing system compute contexts

This commit is contained in:
Yury Shkoda
2020-12-29 11:11:26 +03:00
parent dfb9c28f3a
commit 9d0c3410a5
3 changed files with 41 additions and 10 deletions

View File

@@ -104,6 +104,13 @@ export class SASViyaApiClient {
return await this.contextManager.getComputeContexts(accessToken)
}
/**
* Returns default(system) compute contexts.
*/
public getDefaultComputeContexts() {
return this.contextManager.defaultComputeContexts
}
/**
* Returns all available launcher contexts on this server.
* @param accessToken - an access token for an authorized user.
@@ -220,12 +227,12 @@ export class SASViyaApiClient {
* @param editedContext - an object with the properties to be updated.
* @param accessToken - an access token for an authorized user.
*/
public async editContext(
public async editComputeContext(
contextName: string,
editedContext: EditContextInput,
accessToken?: string
) {
return await this.contextManager.editContext(
return await this.contextManager.editComputeContext(
contextName,
editedContext,
accessToken