|
| 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 |
0 commit comments