@itentialopensource/adapter-gcp_compute 0.2.0 → 1.1.0

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +32 -1
  2. package/README.md +85 -12
  3. package/adapter.js +11822 -9796
  4. package/adapterBase.js +40 -3
  5. package/entities/.generic/action.json +5 -5
  6. package/entities/.system/action.json +1 -1
  7. package/entities/AcceleratorTypes/action.json +3 -3
  8. package/entities/Addresses/action.json +5 -5
  9. package/entities/Autoscalers/action.json +7 -7
  10. package/entities/BackendBuckets/action.json +8 -8
  11. package/entities/BackendServices/action.json +11 -11
  12. package/entities/DiskTypes/action.json +3 -3
  13. package/entities/Disks/action.json +13 -13
  14. package/entities/ExternalVpnGateways/action.json +6 -6
  15. package/entities/FirewallPolicies/action.json +382 -0
  16. package/entities/FirewallPolicies/mockdatafiles/addFirewallPolicyAssociation-default.json +45 -0
  17. package/entities/FirewallPolicies/mockdatafiles/addFirewallPolicyRule-default.json +45 -0
  18. package/entities/FirewallPolicies/mockdatafiles/cloneFirewallPolicyRule-default.json +45 -0
  19. package/entities/FirewallPolicies/mockdatafiles/deleteFirewallPolicy-default.json +45 -0
  20. package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicy-default.json +45 -0
  21. package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicyAssociation-default.json +7 -0
  22. package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicyIamPolicy-default.json +26 -0
  23. package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicyRule-default.json +32 -0
  24. package/entities/FirewallPolicies/mockdatafiles/insertFirewallPolicy-default.json +45 -0
  25. package/entities/FirewallPolicies/mockdatafiles/listFirewallPolicy-default.json +75 -0
  26. package/entities/FirewallPolicies/mockdatafiles/listFirewallPolicyAssociations-default.json +12 -0
  27. package/entities/FirewallPolicies/mockdatafiles/moveFirewallPolicy-default.json +45 -0
  28. package/entities/FirewallPolicies/mockdatafiles/patchFirewallPolicy-default.json +57 -0
  29. package/entities/FirewallPolicies/mockdatafiles/patchFirewallPolicyRule-default.json +45 -0
  30. package/entities/FirewallPolicies/mockdatafiles/removeFirewallPolicyAssociation-default.json +45 -0
  31. package/entities/FirewallPolicies/mockdatafiles/removeFirewallPolicyRule-default.json +45 -0
  32. package/entities/FirewallPolicies/mockdatafiles/setFirewallPolicyIamPolicy-default.json +26 -0
  33. package/entities/FirewallPolicies/mockdatafiles/testFirewallPolicyIamPermissions-default.json +6 -0
  34. package/entities/FirewallPolicies/schema.json +47 -0
  35. package/entities/Firewalls/action.json +6 -6
  36. package/entities/ForwardingRules/action.json +7 -7
  37. package/entities/GlobalAddresses/action.json +4 -4
  38. package/entities/GlobalForwardingRules/action.json +6 -6
  39. package/entities/GlobalNetworkEndpointGroups/action.json +7 -7
  40. package/entities/GlobalOperations/action.json +5 -5
  41. package/entities/HealthChecks/action.json +7 -7
  42. package/entities/HttpHealthChecks/action.json +6 -6
  43. package/entities/HttpsHealthChecks/action.json +6 -6
  44. package/entities/Images/action.json +10 -10
  45. package/entities/InstanceGroupManagers/action.json +20 -20
  46. package/entities/InstanceGroups/action.json +9 -9
  47. package/entities/InstanceTemplates/action.json +7 -7
  48. package/entities/Instances/action.json +40 -40
  49. package/entities/InterconnectAttachments/action.json +6 -6
  50. package/entities/InterconnectLocations/action.json +2 -2
  51. package/entities/Interconnects/action.json +6 -6
  52. package/entities/LicenseCodes/action.json +2 -2
  53. package/entities/Licenses/action.json +7 -7
  54. package/entities/MachineTypes/action.json +3 -3
  55. package/entities/NetworkEndpointGroups/action.json +9 -9
  56. package/entities/Networks/action.json +10 -10
  57. package/entities/NodeGroups/action.json +13 -13
  58. package/entities/NodeTemplates/action.json +8 -8
  59. package/entities/NodeTypes/action.json +3 -3
  60. package/entities/PacketMirrorings/action.json +7 -7
  61. package/entities/Projects/action.json +13 -13
  62. package/entities/RegionAutoscalers/action.json +6 -6
  63. package/entities/RegionBackendServices/action.json +7 -7
  64. package/entities/RegionCommitments/action.json +4 -4
  65. package/entities/RegionDiskTypes/action.json +2 -2
  66. package/entities/RegionDisks/action.json +12 -12
  67. package/entities/RegionHealthCheckServices/action.json +5 -5
  68. package/entities/RegionHealthChecks/action.json +6 -6
  69. package/entities/RegionInstanceGroupManagers/action.json +19 -19
  70. package/entities/RegionInstanceGroups/action.json +4 -4
  71. package/entities/RegionNetworkEndpointGroups/action.json +4 -4
  72. package/entities/RegionNotificationEndpoints/action.json +4 -4
  73. package/entities/RegionOperations/action.json +4 -4
  74. package/entities/RegionSslCertificates/action.json +4 -4
  75. package/entities/RegionTargetHttpProxies/action.json +5 -5
  76. package/entities/RegionTargetHttpsProxies/action.json +6 -6
  77. package/entities/RegionUrlMaps/action.json +7 -7
  78. package/entities/Regions/action.json +2 -2
  79. package/entities/Reservations/action.json +9 -9
  80. package/entities/ResourcePolicies/action.json +8 -8
  81. package/entities/Routers/action.json +10 -10
  82. package/entities/Routes/action.json +4 -4
  83. package/entities/SecurityPolicies/action.json +10 -10
  84. package/entities/Snapshots/action.json +7 -7
  85. package/entities/SslCertificates/action.json +5 -5
  86. package/entities/SslPolicies/action.json +6 -6
  87. package/entities/Subnetworks/action.json +12 -12
  88. package/entities/TargetGrpcProxies/action.json +5 -5
  89. package/entities/TargetHttpProxies/action.json +6 -6
  90. package/entities/TargetHttpsProxies/action.json +9 -9
  91. package/entities/TargetInstances/action.json +5 -5
  92. package/entities/TargetPools/action.json +11 -11
  93. package/entities/TargetSslProxies/action.json +8 -8
  94. package/entities/TargetTcpProxies/action.json +6 -6
  95. package/entities/TargetVpnGateways/action.json +5 -5
  96. package/entities/UrlMaps/action.json +9 -9
  97. package/entities/VpnGateways/action.json +8 -8
  98. package/entities/VpnTunnels/action.json +5 -5
  99. package/entities/ZoneOperations/action.json +4 -4
  100. package/entities/Zones/action.json +2 -2
  101. package/error.json +6 -0
  102. package/package.json +19 -18
  103. package/pronghorn.json +11625 -10511
  104. package/propertiesSchema.json +65 -0
  105. package/refs?service=git-upload-pack +0 -0
  106. package/report/updateReport1615068706854.json +95 -0
  107. package/report/updateReport1642776932883.json +95 -0
  108. package/sampleProperties.json +7 -3
  109. package/test/integration/adapterTestBasicGet.js +1 -1
  110. package/test/integration/adapterTestIntegration.js +463 -4
  111. package/test/unit/adapterBaseTestUnit.js +14 -6
  112. package/test/unit/adapterTestUnit.js +1122 -6
  113. package/utils/addAuth.js +94 -0
  114. package/utils/basicGet.js +1 -14
  115. package/utils/entitiesToDB.js +224 -0
  116. package/utils/modify.js +4 -4
  117. package/utils/packModificationScript.js +1 -1
  118. package/utils/patches2bundledDeps.js +90 -0
  119. package/utils/removeHooks.js +20 -0
  120. package/utils/tbScript.js +14 -8
  121. package/utils/tbUtils.js +98 -19
  122. package/utils/troubleshootingAdapter.js +2 -26
  123. package/test/integration/adapterTestIntegration_me.js +0 -464
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectGlobalTargetSslProxies",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "postProjectGlobalTargetSslProxies",
26
26
  "protocol": "REST",
