From f7b4e20e4292883f1eaa5cd6cd5287aa550ff605 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 23 Nov 2023 10:46:47 +0100 Subject: [PATCH] various fixes --- docs/LayoutVersion.md | 2 +- docs/NodeRoleChange.md | 2 +- docs/NodeRoleRemove.md | 2 +- docs/NodeRoleUpdate.md | 2 +- src/model/LayoutVersion.js | 8 +++++--- src/model/NodeRoleChange.js | 10 ++++++---- src/model/NodeRoleRemove.js | 8 +++++--- src/model/NodeRoleUpdate.js | 8 +++++--- 8 files changed, 25 insertions(+), 17 deletions(-) diff --git a/docs/LayoutVersion.md b/docs/LayoutVersion.md index 521aa5d..beed8cb 100644 --- a/docs/LayoutVersion.md +++ b/docs/LayoutVersion.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version** | **Number** | | [optional] +**version** | **Number** | | diff --git a/docs/NodeRoleChange.md b/docs/NodeRoleChange.md index d9c7ecb..7603ea6 100644 --- a/docs/NodeRoleChange.md +++ b/docs/NodeRoleChange.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | [optional] +**id** | **String** | | **remove** | **Boolean** | | **zone** | **String** | | **capacity** | **Number** | | diff --git a/docs/NodeRoleRemove.md b/docs/NodeRoleRemove.md index 9282b0a..6bef50d 100644 --- a/docs/NodeRoleRemove.md +++ b/docs/NodeRoleRemove.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | [optional] +**id** | **String** | | **remove** | **Boolean** | | diff --git a/docs/NodeRoleUpdate.md b/docs/NodeRoleUpdate.md index d45744e..71184a3 100644 --- a/docs/NodeRoleUpdate.md +++ b/docs/NodeRoleUpdate.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | [optional] +**id** | **String** | | **zone** | **String** | | **capacity** | **Number** | | **tags** | **[String]** | | diff --git a/src/model/LayoutVersion.js b/src/model/LayoutVersion.js index 5b01521..92cecb8 100644 --- a/src/model/LayoutVersion.js +++ b/src/model/LayoutVersion.js @@ -22,10 +22,11 @@ class LayoutVersion { /** * Constructs a new LayoutVersion. * @alias module:model/LayoutVersion + * @param version {Number} */ - constructor() { + constructor(version) { - LayoutVersion.initialize(this); + LayoutVersion.initialize(this, version); } /** @@ -33,7 +34,8 @@ class LayoutVersion { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj) { + static initialize(obj, version) { + obj['version'] = version; } /** diff --git a/src/model/NodeRoleChange.js b/src/model/NodeRoleChange.js index c8be3cc..1ec002f 100644 --- a/src/model/NodeRoleChange.js +++ b/src/model/NodeRoleChange.js @@ -26,14 +26,15 @@ class NodeRoleChange { * @alias module:model/NodeRoleChange * @implements module:model/NodeRoleRemove * @implements module:model/NodeRoleUpdate + * @param id {String} * @param remove {Boolean} * @param zone {String} * @param capacity {Number} * @param tags {Array.} */ - constructor(remove, zone, capacity, tags) { - NodeRoleRemove.initialize(this, remove);NodeRoleUpdate.initialize(this, zone, capacity, tags); - NodeRoleChange.initialize(this, remove, zone, capacity, tags); + constructor(id, remove, zone, capacity, tags) { + NodeRoleRemove.initialize(this, id, remove);NodeRoleUpdate.initialize(this, id, zone, capacity, tags); + NodeRoleChange.initialize(this, id, remove, zone, capacity, tags); } /** @@ -41,7 +42,8 @@ class NodeRoleChange { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, remove, zone, capacity, tags) { + static initialize(obj, id, remove, zone, capacity, tags) { + obj['id'] = id; obj['remove'] = remove; obj['zone'] = zone; obj['capacity'] = capacity; diff --git a/src/model/NodeRoleRemove.js b/src/model/NodeRoleRemove.js index 31dc351..cffd303 100644 --- a/src/model/NodeRoleRemove.js +++ b/src/model/NodeRoleRemove.js @@ -22,11 +22,12 @@ class NodeRoleRemove { /** * Constructs a new NodeRoleRemove. * @alias module:model/NodeRoleRemove + * @param id {String} * @param remove {Boolean} */ - constructor(remove) { + constructor(id, remove) { - NodeRoleRemove.initialize(this, remove); + NodeRoleRemove.initialize(this, id, remove); } /** @@ -34,7 +35,8 @@ class NodeRoleRemove { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, remove) { + static initialize(obj, id, remove) { + obj['id'] = id; obj['remove'] = remove; } diff --git a/src/model/NodeRoleUpdate.js b/src/model/NodeRoleUpdate.js index 4dfb40b..532c1f5 100644 --- a/src/model/NodeRoleUpdate.js +++ b/src/model/NodeRoleUpdate.js @@ -22,13 +22,14 @@ class NodeRoleUpdate { /** * Constructs a new NodeRoleUpdate. * @alias module:model/NodeRoleUpdate + * @param id {String} * @param zone {String} * @param capacity {Number} * @param tags {Array.} */ - constructor(zone, capacity, tags) { + constructor(id, zone, capacity, tags) { - NodeRoleUpdate.initialize(this, zone, capacity, tags); + NodeRoleUpdate.initialize(this, id, zone, capacity, tags); } /** @@ -36,7 +37,8 @@ class NodeRoleUpdate { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, zone, capacity, tags) { + static initialize(obj, id, zone, capacity, tags) { + obj['id'] = id; obj['zone'] = zone; obj['capacity'] = capacity; obj['tags'] = tags;