various fixes

This commit is contained in:
Quentin 2023-11-23 10:47:19 +01:00
parent 8fa1cac54f
commit 8c3a7daa8a
Signed by: quentin
GPG Key ID: E9602264D639FF68
6 changed files with 29 additions and 19 deletions

View File

@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**version** | **int** | | [optional]
**version** | **int** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -4,8 +4,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**remove** | **bool** | |
**id** | **str** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -4,10 +4,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**zone** | **str** | |
**capacity** | **int, none_type** | |
**tags** | **[str]** | |
**id** | **str** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -100,9 +100,12 @@ class LayoutVersion(ModelNormal):
@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, version, *args, **kwargs): # noqa: E501
"""LayoutVersion - a model defined in OpenAPI
Args:
version (int):
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
@ -134,7 +137,6 @@ class LayoutVersion(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
version (int): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@ -166,6 +168,7 @@ class LayoutVersion(ModelNormal):
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.version = version
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
@ -186,9 +189,12 @@ class LayoutVersion(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
def __init__(self, version, *args, **kwargs): # noqa: E501
"""LayoutVersion - a model defined in OpenAPI
Args:
version (int):
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
@ -220,7 +226,6 @@ class LayoutVersion(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
version (int): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@ -250,6 +255,7 @@ class LayoutVersion(ModelNormal):
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.version = version
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \

View File

@ -81,8 +81,8 @@ class NodeRoleRemove(ModelNormal):
and the value is attribute type.
"""
return {
'remove': (bool,), # noqa: E501
'id': (str,), # noqa: E501
'remove': (bool,), # noqa: E501
}
@cached_property
@ -91,8 +91,8 @@ class NodeRoleRemove(ModelNormal):
attribute_map = {
'remove': 'remove', # noqa: E501
'id': 'id', # noqa: E501
'remove': 'remove', # noqa: E501
}
read_only_vars = {
@ -102,10 +102,11 @@ class NodeRoleRemove(ModelNormal):
@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, remove, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, id, remove, *args, **kwargs): # noqa: E501
"""NodeRoleRemove - a model defined in OpenAPI
Args:
id (str):
remove (bool):
Keyword Args:
@ -139,7 +140,6 @@ class NodeRoleRemove(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@ -171,6 +171,7 @@ class NodeRoleRemove(ModelNormal):
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.id = id
self.remove = remove
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
@ -192,10 +193,11 @@ class NodeRoleRemove(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, remove, *args, **kwargs): # noqa: E501
def __init__(self, id, remove, *args, **kwargs): # noqa: E501
"""NodeRoleRemove - a model defined in OpenAPI
Args:
id (str):
remove (bool):
Keyword Args:
@ -229,7 +231,6 @@ class NodeRoleRemove(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@ -259,6 +260,7 @@ class NodeRoleRemove(ModelNormal):
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.id = id
self.remove = remove
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \

View File

@ -81,10 +81,10 @@ class NodeRoleUpdate(ModelNormal):
and the value is attribute type.
"""
return {
'id': (str,), # noqa: E501
'zone': (str,), # noqa: E501
'capacity': (int, none_type,), # noqa: E501
'tags': ([str],), # noqa: E501
'id': (str,), # noqa: E501
}
@cached_property
@ -93,10 +93,10 @@ class NodeRoleUpdate(ModelNormal):
attribute_map = {
'id': 'id', # noqa: E501
'zone': 'zone', # noqa: E501
'capacity': 'capacity', # noqa: E501
'tags': 'tags', # noqa: E501
'id': 'id', # noqa: E501
}
read_only_vars = {
@ -106,10 +106,11 @@ class NodeRoleUpdate(ModelNormal):
@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, zone, capacity, tags, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, id, zone, capacity, tags, *args, **kwargs): # noqa: E501
"""NodeRoleUpdate - a model defined in OpenAPI
Args:
id (str):
zone (str):
capacity (int, none_type):
tags ([str]):
@ -145,7 +146,6 @@ class NodeRoleUpdate(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@ -177,6 +177,7 @@ class NodeRoleUpdate(ModelNormal):
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.id = id
self.zone = zone
self.capacity = capacity
self.tags = tags
@ -200,10 +201,11 @@ class NodeRoleUpdate(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, zone, capacity, tags, *args, **kwargs): # noqa: E501
def __init__(self, id, zone, capacity, tags, *args, **kwargs): # noqa: E501
"""NodeRoleUpdate - a model defined in OpenAPI
Args:
id (str):
zone (str):
capacity (int, none_type):
tags ([str]):
@ -239,7 +241,6 @@ class NodeRoleUpdate(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@ -269,6 +270,7 @@ class NodeRoleUpdate(ModelNormal):
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.id = id
self.zone = zone
self.capacity = capacity
self.tags = tags