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 ## Properties
Name | Type | Description | Notes 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] **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) [[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 ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **str** | |
**remove** | **bool** | | **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] **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) [[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 ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **str** | |
**zone** | **str** | | **zone** | **str** | |
**capacity** | **int, none_type** | | **capacity** | **int, none_type** | |
**tags** | **[str]** | | **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] **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) [[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 @classmethod
@convert_js_args_to_python_args @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 """LayoutVersion - a model defined in OpenAPI
Args:
version (int):
Keyword Args: Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types _check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be 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 Animal class but this time we won't travel
through its discriminator because we passed in through its discriminator because we passed in
_visited_composed_classes = (Animal,) _visited_composed_classes = (Animal,)
version (int): [optional] # noqa: E501
""" """
_check_type = kwargs.pop('_check_type', True) _check_type = kwargs.pop('_check_type', True)
@ -166,6 +168,7 @@ class LayoutVersion(ModelNormal):
self._configuration = _configuration self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.version = version
for var_name, var_value in kwargs.items(): for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \ if var_name not in self.attribute_map and \
self._configuration is not None and \ self._configuration is not None and \
@ -186,9 +189,12 @@ class LayoutVersion(ModelNormal):
]) ])
@convert_js_args_to_python_args @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 """LayoutVersion - a model defined in OpenAPI
Args:
version (int):
Keyword Args: Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types _check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be 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 Animal class but this time we won't travel
through its discriminator because we passed in through its discriminator because we passed in
_visited_composed_classes = (Animal,) _visited_composed_classes = (Animal,)
version (int): [optional] # noqa: E501
""" """
_check_type = kwargs.pop('_check_type', True) _check_type = kwargs.pop('_check_type', True)
@ -250,6 +255,7 @@ class LayoutVersion(ModelNormal):
self._configuration = _configuration self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
self.version = version
for var_name, var_value in kwargs.items(): for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \ if var_name not in self.attribute_map and \
self._configuration is not None and \ self._configuration is not None and \

View file

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

View file

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