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

feat(context): made getContextByName function public

This commit is contained in:
Yury Shkoda
2020-09-23 16:38:21 +03:00
parent c1bab07b08
commit 491bc3371c
29 changed files with 3816 additions and 22 deletions

View File

@@ -167,6 +167,20 @@ export default class SASjs {
return await this.sasViyaApiClient!.deleteContext(contextName, accessToken)
}
/**
* Returns a compute context.
* @param contextName - the name of the context to return.
* @param accessToken - an access token for an authorized user.
*/
public async getContextByName(contextName: string, accessToken?: string) {
this.isMethodSupported('getContextByName', ServerType.SASViya)
return await this.sasViyaApiClient!.getContextByName(
contextName,
accessToken
)
}
public async createSession(contextName: string, accessToken: string) {
this.isMethodSupported('createSession', ServerType.SASViya)