seguro.commands.acl_syncer.model¶
Classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- class seguro.commands.acl_syncer.model.AccessControlList(*, groups={}, roles={}, clients={})[source]¶
Bases:
BaseModel- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- update(other)[source]¶
- Parameters:
other (AccessControlList)
- Return type:
- class seguro.commands.acl_syncer.model.BrokerAction(*values)[source]¶
Bases:
Enum- PUBLISH = 'Publish'¶
- SUBSCRIBE = 'Subscribe'¶
- class seguro.commands.acl_syncer.model.BrokerStatement(*, effect=Effect.ALLOW, actions={BrokerAction.PUBLISH, BrokerAction.SUBSCRIBE}, topic, priority=-1)[source]¶
Bases:
BaseModel- Parameters:
effect (Effect)
actions (set[BrokerAction])
topic (str)
priority (int)
- actions: set[BrokerAction]¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- priority: int¶
- topic: str¶
- class seguro.commands.acl_syncer.model.Client(*, groups=[], roles=[])[source]¶
Bases:
BaseModel- Parameters:
groups (list[str])
roles (list[str])
- groups: list[str]¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- roles: list[str]¶
- class seguro.commands.acl_syncer.model.Effect(*values)[source]¶
Bases:
Enum- ALLOW = 'Allow'¶
- DENY = 'Deny'¶
- class seguro.commands.acl_syncer.model.Group(*, roles)[source]¶
Bases:
BaseModel- Parameters:
roles (list[str])
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- roles: list[str]¶
- class seguro.commands.acl_syncer.model.Role(*, broker=[], store=[])[source]¶
Bases:
BaseModel- Parameters:
broker (list[BrokerStatement])
store (list[StoreStatement])
- broker: list[BrokerStatement]¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- store: list[StoreStatement]¶
- class seguro.commands.acl_syncer.model.StoreAction(*values)[source]¶
Bases:
Enum- ANY = '*'¶
- DELETE_OBJECT = 'DeleteObject'¶
- GET_BUCKET_LOCATION = 'GetBucketLocation'¶
- GET_OBJECT = 'GetObject'¶
- LIST_BUCKET = 'ListBucket'¶
- LIST_OJECTS = 'ListObjects'¶
- PUT_OBJECT = 'PutObject'¶
- class seguro.commands.acl_syncer.model.StoreStatement(*, effect=Effect.ALLOW, actions={StoreAction.ANY}, object, condition={})[source]¶
Bases:
BaseModel- Parameters:
effect (Effect)
actions (set[StoreAction])
object (str)
condition (dict[str, dict[str, str]])
- actions: set[StoreAction]¶
- condition: dict[str, dict[str, str]]¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- object: str¶