@maxim_mazurok/gapi.client.accesscontextmanager-v1 0.0.20220806
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/index.d.ts +1927 -0
- package/package.json +20 -0
- package/readme.md +128 -0
- package/tests.ts +970 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.accesscontextmanager-v1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220806
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://accesscontextmanager.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.accesscontextmanager */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
+
];
|
|
21
|
+
const immediate = false;
|
|
22
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
+
if (authResult && !authResult.error) {
|
|
24
|
+
/** handle successful authorization */
|
|
25
|
+
run();
|
|
26
|
+
} else {
|
|
27
|
+
/** handle authorization error */
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
/**
|
|
33
|
+
* Creates an access policy. This method fails if the organization already has an access policy. The long-running operation has a successful status after the access policy propagates to
|
|
34
|
+
* long-lasting storage. Syntactic and basic semantic errors are returned in `metadata` as a BadRequest proto.
|
|
35
|
+
*/
|
|
36
|
+
await gapi.client.accesscontextmanager.accessPolicies.create({
|
|
37
|
+
}, {
|
|
38
|
+
etag: "Test string",
|
|
39
|
+
name: "Test string",
|
|
40
|
+
parent: "Test string",
|
|
41
|
+
scopes: [
|
|
42
|
+
"Test string"
|
|
43
|
+
],
|
|
44
|
+
title: "Test string",
|
|
45
|
+
});
|
|
46
|
+
/** Deletes an access policy based on the resource name. The long-running operation has a successful status after the access policy is removed from long-lasting storage. */
|
|
47
|
+
await gapi.client.accesscontextmanager.accessPolicies.delete({
|
|
48
|
+
name: "Test string",
|
|
49
|
+
});
|
|
50
|
+
/** Returns an access policy based on the name. */
|
|
51
|
+
await gapi.client.accesscontextmanager.accessPolicies.get({
|
|
52
|
+
name: "Test string",
|
|
53
|
+
});
|
|
54
|
+
/** Gets the IAM policy for the specified Access Context Manager access policy. */
|
|
55
|
+
await gapi.client.accesscontextmanager.accessPolicies.getIamPolicy({
|
|
56
|
+
resource: "Test string",
|
|
57
|
+
}, {
|
|
58
|
+
options: {
|
|
59
|
+
requestedPolicyVersion: 42,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
/** Lists all access policies in an organization. */
|
|
63
|
+
await gapi.client.accesscontextmanager.accessPolicies.list({
|
|
64
|
+
pageSize: 42,
|
|
65
|
+
pageToken: "Test string",
|
|
66
|
+
parent: "Test string",
|
|
67
|
+
});
|
|
68
|
+
/** Updates an access policy. The long-running operation from this RPC has a successful status after the changes to the access policy propagate to long-lasting storage. */
|
|
69
|
+
await gapi.client.accesscontextmanager.accessPolicies.patch({
|
|
70
|
+
name: "Test string",
|
|
71
|
+
updateMask: "Test string",
|
|
72
|
+
}, {
|
|
73
|
+
etag: "Test string",
|
|
74
|
+
name: "Test string",
|
|
75
|
+
parent: "Test string",
|
|
76
|
+
scopes: [
|
|
77
|
+
"Test string"
|
|
78
|
+
],
|
|
79
|
+
title: "Test string",
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* Sets the IAM policy for the specified Access Context Manager access policy. This method replaces the existing IAM policy on the access policy. The IAM policy controls the set of users
|
|
83
|
+
* who can perform specific operations on the Access Context Manager access policy.
|
|
84
|
+
*/
|
|
85
|
+
await gapi.client.accesscontextmanager.accessPolicies.setIamPolicy({
|
|
86
|
+
resource: "Test string",
|
|
87
|
+
}, {
|
|
88
|
+
policy: {
|
|
89
|
+
auditConfigs: [
|
|
90
|
+
{
|
|
91
|
+
auditLogConfigs: [
|
|
92
|
+
{
|
|
93
|
+
exemptedMembers: [
|
|
94
|
+
"Test string"
|
|
95
|
+
],
|
|
96
|
+
logType: "Test string",
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
service: "Test string",
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
bindings: [
|
|
103
|
+
{
|
|
104
|
+
condition: {
|
|
105
|
+
description: "Test string",
|
|
106
|
+
expression: "Test string",
|
|
107
|
+
location: "Test string",
|
|
108
|
+
title: "Test string",
|
|
109
|
+
},
|
|
110
|
+
members: [
|
|
111
|
+
"Test string"
|
|
112
|
+
],
|
|
113
|
+
role: "Test string",
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
etag: "Test string",
|
|
117
|
+
version: 42,
|
|
118
|
+
},
|
|
119
|
+
updateMask: "Test string",
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does
|
|
123
|
+
* not support other resources.
|
|
124
|
+
*/
|
|
125
|
+
await gapi.client.accesscontextmanager.accessPolicies.testIamPermissions({
|
|
126
|
+
resource: "Test string",
|
|
127
|
+
}, {
|
|
128
|
+
permissions: [
|
|
129
|
+
"Test string"
|
|
130
|
+
],
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* Creates an access level. The long-running operation from this RPC has a successful status after the access level propagates to long-lasting storage. If access levels contain errors, an
|
|
134
|
+
* error response is returned for the first error encountered.
|
|
135
|
+
*/
|
|
136
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.create({
|
|
137
|
+
parent: "Test string",
|
|
138
|
+
}, {
|
|
139
|
+
basic: {
|
|
140
|
+
combiningFunction: "Test string",
|
|
141
|
+
conditions: [
|
|
142
|
+
{
|
|
143
|
+
devicePolicy: {
|
|
144
|
+
allowedDeviceManagementLevels: [
|
|
145
|
+
"Test string"
|
|
146
|
+
],
|
|
147
|
+
allowedEncryptionStatuses: [
|
|
148
|
+
"Test string"
|
|
149
|
+
],
|
|
150
|
+
osConstraints: [
|
|
151
|
+
{
|
|
152
|
+
minimumVersion: "Test string",
|
|
153
|
+
osType: "Test string",
|
|
154
|
+
requireVerifiedChromeOs: true,
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
requireAdminApproval: true,
|
|
158
|
+
requireCorpOwned: true,
|
|
159
|
+
requireScreenlock: true,
|
|
160
|
+
},
|
|
161
|
+
ipSubnetworks: [
|
|
162
|
+
"Test string"
|
|
163
|
+
],
|
|
164
|
+
members: [
|
|
165
|
+
"Test string"
|
|
166
|
+
],
|
|
167
|
+
negate: true,
|
|
168
|
+
regions: [
|
|
169
|
+
"Test string"
|
|
170
|
+
],
|
|
171
|
+
requiredAccessLevels: [
|
|
172
|
+
"Test string"
|
|
173
|
+
],
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
custom: {
|
|
178
|
+
expr: {
|
|
179
|
+
description: "Test string",
|
|
180
|
+
expression: "Test string",
|
|
181
|
+
location: "Test string",
|
|
182
|
+
title: "Test string",
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
description: "Test string",
|
|
186
|
+
name: "Test string",
|
|
187
|
+
title: "Test string",
|
|
188
|
+
});
|
|
189
|
+
/** Deletes an access level based on the resource name. The long-running operation from this RPC has a successful status after the access level has been removed from long-lasting storage. */
|
|
190
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.delete({
|
|
191
|
+
name: "Test string",
|
|
192
|
+
});
|
|
193
|
+
/** Gets an access level based on the resource name. */
|
|
194
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.get({
|
|
195
|
+
accessLevelFormat: "Test string",
|
|
196
|
+
name: "Test string",
|
|
197
|
+
});
|
|
198
|
+
/** Lists all access levels for an access policy. */
|
|
199
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.list({
|
|
200
|
+
accessLevelFormat: "Test string",
|
|
201
|
+
pageSize: 42,
|
|
202
|
+
pageToken: "Test string",
|
|
203
|
+
parent: "Test string",
|
|
204
|
+
});
|
|
205
|
+
/**
|
|
206
|
+
* Updates an access level. The long-running operation from this RPC has a successful status after the changes to the access level propagate to long-lasting storage. If access levels
|
|
207
|
+
* contain errors, an error response is returned for the first error encountered.
|
|
208
|
+
*/
|
|
209
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.patch({
|
|
210
|
+
name: "Test string",
|
|
211
|
+
updateMask: "Test string",
|
|
212
|
+
}, {
|
|
213
|
+
basic: {
|
|
214
|
+
combiningFunction: "Test string",
|
|
215
|
+
conditions: [
|
|
216
|
+
{
|
|
217
|
+
devicePolicy: {
|
|
218
|
+
allowedDeviceManagementLevels: [
|
|
219
|
+
"Test string"
|
|
220
|
+
],
|
|
221
|
+
allowedEncryptionStatuses: [
|
|
222
|
+
"Test string"
|
|
223
|
+
],
|
|
224
|
+
osConstraints: [
|
|
225
|
+
{
|
|
226
|
+
minimumVersion: "Test string",
|
|
227
|
+
osType: "Test string",
|
|
228
|
+
requireVerifiedChromeOs: true,
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
requireAdminApproval: true,
|
|
232
|
+
requireCorpOwned: true,
|
|
233
|
+
requireScreenlock: true,
|
|
234
|
+
},
|
|
235
|
+
ipSubnetworks: [
|
|
236
|
+
"Test string"
|
|
237
|
+
],
|
|
238
|
+
members: [
|
|
239
|
+
"Test string"
|
|
240
|
+
],
|
|
241
|
+
negate: true,
|
|
242
|
+
regions: [
|
|
243
|
+
"Test string"
|
|
244
|
+
],
|
|
245
|
+
requiredAccessLevels: [
|
|
246
|
+
"Test string"
|
|
247
|
+
],
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
custom: {
|
|
252
|
+
expr: {
|
|
253
|
+
description: "Test string",
|
|
254
|
+
expression: "Test string",
|
|
255
|
+
location: "Test string",
|
|
256
|
+
title: "Test string",
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
description: "Test string",
|
|
260
|
+
name: "Test string",
|
|
261
|
+
title: "Test string",
|
|
262
|
+
});
|
|
263
|
+
/**
|
|
264
|
+
* Replaces all existing access levels in an access policy with the access levels provided. This is done atomically. The long-running operation from this RPC has a successful status after
|
|
265
|
+
* all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is
|
|
266
|
+
* cancelled, and existing access levels are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing access levels contained in existing service
|
|
267
|
+
* perimeters result in an error.
|
|
268
|
+
*/
|
|
269
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.replaceAll({
|
|
270
|
+
parent: "Test string",
|
|
271
|
+
}, {
|
|
272
|
+
accessLevels: [
|
|
273
|
+
{
|
|
274
|
+
basic: {
|
|
275
|
+
combiningFunction: "Test string",
|
|
276
|
+
conditions: [
|
|
277
|
+
{
|
|
278
|
+
devicePolicy: {
|
|
279
|
+
allowedDeviceManagementLevels: [
|
|
280
|
+
"Test string"
|
|
281
|
+
],
|
|
282
|
+
allowedEncryptionStatuses: [
|
|
283
|
+
"Test string"
|
|
284
|
+
],
|
|
285
|
+
osConstraints: [
|
|
286
|
+
{
|
|
287
|
+
minimumVersion: "Test string",
|
|
288
|
+
osType: "Test string",
|
|
289
|
+
requireVerifiedChromeOs: true,
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
requireAdminApproval: true,
|
|
293
|
+
requireCorpOwned: true,
|
|
294
|
+
requireScreenlock: true,
|
|
295
|
+
},
|
|
296
|
+
ipSubnetworks: [
|
|
297
|
+
"Test string"
|
|
298
|
+
],
|
|
299
|
+
members: [
|
|
300
|
+
"Test string"
|
|
301
|
+
],
|
|
302
|
+
negate: true,
|
|
303
|
+
regions: [
|
|
304
|
+
"Test string"
|
|
305
|
+
],
|
|
306
|
+
requiredAccessLevels: [
|
|
307
|
+
"Test string"
|
|
308
|
+
],
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
custom: {
|
|
313
|
+
expr: {
|
|
314
|
+
description: "Test string",
|
|
315
|
+
expression: "Test string",
|
|
316
|
+
location: "Test string",
|
|
317
|
+
title: "Test string",
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
description: "Test string",
|
|
321
|
+
name: "Test string",
|
|
322
|
+
title: "Test string",
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
etag: "Test string",
|
|
326
|
+
});
|
|
327
|
+
/**
|
|
328
|
+
* Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does
|
|
329
|
+
* not support other resources.
|
|
330
|
+
*/
|
|
331
|
+
await gapi.client.accesscontextmanager.accessPolicies.accessLevels.testIamPermissions({
|
|
332
|
+
resource: "Test string",
|
|
333
|
+
}, {
|
|
334
|
+
permissions: [
|
|
335
|
+
"Test string"
|
|
336
|
+
],
|
|
337
|
+
});
|
|
338
|
+
/**
|
|
339
|
+
* Commits the dry-run specification for all the service perimeters in an access policy. A commit operation on a service perimeter involves copying its `spec` field to the `status` field
|
|
340
|
+
* of the service perimeter. Only service perimeters with `use_explicit_dry_run_spec` field set to true are affected by a commit operation. The long-running operation from this RPC has a
|
|
341
|
+
* successful status after the dry-run specifications for all the service perimeters have been committed. If a commit fails, it causes the long-running operation to return an error
|
|
342
|
+
* response and the entire commit operation is cancelled. When successful, the Operation.response field contains CommitServicePerimetersResponse. The `dry_run` and the `spec` fields are
|
|
343
|
+
* cleared after a successful commit operation.
|
|
344
|
+
*/
|
|
345
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.commit({
|
|
346
|
+
parent: "Test string",
|
|
347
|
+
}, {
|
|
348
|
+
etag: "Test string",
|
|
349
|
+
});
|
|
350
|
+
/**
|
|
351
|
+
* Creates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter
|
|
352
|
+
* contains errors, an error response is returned for the first error encountered.
|
|
353
|
+
*/
|
|
354
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.create({
|
|
355
|
+
parent: "Test string",
|
|
356
|
+
}, {
|
|
357
|
+
description: "Test string",
|
|
358
|
+
name: "Test string",
|
|
359
|
+
perimeterType: "Test string",
|
|
360
|
+
spec: {
|
|
361
|
+
accessLevels: [
|
|
362
|
+
"Test string"
|
|
363
|
+
],
|
|
364
|
+
egressPolicies: [
|
|
365
|
+
{
|
|
366
|
+
egressFrom: {
|
|
367
|
+
identities: [
|
|
368
|
+
"Test string"
|
|
369
|
+
],
|
|
370
|
+
identityType: "Test string",
|
|
371
|
+
},
|
|
372
|
+
egressTo: {
|
|
373
|
+
externalResources: [
|
|
374
|
+
"Test string"
|
|
375
|
+
],
|
|
376
|
+
operations: [
|
|
377
|
+
{
|
|
378
|
+
methodSelectors: [
|
|
379
|
+
{
|
|
380
|
+
method: "Test string",
|
|
381
|
+
permission: "Test string",
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
serviceName: "Test string",
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
resources: [
|
|
388
|
+
"Test string"
|
|
389
|
+
],
|
|
390
|
+
},
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
ingressPolicies: [
|
|
394
|
+
{
|
|
395
|
+
ingressFrom: {
|
|
396
|
+
identities: [
|
|
397
|
+
"Test string"
|
|
398
|
+
],
|
|
399
|
+
identityType: "Test string",
|
|
400
|
+
sources: [
|
|
401
|
+
{
|
|
402
|
+
accessLevel: "Test string",
|
|
403
|
+
resource: "Test string",
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
},
|
|
407
|
+
ingressTo: {
|
|
408
|
+
operations: [
|
|
409
|
+
{
|
|
410
|
+
methodSelectors: [
|
|
411
|
+
{
|
|
412
|
+
method: "Test string",
|
|
413
|
+
permission: "Test string",
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
serviceName: "Test string",
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
resources: [
|
|
420
|
+
"Test string"
|
|
421
|
+
],
|
|
422
|
+
},
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
resources: [
|
|
426
|
+
"Test string"
|
|
427
|
+
],
|
|
428
|
+
restrictedServices: [
|
|
429
|
+
"Test string"
|
|
430
|
+
],
|
|
431
|
+
vpcAccessibleServices: {
|
|
432
|
+
allowedServices: [
|
|
433
|
+
"Test string"
|
|
434
|
+
],
|
|
435
|
+
enableRestriction: true,
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
status: {
|
|
439
|
+
accessLevels: [
|
|
440
|
+
"Test string"
|
|
441
|
+
],
|
|
442
|
+
egressPolicies: [
|
|
443
|
+
{
|
|
444
|
+
egressFrom: {
|
|
445
|
+
identities: [
|
|
446
|
+
"Test string"
|
|
447
|
+
],
|
|
448
|
+
identityType: "Test string",
|
|
449
|
+
},
|
|
450
|
+
egressTo: {
|
|
451
|
+
externalResources: [
|
|
452
|
+
"Test string"
|
|
453
|
+
],
|
|
454
|
+
operations: [
|
|
455
|
+
{
|
|
456
|
+
methodSelectors: [
|
|
457
|
+
{
|
|
458
|
+
method: "Test string",
|
|
459
|
+
permission: "Test string",
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
serviceName: "Test string",
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
resources: [
|
|
466
|
+
"Test string"
|
|
467
|
+
],
|
|
468
|
+
},
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
ingressPolicies: [
|
|
472
|
+
{
|
|
473
|
+
ingressFrom: {
|
|
474
|
+
identities: [
|
|
475
|
+
"Test string"
|
|
476
|
+
],
|
|
477
|
+
identityType: "Test string",
|
|
478
|
+
sources: [
|
|
479
|
+
{
|
|
480
|
+
accessLevel: "Test string",
|
|
481
|
+
resource: "Test string",
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
},
|
|
485
|
+
ingressTo: {
|
|
486
|
+
operations: [
|
|
487
|
+
{
|
|
488
|
+
methodSelectors: [
|
|
489
|
+
{
|
|
490
|
+
method: "Test string",
|
|
491
|
+
permission: "Test string",
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
serviceName: "Test string",
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
resources: [
|
|
498
|
+
"Test string"
|
|
499
|
+
],
|
|
500
|
+
},
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
resources: [
|
|
504
|
+
"Test string"
|
|
505
|
+
],
|
|
506
|
+
restrictedServices: [
|
|
507
|
+
"Test string"
|
|
508
|
+
],
|
|
509
|
+
vpcAccessibleServices: {
|
|
510
|
+
allowedServices: [
|
|
511
|
+
"Test string"
|
|
512
|
+
],
|
|
513
|
+
enableRestriction: true,
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
title: "Test string",
|
|
517
|
+
useExplicitDryRunSpec: true,
|
|
518
|
+
});
|
|
519
|
+
/**
|
|
520
|
+
* Deletes a service perimeter based on the resource name. The long-running operation from this RPC has a successful status after the service perimeter is removed from long-lasting
|
|
521
|
+
* storage.
|
|
522
|
+
*/
|
|
523
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.delete({
|
|
524
|
+
name: "Test string",
|
|
525
|
+
});
|
|
526
|
+
/** Gets a service perimeter based on the resource name. */
|
|
527
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.get({
|
|
528
|
+
name: "Test string",
|
|
529
|
+
});
|
|
530
|
+
/** Lists all service perimeters for an access policy. */
|
|
531
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.list({
|
|
532
|
+
pageSize: 42,
|
|
533
|
+
pageToken: "Test string",
|
|
534
|
+
parent: "Test string",
|
|
535
|
+
});
|
|
536
|
+
/**
|
|
537
|
+
* Updates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter
|
|
538
|
+
* contains errors, an error response is returned for the first error encountered.
|
|
539
|
+
*/
|
|
540
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.patch({
|
|
541
|
+
name: "Test string",
|
|
542
|
+
updateMask: "Test string",
|
|
543
|
+
}, {
|
|
544
|
+
description: "Test string",
|
|
545
|
+
name: "Test string",
|
|
546
|
+
perimeterType: "Test string",
|
|
547
|
+
spec: {
|
|
548
|
+
accessLevels: [
|
|
549
|
+
"Test string"
|
|
550
|
+
],
|
|
551
|
+
egressPolicies: [
|
|
552
|
+
{
|
|
553
|
+
egressFrom: {
|
|
554
|
+
identities: [
|
|
555
|
+
"Test string"
|
|
556
|
+
],
|
|
557
|
+
identityType: "Test string",
|
|
558
|
+
},
|
|
559
|
+
egressTo: {
|
|
560
|
+
externalResources: [
|
|
561
|
+
"Test string"
|
|
562
|
+
],
|
|
563
|
+
operations: [
|
|
564
|
+
{
|
|
565
|
+
methodSelectors: [
|
|
566
|
+
{
|
|
567
|
+
method: "Test string",
|
|
568
|
+
permission: "Test string",
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
serviceName: "Test string",
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
resources: [
|
|
575
|
+
"Test string"
|
|
576
|
+
],
|
|
577
|
+
},
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
ingressPolicies: [
|
|
581
|
+
{
|
|
582
|
+
ingressFrom: {
|
|
583
|
+
identities: [
|
|
584
|
+
"Test string"
|
|
585
|
+
],
|
|
586
|
+
identityType: "Test string",
|
|
587
|
+
sources: [
|
|
588
|
+
{
|
|
589
|
+
accessLevel: "Test string",
|
|
590
|
+
resource: "Test string",
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
},
|
|
594
|
+
ingressTo: {
|
|
595
|
+
operations: [
|
|
596
|
+
{
|
|
597
|
+
methodSelectors: [
|
|
598
|
+
{
|
|
599
|
+
method: "Test string",
|
|
600
|
+
permission: "Test string",
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
serviceName: "Test string",
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
resources: [
|
|
607
|
+
"Test string"
|
|
608
|
+
],
|
|
609
|
+
},
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
resources: [
|
|
613
|
+
"Test string"
|
|
614
|
+
],
|
|
615
|
+
restrictedServices: [
|
|
616
|
+
"Test string"
|
|
617
|
+
],
|
|
618
|
+
vpcAccessibleServices: {
|
|
619
|
+
allowedServices: [
|
|
620
|
+
"Test string"
|
|
621
|
+
],
|
|
622
|
+
enableRestriction: true,
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
status: {
|
|
626
|
+
accessLevels: [
|
|
627
|
+
"Test string"
|
|
628
|
+
],
|
|
629
|
+
egressPolicies: [
|
|
630
|
+
{
|
|
631
|
+
egressFrom: {
|
|
632
|
+
identities: [
|
|
633
|
+
"Test string"
|
|
634
|
+
],
|
|
635
|
+
identityType: "Test string",
|
|
636
|
+
},
|
|
637
|
+
egressTo: {
|
|
638
|
+
externalResources: [
|
|
639
|
+
"Test string"
|
|
640
|
+
],
|
|
641
|
+
operations: [
|
|
642
|
+
{
|
|
643
|
+
methodSelectors: [
|
|
644
|
+
{
|
|
645
|
+
method: "Test string",
|
|
646
|
+
permission: "Test string",
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
serviceName: "Test string",
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
resources: [
|
|
653
|
+
"Test string"
|
|
654
|
+
],
|
|
655
|
+
},
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
ingressPolicies: [
|
|
659
|
+
{
|
|
660
|
+
ingressFrom: {
|
|
661
|
+
identities: [
|
|
662
|
+
"Test string"
|
|
663
|
+
],
|
|
664
|
+
identityType: "Test string",
|
|
665
|
+
sources: [
|
|
666
|
+
{
|
|
667
|
+
accessLevel: "Test string",
|
|
668
|
+
resource: "Test string",
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
},
|
|
672
|
+
ingressTo: {
|
|
673
|
+
operations: [
|
|
674
|
+
{
|
|
675
|
+
methodSelectors: [
|
|
676
|
+
{
|
|
677
|
+
method: "Test string",
|
|
678
|
+
permission: "Test string",
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
serviceName: "Test string",
|
|
682
|
+
}
|
|
683
|
+
],
|
|
684
|
+
resources: [
|
|
685
|
+
"Test string"
|
|
686
|
+
],
|
|
687
|
+
},
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
resources: [
|
|
691
|
+
"Test string"
|
|
692
|
+
],
|
|
693
|
+
restrictedServices: [
|
|
694
|
+
"Test string"
|
|
695
|
+
],
|
|
696
|
+
vpcAccessibleServices: {
|
|
697
|
+
allowedServices: [
|
|
698
|
+
"Test string"
|
|
699
|
+
],
|
|
700
|
+
enableRestriction: true,
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
title: "Test string",
|
|
704
|
+
useExplicitDryRunSpec: true,
|
|
705
|
+
});
|
|
706
|
+
/**
|
|
707
|
+
* Replace all existing service perimeters in an access policy with the service perimeters provided. This is done atomically. The long-running operation from this RPC has a successful
|
|
708
|
+
* status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement
|
|
709
|
+
* are cancelled and existing service perimeters are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.
|
|
710
|
+
*/
|
|
711
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.replaceAll({
|
|
712
|
+
parent: "Test string",
|
|
713
|
+
}, {
|
|
714
|
+
etag: "Test string",
|
|
715
|
+
servicePerimeters: [
|
|
716
|
+
{
|
|
717
|
+
description: "Test string",
|
|
718
|
+
name: "Test string",
|
|
719
|
+
perimeterType: "Test string",
|
|
720
|
+
spec: {
|
|
721
|
+
accessLevels: [
|
|
722
|
+
"Test string"
|
|
723
|
+
],
|
|
724
|
+
egressPolicies: [
|
|
725
|
+
{
|
|
726
|
+
egressFrom: {
|
|
727
|
+
identities: [
|
|
728
|
+
"Test string"
|
|
729
|
+
],
|
|
730
|
+
identityType: "Test string",
|
|
731
|
+
},
|
|
732
|
+
egressTo: {
|
|
733
|
+
externalResources: [
|
|
734
|
+
"Test string"
|
|
735
|
+
],
|
|
736
|
+
operations: [
|
|
737
|
+
{
|
|
738
|
+
methodSelectors: [
|
|
739
|
+
{
|
|
740
|
+
method: "Test string",
|
|
741
|
+
permission: "Test string",
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
serviceName: "Test string",
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
resources: [
|
|
748
|
+
"Test string"
|
|
749
|
+
],
|
|
750
|
+
},
|
|
751
|
+
}
|
|
752
|
+
],
|
|
753
|
+
ingressPolicies: [
|
|
754
|
+
{
|
|
755
|
+
ingressFrom: {
|
|
756
|
+
identities: [
|
|
757
|
+
"Test string"
|
|
758
|
+
],
|
|
759
|
+
identityType: "Test string",
|
|
760
|
+
sources: [
|
|
761
|
+
{
|
|
762
|
+
accessLevel: "Test string",
|
|
763
|
+
resource: "Test string",
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
},
|
|
767
|
+
ingressTo: {
|
|
768
|
+
operations: [
|
|
769
|
+
{
|
|
770
|
+
methodSelectors: [
|
|
771
|
+
{
|
|
772
|
+
method: "Test string",
|
|
773
|
+
permission: "Test string",
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
serviceName: "Test string",
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
resources: [
|
|
780
|
+
"Test string"
|
|
781
|
+
],
|
|
782
|
+
},
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
resources: [
|
|
786
|
+
"Test string"
|
|
787
|
+
],
|
|
788
|
+
restrictedServices: [
|
|
789
|
+
"Test string"
|
|
790
|
+
],
|
|
791
|
+
vpcAccessibleServices: {
|
|
792
|
+
allowedServices: [
|
|
793
|
+
"Test string"
|
|
794
|
+
],
|
|
795
|
+
enableRestriction: true,
|
|
796
|
+
},
|
|
797
|
+
},
|
|
798
|
+
status: {
|
|
799
|
+
accessLevels: [
|
|
800
|
+
"Test string"
|
|
801
|
+
],
|
|
802
|
+
egressPolicies: [
|
|
803
|
+
{
|
|
804
|
+
egressFrom: {
|
|
805
|
+
identities: [
|
|
806
|
+
"Test string"
|
|
807
|
+
],
|
|
808
|
+
identityType: "Test string",
|
|
809
|
+
},
|
|
810
|
+
egressTo: {
|
|
811
|
+
externalResources: [
|
|
812
|
+
"Test string"
|
|
813
|
+
],
|
|
814
|
+
operations: [
|
|
815
|
+
{
|
|
816
|
+
methodSelectors: [
|
|
817
|
+
{
|
|
818
|
+
method: "Test string",
|
|
819
|
+
permission: "Test string",
|
|
820
|
+
}
|
|
821
|
+
],
|
|
822
|
+
serviceName: "Test string",
|
|
823
|
+
}
|
|
824
|
+
],
|
|
825
|
+
resources: [
|
|
826
|
+
"Test string"
|
|
827
|
+
],
|
|
828
|
+
},
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
ingressPolicies: [
|
|
832
|
+
{
|
|
833
|
+
ingressFrom: {
|
|
834
|
+
identities: [
|
|
835
|
+
"Test string"
|
|
836
|
+
],
|
|
837
|
+
identityType: "Test string",
|
|
838
|
+
sources: [
|
|
839
|
+
{
|
|
840
|
+
accessLevel: "Test string",
|
|
841
|
+
resource: "Test string",
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
},
|
|
845
|
+
ingressTo: {
|
|
846
|
+
operations: [
|
|
847
|
+
{
|
|
848
|
+
methodSelectors: [
|
|
849
|
+
{
|
|
850
|
+
method: "Test string",
|
|
851
|
+
permission: "Test string",
|
|
852
|
+
}
|
|
853
|
+
],
|
|
854
|
+
serviceName: "Test string",
|
|
855
|
+
}
|
|
856
|
+
],
|
|
857
|
+
resources: [
|
|
858
|
+
"Test string"
|
|
859
|
+
],
|
|
860
|
+
},
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
resources: [
|
|
864
|
+
"Test string"
|
|
865
|
+
],
|
|
866
|
+
restrictedServices: [
|
|
867
|
+
"Test string"
|
|
868
|
+
],
|
|
869
|
+
vpcAccessibleServices: {
|
|
870
|
+
allowedServices: [
|
|
871
|
+
"Test string"
|
|
872
|
+
],
|
|
873
|
+
enableRestriction: true,
|
|
874
|
+
},
|
|
875
|
+
},
|
|
876
|
+
title: "Test string",
|
|
877
|
+
useExplicitDryRunSpec: true,
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
});
|
|
881
|
+
/**
|
|
882
|
+
* Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does
|
|
883
|
+
* not support other resources.
|
|
884
|
+
*/
|
|
885
|
+
await gapi.client.accesscontextmanager.accessPolicies.servicePerimeters.testIamPermissions({
|
|
886
|
+
resource: "Test string",
|
|
887
|
+
}, {
|
|
888
|
+
permissions: [
|
|
889
|
+
"Test string"
|
|
890
|
+
],
|
|
891
|
+
});
|
|
892
|
+
/**
|
|
893
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
894
|
+
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
895
|
+
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
896
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
897
|
+
*/
|
|
898
|
+
await gapi.client.accesscontextmanager.operations.cancel({
|
|
899
|
+
name: "Test string",
|
|
900
|
+
}, {
|
|
901
|
+
});
|
|
902
|
+
/**
|
|
903
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
|
|
904
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
905
|
+
*/
|
|
906
|
+
await gapi.client.accesscontextmanager.operations.delete({
|
|
907
|
+
name: "Test string",
|
|
908
|
+
});
|
|
909
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
910
|
+
await gapi.client.accesscontextmanager.operations.get({
|
|
911
|
+
name: "Test string",
|
|
912
|
+
});
|
|
913
|
+
/**
|
|
914
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
|
|
915
|
+
* override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
916
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
917
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
918
|
+
*/
|
|
919
|
+
await gapi.client.accesscontextmanager.operations.list({
|
|
920
|
+
filter: "Test string",
|
|
921
|
+
name: "Test string",
|
|
922
|
+
pageSize: 42,
|
|
923
|
+
pageToken: "Test string",
|
|
924
|
+
});
|
|
925
|
+
/**
|
|
926
|
+
* Creates a GcpUserAccessBinding. If the client specifies a name, the server ignores it. Fails if a resource already exists with the same group_key. Completion of this long-running
|
|
927
|
+
* operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.
|
|
928
|
+
*/
|
|
929
|
+
await gapi.client.accesscontextmanager.organizations.gcpUserAccessBindings.create({
|
|
930
|
+
parent: "Test string",
|
|
931
|
+
}, {
|
|
932
|
+
accessLevels: [
|
|
933
|
+
"Test string"
|
|
934
|
+
],
|
|
935
|
+
groupKey: "Test string",
|
|
936
|
+
name: "Test string",
|
|
937
|
+
});
|
|
938
|
+
/**
|
|
939
|
+
* Deletes a GcpUserAccessBinding. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more
|
|
940
|
+
* time.
|
|
941
|
+
*/
|
|
942
|
+
await gapi.client.accesscontextmanager.organizations.gcpUserAccessBindings.delete({
|
|
943
|
+
name: "Test string",
|
|
944
|
+
});
|
|
945
|
+
/** Gets the GcpUserAccessBinding with the given name. */
|
|
946
|
+
await gapi.client.accesscontextmanager.organizations.gcpUserAccessBindings.get({
|
|
947
|
+
name: "Test string",
|
|
948
|
+
});
|
|
949
|
+
/** Lists all GcpUserAccessBindings for a Google Cloud organization. */
|
|
950
|
+
await gapi.client.accesscontextmanager.organizations.gcpUserAccessBindings.list({
|
|
951
|
+
pageSize: 42,
|
|
952
|
+
pageToken: "Test string",
|
|
953
|
+
parent: "Test string",
|
|
954
|
+
});
|
|
955
|
+
/**
|
|
956
|
+
* Updates a GcpUserAccessBinding. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more
|
|
957
|
+
* time.
|
|
958
|
+
*/
|
|
959
|
+
await gapi.client.accesscontextmanager.organizations.gcpUserAccessBindings.patch({
|
|
960
|
+
name: "Test string",
|
|
961
|
+
updateMask: "Test string",
|
|
962
|
+
}, {
|
|
963
|
+
accessLevels: [
|
|
964
|
+
"Test string"
|
|
965
|
+
],
|
|
966
|
+
groupKey: "Test string",
|
|
967
|
+
name: "Test string",
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
});
|