-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaccess_methods.py
More file actions
39 lines (25 loc) · 1.11 KB
/
access_methods.py
File metadata and controls
39 lines (25 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from typing import Optional, Any, List, Dict, Union
from ..client import SeamHttpClient
from .models import AbstractAccessMethods
class AccessMethods(AbstractAccessMethods):
def __init__(self, client: SeamHttpClient, defaults: Dict[str, Any]):
self.client = client
self.defaults = defaults
def delete(self, *, access_method_id: str) -> None:
json_payload = {}
if access_method_id is not None:
json_payload["access_method_id"] = access_method_id
self.client.post("/access_methods/delete", json=json_payload)
return None
def get(self, *, access_method_id: str) -> None:
json_payload = {}
if access_method_id is not None:
json_payload["access_method_id"] = access_method_id
self.client.post("/access_methods/get", json=json_payload)
return None
def list(self, *, access_grant_id: str) -> None:
json_payload = {}
if access_grant_id is not None:
json_payload["access_grant_id"] = access_grant_id
self.client.post("/access_methods/list", json=json_payload)
return None