27
27
  "method": "POST",
28
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -45,7 +45,7 @@
45
45
  "name": "deleteProjectGlobalTargetSslProxiesTargetSslProxy",
46
46
  "protocol": "REST",
47
47
  "method": "DELETE",
48
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies/{pathv2}?{query}",
48
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies/{pathv2}?{query}",
49
49
  "requestSchema": "schema.json",
50
50
  "responseSchema": "schema.json",
51
51
  "timeout": 0,
@@ -65,7 +65,7 @@
65
65
  "name": "getProjectGlobalTargetSslProxiesTargetSslProxy",
66
66
  "protocol": "REST",
67
67
  "method": "GET",
68
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies/{pathv2}?{query}",
68
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies/{pathv2}?{query}",
69
69
  "requestSchema": "schema.json",
70
70
  "responseSchema": "schema.json",
71
71
  "timeout": 0,
@@ -86,7 +86,7 @@
86
86
  "name": "postProjectGlobalTargetSslProxiesTargetSslProxySetBackendService",
87
87
  "protocol": "REST",
88
88
  "method": "POST",
89
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies/{pathv2}/setBackendService?{query}",
89
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies/{pathv2}/setBackendService?{query}",
90
90
  "requestSchema": "schema.json",
91
91
  "responseSchema": "schema.json",
