-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from atlanticwave-sdx/152-update-the-schema-o…
…n-connection-request-spec connection spec v2
- Loading branch information
Showing
6 changed files
with
1,169 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
from datetime import date, datetime # noqa: F401 | ||
from typing import Dict, List # noqa: F401 | ||
|
||
from sdx_lc import util | ||
from sdx_lc.models.base_model_ import Model | ||
from sdx_lc.models.connection_qos_unit import ConnectionQosUnit # noqa: F401,E501 | ||
|
||
|
||
class ConnectionQosMetrics(Model): | ||
"""NOTE: This class is auto generated by the swagger code generator program. | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__( | ||
self, | ||
min_bw=None, | ||
max_delay=None, | ||
max_number_oxps=None, | ||
bandwidth_measured=None, | ||
latency_measured=None, | ||
packetloss_required=None, | ||
packetloss_measured=None, | ||
availability_required=None, | ||
availability_measured=None, | ||
): # noqa: E501 | ||
"""ConnectionQosMetrics - a model defined in Swagger | ||
:param min_bw: The min_bw of this ConnectionQosMetrics. # noqa: E501 | ||
:type min_bw: ConnectionQosUnit | ||
:param max_delay: The max_delay of this ConnectionQosMetrics. # noqa: E501 | ||
:type max_delay: ConnectionQosUnit | ||
:param max_number_oxps: The max_number_oxps of this ConnectionQosMetrics. # noqa: E501 | ||
:type max_number_oxps: ConnectionQosUnit | ||
:param bandwidth_measured: The bandwidth_measured of this ConnectionQosMetrics. # noqa: E501 | ||
:type bandwidth_measured: float | ||
:param latency_measured: The latency_measured of this ConnectionQosMetrics. # noqa: E501 | ||
:type latency_measured: float | ||
:param packetloss_required: The packetloss_required of this ConnectionQosMetrics. # noqa: E501 | ||
:type packetloss_required: float | ||
:param packetloss_measured: The packetloss_measured of this ConnectionQosMetrics. # noqa: E501 | ||
:type packetloss_measured: float | ||
:param availability_required: The availability_required of this ConnectionQosMetrics. # noqa: E501 | ||
:type availability_required: float | ||
:param availability_measured: The availability_measured of this ConnectionQosMetrics. # noqa: E501 | ||
:type availability_measured: float | ||
""" | ||
self.swagger_types = { | ||
"min_bw": ConnectionQosUnit, | ||
"max_delay": ConnectionQosUnit, | ||
"max_number_oxps": ConnectionQosUnit, | ||
"bandwidth_measured": float, | ||
"latency_measured": float, | ||
"packetloss_required": float, | ||
"packetloss_measured": float, | ||
"availability_required": float, | ||
"availability_measured": float, | ||
} | ||
|
||
self.attribute_map = { | ||
"min_bw": "min_bw", | ||
"max_delay": "max_delay", | ||
"max_number_oxps": "max_number_oxps", | ||
"bandwidth_measured": "bandwidth_measured", | ||
"latency_measured": "latency_measured", | ||
"packetloss_required": "packetloss_required", | ||
"packetloss_measured": "packetloss_measured", | ||
"availability_required": "availability_required", | ||
"availability_measured": "availability_measured", | ||
} | ||
self._min_bw = min_bw | ||
self._max_delay = max_delay | ||
self._max_number_oxps = max_number_oxps | ||
self._bandwidth_measured = bandwidth_measured | ||
self._latency_measured = latency_measured | ||
self._packetloss_required = packetloss_required | ||
self._packetloss_measured = packetloss_measured | ||
self._availability_required = availability_required | ||
self._availability_measured = availability_measured | ||
|
||
@classmethod | ||
def from_dict(cls, dikt): | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The connection_qos_metrics of this ConnectionQosMetrics. # noqa: E501 | ||
:rtype: ConnectionQosMetrics | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def min_bw(self): | ||
"""Gets the min_bw of this ConnectionQosMetrics. | ||
:return: The min_bw of this ConnectionQosMetrics. | ||
:rtype: ConnectionQosUnit | ||
""" | ||
return self._min_bw | ||
|
||
@min_bw.setter | ||
def min_bw(self, min_bw): | ||
"""Sets the min_bw of this ConnectionQosMetrics. | ||
:param min_bw: The min_bw of this ConnectionQosMetrics. | ||
:type min_bw: ConnectionQosUnit | ||
""" | ||
|
||
self._min_bw = min_bw | ||
|
||
@property | ||
def max_delay(self): | ||
"""Gets the max_delay of this ConnectionQosMetrics. | ||
:return: The max_delay of this ConnectionQosMetrics. | ||
:rtype: ConnectionQosUnit | ||
""" | ||
return self._max_delay | ||
|
||
@max_delay.setter | ||
def max_delay(self, max_delay): | ||
"""Sets the max_delay of this ConnectionQosMetrics. | ||
:param max_delay: The max_delay of this ConnectionQosMetrics. | ||
:type max_delay: ConnectionQosUnit | ||
""" | ||
|
||
self._max_delay = max_delay | ||
|
||
@property | ||
def max_number_oxps(self): | ||
"""Gets the max_number_oxps of this ConnectionQosMetrics. | ||
:return: The max_number_oxps of this ConnectionQosMetrics. | ||
:rtype: ConnectionQosUnit | ||
""" | ||
return self._max_number_oxps | ||
|
||
@max_number_oxps.setter | ||
def max_number_oxps(self, max_number_oxps): | ||
"""Sets the max_number_oxps of this ConnectionQosMetrics. | ||
:param max_number_oxps: The max_number_oxps of this ConnectionQosMetrics. | ||
:type max_number_oxps: ConnectionQosUnit | ||
""" | ||
|
||
self._max_number_oxps = max_number_oxps | ||
|
||
@property | ||
def bandwidth_measured(self): | ||
"""Gets the bandwidth_measured of this ConnectionQosMetrics. | ||
:return: The bandwidth_measured of this ConnectionQosMetrics. | ||
:rtype: float | ||
""" | ||
return self._bandwidth_measured | ||
|
||
@bandwidth_measured.setter | ||
def bandwidth_measured(self, bandwidth_measured): | ||
"""Sets the bandwidth_measured of this ConnectionQosMetrics. | ||
:param bandwidth_measured: The bandwidth_measured of this ConnectionQosMetrics. | ||
:type bandwidth_measured: float | ||
""" | ||
|
||
self._bandwidth_measured = bandwidth_measured | ||
|
||
@property | ||
def latency_measured(self): | ||
"""Gets the latency_measured of this ConnectionQosMetrics. | ||
:return: The latency_measured of this ConnectionQosMetrics. | ||
:rtype: float | ||
""" | ||
return self._latency_measured | ||
|
||
@latency_measured.setter | ||
def latency_measured(self, latency_measured): | ||
"""Sets the latency_measured of this ConnectionQosMetrics. | ||
:param latency_measured: The latency_measured of this ConnectionQosMetrics. | ||
:type latency_measured: float | ||
""" | ||
|
||
self._latency_measured = latency_measured | ||
|
||
@property | ||
def packetloss_required(self): | ||
"""Gets the packetloss_required of this ConnectionQosMetrics. | ||
:return: The packetloss_required of this ConnectionQosMetrics. | ||
:rtype: float | ||
""" | ||
return self._packetloss_required | ||
|
||
@packetloss_required.setter | ||
def packetloss_required(self, packetloss_required): | ||
"""Sets the packetloss_required of this ConnectionQosMetrics. | ||
:param packetloss_required: The packetloss_required of this ConnectionQosMetrics. | ||
:type packetloss_required: float | ||
""" | ||
|
||
self._packetloss_required = packetloss_required | ||
|
||
@property | ||
def packetloss_measured(self): | ||
"""Gets the packetloss_measured of this ConnectionQosMetrics. | ||
:return: The packetloss_measured of this ConnectionQosMetrics. | ||
:rtype: float | ||
""" | ||
return self._packetloss_measured | ||
|
||
@packetloss_measured.setter | ||
def packetloss_measured(self, packetloss_measured): | ||
"""Sets the packetloss_measured of this ConnectionQosMetrics. | ||
:param packetloss_measured: The packetloss_measured of this ConnectionQosMetrics. | ||
:type packetloss_measured: float | ||
""" | ||
|
||
self._packetloss_measured = packetloss_measured | ||
|
||
@property | ||
def availability_required(self): | ||
"""Gets the availability_required of this ConnectionQosMetrics. | ||
:return: The availability_required of this ConnectionQosMetrics. | ||
:rtype: float | ||
""" | ||
return self._availability_required | ||
|
||
@availability_required.setter | ||
def availability_required(self, availability_required): | ||
"""Sets the availability_required of this ConnectionQosMetrics. | ||
:param availability_required: The availability_required of this ConnectionQosMetrics. | ||
:type availability_required: float | ||
""" | ||
|
||
self._availability_required = availability_required | ||
|
||
@property | ||
def availability_measured(self): | ||
"""Gets the availability_measured of this ConnectionQosMetrics. | ||
:return: The availability_measured of this ConnectionQosMetrics. | ||
:rtype: float | ||
""" | ||
return self._availability_measured | ||
|
||
@availability_measured.setter | ||
def availability_measured(self, availability_measured): | ||
"""Sets the availability_measured of this ConnectionQosMetrics. | ||
:param availability_measured: The availability_measured of this ConnectionQosMetrics. | ||
:type availability_measured: float | ||
""" | ||
|
||
self._availability_measured = availability_measured |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
from datetime import date, datetime # noqa: F401 | ||
from typing import Dict, List # noqa: F401 | ||
|
||
from sdx_lc import util | ||
from sdx_lc.models.base_model_ import Model | ||
|
||
|
||
class ConnectionQosUnit(Model): | ||
"""NOTE: This class is auto generated by the swagger code generator program. | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, value=None, strict=None): # noqa: E501 | ||
"""ConnectionQosUnit - a model defined in Swagger | ||
:param value: The value of this ConnectionQosUnit. # noqa: E501 | ||
:type value: int | ||
:param strict: The strict of this ConnectionQosUnit. # noqa: E501 | ||
:type strict: bool | ||
""" | ||
self.swagger_types = {"value": int, "strict": bool} | ||
|
||
self.attribute_map = {"value": "value", "strict": "strict"} | ||
self._value = value | ||
self._strict = strict | ||
|
||
@classmethod | ||
def from_dict(cls, dikt): | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The connection_qos_unit of this ConnectionQosUnit. # noqa: E501 | ||
:rtype: ConnectionQosUnit | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def value(self): | ||
"""Gets the value of this ConnectionQosUnit. | ||
:return: The value of this ConnectionQosUnit. | ||
:rtype: int | ||
""" | ||
return self._value | ||
|
||
@value.setter | ||
def value(self, value): | ||
"""Sets the value of this ConnectionQosUnit. | ||
:param value: The value of this ConnectionQosUnit. | ||
:type value: int | ||
""" | ||
|
||
self._value = value | ||
|
||
@property | ||
def strict(self): | ||
"""Gets the strict of this ConnectionQosUnit. | ||
:return: The strict of this ConnectionQosUnit. | ||
:rtype: bool | ||
""" | ||
return self._strict | ||
|
||
@strict.setter | ||
def strict(self, strict): | ||
"""Sets the strict of this ConnectionQosUnit. | ||
:param strict: The strict of this ConnectionQosUnit. | ||
:type strict: bool | ||
""" | ||
|
||
self._strict = strict |
Oops, something went wrong.