Skip to content

Commit 436ffe1

Browse files
authored
Add files via upload
1 parent c23d4c7 commit 436ffe1

8 files changed

+1425
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# coding: utf-8
2+
3+
from __future__ import absolute_import
4+
from datetime import date, datetime # noqa: F401
5+
6+
from typing import List, Dict # noqa: F401
7+
8+
from swagger_server.models.base_model_ import Model
9+
from swagger_server.models.recipe_object_items import RecipeObjectItems # noqa: F401,E501
10+
from swagger_server import util
11+
12+
13+
class RecipeObject(Model):
14+
"""NOTE: This class is auto generated by the swagger code generator program.
15+
16+
Do not edit the class manually.
17+
"""
18+
def __init__(self, items: List[RecipeObjectItems]=None): # noqa: E501
19+
"""RecipeObject - a model defined in Swagger
20+
21+
:param items: The items of this RecipeObject. # noqa: E501
22+
:type items: List[RecipeObjectItems]
23+
"""
24+
self.swagger_types = {
25+
'items': List[RecipeObjectItems]
26+
}
27+
28+
self.attribute_map = {
29+
'items': 'items'
30+
}
31+
self._items = items
32+
33+
@classmethod
34+
def from_dict(cls, dikt) -> 'RecipeObject':
35+
"""Returns the dict as a model
36+
37+
:param dikt: A dict.
38+
:type: dict
39+
:return: The RecipeObject of this RecipeObject. # noqa: E501
40+
:rtype: RecipeObject
41+
"""
42+
return util.deserialize_model(dikt, cls)
43+
44+
@property
45+
def items(self) -> List[RecipeObjectItems]:
46+
"""Gets the items of this RecipeObject.
47+
48+
An array containing an object for each individual item returned by your API call. # noqa: E501
49+
50+
:return: The items of this RecipeObject.
51+
:rtype: List[RecipeObjectItems]
52+
"""
53+
return self._items
54+
55+
@items.setter
56+
def items(self, items: List[RecipeObjectItems]):
57+
"""Sets the items of this RecipeObject.
58+
59+
An array containing an object for each individual item returned by your API call. # noqa: E501
60+
61+
:param items: The items of this RecipeObject.
62+
:type items: List[RecipeObjectItems]
63+
"""
64+
65+
self._items = items
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# coding: utf-8
2+
3+
from __future__ import absolute_import
4+
from datetime import date, datetime # noqa: F401
5+
6+
from typing import List, Dict # noqa: F401
7+
8+
from swagger_server.models.base_model_ import Model
9+
from swagger_server import util
10+
11+
12+
class RecipeObjectAttributes(Model):
13+
"""NOTE: This class is auto generated by the swagger code generator program.
14+
15+
Do not edit the class manually.
16+
"""
17+
def __init__(self, prep_time: str=None, total_time: str=None, servings: str=None, serving_size: str=None): # noqa: E501
18+
"""RecipeObjectAttributes - a model defined in Swagger
19+
20+
:param prep_time: The prep_time of this RecipeObjectAttributes. # noqa: E501
21+
:type prep_time: str
22+
:param total_time: The total_time of this RecipeObjectAttributes. # noqa: E501
23+
:type total_time: str
24+
:param servings: The servings of this RecipeObjectAttributes. # noqa: E501
25+
:type servings: str
26+
:param serving_size: The serving_size of this RecipeObjectAttributes. # noqa: E501
27+
:type serving_size: str
28+
"""
29+
self.swagger_types = {
30+
'prep_time': str,
31+
'total_time': str,
32+
'servings': str,
33+
'serving_size': str
34+
}
35+
36+
self.attribute_map = {
37+
'prep_time': 'prep_time',
38+
'total_time': 'total_time',
39+
'servings': 'servings',
40+
'serving_size': 'serving_size'
41+
}
42+
self._prep_time = prep_time
43+
self._total_time = total_time
44+
self._servings = servings
45+
self._serving_size = serving_size
46+
47+
@classmethod
48+
def from_dict(cls, dikt) -> 'RecipeObjectAttributes':
49+
"""Returns the dict as a model
50+
51+
:param dikt: A dict.
52+
:type: dict
53+
:return: The RecipeObject_attributes of this RecipeObjectAttributes. # noqa: E501
54+
:rtype: RecipeObjectAttributes
55+
"""
56+
return util.deserialize_model(dikt, cls)
57+
58+
@property
59+
def prep_time(self) -> str:
60+
"""Gets the prep_time of this RecipeObjectAttributes.
61+
62+
The time it takes to prep this recipe # noqa: E501
63+
64+
:return: The prep_time of this RecipeObjectAttributes.
65+
:rtype: str
66+
"""
67+
return self._prep_time
68+
69+
@prep_time.setter
70+
def prep_time(self, prep_time: str):
71+
"""Sets the prep_time of this RecipeObjectAttributes.
72+
73+
The time it takes to prep this recipe # noqa: E501
74+
75+
:param prep_time: The prep_time of this RecipeObjectAttributes.
76+
:type prep_time: str
77+
"""
78+
79+
self._prep_time = prep_time
80+
81+
@property
82+
def total_time(self) -> str:
83+
"""Gets the total_time of this RecipeObjectAttributes.
84+
85+
The total time it takes to make this recipe # noqa: E501
86+
87+
:return: The total_time of this RecipeObjectAttributes.
88+
:rtype: str
89+
"""
90+
return self._total_time
91+
92+
@total_time.setter
93+
def total_time(self, total_time: str):
94+
"""Sets the total_time of this RecipeObjectAttributes.
95+
96+
The total time it takes to make this recipe # noqa: E501
97+
98+
:param total_time: The total_time of this RecipeObjectAttributes.
99+
:type total_time: str
100+
"""
101+
102+
self._total_time = total_time
103+
104+
@property
105+
def servings(self) -> str:
106+
"""Gets the servings of this RecipeObjectAttributes.
107+
108+
The number of servings this recipe makes # noqa: E501
109+
110+
:return: The servings of this RecipeObjectAttributes.
111+
:rtype: str
112+
"""
113+
return self._servings
114+
115+
@servings.setter
116+
def servings(self, servings: str):
117+
"""Sets the servings of this RecipeObjectAttributes.
118+
119+
The number of servings this recipe makes # noqa: E501
120+
121+
:param servings: The servings of this RecipeObjectAttributes.
122+
:type servings: str
123+
"""
124+
125+
self._servings = servings
126+
127+
@property
128+
def serving_size(self) -> str:
129+
"""Gets the serving_size of this RecipeObjectAttributes.
130+
131+
The size of each serving # noqa: E501
132+
133+
:return: The serving_size of this RecipeObjectAttributes.
134+
:rtype: str
135+
"""
136+
return self._serving_size
137+
138+
@serving_size.setter
139+
def serving_size(self, serving_size: str):
140+
"""Sets the serving_size of this RecipeObjectAttributes.
141+
142+
The size of each serving # noqa: E501
143+
144+
:param serving_size: The serving_size of this RecipeObjectAttributes.
145+
:type serving_size: str
146+
"""
147+
148+
self._serving_size = serving_size
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# coding: utf-8
2+
3+
from __future__ import absolute_import
4+
from datetime import date, datetime # noqa: F401
5+
6+
from typing import List, Dict # noqa: F401
7+
8+
from swagger_server.models.base_model_ import Model
9+
from swagger_server import util
10+
11+
12+
class RecipeObjectIngredients(Model):
13+
"""NOTE: This class is auto generated by the swagger code generator program.
14+
15+
Do not edit the class manually.
16+
"""
17+
def __init__(self, quantity: str=None, description: str=None): # noqa: E501
18+
"""RecipeObjectIngredients - a model defined in Swagger
19+
20+
:param quantity: The quantity of this RecipeObjectIngredients. # noqa: E501
21+
:type quantity: str
22+
:param description: The description of this RecipeObjectIngredients. # noqa: E501
23+
:type description: str
24+
"""
25+
self.swagger_types = {
26+
'quantity': str,
27+
'description': str
28+
}
29+
30+
self.attribute_map = {
31+
'quantity': 'quantity',
32+
'description': 'description'
33+
}
34+
self._quantity = quantity
35+
self._description = description
36+
37+
@classmethod
38+
def from_dict(cls, dikt) -> 'RecipeObjectIngredients':
39+
"""Returns the dict as a model
40+
41+
:param dikt: A dict.
42+
:type: dict
43+
:return: The RecipeObject_ingredients of this RecipeObjectIngredients. # noqa: E501
44+
:rtype: RecipeObjectIngredients
45+
"""
46+
return util.deserialize_model(dikt, cls)
47+
48+
@property
49+
def quantity(self) -> str:
50+
"""Gets the quantity of this RecipeObjectIngredients.
51+
52+
The quantity of this ingredient # noqa: E501
53+
54+
:return: The quantity of this RecipeObjectIngredients.
55+
:rtype: str
56+
"""
57+
return self._quantity
58+
59+
@quantity.setter
60+
def quantity(self, quantity: str):
61+
"""Sets the quantity of this RecipeObjectIngredients.
62+
63+
The quantity of this ingredient # noqa: E501
64+
65+
:param quantity: The quantity of this RecipeObjectIngredients.
66+
:type quantity: str
67+
"""
68+
69+
self._quantity = quantity
70+
71+
@property
72+
def description(self) -> str:
73+
"""Gets the description of this RecipeObjectIngredients.
74+
75+
A description of this ingredient # noqa: E501
76+
77+
:return: The description of this RecipeObjectIngredients.
78+
:rtype: str
79+
"""
80+
return self._description
81+
82+
@description.setter
83+
def description(self, description: str):
84+
"""Sets the description of this RecipeObjectIngredients.
85+
86+
A description of this ingredient # noqa: E501
87+
88+
:param description: The description of this RecipeObjectIngredients.
89+
:type description: str
90+
"""
91+
92+
self._description = description

0 commit comments

Comments
 (0)