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.
31 'allowed_resources':
'list[int]',
32 'current_acquired_instances':
'int',
33 'max_acquire_instances':
'int'
37 'allowed_resources':
'allowed_resources',
38 'current_acquired_instances':
'current_acquired_instances',
39 'max_acquire_instances':
'max_acquire_instances'
42 def __init__(self, allowed_resources=None, current_acquired_instances=None, max_acquire_instances=None):
43 """Quota - a model defined in Swagger"""
48 if allowed_resources
is not None:
50 if current_acquired_instances
is not None:
52 if max_acquire_instances
is not None:
57 """Gets the allowed_resources of this Quota. # noqa: E501
59 List of allowed resources for this project (admin only). # noqa: E501
61 :return: The allowed_resources of this Quota. # noqa: E501
66 @allowed_resources.setter
68 """Sets the allowed_resources of this Quota.
70 List of allowed resources for this project (admin only). # noqa: E501
72 :param allowed_resources: The allowed_resources of this Quota. # noqa: E501
80 """Gets the current_acquired_instances of this Quota. # noqa: E501
82 Number of currently acquired Instances # noqa: E501
84 :return: The current_acquired_instances of this Quota. # noqa: E501
89 @current_acquired_instances.setter
91 """Sets the current_acquired_instances of this Quota.
93 Number of currently acquired Instances # noqa: E501
95 :param current_acquired_instances: The current_acquired_instances of this Quota. # noqa: E501
103 """Gets the max_acquire_instances of this Quota. # noqa: E501
105 Maximum allowed number of Instaces to be acquired by project # noqa: E501
107 :return: The max_acquire_instances of this Quota. # noqa: E501
112 @max_acquire_instances.setter
114 """Sets the max_acquire_instances of this Quota.
116 Maximum allowed number of Instaces to be acquired by project # noqa: E501
118 :param max_acquire_instances: The max_acquire_instances of this Quota. # noqa: E501
125 """Returns the model properties as a dict"""
128 for attr, _
in six.iteritems(self.
swagger_typesswagger_types):
129 value = getattr(self, attr)
130 if isinstance(value, list):
131 result[attr] = list(map(
132 lambda x: x.to_dict()
if hasattr(x,
"to_dict")
else x,
135 elif hasattr(value,
"to_dict"):
136 result[attr] = value.to_dict()
137 elif isinstance(value, dict):
138 result[attr] = dict(map(
139 lambda item: (item[0], item[1].
to_dict())
140 if hasattr(item[1],
"to_dict")
else item,
145 if issubclass(Quota, dict):
146 for key, value
in self.items():
152 """Returns the string representation of the model"""
153 return pprint.pformat(self.
to_dictto_dict())
156 """For `print` and `pprint`"""
157 return self.
to_strto_str()
160 """Returns true if both objects are equal"""
161 if not isinstance(other, Quota):
164 return self.
__dict____dict__ == other.__dict__
167 """Returns true if both objects are not equal"""
168 return not self == other
current_acquired_instances
def current_acquired_instances(self, current_acquired_instances)
def max_acquire_instances(self)
_current_acquired_instances
def allowed_resources(self, allowed_resources)
def __init__(self, allowed_resources=None, current_acquired_instances=None, max_acquire_instances=None)
def allowed_resources(self)
def max_acquire_instances(self, max_acquire_instances)
def current_acquired_instances(self)