-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove openapi generated code (#4214)
- [x] Remove Openapi generated code from client side - [x] Improve codecov coverage - [x] Support temporal data type in flex coordinator
- Loading branch information
1 parent
445adf6
commit 9267d74
Showing
97 changed files
with
635 additions
and
20,791 deletions.
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
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
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
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
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,63 @@ | ||
from datetime import date, datetime # noqa: F401 | ||
|
||
from typing import List, Dict # noqa: F401 | ||
|
||
from gscoordinator.flex.models.base_model import Model | ||
from gscoordinator.flex import util | ||
|
||
|
||
class DateType(Model): | ||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, date32=None): # noqa: E501 | ||
"""DateType - a model defined in OpenAPI | ||
:param date32: The date32 of this DateType. # noqa: E501 | ||
:type date32: str | ||
""" | ||
self.openapi_types = { | ||
'date32': str | ||
} | ||
|
||
self.attribute_map = { | ||
'date32': 'date32' | ||
} | ||
|
||
self._date32 = date32 | ||
|
||
@classmethod | ||
def from_dict(cls, dikt) -> 'DateType': | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The DateType of this DateType. # noqa: E501 | ||
:rtype: DateType | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def date32(self) -> str: | ||
"""Gets the date32 of this DateType. | ||
:return: The date32 of this DateType. | ||
:rtype: str | ||
""" | ||
return self._date32 | ||
|
||
@date32.setter | ||
def date32(self, date32: str): | ||
"""Sets the date32 of this DateType. | ||
:param date32: The date32 of this DateType. | ||
:type date32: str | ||
""" | ||
if date32 is None: | ||
raise ValueError("Invalid value for `date32`, must not be `None`") # noqa: E501 | ||
|
||
self._date32 = date32 |
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
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,65 @@ | ||
from datetime import date, datetime # noqa: F401 | ||
|
||
from typing import List, Dict # noqa: F401 | ||
|
||
from gscoordinator.flex.models.base_model import Model | ||
from gscoordinator.flex.models.temporal_type_temporal import TemporalTypeTemporal | ||
from gscoordinator.flex import util | ||
|
||
from gscoordinator.flex.models.temporal_type_temporal import TemporalTypeTemporal # noqa: E501 | ||
|
||
class TemporalType(Model): | ||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, temporal=None): # noqa: E501 | ||
"""TemporalType - a model defined in OpenAPI | ||
:param temporal: The temporal of this TemporalType. # noqa: E501 | ||
:type temporal: TemporalTypeTemporal | ||
""" | ||
self.openapi_types = { | ||
'temporal': TemporalTypeTemporal | ||
} | ||
|
||
self.attribute_map = { | ||
'temporal': 'temporal' | ||
} | ||
|
||
self._temporal = temporal | ||
|
||
@classmethod | ||
def from_dict(cls, dikt) -> 'TemporalType': | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The TemporalType of this TemporalType. # noqa: E501 | ||
:rtype: TemporalType | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def temporal(self) -> TemporalTypeTemporal: | ||
"""Gets the temporal of this TemporalType. | ||
:return: The temporal of this TemporalType. | ||
:rtype: TemporalTypeTemporal | ||
""" | ||
return self._temporal | ||
|
||
@temporal.setter | ||
def temporal(self, temporal: TemporalTypeTemporal): | ||
"""Sets the temporal of this TemporalType. | ||
:param temporal: The temporal of this TemporalType. | ||
:type temporal: TemporalTypeTemporal | ||
""" | ||
if temporal is None: | ||
raise ValueError("Invalid value for `temporal`, must not be `None`") # noqa: E501 | ||
|
||
self._temporal = temporal |
95 changes: 95 additions & 0 deletions
95
coordinator/gscoordinator/flex/models/temporal_type_temporal.py
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,95 @@ | ||
from datetime import date, datetime # noqa: F401 | ||
|
||
from typing import List, Dict # noqa: F401 | ||
|
||
from gscoordinator.flex.models.base_model import Model | ||
from gscoordinator.flex.models.date_type import DateType | ||
from gscoordinator.flex.models.time_stamp_type import TimeStampType | ||
from gscoordinator.flex import util | ||
|
||
from gscoordinator.flex.models.date_type import DateType # noqa: E501 | ||
from gscoordinator.flex.models.time_stamp_type import TimeStampType # noqa: E501 | ||
|
||
class TemporalTypeTemporal(Model): | ||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, timestamp=None, date32=None): # noqa: E501 | ||
"""TemporalTypeTemporal - a model defined in OpenAPI | ||
:param timestamp: The timestamp of this TemporalTypeTemporal. # noqa: E501 | ||
:type timestamp: str | ||
:param date32: The date32 of this TemporalTypeTemporal. # noqa: E501 | ||
:type date32: str | ||
""" | ||
self.openapi_types = { | ||
'timestamp': str, | ||
'date32': str | ||
} | ||
|
||
self.attribute_map = { | ||
'timestamp': 'timestamp', | ||
'date32': 'date32' | ||
} | ||
|
||
self._timestamp = timestamp | ||
self._date32 = date32 | ||
|
||
@classmethod | ||
def from_dict(cls, dikt) -> 'TemporalTypeTemporal': | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The TemporalType_temporal of this TemporalTypeTemporal. # noqa: E501 | ||
:rtype: TemporalTypeTemporal | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def timestamp(self) -> str: | ||
"""Gets the timestamp of this TemporalTypeTemporal. | ||
:return: The timestamp of this TemporalTypeTemporal. | ||
:rtype: str | ||
""" | ||
return self._timestamp | ||
|
||
@timestamp.setter | ||
def timestamp(self, timestamp: str): | ||
"""Sets the timestamp of this TemporalTypeTemporal. | ||
:param timestamp: The timestamp of this TemporalTypeTemporal. | ||
:type timestamp: str | ||
""" | ||
if timestamp is None: | ||
raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 | ||
|
||
self._timestamp = timestamp | ||
|
||
@property | ||
def date32(self) -> str: | ||
"""Gets the date32 of this TemporalTypeTemporal. | ||
:return: The date32 of this TemporalTypeTemporal. | ||
:rtype: str | ||
""" | ||
return self._date32 | ||
|
||
@date32.setter | ||
def date32(self, date32: str): | ||
"""Sets the date32 of this TemporalTypeTemporal. | ||
:param date32: The date32 of this TemporalTypeTemporal. | ||
:type date32: str | ||
""" | ||
if date32 is None: | ||
raise ValueError("Invalid value for `date32`, must not be `None`") # noqa: E501 | ||
|
||
self._date32 = date32 |
Oops, something went wrong.