8000 added compute service · srijan-deepsource/python-sasctl@f72c536 · GitHub
[go: up one dir, main page]

Skip to content

Commit f72c536

Browse files
committed
added compute service
1 parent 482c970 commit f72c536

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/sasctl/_services/compute.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
#
4+
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
from .service import Service
8+
9+
10+
class Compute(Service):
11+
"""The Compute service affords CRUD operations for Compute Contexts.
12+
13+
A Compute context is analogous to the SAS Application Server from SAS V9.
14+
"""
15+
16+
_SERVICE_ROOT = '/compute'
17+
18+
list_contexts, get_context, update_context, delete_context = Service._crud_funcs(
19+
'/contexts'
20+
)

src/sasctl/services.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def _instantiate(name):
1414
return cls()
1515

1616
cas_management = _instantiate('sasctl._services.cas_management.CASManagement')
17+
compute = _instantiate('sasctl._services.compute.Compute')
1718
concepts = _instantiate('sasctl._services.concepts.Concepts')
1819
data_sources = _instantiate('sasctl._services.data_sources.DataSources')
1920
files = _instantiate('sasctl._services.files.Files')

0 commit comments

Comments
 (0)
0