4 cloudFPGA Resource Manager API
6 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8 OpenAPI spec version: 0.8
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
19 """NOTE: This class is auto generated by the swagger code generator program.
21 Do not edit the class manually.
25 swagger_types (dict): The key is attribute name
26 and the value is attribute type.
27 attribute_map (dict): The key is attribute name
28 and the value is json key in definition.
33 'hash_algorithm':
'str',
41 'hash_algorithm':
'hash_algorithm',
46 def __init__(self, comment=None, hash=None, hash_algorithm=None, name=None, version=None):
47 """BuildScript - a model defined in Swagger"""
49 self.
_hash_hash =
None
51 self.
_name_name =
None
54 if comment
is not None:
58 if hash_algorithm
is not None:
62 if version
is not None:
67 """Gets the comment of this BuildScript. # noqa: E501
69 Some valuable information for humans # noqa: E501
71 :return: The comment of this BuildScript. # noqa: E501
78 """Sets the comment of this BuildScript.
80 Some valuable information for humans # noqa: E501
82 :param comment: The comment of this BuildScript. # noqa: E501
90 """Gets the hash of this BuildScript. # noqa: E501
92 Hash of the build script to register # noqa: E501
94 :return: The hash of this BuildScript. # noqa: E501
97 return self.
_hash_hash
101 """Sets the hash of this BuildScript.
103 Hash of the build script to register # noqa: E501
105 :param hash: The hash of this BuildScript. # noqa: E501
109 self.
_hash_hash = hash
113 """Gets the hash_algorithm of this BuildScript. # noqa: E501
115 Algorithm used to create the hash # noqa: E501
117 :return: The hash_algorithm of this BuildScript. # noqa: E501
122 @hash_algorithm.setter
124 """Sets the hash_algorithm of this BuildScript.
126 Algorithm used to create the hash # noqa: E501
128 :param hash_algorithm: The hash_algorithm of this BuildScript. # noqa: E501
136 """Gets the name of this BuildScript. # noqa: E501
138 Name of the build script # noqa: E501
140 :return: The name of this BuildScript. # noqa: E501
143 return self.
_name_name
147 """Sets the name of this BuildScript.
149 Name of the build script # noqa: E501
151 :param name: The name of this BuildScript. # noqa: E501
155 self.
_name_name = name
159 """Gets the version of this BuildScript. # noqa: E501
161 Version of the build script # noqa: E501
163 :return: The version of this BuildScript. # noqa: E501
170 """Sets the version of this BuildScript.
172 Version of the build script # noqa: E501
174 :param version: The version of this BuildScript. # noqa: E501
181 """Returns the model properties as a dict"""
184 for attr, _
in six.iteritems(self.
swagger_typesswagger_types):
185 value = getattr(self, attr)
186 if isinstance(value, list):
187 result[attr] = list(map(
188 lambda x: x.to_dict()
if hasattr(x,
"to_dict")
else x,
191 elif hasattr(value,
"to_dict"):
192 result[attr] = value.to_dict()
193 elif isinstance(value, dict):
194 result[attr] = dict(map(
195 lambda item: (item[0], item[1].
to_dict())
196 if hasattr(item[1],
"to_dict")
else item,
201 if issubclass(BuildScript, dict):
202 for key, value
in self.items():
208 """Returns the string representation of the model"""
209 return pprint.pformat(self.
to_dictto_dict())
212 """For `print` and `pprint`"""
213 return self.
to_strto_str()
216 """Returns true if both objects are equal"""
217 if not isinstance(other, BuildScript):
220 return self.
__dict____dict__ == other.__dict__
223 """Returns true if both objects are not equal"""
224 return not self == other
def hash_algorithm(self, hash_algorithm)
def version(self, version)
def comment(self, comment)
def __init__(self, comment=None, hash=None, hash_algorithm=None, name=None, version=None)