2023-08-30 15:59:51 -07:00
|
|
|
from typing import Any, Dict, List, Type, TypeVar, Union
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
import attr
|
|
|
|
|
|
|
|
from ..types import UNSET, Unset
|
|
|
|
|
2023-09-29 15:51:03 -07:00
|
|
|
BF = TypeVar("BF", bound="ice_server_info")
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
2023-08-30 15:59:51 -07:00
|
|
|
class ice_server_info:
|
|
|
|
"""Information about the ICE servers.""" # noqa: E501
|
2023-08-17 12:48:13 -07:00
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
data: Union[Unset, Any] = UNSET
|
|
|
|
type: str = "ice_server_info"
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
|
|
|
|
|
|
def to_dict(self) -> Dict[str, Any]:
|
2023-08-30 15:59:51 -07:00
|
|
|
data = self.data
|
2023-08-17 12:48:13 -07:00
|
|
|
type = self.type
|
|
|
|
|
|
|
|
field_dict: Dict[str, Any] = {}
|
|
|
|
field_dict.update(self.additional_properties)
|
|
|
|
field_dict.update({})
|
2023-08-30 15:59:51 -07:00
|
|
|
if data is not UNSET:
|
|
|
|
field_dict["data"] = data
|
2023-08-17 12:48:13 -07:00
|
|
|
field_dict["type"] = type
|
|
|
|
|
|
|
|
return field_dict
|
|
|
|
|
|
|
|
@classmethod
|
2023-09-29 15:51:03 -07:00
|
|
|
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
2023-08-17 12:48:13 -07:00
|
|
|
d = src_dict.copy()
|
2023-08-30 15:59:51 -07:00
|
|
|
data = d.pop("data", UNSET)
|
2023-08-17 12:48:13 -07:00
|
|
|
type = d.pop("type", UNSET)
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
ice_server_info = cls(
|
|
|
|
data=data,
|
2023-08-17 12:48:13 -07:00
|
|
|
type=type,
|
|
|
|
)
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
ice_server_info.additional_properties = d
|
|
|
|
return ice_server_info
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
@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 __setitem__(self, key: str, value: Any) -> None:
|
|
|
|
self.additional_properties[key] = value
|
|
|
|
|
|
|
|
def __delitem__(self, key: str) -> None:
|
|
|
|
del self.additional_properties[key]
|
|
|
|
|
|
|
|
def __contains__(self, key: str) -> bool:
|
|
|
|
return key in self.additional_properties
|
|
|
|
|
|
|
|
|
2023-09-29 15:51:03 -07:00
|
|
|
UU = TypeVar("UU", bound="trickle_ice")
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
2023-08-30 15:59:51 -07:00
|
|
|
class trickle_ice:
|
|
|
|
"""The trickle ICE candidate response.""" # noqa: E501
|
2023-08-17 12:48:13 -07:00
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
data: Union[Unset, Any] = UNSET
|
|
|
|
type: str = "trickle_ice"
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
|
|
|
|
|
|
def to_dict(self) -> Dict[str, Any]:
|
2023-08-30 15:59:51 -07:00
|
|
|
data = self.data
|
2023-08-17 12:48:13 -07:00
|
|
|
type = self.type
|
|
|
|
|
|
|
|
field_dict: Dict[str, Any] = {}
|
|
|
|
field_dict.update(self.additional_properties)
|
|
|
|
field_dict.update({})
|
2023-08-30 15:59:51 -07:00
|
|
|
if data is not UNSET:
|
|
|
|
field_dict["data"] = data
|
2023-08-17 12:48:13 -07:00
|
|
|
field_dict["type"] = type
|
|
|
|
|
|
|
|
return field_dict
|
|
|
|
|
|
|
|
@classmethod
|
2023-09-29 15:51:03 -07:00
|
|
|
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
2023-08-17 12:48:13 -07:00
|
|
|
d = src_dict.copy()
|
2023-08-30 15:59:51 -07:00
|
|
|
data = d.pop("data", UNSET)
|
2023-08-17 12:48:13 -07:00
|
|
|
type = d.pop("type", UNSET)
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
trickle_ice = cls(
|
|
|
|
data=data,
|
2023-08-17 12:48:13 -07:00
|
|
|
type=type,
|
|
|
|
)
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
trickle_ice.additional_properties = d
|
|
|
|
return trickle_ice
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
@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 __setitem__(self, key: str, value: Any) -> None:
|
|
|
|
self.additional_properties[key] = value
|
|
|
|
|
|
|
|
def __delitem__(self, key: str) -> None:
|
|
|
|
del self.additional_properties[key]
|
|
|
|
|
|
|
|
def __contains__(self, key: str) -> bool:
|
|
|
|
return key in self.additional_properties
|
|
|
|
|
|
|
|
|
2023-09-29 15:51:03 -07:00
|
|
|
MB = TypeVar("MB", bound="sdp_answer")
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
2023-08-30 15:59:51 -07:00
|
|
|
class sdp_answer:
|
|
|
|
"""The SDP answer response.""" # noqa: E501
|
2023-08-17 12:48:13 -07:00
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
data: Union[Unset, Any] = UNSET
|
|
|
|
type: str = "sdp_answer"
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
|
|
|
|
|
|
def to_dict(self) -> Dict[str, Any]:
|
2023-08-30 15:59:51 -07:00
|
|
|
data = self.data
|
2023-08-17 12:48:13 -07:00
|
|
|
type = self.type
|
|
|
|
|
|
|
|
field_dict: Dict[str, Any] = {}
|
|
|
|
field_dict.update(self.additional_properties)
|
|
|
|
field_dict.update({})
|
2023-08-30 15:59:51 -07:00
|
|
|
if data is not UNSET:
|
|
|
|
field_dict["data"] = data
|
2023-08-17 12:48:13 -07:00
|
|
|
field_dict["type"] = type
|
|
|
|
|
|
|
|
return field_dict
|
|
|
|
|
|
|
|
@classmethod
|
2023-09-29 15:51:03 -07:00
|
|
|
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
2023-08-17 12:48:13 -07:00
|
|
|
d = src_dict.copy()
|
2023-08-30 15:59:51 -07:00
|
|
|
data = d.pop("data", UNSET)
|
2023-08-17 12:48:13 -07:00
|
|
|
type = d.pop("type", UNSET)
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
sdp_answer = cls(
|
|
|
|
data=data,
|
2023-08-17 12:48:13 -07:00
|
|
|
type=type,
|
|
|
|
)
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
sdp_answer.additional_properties = d
|
|
|
|
return sdp_answer
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
@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 __setitem__(self, key: str, value: Any) -> None:
|
|
|
|
self.additional_properties[key] = value
|
|
|
|
|
|
|
|
def __delitem__(self, key: str) -> None:
|
|
|
|
del self.additional_properties[key]
|
|
|
|
|
|
|
|
def __contains__(self, key: str) -> bool:
|
|
|
|
return key in self.additional_properties
|
|
|
|
|
|
|
|
|
2023-09-29 15:51:03 -07:00
|
|
|
TB = TypeVar("TB", bound="modeling")
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
|
|
|
class modeling:
|
|
|
|
"""The modeling command response.""" # noqa: E501
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
data: Union[Unset, Any] = UNSET
|
2023-08-17 12:48:13 -07:00
|
|
|
type: str = "modeling"
|
|
|
|
|
|
|
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
|
|
|
|
|
|
def to_dict(self) -> Dict[str, Any]:
|
2023-08-30 15:59:51 -07:00
|
|
|
data = self.data
|
2023-08-17 12:48:13 -07:00
|
|
|
type = self.type
|
|
|
|
|
|
|
|
field_dict: Dict[str, Any] = {}
|
|
|
|
field_dict.update(self.additional_properties)
|
|
|
|
field_dict.update({})
|
2023-08-30 15:59:51 -07:00
|
|
|
if data is not UNSET:
|
|
|
|
field_dict["data"] = data
|
2023-08-17 12:48:13 -07:00
|
|
|
field_dict["type"] = type
|
|
|
|
|
|
|
|
return field_dict
|
|
|
|
|
|
|
|
@classmethod
|
2023-09-29 15:51:03 -07:00
|
|
|
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
2023-08-17 12:48:13 -07:00
|
|
|
d = src_dict.copy()
|
2023-08-30 15:59:51 -07:00
|
|
|
data = d.pop("data", UNSET)
|
2023-08-17 12:48:13 -07:00
|
|
|
type = d.pop("type", UNSET)
|
|
|
|
|
|
|
|
modeling = cls(
|
2023-08-30 15:59:51 -07:00
|
|
|
data=data,
|
2023-08-17 12:48:13 -07:00
|
|
|
type=type,
|
|
|
|
)
|
|
|
|
|
|
|
|
modeling.additional_properties = d
|
|
|
|
return modeling
|
|
|
|
|
|
|
|
@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 __setitem__(self, key: str, value: Any) -> None:
|
|
|
|
self.additional_properties[key] = value
|
|
|
|
|
|
|
|
def __delitem__(self, key: str) -> None:
|
|
|
|
del self.additional_properties[key]
|
|
|
|
|
|
|
|
def __contains__(self, key: str) -> bool:
|
|
|
|
return key in self.additional_properties
|
|
|
|
|
|
|
|
|
2023-09-29 15:51:03 -07:00
|
|
|
FJ = TypeVar("FJ", bound="export")
|
2023-08-17 12:48:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
|
|
|
class export:
|
2023-08-30 15:59:51 -07:00
|
|
|
"""The exported files.""" # noqa: E501
|
2023-08-17 12:48:13 -07:00
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
data: Union[Unset, Any] = UNSET
|
2023-08-17 12:48:13 -07:00
|
|
|
type: str = "export"
|
|
|
|
|
|
|
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
|
|
|
|
|
|
def to_dict(self) -> Dict[str, Any]:
|
2023-08-30 15:59:51 -07:00
|
|
|
data = self.data
|
2023-08-17 12:48:13 -07:00
|
|
|
type = self.type
|
|
|
|
|
|
|
|
field_dict: Dict[str, Any] = {}
|
|
|
|
field_dict.update(self.additional_properties)
|
|
|
|
field_dict.update({})
|
2023-08-30 15:59:51 -07:00
|
|
|
if data is not UNSET:
|
|
|
|
field_dict["data"] = data
|
2023-08-17 12:48:13 -07:00
|
|
|
field_dict["type"] = type
|
|
|
|
|
|
|
|
return field_dict
|
|
|
|
|
|
|
|
@classmethod
|
2023-09-29 15:51:03 -07:00
|
|
|
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
2023-08-17 12:48:13 -07:00
|
|
|
d = src_dict.copy()
|
2023-08-30 15:59:51 -07:00
|
|
|
data = d.pop("data", UNSET)
|
2023-08-17 12:48:13 -07:00
|
|
|
type = d.pop("type", UNSET)
|
|
|
|
|
|
|
|
export = cls(
|
2023-08-30 15:59:51 -07:00
|
|
|
data=data,
|
2023-08-17 12:48:13 -07:00
|
|
|
type=type,
|
|
|
|
)
|
|
|
|
|
|
|
|
export.additional_properties = d
|
|
|
|
return export
|
|
|
|
|
|
|
|
@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 __setitem__(self, key: str, value: Any) -> None:
|
|
|
|
self.additional_properties[key] = value
|
|
|
|
|
|
|
|
def __delitem__(self, key: str) -> None:
|
|
|
|
del self.additional_properties[key]
|
|
|
|
|
|
|
|
def __contains__(self, key: str) -> bool:
|
|
|
|
return key in self.additional_properties
|
|
|
|
|
|
|
|
|
2023-09-29 15:51:03 -07:00
|
|
|
HB = TypeVar("HB", bound="metrics_request")
|
|
|
|
|
|
|
|
|
|
|
|
@attr.s(auto_attribs=True)
|
|
|
|
class metrics_request:
|
|
|
|
"""Request a collection of metrics, to include WebRTC.""" # noqa: E501
|
|
|
|
|
|
|
|
data: Union[Unset, Any] = UNSET
|
|
|
|
type: str = "metrics_request"
|
|
|
|
|
|
|
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
|
|
|
|
|
|
def to_dict(self) -> Dict[str, Any]:
|
|
|
|
data = self.data
|
|
|
|
type = self.type
|
|
|
|
|
|
|
|
field_dict: Dict[str, Any] = {}
|
|
|
|
field_dict.update(self.additional_properties)
|
|
|
|
field_dict.update({})
|
|
|
|
if data is not UNSET:
|
|
|
|
field_dict["data"] = data
|
|
|
|
field_dict["type"] = type
|
|
|
|
|
|
|
|
return field_dict
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
|
|
|
d = src_dict.copy()
|
|
|
|
data = d.pop("data", UNSET)
|
|
|
|
type = d.pop("type", UNSET)
|
|
|
|
|
|
|
|
metrics_request = cls(
|
|
|
|
data=data,
|
|
|
|
type=type,
|
|
|
|
)
|
|
|
|
|
|
|
|
metrics_request.additional_properties = d
|
|
|
|
return metrics_request
|
|
|
|
|
|
|
|
@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 __setitem__(self, key: str, value: Any) -> None:
|
|
|
|
self.additional_properties[key] = value
|
|
|
|
|
|
|
|
def __delitem__(self, key: str) -> None:
|
|
|
|
del self.additional_properties[key]
|
|
|
|
|
|
|
|
def __contains__(self, key: str) -> bool:
|
|
|
|
return key in self.additional_properties
|
|
|
|
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
OkWebSocketResponseData = Union[
|
2023-09-29 15:51:03 -07:00
|
|
|
ice_server_info, trickle_ice, sdp_answer, modeling, export, metrics_request
|
2023-08-30 15:59:51 -07:00
|
|
|
]
|