Files
2024-04-06 20:45:15 -07:00

118 lines
3.0 KiB
Python

from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model import Model
from openapi_server.models.ice_session_description import IceSessionDescription
from openapi_server import util
from openapi_server.models.ice_session_description import IceSessionDescription # noqa: E501
class Knock(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
"""
def __init__(self, name=None, offer=None, answer=None): # noqa: E501
"""Knock - a model defined in OpenAPI
:param name: The name of this Knock. # noqa: E501
:type name: str
:param offer: The offer of this Knock. # noqa: E501
:type offer: IceSessionDescription
:param answer: The answer of this Knock. # noqa: E501
:type answer: IceSessionDescription
"""
self.openapi_types = {
'name': str,
'offer': IceSessionDescription,
'answer': IceSessionDescription
}
self.attribute_map = {
'name': 'name',
'offer': 'offer',
'answer': 'answer'
}
self._name = name
self._offer = offer
self._answer = answer
@classmethod
def from_dict(cls, dikt) -> 'Knock':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The Knock of this Knock. # noqa: E501
:rtype: Knock
"""
return util.deserialize_model(dikt, cls)
@property
def name(self) -> str:
"""Gets the name of this Knock.
:return: The name of this Knock.
:rtype: str
"""
return self._name
@name.setter
def name(self, name: str):
"""Sets the name of this Knock.
:param name: The name of this Knock.
:type name: str
"""
self._name = name
@property
def offer(self) -> IceSessionDescription:
"""Gets the offer of this Knock.
The service being connected too # noqa: E501
:return: The offer of this Knock.
:rtype: IceSessionDescription
"""
return self._offer
@offer.setter
def offer(self, offer: IceSessionDescription):
"""Sets the offer of this Knock.
The service being connected too # noqa: E501
:param offer: The offer of this Knock.
:type offer: IceSessionDescription
"""
self._offer = offer
@property
def answer(self) -> IceSessionDescription:
"""Gets the answer of this Knock.
:return: The answer of this Knock.
:rtype: IceSessionDescription
"""
return self._answer
@answer.setter
def answer(self, answer: IceSessionDescription):
"""Sets the answer of this Knock.
:param answer: The answer of this Knock.
:type answer: IceSessionDescription
"""
self._answer = answer