api-v1, javascript #1

Merged
quentin merged 5 commits from v0.9.x into main 2023-11-28 15:36:32 +00:00
8 changed files with 25 additions and 17 deletions
Showing only changes of commit f7b4e20e42 - Show all commits

View file

@ -4,6 +4,6 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**version** | **Number** | | [optional] **version** | **Number** | |

View file

@ -4,7 +4,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **String** | | [optional] **id** | **String** | |
**remove** | **Boolean** | | **remove** | **Boolean** | |
**zone** | **String** | | **zone** | **String** | |
**capacity** | **Number** | | **capacity** | **Number** | |

View file

@ -4,7 +4,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **String** | | [optional] **id** | **String** | |
**remove** | **Boolean** | | **remove** | **Boolean** | |

View file

@ -4,7 +4,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **String** | | [optional] **id** | **String** | |
**zone** | **String** | | **zone** | **String** | |
**capacity** | **Number** | | **capacity** | **Number** | |
**tags** | **[String]** | | **tags** | **[String]** | |

View file

@ -22,10 +22,11 @@ class LayoutVersion {
/** /**
* Constructs a new <code>LayoutVersion</code>. * Constructs a new <code>LayoutVersion</code>.
* @alias module:model/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). * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use. * Only for internal use.
*/ */
static initialize(obj) { static initialize(obj, version) {
obj['version'] = version;
} }
/** /**

View file

@ -26,14 +26,15 @@ class NodeRoleChange {
* @alias module:model/NodeRoleChange * @alias module:model/NodeRoleChange
* @implements module:model/NodeRoleRemove * @implements module:model/NodeRoleRemove
* @implements module:model/NodeRoleUpdate * @implements module:model/NodeRoleUpdate
* @param id {String}
* @param remove {Boolean} * @param remove {Boolean}
* @param zone {String} * @param zone {String}
* @param capacity {Number} * @param capacity {Number}
* @param tags {Array.<String>} * @param tags {Array.<String>}
*/ */
constructor(remove, zone, capacity, tags) { constructor(id, remove, zone, capacity, tags) {
NodeRoleRemove.initialize(this, remove);NodeRoleUpdate.initialize(this, zone, capacity, tags); NodeRoleRemove.initialize(this, id, remove);NodeRoleUpdate.initialize(this, id, zone, capacity, tags);
NodeRoleChange.initialize(this, remove, 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). * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use. * 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['remove'] = remove;
obj['zone'] = zone; obj['zone'] = zone;
obj['capacity'] = capacity; obj['capacity'] = capacity;

View file

@ -22,11 +22,12 @@ class NodeRoleRemove {
/** /**
* Constructs a new <code>NodeRoleRemove</code>. * Constructs a new <code>NodeRoleRemove</code>.
* @alias module:model/NodeRoleRemove * @alias module:model/NodeRoleRemove
* @param id {String}
* @param remove {Boolean} * @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). * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use. * Only for internal use.
*/ */
static initialize(obj, remove) { static initialize(obj, id, remove) {
obj['id'] = id;
obj['remove'] = remove; obj['remove'] = remove;
} }

View file

@ -22,13 +22,14 @@ class NodeRoleUpdate {
/** /**
* Constructs a new <code>NodeRoleUpdate</code>. * Constructs a new <code>NodeRoleUpdate</code>.
* @alias module:model/NodeRoleUpdate * @alias module:model/NodeRoleUpdate
* @param id {String}
* @param zone {String} * @param zone {String}
* @param capacity {Number} * @param capacity {Number}
* @param tags {Array.<String>} * @param tags {Array.<String>}
*/ */
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). * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use. * Only for internal use.
*/ */
static initialize(obj, zone, capacity, tags) { static initialize(obj, id, zone, capacity, tags) {
obj['id'] = id;
obj['zone'] = zone; obj['zone'] = zone;
obj['capacity'] = capacity; obj['capacity'] = capacity;
obj['tags'] = tags; obj['tags'] = tags;