-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added component requirement endpoints
- Loading branch information
1 parent
d503473
commit fe30b32
Showing
16 changed files
with
723 additions
and
0 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
64 changes: 64 additions & 0 deletions
64
apps/schematic/api/schematic_api/models/component_requirements_array.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,64 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
from datetime import date, datetime # noqa: F401 | ||
|
||
from typing import List, Dict # noqa: F401 | ||
|
||
from schematic_api.models.base_model_ import Model | ||
from schematic_api import util | ||
|
||
|
||
class ComponentRequirementsArray(Model): | ||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, component_requirements_list=None): # noqa: E501 | ||
"""ComponentRequirementsArray - a model defined in OpenAPI | ||
:param component_requirements_list: The component_requirements_list of this ComponentRequirementsArray. # noqa: E501 | ||
:type component_requirements_list: List[str] | ||
""" | ||
self.openapi_types = { | ||
'component_requirements_list': List[str] | ||
} | ||
|
||
self.attribute_map = { | ||
'component_requirements_list': 'componentRequirementsList' | ||
} | ||
|
||
self._component_requirements_list = component_requirements_list | ||
|
||
@classmethod | ||
def from_dict(cls, dikt) -> 'ComponentRequirementsArray': | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The ComponentRequirementsArray of this ComponentRequirementsArray. # noqa: E501 | ||
:rtype: ComponentRequirementsArray | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def component_requirements_list(self): | ||
"""Gets the component_requirements_list of this ComponentRequirementsArray. | ||
:return: The component_requirements_list of this ComponentRequirementsArray. | ||
:rtype: List[str] | ||
""" | ||
return self._component_requirements_list | ||
|
||
@component_requirements_list.setter | ||
def component_requirements_list(self, component_requirements_list): | ||
"""Sets the component_requirements_list of this ComponentRequirementsArray. | ||
:param component_requirements_list: The component_requirements_list of this ComponentRequirementsArray. | ||
:type component_requirements_list: List[str] | ||
""" | ||
|
||
self._component_requirements_list = component_requirements_list |
66 changes: 66 additions & 0 deletions
66
apps/schematic/api/schematic_api/models/component_requirements_graph.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,66 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
from datetime import date, datetime # noqa: F401 | ||
|
||
from typing import List, Dict # noqa: F401 | ||
|
||
from schematic_api.models.base_model_ import Model | ||
from schematic_api.models.component_requirements_subgraph import ComponentRequirementsSubgraph | ||
from schematic_api import util | ||
|
||
from schematic_api.models.component_requirements_subgraph import ComponentRequirementsSubgraph # noqa: E501 | ||
|
||
class ComponentRequirementsGraph(Model): | ||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, component_requirements_graph=None): # noqa: E501 | ||
"""ComponentRequirementsGraph - a model defined in OpenAPI | ||
:param component_requirements_graph: The component_requirements_graph of this ComponentRequirementsGraph. # noqa: E501 | ||
:type component_requirements_graph: List[ComponentRequirementsSubgraph] | ||
""" | ||
self.openapi_types = { | ||
'component_requirements_graph': List[ComponentRequirementsSubgraph] | ||
} | ||
|
||
self.attribute_map = { | ||
'component_requirements_graph': 'componentRequirementsGraph' | ||
} | ||
|
||
self._component_requirements_graph = component_requirements_graph | ||
|
||
@classmethod | ||
def from_dict(cls, dikt) -> 'ComponentRequirementsGraph': | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The ComponentRequirementsGraph of this ComponentRequirementsGraph. # noqa: E501 | ||
:rtype: ComponentRequirementsGraph | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def component_requirements_graph(self): | ||
"""Gets the component_requirements_graph of this ComponentRequirementsGraph. | ||
:return: The component_requirements_graph of this ComponentRequirementsGraph. | ||
:rtype: List[ComponentRequirementsSubgraph] | ||
""" | ||
return self._component_requirements_graph | ||
|
||
@component_requirements_graph.setter | ||
def component_requirements_graph(self, component_requirements_graph): | ||
"""Sets the component_requirements_graph of this ComponentRequirementsGraph. | ||
:param component_requirements_graph: The component_requirements_graph of this ComponentRequirementsGraph. | ||
:type component_requirements_graph: List[ComponentRequirementsSubgraph] | ||
""" | ||
|
||
self._component_requirements_graph = component_requirements_graph |
98 changes: 98 additions & 0 deletions
98
apps/schematic/api/schematic_api/models/component_requirements_subgraph.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,98 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
from datetime import date, datetime # noqa: F401 | ||
|
||
from typing import List, Dict # noqa: F401 | ||
|
||
from schematic_api.models.base_model_ import Model | ||
from schematic_api import util | ||
|
||
|
||
class ComponentRequirementsSubgraph(Model): | ||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
Do not edit the class manually. | ||
""" | ||
|
||
def __init__(self, component1=None, component2=None): # noqa: E501 | ||
"""ComponentRequirementsSubgraph - a model defined in OpenAPI | ||
:param component1: The component1 of this ComponentRequirementsSubgraph. # noqa: E501 | ||
:type component1: str | ||
:param component2: The component2 of this ComponentRequirementsSubgraph. # noqa: E501 | ||
:type component2: str | ||
""" | ||
self.openapi_types = { | ||
'component1': str, | ||
'component2': str | ||
} | ||
|
||
self.attribute_map = { | ||
'component1': 'component1', | ||
'component2': 'component2' | ||
} | ||
|
||
self._component1 = component1 | ||
self._component2 = component2 | ||
|
||
@classmethod | ||
def from_dict(cls, dikt) -> 'ComponentRequirementsSubgraph': | ||
"""Returns the dict as a model | ||
:param dikt: A dict. | ||
:type: dict | ||
:return: The ComponentRequirementsSubgraph of this ComponentRequirementsSubgraph. # noqa: E501 | ||
:rtype: ComponentRequirementsSubgraph | ||
""" | ||
return util.deserialize_model(dikt, cls) | ||
|
||
@property | ||
def component1(self): | ||
"""Gets the component1 of this ComponentRequirementsSubgraph. | ||
The display name of the first component in the graph # noqa: E501 | ||
:return: The component1 of this ComponentRequirementsSubgraph. | ||
:rtype: str | ||
""" | ||
return self._component1 | ||
|
||
@component1.setter | ||
def component1(self, component1): | ||
"""Sets the component1 of this ComponentRequirementsSubgraph. | ||
The display name of the first component in the graph # noqa: E501 | ||
:param component1: The component1 of this ComponentRequirementsSubgraph. | ||
:type component1: str | ||
""" | ||
if component1 is None: | ||
raise ValueError("Invalid value for `component1`, must not be `None`") # noqa: E501 | ||
|
||
self._component1 = component1 | ||
|
||
@property | ||
def component2(self): | ||
"""Gets the component2 of this ComponentRequirementsSubgraph. | ||
The display name of the second component in the graph # noqa: E501 | ||
:return: The component2 of this ComponentRequirementsSubgraph. | ||
:rtype: str | ||
""" | ||
return self._component2 | ||
|
||
@component2.setter | ||
def component2(self, component2): | ||
"""Sets the component2 of this ComponentRequirementsSubgraph. | ||
The display name of the second component in the graph # noqa: E501 | ||
:param component2: The component2 of this ComponentRequirementsSubgraph. | ||
:type component2: str | ||
""" | ||
if component2 is None: | ||
raise ValueError("Invalid value for `component2`, must not be `None`") # noqa: E501 | ||
|
||
self._component2 = component2 |
Oops, something went wrong.