92
92
  "timeout": 0,
@@ -106,7 +106,7 @@
106
106
  "name": "postProjectGlobalTargetSslProxiesTargetSslProxySetProxyHeader",
107
107
  "protocol": "REST",
108
108
  "method": "POST",
109
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies/{pathv2}/setProxyHeader?{query}",
109
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies/{pathv2}/setProxyHeader?{query}",
110
110
  "requestSchema": "schema.json",
111
111
  "responseSchema": "schema.json",
112
112
  "timeout": 0,
@@ -126,7 +126,7 @@
126
126
  "name": "postProjectGlobalTargetSslProxiesTargetSslProxySetSslCertificates",
127
127
  "protocol": "REST",
128
128
  "method": "POST",
129
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies/{pathv2}/setSslCertificates?{query}",
129
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies/{pathv2}/setSslCertificates?{query}",
130
130
  "requestSchema": "schema.json",
131
131
  "responseSchema": "schema.json",
132
132
  "timeout": 0,
@@ -146,7 +146,7 @@
146
146
  "name": "postProjectGlobalTargetSslProxiesTargetSslProxySetSslPolicy",
147
147
  "protocol": "REST",
148
148
  "method": "POST",
149
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetSslProxies/{pathv2}/setSslPolicy?{query}",
149
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetSslProxies/{pathv2}/setSslPolicy?{query}",
150
150
  "requestSchema": "schema.json",
151
151
  "responseSchema": "schema.json",
152
152
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectGlobalTargetTcpProxies",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetTcpProxies?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetTcpProxies?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "postProjectGlobalTargetTcpProxies",
26
26
  "protocol": "REST",
27
27
  "method": "POST",
28
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetTcpProxies?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetTcpProxies?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -45,7 +45,7 @@
45
45
  "name": "deleteProjectGlobalTargetTcpProxiesTargetTcpProxy",
46
46
  "protocol": "REST",
47
47
  "method": "DELETE",
48
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetTcpProxies/{pathv2}?{query}",
48
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetTcpProxies/{pathv2}?{query}",
49
49
  "requestSchema": "schema.json",
50
50
  "responseSchema": "schema.json",
51
51
  "timeout": 0,
@@ -65,7 +65,7 @@
65
65
  "name": "getProjectGlobalTargetTcpProxiesTargetTcpProxy",
66
66
  "protocol": "REST",
67
67
  "method": "GET",
