@itentialopensource/adapter-gcp_compute 1.7.0 → 1.7.1

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/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 1.7.1 [02-21-2024]
3
+
4
+ * updates for broker calls
5
+
6
+ See merge request itentialopensource/adapters/cloud/adapter-gcp_compute!14
7
+
8
+ ---
9
+
2
10
  ## 1.7.0 [12-14-2023]
3
11
 
4
12
  * More migration changes
package/metadata.json CHANGED
@@ -36,15 +36,24 @@
36
36
  "isDeprecated": false
37
37
  },
38
38
  "brokerSince": "1.4.0",
39
+ "authMethods": [
40
+ {
41
+ "type": "Google Token",
42
+ "primary": true
43
+ }
44
+ ],
39
45
  "documentation": {
40
46
  "storeLink": "",
41
47
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-gcp_compute",
42
48
  "repoLink": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-gcp_compute",
43
49
  "docLink": "https://docs.itential.com/opensource/docs/google-cloud-compute",
44
50
  "demoLinks": [
45
- "https://www.itential.com/automations/sd-wan-branch-management/",
46
- "https://www.itential.com/solutions/sdwan-automation-orchestration/"
51
+ {
52
+ "title": "Multi-Vendor SD-WAN",
53
+ "link": "https://www.itential.com/solutions/sdwan-automation-orchestration/"
54
+ }
47
55
  ],
56
+ "trainingLinks": [],
48
57
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
49
58
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
50
59
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
@@ -52,8 +61,14 @@
52
61
  "vendorLink": "https://cloud.google.com/",
53
62
  "productLink": "https://cloud.google.com/compute",
54
63
  "apiLinks": [
55
- "https://console.cloud.google.com/marketplace/browse?filter=solution-type:saas",
56
- "https://cloud.google.com/vision/docs/reference/rest/?apix=true"
64
+ {
65
+ "title": "Google Cloud Marketplace",
66
+ "link": "https://console.cloud.google.com/marketplace/browse?filter=solution-type:saas"
67
+ },
68
+ {
69
+ "title": "Cloud Vision API ",
70
+ "link": "https://cloud.google.com/vision/docs/reference/rest/?apix=true"
71
+ }
57
72
  ]
58
73
  },
59
74
  "assets": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-gcp_compute",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "This adapter integrates with system described as: computeEngineApi.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Google Cloud Platform Compute",
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "license": "Apache-2.0",
48
48
  "engines": {
49
- "node": ">= 8.0.0",
49
+ "node": ">= 14.0.0",
50
50
  "npm": ">= 6.0.0"
51
51
  },
52
52
  "repository": {
@@ -56,10 +56,10 @@
56
56
  "author": "Itential",
57
57
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-gcp_compute#readme",
58
58
  "dependencies": {
59
- "@itentialopensource/adapter-utils": "^5.3.0",
59
+ "@itentialopensource/adapter-utils": "^5.3.8",
60
60
  "acorn": "^8.10.0",
61
61
  "ajv": "^8.12.0",
62
- "axios": "^1.4.0",
62
+ "axios": "^1.6.7",
63
63
  "commander": "^11.0.0",
64
64
  "dns-lookup-promise": "^1.0.4",
65
65
  "fs-extra": "^11.1.1",
@@ -991,6 +991,11 @@
991
991
  "devicebroker": {
992
992
  "type": "object",
993
993
  "properties": {
994
+ "enabled": {
995
+ "type": "boolean",
996
+ "description": "Whether or not the device broker calls have been mapped",
997
+ "default": false
998
+ },
994
999
  "getDevice": {
995
1000
  "type": "array",
996
1001
  "description": "Broker call(s) to getDevice",
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.6.0",
3
- "configLines": 77493,
2
+ "version": "1.7.0",
3
+ "configLines": 77498,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 57391,
6
6
  "testLines": 61729,
@@ -125,6 +125,7 @@
125
125
  }
126
126
  },
127
127
  "devicebroker": {
128
+ "enabled": true,
128
129
  "getDevice": [
129
130
  {
130
131
  "path": "/{project}/global/networks",
@@ -133,16 +134,16 @@
133
134
  "body": {},
134
135
  "headers": {},
135
136
  "handleFailure": "ignore",
136
- "responseDatakey": "items",
137
137
  "requestFields": {
138
- "project": "project"
138
+ "project": "{project}"
139
139
  },
140
+ "responseDatakey": "items",
140
141
  "responseFields": {
141
- "name": "name",
142
- "ostype": "kind",
142
+ "name": "{name}",
143
+ "ostype": "{kind}",
143
144
  "ostypePrefix": "VPC Network-",
144
- "ipaddress": "id",
145
- "port": "selfLinkWithId"
145
+ "ipaddress": "{id}",
146
+ "port": "{selfLinkWithId}"
146
147
  }
147
148
  }
148
149
  ],
@@ -160,17 +161,17 @@
160
161
  "body": {},
161
162
  "headers": {},
162
163
  "handleFailure": "ignore",
163
- "responseDatakey": "items",
164
164
  "requestFields": {
165
165
  "project": "helical-crowbar-382719"
166
166
  },
167
+ "responseDatakey": "items",
167
168
  "responseFields": {
168
- "name": "name",
169
- "ostype": "kind",
169
+ "name": "{name}",
170
+ "ostype": "{kind}",
170
171
  "ostypePrefix": "VPC Network-",
171
- "ipaddress": "id",
172
- "port": "selfLinkWithId",
173
- "project": "project"
172
+ "ipaddress": "{id}",
173
+ "port": "{selfLinkWithId}",
174
+ "project": "{project}"
174
175
  }
175
176
  }
176
177
  ],
@@ -183,7 +184,7 @@
183
184
  "headers": {},
184
185
  "handleFailure": "ignore",
185
186
  "requestFields": {
186
- "project": "project",
187
+ "project": "{project}",
187
188
  "network": ""
188
189
  },
189
190
  "responseDatakey": "",
@@ -199,7 +200,7 @@
199
200
  "headers": {},
200
201
  "handleFailure": "ignore",
201
202
  "requestFields": {
202
- "project": "project",
203
+ "project": "{project}",
203
204
  "network": ""
204
205
  },
205
206
  "responseDatakey": "",
@@ -246,16 +247,17 @@
246
247
  "body": {},
247
248
  "headers": {},
248
249
  "handleFailure": "ignore",
249
- "responseDatakey": "items",
250
250
  "requestFields": {
251
251
  "project": "helical-crowbar-382719"
252
252
  },
253
+ "responseDatakey": "items",
253
254
  "responseFields": {
254
- "name": "name",
255
- "kind": "kind",
256
- "id": "id",
257
- "selfLinkWithId": "selfLinkWithId",
258
- "project": "project"
255
+ "name": "{name}",
256
+ "ostype": "{kind}",
257
+ "ostypePrefix": "VPC Network-",
258
+ "ipaddress": "{id}",
259
+ "port": "{selfLinkWithId}",
260
+ "project": "{project}"
259
261
  }
260
262
  }
261
263
  ],
@@ -316,7 +316,7 @@ describe('[unit] GcpCompute Adapter Test', () => {
316
316
  assert.notEqual(null, packageDotJson.dependencies);
317
317
  assert.notEqual('', packageDotJson.dependencies);
318
318
  assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
319
- assert.equal('^1.4.0', packageDotJson.dependencies.axios);
319
+ assert.equal('^1.6.7', packageDotJson.dependencies.axios);
320
320
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
321
321
  assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
322
322
  assert.equal('^10.2.0', packageDotJson.dependencies.mocha);