Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# coding: utf-8
|
||||
|
||||
# flake8: noqa
|
||||
from __future__ import absolute_import
|
||||
# import models into model package
|
||||
from swagger_server.models.datoteka_v_besedilo_body import DatotekaVBesediloBody
|
||||
from swagger_server.models.datoteka_v_besedilo_ocr_body import DatotekaVBesediloOcrBody
|
||||
from swagger_server.models.izlusci_body import IzlusciBody
|
||||
from swagger_server.models.terminoloski_kandidat import TerminoloskiKandidat
|
||||
@@ -0,0 +1,69 @@
|
||||
import pprint
|
||||
|
||||
import six
|
||||
import typing
|
||||
|
||||
from swagger_server import util
|
||||
|
||||
T = typing.TypeVar('T')
|
||||
|
||||
|
||||
class Model(object):
|
||||
# swaggerTypes: The key is attribute name and the
|
||||
# value is attribute type.
|
||||
swagger_types = {}
|
||||
|
||||
# attributeMap: The key is attribute name and the
|
||||
# value is json key in definition.
|
||||
attribute_map = {}
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: typing.Type[T], dikt) -> T:
|
||||
"""Returns the dict as a model"""
|
||||
return util.deserialize_model(dikt, cls)
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict
|
||||
|
||||
:rtype: dict
|
||||
"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.swagger_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model
|
||||
|
||||
:rtype: str
|
||||
"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
||||
@@ -0,0 +1,64 @@
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import absolute_import
|
||||
from datetime import date, datetime # noqa: F401
|
||||
|
||||
from typing import List, Dict # noqa: F401
|
||||
|
||||
from swagger_server.models.base_model_ import Model
|
||||
from swagger_server import util
|
||||
|
||||
|
||||
class DatotekaVBesediloBody(Model):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
def __init__(self, file: str=None): # noqa: E501
|
||||
"""DatotekaVBesediloBody - a model defined in Swagger
|
||||
|
||||
:param file: The file of this DatotekaVBesediloBody. # noqa: E501
|
||||
:type file: str
|
||||
"""
|
||||
self.swagger_types = {
|
||||
'file': str
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
'file': 'file'
|
||||
}
|
||||
self._file = file
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, dikt) -> 'DatotekaVBesediloBody':
|
||||
"""Returns the dict as a model
|
||||
|
||||
:param dikt: A dict.
|
||||
:type: dict
|
||||
:return: The datotekaVBesedilo_body of this DatotekaVBesediloBody. # noqa: E501
|
||||
:rtype: DatotekaVBesediloBody
|
||||
"""
|
||||
return util.deserialize_model(dikt, cls)
|
||||
|
||||
@property
|
||||
def file(self) -> str:
|
||||
"""Gets the file of this DatotekaVBesediloBody.
|
||||
|
||||
|
||||
:return: The file of this DatotekaVBesediloBody.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._file
|
||||
|
||||
@file.setter
|
||||
def file(self, file: str):
|
||||
"""Sets the file of this DatotekaVBesediloBody.
|
||||
|
||||
|
||||
:param file: The file of this DatotekaVBesediloBody.
|
||||
:type file: str
|
||||
"""
|
||||
if file is None:
|
||||
raise ValueError("Invalid value for `file`, must not be `None`") # noqa: E501
|
||||
|
||||
self._file = file
|
||||
@@ -0,0 +1,64 @@
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import absolute_import
|
||||
from datetime import date, datetime # noqa: F401
|
||||
|
||||
from typing import List, Dict # noqa: F401
|
||||
|
||||
from swagger_server.models.base_model_ import Model
|
||||
from swagger_server import util
|
||||
|
||||
|
||||
class DatotekaVBesediloOcrBody(Model):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
def __init__(self, file: str=None): # noqa: E501
|
||||
"""DatotekaVBesediloOcrBody - a model defined in Swagger
|
||||
|
||||
:param file: The file of this DatotekaVBesediloOcrBody. # noqa: E501
|
||||
:type file: str
|
||||
"""
|
||||
self.swagger_types = {
|
||||
'file': str
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
'file': 'file'
|
||||
}
|
||||
self._file = file
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, dikt) -> 'DatotekaVBesediloOcrBody':
|
||||
"""Returns the dict as a model
|
||||
|
||||
:param dikt: A dict.
|
||||
:type: dict
|
||||
:return: The datotekaVBesedilo_ocr_body of this DatotekaVBesediloOcrBody. # noqa: E501
|
||||
:rtype: DatotekaVBesediloOcrBody
|
||||
"""
|
||||
return util.deserialize_model(dikt, cls)
|
||||
|
||||
@property
|
||||
def file(self) -> str:
|
||||
"""Gets the file of this DatotekaVBesediloOcrBody.
|
||||
|
||||
|
||||
:return: The file of this DatotekaVBesediloOcrBody.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._file
|
||||
|
||||
@file.setter
|
||||
def file(self, file: str):
|
||||
"""Sets the file of this DatotekaVBesediloOcrBody.
|
||||
|
||||
|
||||
:param file: The file of this DatotekaVBesediloOcrBody.
|
||||
:type file: str
|
||||
"""
|
||||
if file is None:
|
||||
raise ValueError("Invalid value for `file`, must not be `None`") # noqa: E501
|
||||
|
||||
self._file = file
|
||||
@@ -0,0 +1,88 @@
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import absolute_import
|
||||
from datetime import date, datetime # noqa: F401
|
||||
|
||||
from typing import List, Dict # noqa: F401
|
||||
|
||||
from swagger_server.models.base_model_ import Model
|
||||
from swagger_server import util
|
||||
|
||||
|
||||
class IzlusciBody(Model):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
def __init__(self, conllus: List[str]=None, prepovedane_besede: List[str]=None): # noqa: E501
|
||||
"""IzlusciBody - a model defined in Swagger
|
||||
|
||||
:param conllus: The conllus of this IzlusciBody. # noqa: E501
|
||||
:type conllus: List[str]
|
||||
:param prepovedane_besede: The prepovedane_besede of this IzlusciBody. # noqa: E501
|
||||
:type prepovedane_besede: List[str]
|
||||
"""
|
||||
self.swagger_types = {
|
||||
'conllus': List[str],
|
||||
'prepovedane_besede': List[str]
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
'conllus': 'conllus',
|
||||
'prepovedane_besede': 'prepovedaneBesede'
|
||||
}
|
||||
self._conllus = conllus
|
||||
self._prepovedane_besede = prepovedane_besede
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, dikt) -> 'IzlusciBody':
|
||||
"""Returns the dict as a model
|
||||
|
||||
:param dikt: A dict.
|
||||
:type: dict
|
||||
:return: The izlusci_body of this IzlusciBody. # noqa: E501
|
||||
:rtype: IzlusciBody
|
||||
"""
|
||||
return util.deserialize_model(dikt, cls)
|
||||
|
||||
@property
|
||||
def conllus(self) -> List[str]:
|
||||
"""Gets the conllus of this IzlusciBody.
|
||||
|
||||
|
||||
:return: The conllus of this IzlusciBody.
|
||||
:rtype: List[str]
|
||||
"""
|
||||
return self._conllus
|
||||
|
||||
@conllus.setter
|
||||
def conllus(self, conllus: List[str]):
|
||||
"""Sets the conllus of this IzlusciBody.
|
||||
|
||||
|
||||
:param conllus: The conllus of this IzlusciBody.
|
||||
:type conllus: List[str]
|
||||
"""
|
||||
|
||||
self._conllus = conllus
|
||||
|
||||
@property
|
||||
def prepovedane_besede(self) -> List[str]:
|
||||
"""Gets the prepovedane_besede of this IzlusciBody.
|
||||
|
||||
|
||||
:return: The prepovedane_besede of this IzlusciBody.
|
||||
:rtype: List[str]
|
||||
"""
|
||||
return self._prepovedane_besede
|
||||
|
||||
@prepovedane_besede.setter
|
||||
def prepovedane_besede(self, prepovedane_besede: List[str]):
|
||||
"""Sets the prepovedane_besede of this IzlusciBody.
|
||||
|
||||
|
||||
:param prepovedane_besede: The prepovedane_besede of this IzlusciBody.
|
||||
:type prepovedane_besede: List[str]
|
||||
"""
|
||||
|
||||
self._prepovedane_besede = prepovedane_besede
|
||||
@@ -0,0 +1,192 @@
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import absolute_import
|
||||
from datetime import date, datetime # noqa: F401
|
||||
|
||||
from typing import List, Dict # noqa: F401
|
||||
|
||||
from swagger_server.models.base_model_ import Model
|
||||
from swagger_server import util
|
||||
|
||||
|
||||
class TerminoloskiKandidat(Model):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
def __init__(self, kandidat: str=None, kanonicnaoblika: str=None, po_soznake: str=None, nosilnautez: float=None, podporneutezi: List[float]=None, pogostostpojavljanja: List[int]=None): # noqa: E501
|
||||
"""TerminoloskiKandidat - a model defined in Swagger
|
||||
|
||||
:param kandidat: The kandidat of this TerminoloskiKandidat. # noqa: E501
|
||||
:type kandidat: str
|
||||
:param kanonicnaoblika: The kanonicnaoblika of this TerminoloskiKandidat. # noqa: E501
|
||||
:type kanonicnaoblika: str
|
||||
:param po_soznake: The po_soznake of this TerminoloskiKandidat. # noqa: E501
|
||||
:type po_soznake: str
|
||||
:param nosilnautez: The nosilnautez of this TerminoloskiKandidat. # noqa: E501
|
||||
:type nosilnautez: float
|
||||
:param podporneutezi: The podporneutezi of this TerminoloskiKandidat. # noqa: E501
|
||||
:type podporneutezi: List[float]
|
||||
:param pogostostpojavljanja: The pogostostpojavljanja of this TerminoloskiKandidat. # noqa: E501
|
||||
:type pogostostpojavljanja: List[int]
|
||||
"""
|
||||
self.swagger_types = {
|
||||
'kandidat': str,
|
||||
'kanonicnaoblika': str,
|
||||
'po_soznake': str,
|
||||
'nosilnautez': float,
|
||||
'podporneutezi': List[float],
|
||||
'pogostostpojavljanja': List[int]
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
'kandidat': 'kandidat',
|
||||
'kanonicnaoblika': 'kanonicnaoblika',
|
||||
'po_soznake': 'POSoznake',
|
||||
'nosilnautez': 'nosilnautez',
|
||||
'podporneutezi': 'podporneutezi',
|
||||
'pogostostpojavljanja': 'pogostostpojavljanja'
|
||||
}
|
||||
self._kandidat = kandidat
|
||||
self._kanonicnaoblika = kanonicnaoblika
|
||||
self._po_soznake = po_soznake
|
||||
self._nosilnautez = nosilnautez
|
||||
self._podporneutezi = podporneutezi
|
||||
self._pogostostpojavljanja = pogostostpojavljanja
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, dikt) -> 'TerminoloskiKandidat':
|
||||
"""Returns the dict as a model
|
||||
|
||||
:param dikt: A dict.
|
||||
:type: dict
|
||||
:return: The TerminoloskiKandidat of this TerminoloskiKandidat. # noqa: E501
|
||||
:rtype: TerminoloskiKandidat
|
||||
"""
|
||||
return util.deserialize_model(dikt, cls)
|
||||
|
||||
@property
|
||||
def kandidat(self) -> str:
|
||||
"""Gets the kandidat of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:return: The kandidat of this TerminoloskiKandidat.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kandidat
|
||||
|
||||
@kandidat.setter
|
||||
def kandidat(self, kandidat: str):
|
||||
"""Sets the kandidat of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:param kandidat: The kandidat of this TerminoloskiKandidat.
|
||||
:type kandidat: str
|
||||
"""
|
||||
|
||||
self._kandidat = kandidat
|
||||
|
||||
@property
|
||||
def kanonicnaoblika(self) -> str:
|
||||
"""Gets the kanonicnaoblika of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:return: The kanonicnaoblika of this TerminoloskiKandidat.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._kanonicnaoblika
|
||||
|
||||
@kanonicnaoblika.setter
|
||||
def kanonicnaoblika(self, kanonicnaoblika: str):
|
||||
"""Sets the kanonicnaoblika of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:param kanonicnaoblika: The kanonicnaoblika of this TerminoloskiKandidat.
|
||||
:type kanonicnaoblika: str
|
||||
"""
|
||||
|
||||
self._kanonicnaoblika = kanonicnaoblika
|
||||
|
||||
@property
|
||||
def po_soznake(self) -> str:
|
||||
"""Gets the po_soznake of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:return: The po_soznake of this TerminoloskiKandidat.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._po_soznake
|
||||
|
||||
@po_soznake.setter
|
||||
def po_soznake(self, po_soznake: str):
|
||||
"""Sets the po_soznake of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:param po_soznake: The po_soznake of this TerminoloskiKandidat.
|
||||
:type po_soznake: str
|
||||
"""
|
||||
|
||||
self._po_soznake = po_soznake
|
||||
|
||||
@property
|
||||
def nosilnautez(self) -> float:
|
||||
"""Gets the nosilnautez of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:return: The nosilnautez of this TerminoloskiKandidat.
|
||||
:rtype: float
|
||||
"""
|
||||
return self._nosilnautez
|
||||
|
||||
@nosilnautez.setter
|
||||
def nosilnautez(self, nosilnautez: float):
|
||||
"""Sets the nosilnautez of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:param nosilnautez: The nosilnautez of this TerminoloskiKandidat.
|
||||
:type nosilnautez: float
|
||||
"""
|
||||
|
||||
self._nosilnautez = nosilnautez
|
||||
|
||||
@property
|
||||
def podporneutezi(self) -> List[float]:
|
||||
"""Gets the podporneutezi of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:return: The podporneutezi of this TerminoloskiKandidat.
|
||||
:rtype: List[float]
|
||||
"""
|
||||
return self._podporneutezi
|
||||
|
||||
@podporneutezi.setter
|
||||
def podporneutezi(self, podporneutezi: List[float]):
|
||||
"""Sets the podporneutezi of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:param podporneutezi: The podporneutezi of this TerminoloskiKandidat.
|
||||
:type podporneutezi: List[float]
|
||||
"""
|
||||
|
||||
self._podporneutezi = podporneutezi
|
||||
|
||||
@property
|
||||
def pogostostpojavljanja(self) -> List[int]:
|
||||
"""Gets the pogostostpojavljanja of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:return: The pogostostpojavljanja of this TerminoloskiKandidat.
|
||||
:rtype: List[int]
|
||||
"""
|
||||
return self._pogostostpojavljanja
|
||||
|
||||
@pogostostpojavljanja.setter
|
||||
def pogostostpojavljanja(self, pogostostpojavljanja: List[int]):
|
||||
"""Sets the pogostostpojavljanja of this TerminoloskiKandidat.
|
||||
|
||||
|
||||
:param pogostostpojavljanja: The pogostostpojavljanja of this TerminoloskiKandidat.
|
||||
:type pogostostpojavljanja: List[int]
|
||||
"""
|
||||
|
||||
self._pogostostpojavljanja = pogostostpojavljanja
|
||||
Reference in New Issue
Block a user