Skip to content

Commit 85a204a

Browse files
committed
change class name and remove urls from readme
1 parent 9ecefe9 commit 85a204a

3 files changed

Lines changed: 8 additions & 15 deletions

File tree

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For internal Equinor users, this package is available through the Komodo distrib
1515
- [Examples](#examples)
1616
- [search()](#search)
1717
- [searchroot()](#searchroot)
18-
- [SumoThinClient](#sumothinclient)
18+
- [SumoClient](#SumoClient)
1919
- [Initialization](#initialization)
2020
- [Parameters](#parameters)
2121
- [Methods](#methods)
@@ -109,21 +109,21 @@ peesv_objects = sumo.searchroot(
109109
)
110110
```
111111

112-
# SumoThinClient
112+
# SumoClient
113113
An ultra thin wrapper class.
114114

115115
### Initialization
116116

117117
```python
118-
from sumo.wrapper import SumoThinClient
118+
from sumo.wrapper import SumoClient
119119

120-
sumo = SumoThinClient(env="dev")
120+
sumo = SumoClient(env="dev")
121121
```
122122

123123
### Parameters
124124

125125
```python
126-
class SumoThinClient:
126+
class SumoClient:
127127
def __init__(
128128
self,
129129
env,
@@ -143,7 +143,7 @@ class SumoThinClient:
143143
If no `access_token` is provided, an authentication code flow is triggered to retrieve a token.
144144

145145
## Methods
146-
`SumoThinClient` has one method for each HTTP-method that is used in the sumo-core API. See examples of how to use these methods below.
146+
`SumoClient` has one method for each HTTP-method that is used in the sumo-core API. See examples of how to use these methods below.
147147

148148

149149
All methods accepts a path argument. Path parameters can be interpolated into the path string. Example:
@@ -154,13 +154,6 @@ object_id = "1234"
154154
sumo.get(f"/objects('{object_id}')")
155155
```
156156

157-
For a full list of available endpoints, visit:
158-
159-
- Prod: https://main-sumo-prod.radix.equinor.com/swagger-ui/
160-
- Dev: https://main-sumo-dev.radix.equinor.com/swagger-ui/
161-
- Test: https://main-sumo-test.radix.equinor.com/swagger-ui/
162-
- Preview: https://main-sumo-preview.radix.equinor.com/swagger-ui/
163-
164157
### get(path, **params)
165158
Performs a GET-request to sumo-core. Accepts query parameters as keyword arguments.
166159

src/sumo/wrapper/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
from ._call_sumo_api import CallSumoApi
2-
from ._thin_client import SumoThinClient
2+
from ._sumo_client import SumoClient
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)
1212

1313

14-
class SumoThinClient:
14+
class SumoClient:
1515
def __init__(
1616
self,
1717
env,

0 commit comments

Comments
 (0)