@stordata/vsphere-soapify 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitlab-ci.yml CHANGED
@@ -1,4 +1,4 @@
1
- image: docker.stordata.fr/stordata/docker-node:14
1
+ image: docker.stordata.fr/stordata/docker-node:16
2
2
 
3
3
  stages:
4
4
  - build
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 14.15.1
1
+ 16.13.0
package/lib/client.js CHANGED
@@ -14,7 +14,7 @@ module.exports = class Client {
14
14
  *
15
15
  * @param {String} url The URL to the vSphere endpoint.
16
16
  * Use the base URL only, the library manages the actual SDK endpoints automatically
17
- * @param {Object} [requestOptions={}] Options given to request. See https://github.com/request/request#requestoptions-callback
17
+ * @param {Object} [requestOptions] Options given to request. See https://github.com/request/request#requestoptions-callback
18
18
  * @param {Object} [features] An optional list of feature flags to control advanced settings of the created Client
19
19
  * @param {boolean} [features.alwaysUseMaxSampleInQuerySpec=false] Whether to force the use of `maxSample` in QuerySpec objects,
20
20
  * even though this might form invalid calls. Use with caution !
@@ -22,7 +22,7 @@ module.exports = class Client {
22
22
  *
23
23
  * @constructor
24
24
  */
25
- constructor(url, requestOptions = {}, features) {
25
+ constructor(url, requestOptions, features) {
26
26
  this.url = url;
27
27
  this.requestOptions = requestOptions;
28
28
  this.features = _.defaults(features, DEFAULT_FEATURES);
@@ -8,7 +8,8 @@ const ComputeResourceConfigInfo = require('./ComputeResourceConfigInfo'),
8
8
  ClusterDpmHostConfigInfo = require('./ClusterDpmHostConfigInfo'),
9
9
  ClusterDrsVmConfigInfo = require('./ClusterDrsVmConfigInfo'),
10
10
  ClusterGroupInfo = require('./ClusterGroupInfo'),
11
- ClusterRuleInfo = require('./ClusterRuleInfo');
11
+ ClusterRuleInfo = require('./ClusterRuleInfo'),
12
+ VsanClusterConfigInfo = require('./VsanClusterConfigInfo');
12
13
 
13
14
  module.exports = class ClusterConfigInfoEx extends ComputeResourceConfigInfo {
14
15
  static mappings() {
@@ -21,7 +22,8 @@ module.exports = class ClusterConfigInfoEx extends ComputeResourceConfigInfo {
21
22
  drsConfig: ClusterDrsConfigInfo,
22
23
  drsVmConfig: ClusterDrsVmConfigInfo.ArrayOf,
23
24
  group: ClusterGroupInfo.ArrayOf,
24
- rule: ClusterRuleInfo.ArrayOf
25
+ rule: ClusterRuleInfo.ArrayOf,
26
+ vsanConfigInfo: VsanClusterConfigInfo
25
27
  };
26
28
  }
27
29
  };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ const DynamicData = require('./DynamicData'),
4
+ VsanClusterConfigInfoHostDefaultInfo = require('./VsanClusterConfigInfoHostDefaultInfo');
5
+
6
+ module.exports = class VsanClusterConfigInfo extends DynamicData {
7
+ static mappings() {
8
+ return {
9
+ ...super.mappings(),
10
+ enabled: 'xsd:boolean',
11
+ defaultConfig: VsanClusterConfigInfoHostDefaultInfo
12
+ };
13
+ }
14
+ };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const DynamicData = require('./DynamicData');
4
+
5
+ module.exports = class VsanClusterConfigInfoHostDefaultInfo extends DynamicData {
6
+ static mappings() {
7
+ return {
8
+ ...super.mappings(),
9
+ autoClaimStorage: 'xsd:boolean',
10
+ uuid: 'xsd:string'
11
+ };
12
+ }
13
+ };
@@ -17991,8 +17991,8 @@
17991
17991
  <complexContent>
17992
17992
  <extension base="vim25:HostHostBusAdapter">
17993
17993
  <sequence>
17994
- <element name="portWorldWideName" type="xsd:long" />
17995
- <element name="nodeWorldWideName" type="xsd:long" />
17994
+ <element name="portWorldWideName" type="xsd:string" />
17995
+ <element name="nodeWorldWideName" type="xsd:string" />
17996
17996
  <element name="portType" type="vim25:FibreChannelPortType" />
17997
17997
  <element name="speed" type="xsd:long" />
17998
17998
  </sequence>
@@ -20661,8 +20661,8 @@
20661
20661
  <complexContent>
20662
20662
  <extension base="vim25:HostTargetTransport">
20663
20663
  <sequence>
20664
- <element name="portWorldWideName" type="xsd:long" />
20665
- <element name="nodeWorldWideName" type="xsd:long" />
20664
+ <element name="portWorldWideName" type="xsd:string" />
20665
+ <element name="nodeWorldWideName" type="xsd:string" />
20666
20666
  </sequence>
20667
20667
  </extension>
20668
20668
  </complexContent>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stordata/vsphere-soapify",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "A NodeJS abstraction layer for the vSphere SOAP API",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,36 +19,36 @@
19
19
  "author": "Stordata <teamdenbas@stordata.fr>",
20
20
  "license": "UNLICENCED",
21
21
  "engines": {
22
- "node": ">= 10"
22
+ "node": ">= 16"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public",
26
26
  "registry": "https://registry.npmjs.org"
27
27
  },
28
28
  "dependencies": {
29
- "axios": "0.21.1",
30
- "debug": "4.3.2",
29
+ "axios": "0.27.2",
30
+ "debug": "4.3.4",
31
31
  "lodash": "4.17.21",
32
- "soap": "0.40.0",
32
+ "soap": "0.43.0",
33
33
  "tough-cookie": "4.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@stordata/eslint-config": "0.0.5",
37
- "chai": "4.3.4",
36
+ "@stordata/eslint-config": "1.0.20220507000753",
37
+ "chai": "4.3.6",
38
38
  "chai-datetime": "1.8.0",
39
- "eslint": "7.30.0",
40
- "eslint-plugin-import": "2.23.4",
41
- "eslint-plugin-json": "3.0.0",
39
+ "eslint": "8.15.0",
40
+ "eslint-plugin-import": "2.26.0",
41
+ "eslint-plugin-json": "3.1.0",
42
42
  "eslint-plugin-no-only-tests": "2.6.0",
43
43
  "eslint-plugin-node": "11.1.0",
44
- "grunt": "1.4.1",
44
+ "grunt": "1.5.3",
45
45
  "grunt-env": "1.0.1",
46
- "grunt-eslint": "23.0.0",
46
+ "grunt-eslint": "24.0.0",
47
47
  "grunt-release": "0.14.0",
48
48
  "grunt-simple-mocha": "0.4.1",
49
49
  "mockdate": "3.0.5",
50
- "nock": "13.1.1",
51
- "sinon": "11.1.1",
50
+ "nock": "13.2.4",
51
+ "sinon": "14.0.0",
52
52
  "sinon-chai": "3.7.0"
53
53
  }
54
54
  }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const { ClusterComputeResource } = require('../../lib/sdk/managed');
4
+
5
+ require('..')(client => client.getInventoryItems(ClusterComputeResource));