@maxim_mazurok/gapi.client.vmwareengine-v1 0.0.20231025 → 0.0.20240102

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/tests.ts DELETED
@@ -1,1107 +0,0 @@
1
- /* This is stub file for gapi.client.vmwareengine-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: 20231025
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://vmwareengine.googleapis.com/$discovery/rest?version=v1');
12
- /** now we can use gapi.client.vmwareengine */
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
- /** Gets information about a location. */
33
- await gapi.client.vmwareengine.projects.locations.get({
34
- name: "Test string",
35
- });
36
- /** Lists information about the supported locations for this service. */
37
- await gapi.client.vmwareengine.projects.locations.list({
38
- filter: "Test string",
39
- name: "Test string",
40
- pageSize: 42,
41
- pageToken: "Test string",
42
- });
43
- /** Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. */
44
- await gapi.client.vmwareengine.projects.locations.global.getDnsBindPermission({
45
- name: "Test string",
46
- });
47
- /** Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. */
48
- await gapi.client.vmwareengine.projects.locations.global.dnsBindPermission.grant({
49
- name: "Test string",
50
- }, {
51
- principal: {
52
- serviceAccount: "Test string",
53
- user: "Test string",
54
- },
55
- requestId: "Test string",
56
- });
57
- /** Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. */
58
- await gapi.client.vmwareengine.projects.locations.global.dnsBindPermission.revoke({
59
- name: "Test string",
60
- }, {
61
- principal: {
62
- serviceAccount: "Test string",
63
- user: "Test string",
64
- },
65
- requestId: "Test string",
66
- });
67
- /** Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. */
68
- await gapi.client.vmwareengine.projects.locations.global.networkPeerings.create({
69
- networkPeeringId: "Test string",
70
- parent: "Test string",
71
- requestId: "Test string",
72
- }, {
73
- createTime: "Test string",
74
- description: "Test string",
75
- exchangeSubnetRoutes: true,
76
- exportCustomRoutes: true,
77
- exportCustomRoutesWithPublicIp: true,
78
- importCustomRoutes: true,
79
- importCustomRoutesWithPublicIp: true,
80
- name: "Test string",
81
- peerMtu: 42,
82
- peerNetwork: "Test string",
83
- peerNetworkType: "Test string",
84
- state: "Test string",
85
- stateDetails: "Test string",
86
- uid: "Test string",
87
- updateTime: "Test string",
88
- vmwareEngineNetwork: "Test string",
89
- });
90
- /** Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine network, the peer network becomes inaccessible to that VMware Engine network. */
91
- await gapi.client.vmwareengine.projects.locations.global.networkPeerings.delete({
92
- name: "Test string",
93
- requestId: "Test string",
94
- });
95
- /**
96
- * Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of the network peering, such as peered networks, import and export custom route configurations,
97
- * and peering state.
98
- */
99
- await gapi.client.vmwareengine.projects.locations.global.networkPeerings.get({
100
- name: "Test string",
101
- });
102
- /** Lists `NetworkPeering` resources in a given project. */
103
- await gapi.client.vmwareengine.projects.locations.global.networkPeerings.list({
104
- filter: "Test string",
105
- orderBy: "Test string",
106
- pageSize: 42,
107
- pageToken: "Test string",
108
- parent: "Test string",
109
- });
110
- /** Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields specified in `updateMask` are applied. */
111
- await gapi.client.vmwareengine.projects.locations.global.networkPeerings.patch({
112
- name: "Test string",
113
- requestId: "Test string",
114
- updateMask: "Test string",
115
- }, {
116
- createTime: "Test string",
117
- description: "Test string",
118
- exchangeSubnetRoutes: true,
119
- exportCustomRoutes: true,
120
- exportCustomRoutesWithPublicIp: true,
121
- importCustomRoutes: true,
122
- importCustomRoutesWithPublicIp: true,
123
- name: "Test string",
124
- peerMtu: 42,
125
- peerNetwork: "Test string",
126
- peerNetworkType: "Test string",
127
- state: "Test string",
128
- stateDetails: "Test string",
129
- uid: "Test string",
130
- updateTime: "Test string",
131
- vmwareEngineNetwork: "Test string",
132
- });
133
- /** Lists the network peering routes exchanged over a peering connection. */
134
- await gapi.client.vmwareengine.projects.locations.global.networkPeerings.peeringRoutes.list({
135
- filter: "Test string",
136
- pageSize: 42,
137
- pageToken: "Test string",
138
- parent: "Test string",
139
- });
140
- /**
141
- * Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the
142
- * same scope.
143
- */
144
- await gapi.client.vmwareengine.projects.locations.networkPolicies.create({
145
- networkPolicyId: "Test string",
146
- parent: "Test string",
147
- requestId: "Test string",
148
- }, {
149
- createTime: "Test string",
150
- description: "Test string",
151
- edgeServicesCidr: "Test string",
152
- externalIp: {
153
- enabled: true,
154
- state: "Test string",
155
- },
156
- internetAccess: {
157
- enabled: true,
158
- state: "Test string",
159
- },
160
- name: "Test string",
161
- uid: "Test string",
162
- updateTime: "Test string",
163
- vmwareEngineNetwork: "Test string",
164
- vmwareEngineNetworkCanonical: "Test string",
165
- });
166
- /** Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access service. */
167
- await gapi.client.vmwareengine.projects.locations.networkPolicies.delete({
168
- name: "Test string",
169
- requestId: "Test string",
170
- });
171
- /** Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy. */
172
- await gapi.client.vmwareengine.projects.locations.networkPolicies.fetchExternalAddresses({
173
- networkPolicy: "Test string",
174
- pageSize: 42,
175
- pageToken: "Test string",
176
- });
177
- /** Retrieves a `NetworkPolicy` resource by its resource name. */
178
- await gapi.client.vmwareengine.projects.locations.networkPolicies.get({
179
- name: "Test string",
180
- });
181
- /** Lists `NetworkPolicy` resources in a specified project and location. */
182
- await gapi.client.vmwareengine.projects.locations.networkPolicies.list({
183
- filter: "Test string",
184
- orderBy: "Test string",
185
- pageSize: 42,
186
- pageToken: "Test string",
187
- parent: "Test string",
188
- });
189
- /**
190
- * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` are applied.
191
- * When updating a network policy, the external IP network service can only be disabled if there are no external IP addresses present in the scope of the policy. Also, a `NetworkService`
192
- * cannot be updated when `NetworkService.state` is set to `RECONCILING`. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully
193
- * completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
194
- */
195
- await gapi.client.vmwareengine.projects.locations.networkPolicies.patch({
196
- name: "Test string",
197
- requestId: "Test string",
198
- updateMask: "Test string",
199
- }, {
200
- createTime: "Test string",
201
- description: "Test string",
202
- edgeServicesCidr: "Test string",
203
- externalIp: {
204
- enabled: true,
205
- state: "Test string",
206
- },
207
- internetAccess: {
208
- enabled: true,
209
- state: "Test string",
210
- },
211
- name: "Test string",
212
- uid: "Test string",
213
- updateTime: "Test string",
214
- vmwareEngineNetwork: "Test string",
215
- vmwareEngineNetworkCanonical: "Test string",
216
- });
217
- /** Creates a new external access rule in a given network policy. */
218
- await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.create({
219
- externalAccessRuleId: "Test string",
220
- parent: "Test string",
221
- requestId: "Test string",
222
- }, {
223
- action: "Test string",
224
- createTime: "Test string",
225
- description: "Test string",
226
- destinationIpRanges: [
227
- {
228
- externalAddress: "Test string",
229
- ipAddress: "Test string",
230
- ipAddressRange: "Test string",
231
- }
232
- ],
233
- destinationPorts: [
234
- "Test string"
235
- ],
236
- ipProtocol: "Test string",
237
- name: "Test string",
238
- priority: 42,
239
- sourceIpRanges: [
240
- {
241
- externalAddress: "Test string",
242
- ipAddress: "Test string",
243
- ipAddressRange: "Test string",
244
- }
245
- ],
246
- sourcePorts: [
247
- "Test string"
248
- ],
249
- state: "Test string",
250
- uid: "Test string",
251
- updateTime: "Test string",
252
- });
253
- /** Deletes a single external access rule. */
254
- await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.delete({
255
- name: "Test string",
256
- requestId: "Test string",
257
- });
258
- /** Gets details of a single external access rule. */
259
- await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.get({
260
- name: "Test string",
261
- });
262
- /** Lists `ExternalAccessRule` resources in the specified network policy. */
263
- await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.list({
264
- filter: "Test string",
265
- orderBy: "Test string",
266
- pageSize: 42,
267
- pageToken: "Test string",
268
- parent: "Test string",
269
- });
270
- /** Updates the parameters of a single external access rule. Only fields specified in `update_mask` are applied. */
271
- await gapi.client.vmwareengine.projects.locations.networkPolicies.externalAccessRules.patch({
272
- name: "Test string",
273
- requestId: "Test string",
274
- updateMask: "Test string",
275
- }, {
276
- action: "Test string",
277
- createTime: "Test string",
278
- description: "Test string",
279
- destinationIpRanges: [
280
- {
281
- externalAddress: "Test string",
282
- ipAddress: "Test string",
283
- ipAddressRange: "Test string",
284
- }
285
- ],
286
- destinationPorts: [
287
- "Test string"
288
- ],
289
- ipProtocol: "Test string",
290
- name: "Test string",
291
- priority: 42,
292
- sourceIpRanges: [
293
- {
294
- externalAddress: "Test string",
295
- ipAddress: "Test string",
296
- ipAddressRange: "Test string",
297
- }
298
- ],
299
- sourcePorts: [
300
- "Test string"
301
- ],
302
- state: "Test string",
303
- uid: "Test string",
304
- updateTime: "Test string",
305
- });
306
- /** Gets details of a single `NodeType`. */
307
- await gapi.client.vmwareengine.projects.locations.nodeTypes.get({
308
- name: "Test string",
309
- });
310
- /** Lists node types */
311
- await gapi.client.vmwareengine.projects.locations.nodeTypes.list({
312
- filter: "Test string",
313
- pageSize: 42,
314
- pageToken: "Test string",
315
- parent: "Test string",
316
- });
317
- /**
318
- * 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
319
- * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
320
- */
321
- await gapi.client.vmwareengine.projects.locations.operations.delete({
322
- name: "Test string",
323
- });
324
- /** 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. */
325
- await gapi.client.vmwareengine.projects.locations.operations.get({
326
- name: "Test string",
327
- });
328
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
329
- await gapi.client.vmwareengine.projects.locations.operations.list({
330
- filter: "Test string",
331
- name: "Test string",
332
- pageSize: 42,
333
- pageToken: "Test string",
334
- });
335
- /**
336
- * Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional.
337
- * Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud.
338
- */
339
- await gapi.client.vmwareengine.projects.locations.privateClouds.create({
340
- parent: "Test string",
341
- privateCloudId: "Test string",
342
- requestId: "Test string",
343
- validateOnly: true,
344
- }, {
345
- createTime: "Test string",
346
- deleteTime: "Test string",
347
- description: "Test string",
348
- expireTime: "Test string",
349
- hcx: {
350
- fqdn: "Test string",
351
- internalIp: "Test string",
352
- state: "Test string",
353
- version: "Test string",
354
- },
355
- managementCluster: {
356
- clusterId: "Test string",
357
- nodeTypeConfigs: {
358
- A: {
359
- customCoreCount: 42,
360
- nodeCount: 42,
361
- }
362
- },
363
- stretchedClusterConfig: {
364
- preferredLocation: "Test string",
365
- secondaryLocation: "Test string",
366
- },
367
- },
368
- name: "Test string",
369
- networkConfig: {
370
- dnsServerIp: "Test string",
371
- managementCidr: "Test string",
372
- managementIpAddressLayoutVersion: 42,
373
- vmwareEngineNetwork: "Test string",
374
- vmwareEngineNetworkCanonical: "Test string",
375
- },
376
- nsx: {
377
- fqdn: "Test string",
378
- internalIp: "Test string",
379
- state: "Test string",
380
- version: "Test string",
381
- },
382
- state: "Test string",
383
- type: "Test string",
384
- uid: "Test string",
385
- updateTime: "Test string",
386
- vcenter: {
387
- fqdn: "Test string",
388
- internalIp: "Test string",
389
- state: "Test string",
390
- version: "Test string",
391
- },
392
- });
393
- /**
394
- * Schedules a `PrivateCloud` resource for deletion. A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `expireTime` set to the time when
395
- * deletion is final and can no longer be reversed. The delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for deletion (this also applies when
396
- * `delayHours` is set to zero), and the operation is not kept in pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
397
- * the `expireTime` elapses. When `expireTime` is reached, deletion is final and all private cloud resources are irreversibly removed and billing stops. During the final removal process,
398
- * `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can be polled using standard `GET` method for the whole period of deletion and purging. It will not be returned only when it is
399
- * completely purged.
400
- */
401
- await gapi.client.vmwareengine.projects.locations.privateClouds.delete({
402
- delayHours: 42,
403
- force: true,
404
- name: "Test string",
405
- requestId: "Test string",
406
- });
407
- /** Retrieves a `PrivateCloud` resource by its resource name. */
408
- await gapi.client.vmwareengine.projects.locations.privateClouds.get({
409
- name: "Test string",
410
- });
411
- /** Gets details of the `DnsForwarding` config. */
412
- await gapi.client.vmwareengine.projects.locations.privateClouds.getDnsForwarding({
413
- name: "Test string",
414
- });
415
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
416
- await gapi.client.vmwareengine.projects.locations.privateClouds.getIamPolicy({
417
- "options.requestedPolicyVersion": 42,
418
- resource: "Test string",
419
- });
420
- /** Lists `PrivateCloud` resources in a given project and location. */
421
- await gapi.client.vmwareengine.projects.locations.privateClouds.list({
422
- filter: "Test string",
423
- orderBy: "Test string",
424
- pageSize: 42,
425
- pageToken: "Test string",
426
- parent: "Test string",
427
- });
428
- /**
429
- * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. During operation processing, the resource
430
- * is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the
431
- * processing fully completes.
432
- */
433
- await gapi.client.vmwareengine.projects.locations.privateClouds.patch({
434
- name: "Test string",
435
- requestId: "Test string",
436
- updateMask: "Test string",
437
- }, {
438
- createTime: "Test string",
439
- deleteTime: "Test string",
440
- description: "Test string",
441
- expireTime: "Test string",
442
- hcx: {
443
- fqdn: "Test string",
444
- internalIp: "Test string",
445
- state: "Test string",
446
- version: "Test string",
447
- },
448
- managementCluster: {
449
- clusterId: "Test string",
450
- nodeTypeConfigs: {
451
- A: {
452
- customCoreCount: 42,
453
- nodeCount: 42,
454
- }
455
- },
456
- stretchedClusterConfig: {
457
- preferredLocation: "Test string",
458
- secondaryLocation: "Test string",
459
- },
460
- },
461
- name: "Test string",
462
- networkConfig: {
463
- dnsServerIp: "Test string",
464
- managementCidr: "Test string",
465
- managementIpAddressLayoutVersion: 42,
466
- vmwareEngineNetwork: "Test string",
467
- vmwareEngineNetworkCanonical: "Test string",
468
- },
469
- nsx: {
470
- fqdn: "Test string",
471
- internalIp: "Test string",
472
- state: "Test string",
473
- version: "Test string",
474
- },
475
- state: "Test string",
476
- type: "Test string",
477
- uid: "Test string",
478
- updateTime: "Test string",
479
- vcenter: {
480
- fqdn: "Test string",
481
- internalIp: "Test string",
482
- state: "Test string",
483
- version: "Test string",
484
- },
485
- });
486
- /** Resets credentials of the NSX appliance. */
487
- await gapi.client.vmwareengine.projects.locations.privateClouds.resetNsxCredentials({
488
- privateCloud: "Test string",
489
- }, {
490
- requestId: "Test string",
491
- });
492
- /** Resets credentials of the Vcenter appliance. */
493
- await gapi.client.vmwareengine.projects.locations.privateClouds.resetVcenterCredentials({
494
- privateCloud: "Test string",
495
- }, {
496
- requestId: "Test string",
497
- username: "Test string",
498
- });
499
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
500
- await gapi.client.vmwareengine.projects.locations.privateClouds.setIamPolicy({
501
- resource: "Test string",
502
- }, {
503
- policy: {
504
- auditConfigs: [
505
- {
506
- auditLogConfigs: [
507
- {
508
- exemptedMembers: [
509
- "Test string"
510
- ],
511
- logType: "Test string",
512
- }
513
- ],
514
- service: "Test string",
515
- }
516
- ],
517
- bindings: [
518
- {
519
- condition: {
520
- description: "Test string",
521
- expression: "Test string",
522
- location: "Test string",
523
- title: "Test string",
524
- },
525
- members: [
526
- "Test string"
527
- ],
528
- role: "Test string",
529
- }
530
- ],
531
- etag: "Test string",
532
- version: 42,
533
- },
534
- updateMask: "Test string",
535
- });
536
- /** Gets details of credentials for NSX appliance. */
537
- await gapi.client.vmwareengine.projects.locations.privateClouds.showNsxCredentials({
538
- privateCloud: "Test string",
539
- });
540
- /** Gets details of credentials for Vcenter appliance. */
541
- await gapi.client.vmwareengine.projects.locations.privateClouds.showVcenterCredentials({
542
- privateCloud: "Test string",
543
- username: "Test string",
544
- });
545
- /**
546
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
547
- * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
548
- */
549
- await gapi.client.vmwareengine.projects.locations.privateClouds.testIamPermissions({
550
- resource: "Test string",
551
- }, {
552
- permissions: [
553
- "Test string"
554
- ],
555
- });
556
- /**
557
- * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED`
558
- * and `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed.
559
- */
560
- await gapi.client.vmwareengine.projects.locations.privateClouds.undelete({
561
- name: "Test string",
562
- }, {
563
- requestId: "Test string",
564
- });
565
- /** Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields specified in `update_mask` are applied. */
566
- await gapi.client.vmwareengine.projects.locations.privateClouds.updateDnsForwarding({
567
- name: "Test string",
568
- requestId: "Test string",
569
- updateMask: "Test string",
570
- }, {
571
- createTime: "Test string",
572
- forwardingRules: [
573
- {
574
- domain: "Test string",
575
- nameServers: [
576
- "Test string"
577
- ],
578
- }
579
- ],
580
- name: "Test string",
581
- updateTime: "Test string",
582
- });
583
- /**
584
- * Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient [node
585
- * quota](https://cloud.google.com/vmware-engine/quotas).
586
- */
587
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.create({
588
- clusterId: "Test string",
589
- parent: "Test string",
590
- requestId: "Test string",
591
- validateOnly: true,
592
- }, {
593
- createTime: "Test string",
594
- management: true,
595
- name: "Test string",
596
- nodeTypeConfigs: {
597
- A: {
598
- customCoreCount: 42,
599
- nodeCount: 42,
600
- }
601
- },
602
- state: "Test string",
603
- stretchedClusterConfig: {
604
- preferredLocation: "Test string",
605
- secondaryLocation: "Test string",
606
- },
607
- uid: "Test string",
608
- updateTime: "Test string",
609
- });
610
- /**
611
- * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down any workloads running on the cluster before deletion. You cannot delete the management
612
- * cluster of a private cloud using this method.
613
- */
614
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.delete({
615
- name: "Test string",
616
- requestId: "Test string",
617
- });
618
- /** Retrieves a `Cluster` resource by its resource name. */
619
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.get({
620
- name: "Test string",
621
- });
622
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
623
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.getIamPolicy({
624
- "options.requestedPolicyVersion": 42,
625
- resource: "Test string",
626
- });
627
- /** Lists `Cluster` resources in a given private cloud. */
628
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.list({
629
- filter: "Test string",
630
- orderBy: "Test string",
631
- pageSize: 42,
632
- pageToken: "Test string",
633
- parent: "Test string",
634
- });
635
- /**
636
- * Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation
637
- * fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
638
- */
639
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.patch({
640
- name: "Test string",
641
- requestId: "Test string",
642
- updateMask: "Test string",
643
- validateOnly: true,
644
- }, {
645
- createTime: "Test string",
646
- management: true,
647
- name: "Test string",
648
- nodeTypeConfigs: {
649
- A: {
650
- customCoreCount: 42,
651
- nodeCount: 42,
652
- }
653
- },
654
- state: "Test string",
655
- stretchedClusterConfig: {
656
- preferredLocation: "Test string",
657
- secondaryLocation: "Test string",
658
- },
659
- uid: "Test string",
660
- updateTime: "Test string",
661
- });
662
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
663
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.setIamPolicy({
664
- resource: "Test string",
665
- }, {
666
- policy: {
667
- auditConfigs: [
668
- {
669
- auditLogConfigs: [
670
- {
671
- exemptedMembers: [
672
- "Test string"
673
- ],
674
- logType: "Test string",
675
- }
676
- ],
677
- service: "Test string",
678
- }
679
- ],
680
- bindings: [
681
- {
682
- condition: {
683
- description: "Test string",
684
- expression: "Test string",
685
- location: "Test string",
686
- title: "Test string",
687
- },
688
- members: [
689
- "Test string"
690
- ],
691
- role: "Test string",
692
- }
693
- ],
694
- etag: "Test string",
695
- version: 42,
696
- },
697
- updateMask: "Test string",
698
- });
699
- /**
700
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
701
- * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
702
- */
703
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.testIamPermissions({
704
- resource: "Test string",
705
- }, {
706
- permissions: [
707
- "Test string"
708
- ],
709
- });
710
- /** Gets details of a single node. */
711
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.nodes.get({
712
- name: "Test string",
713
- });
714
- /** Lists nodes in a given cluster. */
715
- await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.nodes.list({
716
- pageSize: 42,
717
- pageToken: "Test string",
718
- parent: "Test string",
719
- });
720
- /**
721
- * Creates a new `ExternalAddress` resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled
722
- * (`NetworkPolicy.external_ip`).
723
- */
724
- await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.create({
725
- externalAddressId: "Test string",
726
- parent: "Test string",
727
- requestId: "Test string",
728
- }, {
729
- createTime: "Test string",
730
- description: "Test string",
731
- externalIp: "Test string",
732
- internalIp: "Test string",
733
- name: "Test string",
734
- state: "Test string",
735
- uid: "Test string",
736
- updateTime: "Test string",
737
- });
738
- /** Deletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost. */
739
- await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.delete({
740
- name: "Test string",
741
- requestId: "Test string",
742
- });
743
- /** Gets details of a single external IP address. */
744
- await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.get({
745
- name: "Test string",
746
- });
747
- /** Lists external IP addresses assigned to VMware workload VMs in a given private cloud. */
748
- await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.list({
749
- filter: "Test string",
750
- orderBy: "Test string",
751
- pageSize: 42,
752
- pageToken: "Test string",
753
- parent: "Test string",
754
- });
755
- /**
756
- * Updates the parameters of a single external IP address. Only fields specified in `update_mask` are applied. During operation processing, the resource is temporarily in the `ACTIVE`
757
- * state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
758
- */
759
- await gapi.client.vmwareengine.projects.locations.privateClouds.externalAddresses.patch({
760
- name: "Test string",
761
- requestId: "Test string",
762
- updateMask: "Test string",
763
- }, {
764
- createTime: "Test string",
765
- description: "Test string",
766
- externalIp: "Test string",
767
- internalIp: "Test string",
768
- name: "Test string",
769
- state: "Test string",
770
- uid: "Test string",
771
- updateTime: "Test string",
772
- });
773
- /** Creates a new HCX activation key in a given private cloud. */
774
- await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.create({
775
- hcxActivationKeyId: "Test string",
776
- parent: "Test string",
777
- requestId: "Test string",
778
- }, {
779
- activationKey: "Test string",
780
- createTime: "Test string",
781
- name: "Test string",
782
- state: "Test string",
783
- uid: "Test string",
784
- });
785
- /** Retrieves a `HcxActivationKey` resource by its resource name. */
786
- await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.get({
787
- name: "Test string",
788
- });
789
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
790
- await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.getIamPolicy({
791
- "options.requestedPolicyVersion": 42,
792
- resource: "Test string",
793
- });
794
- /** Lists `HcxActivationKey` resources in a given private cloud. */
795
- await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.list({
796
- pageSize: 42,
797
- pageToken: "Test string",
798
- parent: "Test string",
799
- });
800
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
801
- await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.setIamPolicy({
802
- resource: "Test string",
803
- }, {
804
- policy: {
805
- auditConfigs: [
806
- {
807
- auditLogConfigs: [
808
- {
809
- exemptedMembers: [
810
- "Test string"
811
- ],
812
- logType: "Test string",
813
- }
814
- ],
815
- service: "Test string",
816
- }
817
- ],
818
- bindings: [
819
- {
820
- condition: {
821
- description: "Test string",
822
- expression: "Test string",
823
- location: "Test string",
824
- title: "Test string",
825
- },
826
- members: [
827
- "Test string"
828
- ],
829
- role: "Test string",
830
- }
831
- ],
832
- etag: "Test string",
833
- version: 42,
834
- },
835
- updateMask: "Test string",
836
- });
837
- /**
838
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
839
- * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
840
- */
841
- await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.testIamPermissions({
842
- resource: "Test string",
843
- }, {
844
- permissions: [
845
- "Test string"
846
- ],
847
- });
848
- /** Create a new logging server for a given private cloud. */
849
- await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.create({
850
- loggingServerId: "Test string",
851
- parent: "Test string",
852
- requestId: "Test string",
853
- }, {
854
- createTime: "Test string",
855
- hostname: "Test string",
856
- name: "Test string",
857
- port: 42,
858
- protocol: "Test string",
859
- sourceType: "Test string",
860
- uid: "Test string",
861
- updateTime: "Test string",
862
- });
863
- /** Deletes a single logging server. */
864
- await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.delete({
865
- name: "Test string",
866
- requestId: "Test string",
867
- });
868
- /** Gets details of a logging server. */
869
- await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.get({
870
- name: "Test string",
871
- });
872
- /** Lists logging servers configured for a given private cloud. */
873
- await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.list({
874
- filter: "Test string",
875
- orderBy: "Test string",
876
- pageSize: 42,
877
- pageToken: "Test string",
878
- parent: "Test string",
879
- });
880
- /** Updates the parameters of a single logging server. Only fields specified in `update_mask` are applied. */
881
- await gapi.client.vmwareengine.projects.locations.privateClouds.loggingServers.patch({
882
- name: "Test string",
883
- requestId: "Test string",
884
- updateMask: "Test string",
885
- }, {
886
- createTime: "Test string",
887
- hostname: "Test string",
888
- name: "Test string",
889
- port: 42,
890
- protocol: "Test string",
891
- sourceType: "Test string",
892
- uid: "Test string",
893
- updateTime: "Test string",
894
- });
895
- /**
896
- * Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS binding and the resource that represents the DNS binding of the consumer VPC network to
897
- * the management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP
898
- * addresses for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager.
899
- */
900
- await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.create({
901
- managementDnsZoneBindingId: "Test string",
902
- parent: "Test string",
903
- requestId: "Test string",
904
- }, {
905
- createTime: "Test string",
906
- description: "Test string",
907
- name: "Test string",
908
- state: "Test string",
909
- uid: "Test string",
910
- updateTime: "Test string",
911
- vmwareEngineNetwork: "Test string",
912
- vpcNetwork: "Test string",
913
- });
914
- /** Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, the corresponding consumer VPC network is no longer bound to the management DNS zone. */
915
- await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.delete({
916
- name: "Test string",
917
- requestId: "Test string",
918
- });
919
- /** Retrieves a 'ManagementDnsZoneBinding' resource by its resource name. */
920
- await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.get({
921
- name: "Test string",
922
- });
923
- /** Lists Consumer VPCs bound to Management DNS Zone of a given private cloud. */
924
- await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.list({
925
- filter: "Test string",
926
- orderBy: "Test string",
927
- pageSize: 42,
928
- pageToken: "Test string",
929
- parent: "Test string",
930
- });
931
- /** Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are applied. */
932
- await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.patch({
933
- name: "Test string",
934
- requestId: "Test string",
935
- updateMask: "Test string",
936
- }, {
937
- createTime: "Test string",
938
- description: "Test string",
939
- name: "Test string",
940
- state: "Test string",
941
- uid: "Test string",
942
- updateTime: "Test string",
943
- vmwareEngineNetwork: "Test string",
944
- vpcNetwork: "Test string",
945
- });
946
- /** Retries to create a `ManagementDnsZoneBinding` resource that is in failed state. */
947
- await gapi.client.vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.repair({
948
- name: "Test string",
949
- }, {
950
- requestId: "Test string",
951
- });
952
- /** Gets details of a single subnet. */
953
- await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.get({
954
- name: "Test string",
955
- });
956
- /** Lists subnets in a given private cloud. */
957
- await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.list({
958
- pageSize: 42,
959
- pageToken: "Test string",
960
- parent: "Test string",
961
- });
962
- /**
963
- * Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. *Note*: This API is synchronous and always returns a successful
964
- * `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` fields.
965
- */
966
- await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.patch({
967
- name: "Test string",
968
- updateMask: "Test string",
969
- }, {
970
- gatewayIp: "Test string",
971
- ipCidrRange: "Test string",
972
- name: "Test string",
973
- state: "Test string",
974
- type: "Test string",
975
- vlanId: 42,
976
- });
977
- /** Creates a new private connection that can be used for accessing private Clouds. */
978
- await gapi.client.vmwareengine.projects.locations.privateConnections.create({
979
- parent: "Test string",
980
- privateConnectionId: "Test string",
981
- requestId: "Test string",
982
- }, {
983
- createTime: "Test string",
984
- description: "Test string",
985
- name: "Test string",
986
- peeringId: "Test string",
987
- peeringState: "Test string",
988
- routingMode: "Test string",
989
- serviceNetwork: "Test string",
990
- state: "Test string",
991
- type: "Test string",
992
- uid: "Test string",
993
- updateTime: "Test string",
994
- vmwareEngineNetwork: "Test string",
995
- vmwareEngineNetworkCanonical: "Test string",
996
- });
997
- /** Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware Engine network, the connected network becomes inaccessible to that VMware Engine network. */
998
- await gapi.client.vmwareengine.projects.locations.privateConnections.delete({
999
- name: "Test string",
1000
- requestId: "Test string",
1001
- });
1002
- /** Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of the private connection, such as connected network, routing mode and state. */
1003
- await gapi.client.vmwareengine.projects.locations.privateConnections.get({
1004
- name: "Test string",
1005
- });
1006
- /** Lists `PrivateConnection` resources in a given project and location. */
1007
- await gapi.client.vmwareengine.projects.locations.privateConnections.list({
1008
- filter: "Test string",
1009
- orderBy: "Test string",
1010
- pageSize: 42,
1011
- pageToken: "Test string",
1012
- parent: "Test string",
1013
- });
1014
- /** Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be updated. Only fields specified in `updateMask` are applied. */
1015
- await gapi.client.vmwareengine.projects.locations.privateConnections.patch({
1016
- name: "Test string",
1017
- requestId: "Test string",
1018
- updateMask: "Test string",
1019
- }, {
1020
- createTime: "Test string",
1021
- description: "Test string",
1022
- name: "Test string",
1023
- peeringId: "Test string",
1024
- peeringState: "Test string",
1025
- routingMode: "Test string",
1026
- serviceNetwork: "Test string",
1027
- state: "Test string",
1028
- type: "Test string",
1029
- uid: "Test string",
1030
- updateTime: "Test string",
1031
- vmwareEngineNetwork: "Test string",
1032
- vmwareEngineNetworkCanonical: "Test string",
1033
- });
1034
- /** Lists the private connection routes exchanged over a peering connection. */
1035
- await gapi.client.vmwareengine.projects.locations.privateConnections.peeringRoutes.list({
1036
- pageSize: 42,
1037
- pageToken: "Test string",
1038
- parent: "Test string",
1039
- });
1040
- /** Creates a new VMware Engine network that can be used by a private cloud. */
1041
- await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.create({
1042
- parent: "Test string",
1043
- requestId: "Test string",
1044
- vmwareEngineNetworkId: "Test string",
1045
- }, {
1046
- createTime: "Test string",
1047
- description: "Test string",
1048
- etag: "Test string",
1049
- name: "Test string",
1050
- state: "Test string",
1051
- type: "Test string",
1052
- uid: "Test string",
1053
- updateTime: "Test string",
1054
- vpcNetworks: [
1055
- {
1056
- network: "Test string",
1057
- type: "Test string",
1058
- }
1059
- ],
1060
- });
1061
- /**
1062
- * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all resources that refer to it are deleted. For example, a private cloud, a network peering,
1063
- * and a network policy can all refer to the same VMware Engine network.
1064
- */
1065
- await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.delete({
1066
- etag: "Test string",
1067
- name: "Test string",
1068
- requestId: "Test string",
1069
- });
1070
- /**
1071
- * Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details of the VMware Engine network, such as its VMware Engine network type, peered networks in a
1072
- * service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`).
1073
- */
1074
- await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.get({
1075
- name: "Test string",
1076
- });
1077
- /** Lists `VmwareEngineNetwork` resources in a given project and location. */
1078
- await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.list({
1079
- filter: "Test string",
1080
- orderBy: "Test string",
1081
- pageSize: 42,
1082
- pageToken: "Test string",
1083
- parent: "Test string",
1084
- });
1085
- /** Modifies a VMware Engine network resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. */
1086
- await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.patch({
1087
- name: "Test string",
1088
- requestId: "Test string",
1089
- updateMask: "Test string",
1090
- }, {
1091
- createTime: "Test string",
1092
- description: "Test string",
1093
- etag: "Test string",
1094
- name: "Test string",
1095
- state: "Test string",
1096
- type: "Test string",
1097
- uid: "Test string",
1098
- updateTime: "Test string",
1099
- vpcNetworks: [
1100
- {
1101
- network: "Test string",
1102
- type: "Test string",
1103
- }
1104
- ],
1105
- });
1106
- }
1107
- });