mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-30 17:47:50 +00:00
- add POST, PUT, DELETE on equipments - add POST, PUT, GET, DELETE on topogies - path-computation request body can now have equipment id and/or topology id instead of full data - activate embedded https of Flask while waiting for real trusted certificate - update readme - add request payload samples in yang directory - equipment data are encrypted with Fernet Signed-off-by: manuedelf <59697943+edelfour@users.noreply.github.com>
18 lines
481 B
Python
18 lines
481 B
Python
# coding: utf-8
|
|
|
|
|
|
class Error:
|
|
|
|
def __init__(self, code: int = None, message: str = None, description: str = None):
|
|
"""Error
|
|
:param code: The code of this Error.
|
|
:type code: int
|
|
:param message: The message of this Error.
|
|
:type message: str
|
|
:param description: The description of this Error.
|
|
:type description: str
|
|
"""
|
|
self.code = code
|
|
self.message = message
|
|
self.description = description
|