From 8c3a7daa8a6d305dc0ee9082ce1f28682951e7b8 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 23 Nov 2023 10:47:19 +0100 Subject: [PATCH] various fixes --- docs/LayoutVersion.md | 2 +- docs/NodeRoleRemove.md | 2 +- docs/NodeRoleUpdate.md | 2 +- garage_admin_sdk/model/layout_version.py | 14 ++++++++++---- garage_admin_sdk/model/node_role_remove.py | 14 ++++++++------ garage_admin_sdk/model/node_role_update.py | 14 ++++++++------ 6 files changed, 29 insertions(+), 19 deletions(-) diff --git a/docs/LayoutVersion.md b/docs/LayoutVersion.md index 4a89df6..c772ba5 100644 --- a/docs/LayoutVersion.md +++ b/docs/LayoutVersion.md @@ -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) diff --git a/docs/NodeRoleRemove.md b/docs/NodeRoleRemove.md index f41ea69..9d7501e 100644 --- a/docs/NodeRoleRemove.md +++ b/docs/NodeRoleRemove.md @@ -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) diff --git a/docs/NodeRoleUpdate.md b/docs/NodeRoleUpdate.md index 497d5c9..8417793 100644 --- a/docs/NodeRoleUpdate.md +++ b/docs/NodeRoleUpdate.md @@ -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) diff --git a/garage_admin_sdk/model/layout_version.py b/garage_admin_sdk/model/layout_version.py index bfb3fbd..d0da725 100644 --- a/garage_admin_sdk/model/layout_version.py +++ b/garage_admin_sdk/model/layout_version.py @@ -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 \ diff --git a/garage_admin_sdk/model/node_role_remove.py b/garage_admin_sdk/model/node_role_remove.py index d473f4b..b4b2e9c 100644 --- a/garage_admin_sdk/model/node_role_remove.py +++ b/garage_admin_sdk/model/node_role_remove.py @@ -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 \ diff --git a/garage_admin_sdk/model/node_role_update.py b/garage_admin_sdk/model/node_role_update.py index fe8c588..59b0cd2 100644 --- a/garage_admin_sdk/model/node_role_update.py +++ b/garage_admin_sdk/model/node_role_update.py @@ -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