forked from linode/linode_api4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiam.py
More file actions
34 lines (24 loc) · 681 Bytes
/
Copy pathiam.py
File metadata and controls
34 lines (24 loc) · 681 Bytes
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
from __future__ import annotations
from dataclasses import dataclass
from typing import List
from linode_api4.objects.base import Base, JSONObject, Property
class LinodeEntity(Base):
"""
An Entity represents an entity of the account.
Currently the Entity can only be retrieved by listing, i.e.:
entities = client.iam.entities()
API documentation: TODO
"""
properties = {
"id": Property(identifier=True),
"label": Property(),
"type": Property(),
}
@dataclass
class EntityAccess(JSONObject):
"""
EntityAccess represents a user's access to an entity.
"""
id: int
type: str
roles: List[str]