2022-04-27 12:14:58 -07:00
|
|
|
import datetime
|
|
|
|
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
|
|
|
|
|
|
import attr
|
|
|
|
from dateutil.parser import isoparse
|
|
|
|
|
|
|
|
from ..models.cluster import Cluster
|
|
|
|
from ..models.gateway import Gateway
|
|
|
|
from ..models.jetstream import Jetstream
|
|
|
|
from ..models.leaf_node import LeafNode
|
|
|
|
from ..models.duration import Duration
|
|
|
|
from ..types import UNSET, Unset
|
|
|
|
|
2022-06-11 17:26:20 -07:00
|
|
|
T = TypeVar("T", bound="Connection")
|
2022-04-27 12:14:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
2022-06-11 17:26:20 -07:00
|
|
|
class Connection:
|
2022-04-27 12:14:58 -07:00
|
|
|
""" """
|
|
|
|
auth_timeout: Union[Unset, int] = UNSET
|
|
|
|
cluster: Union[Unset, Cluster] = UNSET
|
|
|
|
config_load_time: Union[Unset, datetime.datetime] = UNSET
|
|
|
|
connections: Union[Unset, int] = UNSET
|
|
|
|
cores: Union[Unset, int] = UNSET
|
2022-06-11 17:26:20 -07:00
|
|
|
cpu: Union[Unset, float] = UNSET
|
2022-04-27 12:14:58 -07:00
|
|
|
gateway: Union[Unset, Gateway] = UNSET
|
|
|
|
git_commit: Union[Unset, str] = UNSET
|
|
|
|
go: Union[Unset, str] = UNSET
|
|
|
|
gomaxprocs: Union[Unset, int] = UNSET
|
|
|
|
host: Union[Unset, str] = UNSET
|
|
|
|
http_base_path: Union[Unset, str] = UNSET
|
|
|
|
http_host: Union[Unset, str] = UNSET
|
|
|
|
http_port: Union[Unset, int] = UNSET
|