Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-09-29 16:05:40 -07:00
parent 31cd9e532d
commit 12c164620b
268 changed files with 22464 additions and 18287 deletions

View File

@ -6,64 +6,63 @@ from ..types import UNSET, Unset
LC = TypeVar("LC", bound="JetstreamApiStats")
@attr.s(auto_attribs=True)
class JetstreamApiStats:
"""Jetstream API statistics.""" # noqa: E501
""" Jetstream API statistics. """ # noqa: E501
errors: Union[Unset, int] = UNSET
inflight: Union[Unset, int] = UNSET
total: Union[Unset, int] = UNSET
errors: Union[Unset, int] = UNSET
inflight: Union[Unset, int] = UNSET
total: Union[Unset, int] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
def to_dict(self) -> Dict[str, Any]:
errors = self.errors
inflight = self.inflight
total = self.total
def to_dict(self) -> Dict[str, Any]:
errors = self.errors
inflight = self.inflight
total = self.total
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if errors is not UNSET:
field_dict['errors'] = errors
if inflight is not UNSET:
field_dict['inflight'] = inflight
if total is not UNSET:
field_dict['total'] = total
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if errors is not UNSET:
field_dict["errors"] = errors
if inflight is not UNSET:
field_dict["inflight"] = inflight
if total is not UNSET:
field_dict["total"] = total
return field_dict
return field_dict
@classmethod
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
d = src_dict.copy()
errors = d.pop("errors", UNSET)
@classmethod
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
d = src_dict.copy()
errors = d.pop("errors", UNSET)
inflight = d.pop("inflight", UNSET)
inflight = d.pop("inflight", UNSET)
total = d.pop("total", UNSET)
total = d.pop("total", UNSET)
jetstream_api_stats = cls(
errors=errors,
inflight=inflight,
total=total,
)
jetstream_api_stats = cls(
errors= errors,
inflight= inflight,
total= total,
)
jetstream_api_stats.additional_properties = d
return jetstream_api_stats
jetstream_api_stats.additional_properties = d
return jetstream_api_stats
@property
def additional_keys(self) -> List[str]:
return list(self.additional_properties.keys())
@property
def additional_keys(self) -> List[str]:
return list(self.additional_properties.keys())
def __getitem__(self, key: str) -> Any:
return self.additional_properties[key]
def __getitem__(self, key: str) -> Any:
return self.additional_properties[key]
def __setitem__(self, key: str, value: Any) -> None:
self.additional_properties[key] = value
def __setitem__(self, key: str, value: Any) -> None:
self.additional_properties[key] = value
def __delitem__(self, key: str) -> None:
del self.additional_properties[key]
def __delitem__(self, key: str) -> None:
del self.additional_properties[key]
def __contains__(self, key: str) -> bool:
return key in self.additional_properties
def __contains__(self, key: str) -> bool:
return key in self.additional_properties