68
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetTcpProxies/{pathv2}?{query}",
68
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetTcpProxies/{pathv2}?{query}",
69
69
  "requestSchema": "schema.json",
70
70
  "responseSchema": "schema.json",
71
71
  "timeout": 0,
@@ -86,7 +86,7 @@
86
86
  "name": "postProjectGlobalTargetTcpProxiesTargetTcpProxySetBackendService",
87
87
  "protocol": "REST",
88
88
  "method": "POST",
89
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetTcpProxies/{pathv2}/setBackendService?{query}",
89
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetTcpProxies/{pathv2}/setBackendService?{query}",
90
90
  "requestSchema": "schema.json",
91
91
  "responseSchema": "schema.json",
92
92
  "timeout": 0,
@@ -106,7 +106,7 @@
106
106
  "name": "postProjectGlobalTargetTcpProxiesTargetTcpProxySetProxyHeader",
107
107
  "protocol": "REST",
108
108
  "method": "POST",
109
- "entitypath": "{base_path}/{version}/{pathv1}/global/targetTcpProxies/{pathv2}/setProxyHeader?{query}",
109
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/targetTcpProxies/{pathv2}/setProxyHeader?{query}",
110
110
  "requestSchema": "schema.json",
111
111
  "responseSchema": "schema.json",
112
112
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectAggregatedTargetVpnGateways",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/aggregated/targetVpnGateways?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/aggregated/targetVpnGateways?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "getProjectRegionsRegionTargetVpnGateways",
26
26
  "protocol": "REST",
27
27
  "method": "GET",
28
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/targetVpnGateways?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/targetVpnGateways?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -46,7 +46,7 @@
46
46
  "name": "postProjectRegionsRegionTargetVpnGateways",
47
47
  "protocol": "REST",
48
48
  "method": "POST",
49
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/targetVpnGateways?{query}",
49
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/targetVpnGateways?{query}",
50
50
  "requestSchema": "schema.json",
51
51
  "responseSchema": "schema.json",
52
52
  "timeout": 0,
@@ -66,7 +66,7 @@
66
66
  "name": "deleteProjectRegionsRegionTargetVpnGatewaysTargetVpnGateway",
67
67
  "protocol": "REST",
68
68
  "method": "DELETE",
69
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/targetVpnGateways/{pathv3}?{query}",
69
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/targetVpnGateways/{pathv3}?{query}",
70
70
  "requestSchema": "schema.json",
71
71
  "responseSchema": "schema.json",
72
72
  "timeout": 0,
@@ -86,7 +86,7 @@
86
86
  "name": "getProjectRegionsRegionTargetVpnGatewaysTargetVpnGateway",
87
87
  "protocol": "REST",
88
88
  "method": "GET",
89
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/targetVpnGateways/{pathv3}?{query}",
89
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/targetVpnGateways/{pathv3}?{query}",
90
90
  "requestSchema": "schema.json",
91
91
  "responseSchema": "schema.json",
92
92
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectAggregatedUrlMaps",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/aggregated/urlMaps?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/aggregated/urlMaps?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "getProjectGlobalUrlMaps",
26
26
  "protocol": "REST",
27
27
  "method": "GET",
28
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -46,7 +46,7 @@
46
46
  "name": "postProjectGlobalUrlMaps",
47
47
  "protocol": "REST",
48
48
  "method": "POST",
49
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps?{query}",
49
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps?{query}",
50
50
  "requestSchema": "schema.json",
51
51
  "responseSchema": "schema.json",
52
52
  "timeout": 0,
@@ -66,7 +66,7 @@
66
66
  "name": "deleteProjectGlobalUrlMapsUrlMap",
67
67
  "protocol": "REST",
68
68
  "method": "DELETE",
69
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps/{pathv2}?{query}",
69
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps/{pathv2}?{query}",
70
70
  "requestSchema": "schema.json",
71
71
  "responseSchema": "schema.json",
72
72
  "timeout": 0,
@@ -86,7 +86,7 @@
86
86
  "name": "getProjectGlobalUrlMapsUrlMap",
87
87
  "protocol": "REST",
88
88
  "method": "GET",
89
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps/{pathv2}?{query}",
89
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps/{pathv2}?{query}",
90
90
  "requestSchema": "schema.json",
91
91
  "responseSchema": "schema.json",
92
92
  "timeout": 0,
@@ -107,7 +107,7 @@
107
107
  "name": "patchProjectGlobalUrlMapsUrlMap",
108
108
  "protocol": "REST",
109
109
  "method": "PATCH",
110
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps/{pathv2}?{query}",
110
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps/{pathv2}?{query}",
111
111
  "requestSchema": "schema.json",
112
112
  "responseSchema": "schema.json",
113
113
  "timeout": 0,
@@ -127,7 +127,7 @@
127
127
  "name": "putProjectGlobalUrlMapsUrlMap",
128
128
  "protocol": "REST",
129
129
  "method": "PUT",
130
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps/{pathv2}?{query}",
130
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps/{pathv2}?{query}",
131
131
  "requestSchema": "schema.json",
132
132
  "responseSchema": "schema.json",
133
133
  "timeout": 0,
@@ -147,7 +147,7 @@
147
147
  "name": "postProjectGlobalUrlMapsUrlMapInvalidateCache",
148
148
  "protocol": "REST",
149
149
  "method": "POST",
150
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps/{pathv2}/invalidateCache?{query}",
150
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps/{pathv2}/invalidateCache?{query}",
151
151
  "requestSchema": "schema.json",
152
152
  "responseSchema": "schema.json",
153
153
  "timeout": 0,
@@ -167,7 +167,7 @@
167
167
  "name": "postProjectGlobalUrlMapsUrlMapValidate",
168
168
  "protocol": "REST",
169
169
  "method": "POST",
170
- "entitypath": "{base_path}/{version}/{pathv1}/global/urlMaps/{pathv2}/validate?{query}",
170
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/global/urlMaps/{pathv2}/validate?{query}",
171
171
  "requestSchema": "schema.json",
172
172
  "responseSchema": "schema.json",
173
173
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectAggregatedVpnGateways",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/aggregated/vpnGateways?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/aggregated/vpnGateways?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "getProjectRegionsRegionVpnGateways",
26
26
  "protocol": "REST",
27
27
  "method": "GET",
28
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -46,7 +46,7 @@
46
46
  "name": "postProjectRegionsRegionVpnGateways",
47
47
  "protocol": "REST",
48
48
  "method": "POST",
49
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways?{query}",
49
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways?{query}",
50
50
  "requestSchema": "schema.json",
51
51
  "responseSchema": "schema.json",
52
52
  "timeout": 0,
@@ -66,7 +66,7 @@
66
66
  "name": "postProjectRegionsRegionVpnGatewaysResourceSetLabels",
67
67
  "protocol": "REST",
68
68
  "method": "POST",
69
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}/setLabels?{query}",
69
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}/setLabels?{query}",
70
70
  "requestSchema": "schema.json",
71
71
  "responseSchema": "schema.json",
72
72
  "timeout": 0,
@@ -86,7 +86,7 @@
86
86
  "name": "postProjectRegionsRegionVpnGatewaysResourceTestIamPermissions",
87
87
  "protocol": "REST",
88
88
  "method": "POST",
89
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}/testIamPermissions?{query}",
89
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}/testIamPermissions?{query}",
90
90
  "requestSchema": "schema.json",
91
91
  "responseSchema": "schema.json",
92
92
  "timeout": 0,
@@ -106,7 +106,7 @@
106
106
  "name": "deleteProjectRegionsRegionVpnGatewaysVpnGateway",
107
107
  "protocol": "REST",
108
108
  "method": "DELETE",
109
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}?{query}",
109
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}?{query}",
110
110
  "requestSchema": "schema.json",
111
111
  "responseSchema": "schema.json",
112
112
  "timeout": 0,
@@ -126,7 +126,7 @@
126
126
  "name": "getProjectRegionsRegionVpnGatewaysVpnGateway",
127
127
  "protocol": "REST",
128
128
  "method": "GET",
129
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}?{query}",
129
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}?{query}",
130
130
  "requestSchema": "schema.json",
131
131
  "responseSchema": "schema.json",
132
132
  "timeout": 0,
@@ -147,7 +147,7 @@
147
147
  "name": "getProjectRegionsRegionVpnGatewaysVpnGatewayGetStatus",
148
148
  "protocol": "REST",
149
149
  "method": "GET",
150
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}/getStatus?{query}",
150
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnGateways/{pathv3}/getStatus?{query}",
151
151
  "requestSchema": "schema.json",
152
152
  "responseSchema": "schema.json",
153
153
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectAggregatedVpnTunnels",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/aggregated/vpnTunnels?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/aggregated/vpnTunnels?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "getProjectRegionsRegionVpnTunnels",
26
26
  "protocol": "REST",
27
27
  "method": "GET",
28
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnTunnels?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnTunnels?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -46,7 +46,7 @@
46
46
  "name": "postProjectRegionsRegionVpnTunnels",
47
47
  "protocol": "REST",
48
48
  "method": "POST",
49
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnTunnels?{query}",
49
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnTunnels?{query}",
50
50
  "requestSchema": "schema.json",
51
51
  "responseSchema": "schema.json",
52
52
  "timeout": 0,
@@ -66,7 +66,7 @@
66
66
  "name": "deleteProjectRegionsRegionVpnTunnelsVpnTunnel",
67
67
  "protocol": "REST",
68
68
  "method": "DELETE",
69
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnTunnels/{pathv3}?{query}",
69
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnTunnels/{pathv3}?{query}",
70
70
  "requestSchema": "schema.json",
71
71
  "responseSchema": "schema.json",
72
72
  "timeout": 0,
@@ -86,7 +86,7 @@
86
86
  "name": "getProjectRegionsRegionVpnTunnelsVpnTunnel",
87
87
  "protocol": "REST",
88
88
  "method": "GET",
89
- "entitypath": "{base_path}/{version}/{pathv1}/regions/{pathv2}/vpnTunnels/{pathv3}?{query}",
89
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/regions/{pathv2}/vpnTunnels/{pathv3}?{query}",
90
90
  "requestSchema": "schema.json",
91
91
  "responseSchema": "schema.json",
92
92
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectZonesZoneOperations",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/zones/{pathv2}/operations?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/zones/{pathv2}/operations?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "deleteProjectZonesZoneOperationsOperation",
26
26
  "protocol": "REST",
27
27
  "method": "DELETE",
28
- "entitypath": "{base_path}/{version}/{pathv1}/zones/{pathv2}/operations/{pathv3}?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/zones/{pathv2}/operations/{pathv3}?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -45,7 +45,7 @@
45
45
  "name": "getProjectZonesZoneOperationsOperation",
46
46
  "protocol": "REST",
47
47
  "method": "GET",
48
- "entitypath": "{base_path}/{version}/{pathv1}/zones/{pathv2}/operations/{pathv3}?{query}",
48
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/zones/{pathv2}/operations/{pathv3}?{query}",
49
49
  "requestSchema": "schema.json",
50
50
  "responseSchema": "schema.json",
51
51
  "timeout": 0,
@@ -66,7 +66,7 @@
66
66
  "name": "postProjectZonesZoneOperationsOperationWait",
67
67
  "protocol": "REST",
68
68
  "method": "POST",
69
- "entitypath": "{base_path}/{version}/{pathv1}/zones/{pathv2}/operations/{pathv3}/wait?{query}",
69
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/zones/{pathv2}/operations/{pathv3}/wait?{query}",
70
70
  "requestSchema": "schema.json",
71
71
  "responseSchema": "schema.json",
72
72
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getProjectZones",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/{pathv1}/zones?{query}",
7
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/zones?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "getProjectZonesZone",
26
26
  "protocol": "REST",
27
27
  "method": "GET",
28
- "entitypath": "{base_path}/{version}/{pathv1}/zones/{pathv2}?{query}",
28
+ "entitypath": "{base_path}/{version}/projects/{pathv1}/zones/{pathv2}?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
package/error.json CHANGED
@@ -168,6 +168,12 @@
168
168
  "displayString": "Failure response received for $VARIABLE$",
169
169
  "recommendation": "Check the reason for failure in the stack trace"
170
170
  },
171
+ {
172
+ "key": "Suspended Adapter",
173
+ "icode": "AD.600",
174
+ "displayString": "Adapter is suspended",
175
+ "recommendation": "Check if external system is functional and unsuspend if appropriate"
176
+ },
171
177
  {
172
178
  "key": "Caught Exception",
173
179
  "icode": "AD.900",
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-gcp_compute",
3
- "version": "0.2.0",
3
+ "version": "1.1.0",
4
4
  "description": "This adapter integrates with system described as: computeEngineApi.",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.43.10",
7
- "engineVersion": "1.58.0",
6
+ "wizardVersion": "2.44.7",
7
+ "engineVersion": "1.59.55",
8
+ "adapterType": "http",
8
9
  "scripts": {
9
10
  "artifactize": "npm i && node utils/packModificationScript.js",
10
- "preinstall": "node utils/setup.js",
11
+ "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
11
12
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
12
13
  "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
13
14
  "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
@@ -15,7 +16,7 @@
15
16
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
16
17
  "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
17
18
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
18
- "adapter:install": "node utils/tbScript.js install",
19
+ "adapter:install": "npm i && node utils/tbScript.js install",
19
20
  "adapter:checkMigrate": "node utils/checkMigrate.js",
20
21
  "adapter:findPath": "node utils/findPath.js",
21
22
  "adapter:migrate": "node utils/modify.js -m",
@@ -25,7 +26,7 @@
25
26
  "healthcheck": "node utils/tbScript.js healthcheck",
26
27
  "basicget": "node utils/tbScript.js basicget",
27
28
  "connectivity": "node utils/tbScript.js connectivity",
28
- "deploy": "npm publish --registry=http://registry.npmjs.org --access=public",
29
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
29
30
  "build": "npm run deploy"
30
31
  },
31
32
  "keywords": [
@@ -53,14 +54,15 @@
53
54
  "author": "Itential",
54
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-gcp_compute#readme",
55
56
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^4.38.2",
57
+ "@itentialopensource/adapter-utils": "^4.44.11",
57
58
  "ajv": "^6.12.0",
58
59
  "axios": "^0.21.0",
59
60
  "commander": "^2.20.0",
60
61
  "fs-extra": "^8.1.0",
61
62
  "gtoken": "^5.2.1",
62
- "mocha": "^8.1.1",
63
+ "mocha": "^9.0.1",
63
64
  "mocha-param": "^2.0.1",
65
+ "mongodb": "^4.1.0",
64
66
  "network-diagnostics": "^0.5.3",
65
67
  "nyc": "^15.1.0",
66
68
  "readline-sync": "^1.4.10",
@@ -68,17 +70,16 @@
68
70
  "winston": "^3.3.3"
69
71
  },
70
72
  "devDependencies": {
71
- "chai": "^4.2.0",
72
- "eslint": "^7.2.0",
73
- "eslint-config-airbnb-base": "^14.2.0",
74
- "eslint-plugin-import": "^2.21.2",
75
- "eslint-plugin-json": "^2.1.1",
73
+ "chai": "^4.3.4",
74
+ "eslint": "^7.29.0",
75
+ "eslint-config-airbnb-base": "^14.2.1",
76
+ "eslint-plugin-import": "^2.23.4",
77
+ "eslint-plugin-json": "^3.0.0",
76
78
  "package-json-validator": "^0.6.3",
77
- "testdouble": "^3.16.1",
78
- "mocha": "^8.1.1",
79
- "mocha-param": "^2.0.1",
80
- "nyc": "^15.1.0",
81
- "winston": "^3.3.3"
79
+ "testdouble": "^3.16.1"
80
+ },
81
+ "resolutions": {
82
+ "minimist": "^1.2.5"
82
83
  },
83
84
  "private": false
84
85
  }