@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.
- package/CHANGELOG.md +32 -1
- package/README.md +85 -12
- package/adapter.js +11822 -9796
- package/adapterBase.js +40 -3
- package/entities/.generic/action.json +5 -5
- package/entities/.system/action.json +1 -1
- package/entities/AcceleratorTypes/action.json +3 -3
- package/entities/Addresses/action.json +5 -5
- package/entities/Autoscalers/action.json +7 -7
- package/entities/BackendBuckets/action.json +8 -8
- package/entities/BackendServices/action.json +11 -11
- package/entities/DiskTypes/action.json +3 -3
- package/entities/Disks/action.json +13 -13
- package/entities/ExternalVpnGateways/action.json +6 -6
- package/entities/FirewallPolicies/action.json +382 -0
- package/entities/FirewallPolicies/mockdatafiles/addFirewallPolicyAssociation-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/addFirewallPolicyRule-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/cloneFirewallPolicyRule-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/deleteFirewallPolicy-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicy-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicyAssociation-default.json +7 -0
- package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicyIamPolicy-default.json +26 -0
- package/entities/FirewallPolicies/mockdatafiles/getFirewallPolicyRule-default.json +32 -0
- package/entities/FirewallPolicies/mockdatafiles/insertFirewallPolicy-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/listFirewallPolicy-default.json +75 -0
- package/entities/FirewallPolicies/mockdatafiles/listFirewallPolicyAssociations-default.json +12 -0
- package/entities/FirewallPolicies/mockdatafiles/moveFirewallPolicy-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/patchFirewallPolicy-default.json +57 -0
- package/entities/FirewallPolicies/mockdatafiles/patchFirewallPolicyRule-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/removeFirewallPolicyAssociation-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/removeFirewallPolicyRule-default.json +45 -0
- package/entities/FirewallPolicies/mockdatafiles/setFirewallPolicyIamPolicy-default.json +26 -0
- package/entities/FirewallPolicies/mockdatafiles/testFirewallPolicyIamPermissions-default.json +6 -0
- package/entities/FirewallPolicies/schema.json +47 -0
- package/entities/Firewalls/action.json +6 -6
- package/entities/ForwardingRules/action.json +7 -7
- package/entities/GlobalAddresses/action.json +4 -4
- package/entities/GlobalForwardingRules/action.json +6 -6
- package/entities/GlobalNetworkEndpointGroups/action.json +7 -7
- package/entities/GlobalOperations/action.json +5 -5
- package/entities/HealthChecks/action.json +7 -7
- package/entities/HttpHealthChecks/action.json +6 -6
- package/entities/HttpsHealthChecks/action.json +6 -6
- package/entities/Images/action.json +10 -10
- package/entities/InstanceGroupManagers/action.json +20 -20
- package/entities/InstanceGroups/action.json +9 -9
- package/entities/InstanceTemplates/action.json +7 -7
- package/entities/Instances/action.json +40 -40
- package/entities/InterconnectAttachments/action.json +6 -6
- package/entities/InterconnectLocations/action.json +2 -2
- package/entities/Interconnects/action.json +6 -6
- package/entities/LicenseCodes/action.json +2 -2
- package/entities/Licenses/action.json +7 -7
- package/entities/MachineTypes/action.json +3 -3
- package/entities/NetworkEndpointGroups/action.json +9 -9
- package/entities/Networks/action.json +10 -10
- package/entities/NodeGroups/action.json +13 -13
- package/entities/NodeTemplates/action.json +8 -8
- package/entities/NodeTypes/action.json +3 -3
- package/entities/PacketMirrorings/action.json +7 -7
- package/entities/Projects/action.json +13 -13
- package/entities/RegionAutoscalers/action.json +6 -6
- package/entities/RegionBackendServices/action.json +7 -7
- package/entities/RegionCommitments/action.json +4 -4
- package/entities/RegionDiskTypes/action.json +2 -2
- package/entities/RegionDisks/action.json +12 -12
- package/entities/RegionHealthCheckServices/action.json +5 -5
- package/entities/RegionHealthChecks/action.json +6 -6
- package/entities/RegionInstanceGroupManagers/action.json +19 -19
- package/entities/RegionInstanceGroups/action.json +4 -4
- package/entities/RegionNetworkEndpointGroups/action.json +4 -4
- package/entities/RegionNotificationEndpoints/action.json +4 -4
- package/entities/RegionOperations/action.json +4 -4
- package/entities/RegionSslCertificates/action.json +4 -4
- package/entities/RegionTargetHttpProxies/action.json +5 -5
- package/entities/RegionTargetHttpsProxies/action.json +6 -6
- package/entities/RegionUrlMaps/action.json +7 -7
- package/entities/Regions/action.json +2 -2
- package/entities/Reservations/action.json +9 -9
- package/entities/ResourcePolicies/action.json +8 -8
- package/entities/Routers/action.json +10 -10
- package/entities/Routes/action.json +4 -4
- package/entities/SecurityPolicies/action.json +10 -10
- package/entities/Snapshots/action.json +7 -7
- package/entities/SslCertificates/action.json +5 -5
- package/entities/SslPolicies/action.json +6 -6
- package/entities/Subnetworks/action.json +12 -12
- package/entities/TargetGrpcProxies/action.json +5 -5
- package/entities/TargetHttpProxies/action.json +6 -6
- package/entities/TargetHttpsProxies/action.json +9 -9
- package/entities/TargetInstances/action.json +5 -5
- package/entities/TargetPools/action.json +11 -11
- package/entities/TargetSslProxies/action.json +8 -8
- package/entities/TargetTcpProxies/action.json +6 -6
- package/entities/TargetVpnGateways/action.json +5 -5
- package/entities/UrlMaps/action.json +9 -9
- package/entities/VpnGateways/action.json +8 -8
- package/entities/VpnTunnels/action.json +5 -5
- package/entities/ZoneOperations/action.json +4 -4
- package/entities/Zones/action.json +2 -2
- package/error.json +6 -0
- package/package.json +19 -18
- package/pronghorn.json +11625 -10511
- package/propertiesSchema.json +65 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/updateReport1615068706854.json +95 -0
- package/report/updateReport1642776932883.json +95 -0
- package/sampleProperties.json +7 -3
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestIntegration.js +463 -4
- package/test/unit/adapterBaseTestUnit.js +14 -6
- package/test/unit/adapterTestUnit.js +1122 -6
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +1 -14
- package/utils/entitiesToDB.js +224 -0
- package/utils/modify.js +4 -4
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +14 -8
- package/utils/tbUtils.js +98 -19
- package/utils/troubleshootingAdapter.js +2 -26
- package/test/integration/adapterTestIntegration_me.js +0 -464
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "addFirewallPolicyAssociation",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/addAssociation?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": "mockdatafiles/addFirewallPolicyAssociation-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "addFirewallPolicyRule",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/addRule?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": "mockdatafiles/addFirewallPolicyRule-default.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "cloneFirewallPolicyRule",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "POST",
|
|
49
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/cloneRules?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": true,
|
|
54
|
+
"sendGetBody": false,
|
|
55
|
+
"requestDatatype": "JSON",
|
|
56
|
+
"responseDatatype": "JSON",
|
|
57
|
+
"headers": {},
|
|
58
|
+
"responseObjects": [
|
|
59
|
+
{
|
|
60
|
+
"type": "default",
|
|
61
|
+
"key": "",
|
|
62
|
+
"mockFile": "mockdatafiles/cloneFirewallPolicyRule-default.json"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "deleteFirewallPolicy",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "DELETE",
|
|
70
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}?{query}",
|
|
71
|
+
"requestSchema": "schema.json",
|
|
72
|
+
"responseSchema": "schema.json",
|
|
73
|
+
"timeout": 0,
|
|
74
|
+
"sendEmpty": true,
|
|
75
|
+
"sendGetBody": false,
|
|
76
|
+
"requestDatatype": "JSON",
|
|
77
|
+
"responseDatatype": "JSON",
|
|
78
|
+
"headers": {},
|
|
79
|
+
"responseObjects": [
|
|
80
|
+
{
|
|
81
|
+
"type": "default",
|
|
82
|
+
"key": "",
|
|
83
|
+
"mockFile": "mockdatafiles/deleteFirewallPolicy-default.json"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "getFirewallPolicy",
|
|
89
|
+
"protocol": "REST",
|
|
90
|
+
"method": "GET",
|
|
91
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}?{query}",
|
|
92
|
+
"requestSchema": "schema.json",
|
|
93
|
+
"responseSchema": "schema.json",
|
|
94
|
+
"timeout": 0,
|
|
95
|
+
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
97
|
+
"requestDatatype": "JSON",
|
|
98
|
+
"responseDatatype": "JSON",
|
|
99
|
+
"headers": {},
|
|
100
|
+
"responseObjects": [
|
|
101
|
+
{
|
|
102
|
+
"type": "default",
|
|
103
|
+
"key": "",
|
|
104
|
+
"mockFile": "mockdatafiles/getFirewallPolicy-default.json"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "getFirewallPolicyAssociation",
|
|
110
|
+
"protocol": "REST",
|
|
111
|
+
"method": "GET",
|
|
112
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/getAssociation?{query}",
|
|
113
|
+
"requestSchema": "schema.json",
|
|
114
|
+
"responseSchema": "schema.json",
|
|
115
|
+
"timeout": 0,
|
|
116
|
+
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
118
|
+
"requestDatatype": "JSON",
|
|
119
|
+
"responseDatatype": "JSON",
|
|
120
|
+
"headers": {},
|
|
121
|
+
"responseObjects": [
|
|
122
|
+
{
|
|
123
|
+
"type": "default",
|
|
124
|
+
"key": "",
|
|
125
|
+
"mockFile": "mockdatafiles/getFirewallPolicyAssociation-default.json"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "getFirewallPolicyIamPolicy",
|
|
131
|
+
"protocol": "REST",
|
|
132
|
+
"method": "GET",
|
|
133
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/getIamPolicy?{query}",
|
|
134
|
+
"requestSchema": "schema.json",
|
|
135
|
+
"responseSchema": "schema.json",
|
|
136
|
+
"timeout": 0,
|
|
137
|
+
"sendEmpty": false,
|
|
138
|
+
"sendGetBody": false,
|
|
139
|
+
"requestDatatype": "JSON",
|
|
140
|
+
"responseDatatype": "JSON",
|
|
141
|
+
"headers": {},
|
|
142
|
+
"responseObjects": [
|
|
143
|
+
{
|
|
144
|
+
"type": "default",
|
|
145
|
+
"key": "",
|
|
146
|
+
"mockFile": "mockdatafiles/getFirewallPolicyIamPolicy-default.json"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "getFirewallPolicyRule",
|
|
152
|
+
"protocol": "REST",
|
|
153
|
+
"method": "GET",
|
|
154
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/getRule?{query}",
|
|
155
|
+
"requestSchema": "schema.json",
|
|
156
|
+
"responseSchema": "schema.json",
|
|
157
|
+
"timeout": 0,
|
|
158
|
+
"sendEmpty": false,
|
|
159
|
+
"sendGetBody": false,
|
|
160
|
+
"requestDatatype": "JSON",
|
|
161
|
+
"responseDatatype": "JSON",
|
|
162
|
+
"headers": {},
|
|
163
|
+
"responseObjects": [
|
|
164
|
+
{
|
|
165
|
+
"type": "default",
|
|
166
|
+
"key": "",
|
|
167
|
+
"mockFile": "mockdatafiles/getFirewallPolicyRule-default.json"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "insertFirewallPolicy",
|
|
173
|
+
"protocol": "REST",
|
|
174
|
+
"method": "POST",
|
|
175
|
+
"entitypath": "{base_path}/{version}/locations/global/firewallPolicies?{query}",
|
|
176
|
+
"requestSchema": "schema.json",
|
|
177
|
+
"responseSchema": "schema.json",
|
|
178
|
+
"timeout": 0,
|
|
179
|
+
"sendEmpty": false,
|
|
180
|
+
"sendGetBody": false,
|
|
181
|
+
"requestDatatype": "JSON",
|
|
182
|
+
"responseDatatype": "JSON",
|
|
183
|
+
"headers": {},
|
|
184
|
+
"responseObjects": [
|
|
185
|
+
{
|
|
186
|
+
"type": "default",
|
|
187
|
+
"key": "",
|
|
188
|
+
"mockFile": "mockdatafiles/insertFirewallPolicy-default.json"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "listFirewallPolicy",
|
|
194
|
+
"protocol": "REST",
|
|
195
|
+
"method": "GET",
|
|
196
|
+
"entitypath": "{base_path}/{version}/locations/global/firewallPolicies?{query}",
|
|
197
|
+
"requestSchema": "schema.json",
|
|
198
|
+
"responseSchema": "schema.json",
|
|
199
|
+
"timeout": 0,
|
|
200
|
+
"sendEmpty": false,
|
|
201
|
+
"sendGetBody": false,
|
|
202
|
+
"requestDatatype": "JSON",
|
|
203
|
+
"responseDatatype": "JSON",
|
|
204
|
+
"headers": {},
|
|
205
|
+
"responseObjects": [
|
|
206
|
+
{
|
|
207
|
+
"type": "default",
|
|
208
|
+
"key": "",
|
|
209
|
+
"mockFile": "mockdatafiles/listFirewallPolicy-default.json"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "listFirewallPolicyAssociations",
|
|
215
|
+
"protocol": "REST",
|
|
216
|
+
"method": "GET",
|
|
217
|
+
"entitypath": "{base_path}/{version}/locations/global/firewallPolicies/listAssociations?{query}",
|
|
218
|
+
"requestSchema": "schema.json",
|
|
219
|
+
"responseSchema": "schema.json",
|
|
220
|
+
"timeout": 0,
|
|
221
|
+
"sendEmpty": false,
|
|
222
|
+
"sendGetBody": false,
|
|
223
|
+
"requestDatatype": "JSON",
|
|
224
|
+
"responseDatatype": "JSON",
|
|
225
|
+
"headers": {},
|
|
226
|
+
"responseObjects": [
|
|
227
|
+
{
|
|
228
|
+
"type": "default",
|
|
229
|
+
"key": "",
|
|
230
|
+
"mockFile": "mockdatafiles/listFirewallPolicyAssociations-default.json"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "moveFirewallPolicy",
|
|
236
|
+
"protocol": "REST",
|
|
237
|
+
"method": "POST",
|
|
238
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/move?{query}",
|
|
239
|
+
"requestSchema": "schema.json",
|
|
240
|
+
"responseSchema": "schema.json",
|
|
241
|
+
"timeout": 0,
|
|
242
|
+
"sendEmpty": true,
|
|
243
|
+
"sendGetBody": false,
|
|
244
|
+
"requestDatatype": "JSON",
|
|
245
|
+
"responseDatatype": "JSON",
|
|
246
|
+
"headers": {},
|
|
247
|
+
"responseObjects": [
|
|
248
|
+
{
|
|
249
|
+
"type": "default",
|
|
250
|
+
"key": "",
|
|
251
|
+
"mockFile": "mockdatafiles/moveFirewallPolicy-default.json"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "patchFirewallPolicy",
|
|
257
|
+
"protocol": "REST",
|
|
258
|
+
"method": "PATCH",
|
|
259
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}?{query}",
|
|
260
|
+
"requestSchema": "schema.json",
|
|
261
|
+
"responseSchema": "schema.json",
|
|
262
|
+
"timeout": 0,
|
|
263
|
+
"sendEmpty": false,
|
|
264
|
+
"sendGetBody": false,
|
|
265
|
+
"requestDatatype": "JSON",
|
|
266
|
+
"responseDatatype": "JSON",
|
|
267
|
+
"headers": {},
|
|
268
|
+
"responseObjects": [
|
|
269
|
+
{
|
|
270
|
+
"type": "default",
|
|
271
|
+
"key": "",
|
|
272
|
+
"mockFile": "mockdatafiles/patchFirewallPolicy-default.json"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "patchFirewallPolicyRule",
|
|
278
|
+
"protocol": "REST",
|
|
279
|
+
"method": "PATCH",
|
|
280
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/patchRule?{query}",
|
|
281
|
+
"requestSchema": "schema.json",
|
|
282
|
+
"responseSchema": "schema.json",
|
|
283
|
+
"timeout": 0,
|
|
284
|
+
"sendEmpty": false,
|
|
285
|
+
"sendGetBody": false,
|
|
286
|
+
"requestDatatype": "JSON",
|
|
287
|
+
"responseDatatype": "JSON",
|
|
288
|
+
"headers": {},
|
|
289
|
+
"responseObjects": [
|
|
290
|
+
{
|
|
291
|
+
"type": "default",
|
|
292
|
+
"key": "",
|
|
293
|
+
"mockFile": "mockdatafiles/patchFirewallPolicyRule-default.json"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "removeFirewallPolicyAssociation",
|
|
299
|
+
"protocol": "REST",
|
|
300
|
+
"method": "POST",
|
|
301
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/removeAssociation?{query}",
|
|
302
|
+
"requestSchema": "schema.json",
|
|
303
|
+
"responseSchema": "schema.json",
|
|
304
|
+
"timeout": 0,
|
|
305
|
+
"sendEmpty": true,
|
|
306
|
+
"sendGetBody": false,
|
|
307
|
+
"requestDatatype": "JSON",
|
|
308
|
+
"responseDatatype": "JSON",
|
|
309
|
+
"headers": {},
|
|
310
|
+
"responseObjects": [
|
|
311
|
+
{
|
|
312
|
+
"type": "default",
|
|
313
|
+
"key": "",
|
|
314
|
+
"mockFile": "mockdatafiles/removeFirewallPolicyAssociation-default.json"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "removeFirewallPolicyRule",
|
|
320
|
+
"protocol": "REST",
|
|
321
|
+
"method": "POST",
|
|
322
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/removeRule?{query}",
|
|
323
|
+
"requestSchema": "schema.json",
|
|
324
|
+
"responseSchema": "schema.json",
|
|
325
|
+
"timeout": 0,
|
|
326
|
+
"sendEmpty": true,
|
|
327
|
+
"sendGetBody": false,
|
|
328
|
+
"requestDatatype": "JSON",
|
|
329
|
+
"responseDatatype": "JSON",
|
|
330
|
+
"headers": {},
|
|
331
|
+
"responseObjects": [
|
|
332
|
+
{
|
|
333
|
+
"type": "default",
|
|
334
|
+
"key": "",
|
|
335
|
+
"mockFile": "mockdatafiles/removeFirewallPolicyRule-default.json"
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "setFirewallPolicyIamPolicy",
|
|
341
|
+
"protocol": "REST",
|
|
342
|
+
"method": "POST",
|
|
343
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/setIamPolicy?{query}",
|
|
344
|
+
"requestSchema": "schema.json",
|
|
345
|
+
"responseSchema": "schema.json",
|
|
346
|
+
"timeout": 0,
|
|
347
|
+
"sendEmpty": false,
|
|
348
|
+
"sendGetBody": false,
|
|
349
|
+
"requestDatatype": "JSON",
|
|
350
|
+
"responseDatatype": "JSON",
|
|
351
|
+
"headers": {},
|
|
352
|
+
"responseObjects": [
|
|
353
|
+
{
|
|
354
|
+
"type": "default",
|
|
355
|
+
"key": "",
|
|
356
|
+
"mockFile": "mockdatafiles/setFirewallPolicyIamPolicy-default.json"
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "testFirewallPolicyIamPermissions",
|
|
362
|
+
"protocol": "REST",
|
|
363
|
+
"method": "POST",
|
|
364
|
+
"entitypath": "{base_path}/{version}/locations/global/{pathv1}/testIamPermissions?{query}",
|
|
365
|
+
"requestSchema": "schema.json",
|
|
366
|
+
"responseSchema": "schema.json",
|
|
367
|
+
"timeout": 0,
|
|
368
|
+
"sendEmpty": false,
|
|
369
|
+
"sendGetBody": false,
|
|
370
|
+
"requestDatatype": "JSON",
|
|
371
|
+
"responseDatatype": "JSON",
|
|
372
|
+
"headers": {},
|
|
373
|
+
"responseObjects": [
|
|
374
|
+
{
|
|
375
|
+
"type": "default",
|
|
376
|
+
"key": "",
|
|
377
|
+
"mockFile": "mockdatafiles/testFirewallPolicyIamPermissions-default.json"
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"creationTimestamp": "string",
|
|
4
|
+
"name": "string",
|
|
5
|
+
"zone": "string",
|
|
6
|
+
"clientOperationId": "string",
|
|
7
|
+
"operationType": "string",
|
|
8
|
+
"targetLink": "string",
|
|
9
|
+
"targetId": "string",
|
|
10
|
+
"status": "string",
|
|
11
|
+
"statusMessage": "string",
|
|
12
|
+
"user": "string",
|
|
13
|
+
"progress": 1,
|
|
14
|
+
"insertTime": "string",
|
|
15
|
+
"startTime": "string",
|
|
16
|
+
"endTime": "string",
|
|
17
|
+
"error": {
|
|
18
|
+
"errors": [
|
|
19
|
+
{
|
|
20
|
+
"code": "string",
|
|
21
|
+
"location": "string",
|
|
22
|
+
"message": "string"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"warnings": [
|
|
27
|
+
{
|
|
28
|
+
"code": "string",
|
|
29
|
+
"message": "string",
|
|
30
|
+
"data": [
|
|
31
|
+
{
|
|
32
|
+
"key": "string",
|
|
33
|
+
"value": "string"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"httpErrorStatusCode": 1,
|
|
39
|
+
"httpErrorMessage": "string",
|
|
40
|
+
"selfLink": "string",
|
|
41
|
+
"region": "string",
|
|
42
|
+
"description": "string",
|
|
43
|
+
"operationGroupId": "string",
|
|
44
|
+
"kind": "string"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"creationTimestamp": "string",
|
|
4
|
+
"name": "string",
|
|
5
|
+
"zone": "string",
|
|
6
|
+
"clientOperationId": "string",
|
|
7
|
+
"operationType": "string",
|
|
8
|
+
"targetLink": "string",
|
|
9
|
+
"targetId": "string",
|
|
10
|
+
"status": "string",
|
|
11
|
+
"statusMessage": "string",
|
|
12
|
+
"user": "string",
|
|
13
|
+
"progress": 1,
|
|
14
|
+
"insertTime": "string",
|
|
15
|
+
"startTime": "string",
|
|
16
|
+
"endTime": "string",
|
|
17
|
+
"error": {
|
|
18
|
+
"errors": [
|
|
19
|
+
{
|
|
20
|
+
"code": "string",
|
|
21
|
+
"location": "string",
|
|
22
|
+
"message": "string"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"warnings": [
|
|
27
|
+
{
|
|
28
|
+
"code": "string",
|
|
29
|
+
"message": "string",
|
|
30
|
+
"data": [
|
|
31
|
+
{
|
|
32
|
+
"key": "string",
|
|
33
|
+
"value": "string"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"httpErrorStatusCode": 1,
|
|
39
|
+
"httpErrorMessage": "string",
|
|
40
|
+
"selfLink": "string",
|
|
41
|
+
"region": "string",
|
|
42
|
+
"description": "string",
|
|
43
|
+
"operationGroupId": "string",
|
|
44
|
+
"kind": "string"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"creationTimestamp": "string",
|
|
4
|
+
"name": "string",
|
|
5
|
+
"zone": "string",
|
|
6
|
+
"clientOperationId": "string",
|
|
7
|
+
"operationType": "string",
|
|
8
|
+
"targetLink": "string",
|
|
9
|
+
"targetId": "string",
|
|
10
|
+
"status": "string",
|
|
11
|
+
"statusMessage": "string",
|
|
12
|
+
"user": "string",
|
|
13
|
+
"progress": 1,
|
|
14
|
+
"insertTime": "string",
|
|
15
|
+
"startTime": "string",
|
|
16
|
+
"endTime": "string",
|
|
17
|
+
"error": {
|
|
18
|
+
"errors": [
|
|
19
|
+
{
|
|
20
|
+
"code": "string",
|
|
21
|
+
"location": "string",
|
|
22
|
+
"message": "string"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"warnings": [
|
|
27
|
+
{
|
|
28
|
+
"code": "string",
|
|
29
|
+
"message": "string",
|
|
30
|
+
"data": [
|
|
31
|
+
{
|
|
32
|
+
"key": "string",
|
|
33
|
+
"value": "string"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"httpErrorStatusCode": 1,
|
|
39
|
+
"httpErrorMessage": "string",
|
|
40
|
+
"selfLink": "string",
|
|
41
|
+
"region": "string",
|
|
42
|
+
"description": "string",
|
|
43
|
+
"operationGroupId": "string",
|
|
44
|
+
"kind": "string"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"creationTimestamp": "string",
|
|
4
|
+
"name": "string",
|
|
5
|
+
"zone": "string",
|
|
6
|
+
"clientOperationId": "string",
|
|
7
|
+
"operationType": "string",
|
|
8
|
+
"targetLink": "string",
|
|
9
|
+
"targetId": "string",
|
|
10
|
+
"status": "string",
|
|
11
|
+
"statusMessage": "string",
|
|
12
|
+
"user": "string",
|
|
13
|
+
"progress": 1,
|
|
14
|
+
"insertTime": "string",
|
|
15
|
+
"startTime": "string",
|
|
16
|
+
"endTime": "string",
|
|
17
|
+
"error": {
|
|
18
|
+
"errors": [
|
|
19
|
+
{
|
|
20
|
+
"code": "string",
|
|
21
|
+
"location": "string",
|
|
22
|
+
"message": "string"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"warnings": [
|
|
27
|
+
{
|
|
28
|
+
"code": "string",
|
|
29
|
+
"message": "string",
|
|
30
|
+
"data": [
|
|
31
|
+
{
|
|
32
|
+
"key": "string",
|
|
33
|
+
"value": "string"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"httpErrorStatusCode": 1,
|
|
39
|
+
"httpErrorMessage": "string",
|
|
40
|
+
"selfLink": "string",
|
|
41
|
+
"region": "string",
|
|
42
|
+
"description": "string",
|
|
43
|
+
"operationGroupId": "string",
|
|
44
|
+
"kind": "string"
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "string",
|
|
3
|
+
"creationTimestamp": "string",
|
|
4
|
+
"name": "string",
|
|
5
|
+
"zone": "string",
|
|
6
|
+
"clientOperationId": "string",
|
|
7
|
+
"operationType": "string",
|
|
8
|
+
"targetLink": "string",
|
|
9
|
+
"targetId": "string",
|
|
10
|
+
"status": "string",
|
|
11
|
+
"statusMessage": "string",
|
|
12
|
+
"user": "string",
|
|
13
|
+
"progress": 1,
|
|
14
|
+
"insertTime": "string",
|
|
15
|
+
"startTime": "string",
|
|
16
|
+
"endTime": "string",
|
|
17
|
+
"error": {
|
|
18
|
+
"errors": [
|
|
19
|
+
{
|
|
20
|
+
"code": "string",
|
|
21
|
+
"location": "string",
|
|
22
|
+
"message": "string"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"warnings": [
|
|
27
|
+
{
|
|
28
|
+
"code": "string",
|
|
29
|
+
"message": "string",
|
|
30
|
+
"data": [
|
|
31
|
+
{
|
|
32
|
+
"key": "string",
|
|
33
|
+
"value": "string"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"httpErrorStatusCode": 1,
|
|
39
|
+
"httpErrorMessage": "string",
|
|
40
|
+
"selfLink": "string",
|
|
41
|
+
"region": "string",
|
|
42
|
+
"description": "string",
|
|
43
|
+
"operationGroupId": "string",
|
|
44
|
+
"kind": "string"
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bindings": [
|
|
3
|
+
{
|
|
4
|
+
"role": "roles/resourcemanager.organizationAdmin",
|
|
5
|
+
"members": [
|
|
6
|
+
"user:mike@example.com",
|
|
7
|
+
"group:admins@example.com",
|
|
8
|
+
"domain:google.com",
|
|
9
|
+
"serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"role": "roles/resourcemanager.organizationViewer",
|
|
14
|
+
"members": [
|
|
15
|
+
"user:eve@example.com"
|
|
16
|
+
],
|
|
17
|
+
"condition": {
|
|
18
|
+
"title": "expirable access",
|
|
19
|
+
"description": "Does not grant access after Sep 2020",
|
|
20
|
+
"expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"etag": "BwWWja0YfJA=",
|
|
25
|
+
"version": 3
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "string",
|
|
3
|
+
"priority": 1,
|
|
4
|
+
"match": {
|
|
5
|
+
"srcIpRanges": [
|
|
6
|
+
"string"
|
|
7
|
+
],
|
|
8
|
+
"destIpRanges": [
|
|
9
|
+
"string"
|
|
10
|
+
],
|
|
11
|
+
"layer4Configs": [
|
|
12
|
+
{
|
|
13
|
+
"ipProtocol": "string",
|
|
14
|
+
"ports": [
|
|
15
|
+
"string"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"action": "string",
|
|
21
|
+
"direction": "string",
|
|
22
|
+
"targetResources": [
|
|
23
|
+
"string"
|
|
24
|
+
],
|
|
25
|
+
"enableLogging": true,
|
|
26
|
+
"ruleTupleCount": 1,
|
|
27
|
+
"targetServiceAccounts": [
|
|
28
|
+
"string"
|
|
29
|
+
],
|
|
30
|
+
"disabled": true,
|
|
31
|
+
"kind": "string"
|
|
32
|
+
}
|