Created
November 15, 2019 10:23
-
-
Save Rictus/5f34f54cb83962190eeb240ad82ea5db to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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 TrainingConfig(Model): | |
"""NOTE: This class is auto generated by the swagger code generator program. | |
Do not edit the class manually. | |
""" | |
def __init__(self, data_file: str=None, main_columns_a: ColumnsList=None): # noqa: E501 | |
"""TrainingConfig - a model defined in Swagger | |
:param data_file: The data_file of this TrainingConfig. # noqa: E501 | |
:type data_file: str | |
:param main_columns_a: The main_columns_a of this TrainingConfig. # noqa: E501 | |
:type main_columns_a: ColumnsList | |
""" | |
self.swagger_types = { | |
'data_file': str, | |
'main_columns_a': ColumnsList | |
} | |
self.attribute_map = { | |
'data_file': 'data_file', | |
'main_columns_a': 'main_columns_A' | |
} | |
self._data_file = data_file | |
self._main_columns_a = main_columns_a | |
@classmethod | |
def from_dict(cls, dikt) -> 'TrainingConfig': | |
"""Returns the dict as a model | |
:param dikt: A dict. | |
:type: dict | |
:return: The TrainingConfig of this TrainingConfig. # noqa: E501 | |
:rtype: TrainingConfig | |
""" | |
return util.deserialize_model(dikt, cls) | |
@property | |
def data_file(self) -> str: | |
"""Gets the data_file of this TrainingConfig. | |
:return: The data_file of this TrainingConfig. | |
:rtype: str | |
""" | |
return self._data_file | |
@data_file.setter | |
def data_file(self, data_file: str): | |
"""Sets the data_file of this TrainingConfig. | |
:param data_file: The data_file of this TrainingConfig. | |
:type data_file: str | |
""" | |
if data_file is None: | |
raise ValueError("Invalid value for `data_file`, must not be `None`") # noqa: E501 | |
self._data_file = data_file | |
@property | |
def main_columns_a(self) -> ColumnsList: | |
"""Gets the main_columns_a of this TrainingConfig. | |
:return: The main_columns_a of this TrainingConfig. | |
:rtype: ColumnsList | |
""" | |
return self._main_columns_a | |
@main_columns_a.setter | |
def main_columns_a(self, main_columns_a: ColumnsList): | |
"""Sets the main_columns_a of this TrainingConfig. | |
:param main_columns_a: The main_columns_a of this TrainingConfig. | |
:type main_columns_a: ColumnsList | |
""" | |
if main_columns_a is None: | |
raise ValueError("Invalid value for `main_columns_a`, must not be `None`") # noqa: E501 | |
self._main_columns_a = main_columns_a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment