Placement
nats.js.api.Placement dataclass #
Placement(
cluster: Optional[str] = None,
tags: Optional[List[str]] = None,
)
Bases: Base
Placement directives to consider when placing replicas of this stream
from_response classmethod #
from_response(resp: Dict[str, Any]) -> _B
Read the class instance from a server response.
Unknown fields are ignored ("open-world assumption").
Source code in nats/js/api.py
145 146 147 148 149 150 151 152 153 154 155 | |
evolve #
evolve(**params) -> _B
Return a copy of the instance with the passed values replaced.
Source code in nats/js/api.py
157 158 159 | |
as_dict #
as_dict() -> Dict[str, object]
Return the object converted into an API-friendly dict.
Source code in nats/js/api.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |