@maxim_mazurok/gapi.client.vmwareengine-v1 0.0.20230922

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 ADDED
@@ -0,0 +1,705 @@
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: 20230922
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
+ /**
44
+ * 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
45
+ * same scope.
46
+ */
47
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.create({
48
+ networkPolicyId: "Test string",
49
+ parent: "Test string",
50
+ requestId: "Test string",
51
+ }, {
52
+ createTime: "Test string",
53
+ description: "Test string",
54
+ edgeServicesCidr: "Test string",
55
+ externalIp: {
56
+ enabled: true,
57
+ state: "Test string",
58
+ },
59
+ internetAccess: {
60
+ enabled: true,
61
+ state: "Test string",
62
+ },
63
+ name: "Test string",
64
+ uid: "Test string",
65
+ updateTime: "Test string",
66
+ vmwareEngineNetwork: "Test string",
67
+ vmwareEngineNetworkCanonical: "Test string",
68
+ });
69
+ /** 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. */
70
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.delete({
71
+ name: "Test string",
72
+ requestId: "Test string",
73
+ });
74
+ /** Retrieves a `NetworkPolicy` resource by its resource name. */
75
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.get({
76
+ name: "Test string",
77
+ });
78
+ /** Lists `NetworkPolicy` resources in a specified project and location. */
79
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.list({
80
+ filter: "Test string",
81
+ orderBy: "Test string",
82
+ pageSize: 42,
83
+ pageToken: "Test string",
84
+ parent: "Test string",
85
+ });
86
+ /**
87
+ * 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.
88
+ * 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`
89
+ * 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
90
+ * completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
91
+ */
92
+ await gapi.client.vmwareengine.projects.locations.networkPolicies.patch({
93
+ name: "Test string",
94
+ requestId: "Test string",
95
+ updateMask: "Test string",
96
+ }, {
97
+ createTime: "Test string",
98
+ description: "Test string",
99
+ edgeServicesCidr: "Test string",
100
+ externalIp: {
101
+ enabled: true,
102
+ state: "Test string",
103
+ },
104
+ internetAccess: {
105
+ enabled: true,
106
+ state: "Test string",
107
+ },
108
+ name: "Test string",
109
+ uid: "Test string",
110
+ updateTime: "Test string",
111
+ vmwareEngineNetwork: "Test string",
112
+ vmwareEngineNetworkCanonical: "Test string",
113
+ });
114
+ /** Gets details of a single `NodeType`. */
115
+ await gapi.client.vmwareengine.projects.locations.nodeTypes.get({
116
+ name: "Test string",
117
+ });
118
+ /** Lists node types */
119
+ await gapi.client.vmwareengine.projects.locations.nodeTypes.list({
120
+ filter: "Test string",
121
+ pageSize: 42,
122
+ pageToken: "Test string",
123
+ parent: "Test string",
124
+ });
125
+ /**
126
+ * 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
127
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
128
+ */
129
+ await gapi.client.vmwareengine.projects.locations.operations.delete({
130
+ name: "Test string",
131
+ });
132
+ /** 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. */
133
+ await gapi.client.vmwareengine.projects.locations.operations.get({
134
+ name: "Test string",
135
+ });
136
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
137
+ await gapi.client.vmwareengine.projects.locations.operations.list({
138
+ filter: "Test string",
139
+ name: "Test string",
140
+ pageSize: 42,
141
+ pageToken: "Test string",
142
+ });
143
+ /**
144
+ * 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.
145
+ * Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud.
146
+ */
147
+ await gapi.client.vmwareengine.projects.locations.privateClouds.create({
148
+ parent: "Test string",
149
+ privateCloudId: "Test string",
150
+ requestId: "Test string",
151
+ validateOnly: true,
152
+ }, {
153
+ createTime: "Test string",
154
+ deleteTime: "Test string",
155
+ description: "Test string",
156
+ expireTime: "Test string",
157
+ hcx: {
158
+ fqdn: "Test string",
159
+ internalIp: "Test string",
160
+ state: "Test string",
161
+ version: "Test string",
162
+ },
163
+ managementCluster: {
164
+ clusterId: "Test string",
165
+ nodeTypeConfigs: {
166
+ A: {
167
+ customCoreCount: 42,
168
+ nodeCount: 42,
169
+ }
170
+ },
171
+ },
172
+ name: "Test string",
173
+ networkConfig: {
174
+ managementCidr: "Test string",
175
+ managementIpAddressLayoutVersion: 42,
176
+ vmwareEngineNetwork: "Test string",
177
+ vmwareEngineNetworkCanonical: "Test string",
178
+ },
179
+ nsx: {
180
+ fqdn: "Test string",
181
+ internalIp: "Test string",
182
+ state: "Test string",
183
+ version: "Test string",
184
+ },
185
+ state: "Test string",
186
+ type: "Test string",
187
+ uid: "Test string",
188
+ updateTime: "Test string",
189
+ vcenter: {
190
+ fqdn: "Test string",
191
+ internalIp: "Test string",
192
+ state: "Test string",
193
+ version: "Test string",
194
+ },
195
+ });
196
+ /**
197
+ * 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
198
+ * 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
199
+ * `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
200
+ * 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,
201
+ * `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
202
+ * completely purged.
203
+ */
204
+ await gapi.client.vmwareengine.projects.locations.privateClouds.delete({
205
+ delayHours: 42,
206
+ force: true,
207
+ name: "Test string",
208
+ requestId: "Test string",
209
+ });
210
+ /** Retrieves a `PrivateCloud` resource by its resource name. */
211
+ await gapi.client.vmwareengine.projects.locations.privateClouds.get({
212
+ name: "Test string",
213
+ });
214
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
215
+ await gapi.client.vmwareengine.projects.locations.privateClouds.getIamPolicy({
216
+ "options.requestedPolicyVersion": 42,
217
+ resource: "Test string",
218
+ });
219
+ /** Lists `PrivateCloud` resources in a given project and location. */
220
+ await gapi.client.vmwareengine.projects.locations.privateClouds.list({
221
+ filter: "Test string",
222
+ orderBy: "Test string",
223
+ pageSize: 42,
224
+ pageToken: "Test string",
225
+ parent: "Test string",
226
+ });
227
+ /**
228
+ * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. During operation processing, the resource
229
+ * 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
230
+ * processing fully completes.
231
+ */
232
+ await gapi.client.vmwareengine.projects.locations.privateClouds.patch({
233
+ name: "Test string",
234
+ requestId: "Test string",
235
+ updateMask: "Test string",
236
+ }, {
237
+ createTime: "Test string",
238
+ deleteTime: "Test string",
239
+ description: "Test string",
240
+ expireTime: "Test string",
241
+ hcx: {
242
+ fqdn: "Test string",
243
+ internalIp: "Test string",
244
+ state: "Test string",
245
+ version: "Test string",
246
+ },
247
+ managementCluster: {
248
+ clusterId: "Test string",
249
+ nodeTypeConfigs: {
250
+ A: {
251
+ customCoreCount: 42,
252
+ nodeCount: 42,
253
+ }
254
+ },
255
+ },
256
+ name: "Test string",
257
+ networkConfig: {
258
+ managementCidr: "Test string",
259
+ managementIpAddressLayoutVersion: 42,
260
+ vmwareEngineNetwork: "Test string",
261
+ vmwareEngineNetworkCanonical: "Test string",
262
+ },
263
+ nsx: {
264
+ fqdn: "Test string",
265
+ internalIp: "Test string",
266
+ state: "Test string",
267
+ version: "Test string",
268
+ },
269
+ state: "Test string",
270
+ type: "Test string",
271
+ uid: "Test string",
272
+ updateTime: "Test string",
273
+ vcenter: {
274
+ fqdn: "Test string",
275
+ internalIp: "Test string",
276
+ state: "Test string",
277
+ version: "Test string",
278
+ },
279
+ });
280
+ /** Resets credentials of the NSX appliance. */
281
+ await gapi.client.vmwareengine.projects.locations.privateClouds.resetNsxCredentials({
282
+ privateCloud: "Test string",
283
+ }, {
284
+ requestId: "Test string",
285
+ });
286
+ /** Resets credentials of the Vcenter appliance. */
287
+ await gapi.client.vmwareengine.projects.locations.privateClouds.resetVcenterCredentials({
288
+ privateCloud: "Test string",
289
+ }, {
290
+ requestId: "Test string",
291
+ });
292
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
293
+ await gapi.client.vmwareengine.projects.locations.privateClouds.setIamPolicy({
294
+ resource: "Test string",
295
+ }, {
296
+ policy: {
297
+ auditConfigs: [
298
+ {
299
+ auditLogConfigs: [
300
+ {
301
+ exemptedMembers: [
302
+ "Test string"
303
+ ],
304
+ logType: "Test string",
305
+ }
306
+ ],
307
+ service: "Test string",
308
+ }
309
+ ],
310
+ bindings: [
311
+ {
312
+ condition: {
313
+ description: "Test string",
314
+ expression: "Test string",
315
+ location: "Test string",
316
+ title: "Test string",
317
+ },
318
+ members: [
319
+ "Test string"
320
+ ],
321
+ role: "Test string",
322
+ }
323
+ ],
324
+ etag: "Test string",
325
+ version: 42,
326
+ },
327
+ updateMask: "Test string",
328
+ });
329
+ /** Gets details of credentials for NSX appliance. */
330
+ await gapi.client.vmwareengine.projects.locations.privateClouds.showNsxCredentials({
331
+ privateCloud: "Test string",
332
+ });
333
+ /** Gets details of credentials for Vcenter appliance. */
334
+ await gapi.client.vmwareengine.projects.locations.privateClouds.showVcenterCredentials({
335
+ privateCloud: "Test string",
336
+ });
337
+ /**
338
+ * 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
339
+ * 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.
340
+ */
341
+ await gapi.client.vmwareengine.projects.locations.privateClouds.testIamPermissions({
342
+ resource: "Test string",
343
+ }, {
344
+ permissions: [
345
+ "Test string"
346
+ ],
347
+ });
348
+ /**
349
+ * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED`
350
+ * and `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed.
351
+ */
352
+ await gapi.client.vmwareengine.projects.locations.privateClouds.undelete({
353
+ name: "Test string",
354
+ }, {
355
+ requestId: "Test string",
356
+ });
357
+ /**
358
+ * 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
359
+ * quota](https://cloud.google.com/vmware-engine/quotas).
360
+ */
361
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.create({
362
+ clusterId: "Test string",
363
+ parent: "Test string",
364
+ requestId: "Test string",
365
+ validateOnly: true,
366
+ }, {
367
+ createTime: "Test string",
368
+ management: true,
369
+ name: "Test string",
370
+ nodeTypeConfigs: {
371
+ A: {
372
+ customCoreCount: 42,
373
+ nodeCount: 42,
374
+ }
375
+ },
376
+ state: "Test string",
377
+ uid: "Test string",
378
+ updateTime: "Test string",
379
+ });
380
+ /**
381
+ * 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
382
+ * cluster of a private cloud using this method.
383
+ */
384
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.delete({
385
+ name: "Test string",
386
+ requestId: "Test string",
387
+ });
388
+ /** Retrieves a `Cluster` resource by its resource name. */
389
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.get({
390
+ name: "Test string",
391
+ });
392
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
393
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.getIamPolicy({
394
+ "options.requestedPolicyVersion": 42,
395
+ resource: "Test string",
396
+ });
397
+ /** Lists `Cluster` resources in a given private cloud. */
398
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.list({
399
+ filter: "Test string",
400
+ orderBy: "Test string",
401
+ pageSize: 42,
402
+ pageToken: "Test string",
403
+ parent: "Test string",
404
+ });
405
+ /**
406
+ * 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
407
+ * fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
408
+ */
409
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.patch({
410
+ name: "Test string",
411
+ requestId: "Test string",
412
+ updateMask: "Test string",
413
+ validateOnly: true,
414
+ }, {
415
+ createTime: "Test string",
416
+ management: true,
417
+ name: "Test string",
418
+ nodeTypeConfigs: {
419
+ A: {
420
+ customCoreCount: 42,
421
+ nodeCount: 42,
422
+ }
423
+ },
424
+ state: "Test string",
425
+ uid: "Test string",
426
+ updateTime: "Test string",
427
+ });
428
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
429
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.setIamPolicy({
430
+ resource: "Test string",
431
+ }, {
432
+ policy: {
433
+ auditConfigs: [
434
+ {
435
+ auditLogConfigs: [
436
+ {
437
+ exemptedMembers: [
438
+ "Test string"
439
+ ],
440
+ logType: "Test string",
441
+ }
442
+ ],
443
+ service: "Test string",
444
+ }
445
+ ],
446
+ bindings: [
447
+ {
448
+ condition: {
449
+ description: "Test string",
450
+ expression: "Test string",
451
+ location: "Test string",
452
+ title: "Test string",
453
+ },
454
+ members: [
455
+ "Test string"
456
+ ],
457
+ role: "Test string",
458
+ }
459
+ ],
460
+ etag: "Test string",
461
+ version: 42,
462
+ },
463
+ updateMask: "Test string",
464
+ });
465
+ /**
466
+ * 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
467
+ * 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.
468
+ */
469
+ await gapi.client.vmwareengine.projects.locations.privateClouds.clusters.testIamPermissions({
470
+ resource: "Test string",
471
+ }, {
472
+ permissions: [
473
+ "Test string"
474
+ ],
475
+ });
476
+ /** Creates a new HCX activation key in a given private cloud. */
477
+ await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.create({
478
+ hcxActivationKeyId: "Test string",
479
+ parent: "Test string",
480
+ requestId: "Test string",
481
+ }, {
482
+ activationKey: "Test string",
483
+ createTime: "Test string",
484
+ name: "Test string",
485
+ state: "Test string",
486
+ uid: "Test string",
487
+ });
488
+ /** Retrieves a `HcxActivationKey` resource by its resource name. */
489
+ await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.get({
490
+ name: "Test string",
491
+ });
492
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
493
+ await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.getIamPolicy({
494
+ "options.requestedPolicyVersion": 42,
495
+ resource: "Test string",
496
+ });
497
+ /** Lists `HcxActivationKey` resources in a given private cloud. */
498
+ await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.list({
499
+ pageSize: 42,
500
+ pageToken: "Test string",
501
+ parent: "Test string",
502
+ });
503
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
504
+ await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.setIamPolicy({
505
+ resource: "Test string",
506
+ }, {
507
+ policy: {
508
+ auditConfigs: [
509
+ {
510
+ auditLogConfigs: [
511
+ {
512
+ exemptedMembers: [
513
+ "Test string"
514
+ ],
515
+ logType: "Test string",
516
+ }
517
+ ],
518
+ service: "Test string",
519
+ }
520
+ ],
521
+ bindings: [
522
+ {
523
+ condition: {
524
+ description: "Test string",
525
+ expression: "Test string",
526
+ location: "Test string",
527
+ title: "Test string",
528
+ },
529
+ members: [
530
+ "Test string"
531
+ ],
532
+ role: "Test string",
533
+ }
534
+ ],
535
+ etag: "Test string",
536
+ version: 42,
537
+ },
538
+ updateMask: "Test string",
539
+ });
540
+ /**
541
+ * 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
542
+ * 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.
543
+ */
544
+ await gapi.client.vmwareengine.projects.locations.privateClouds.hcxActivationKeys.testIamPermissions({
545
+ resource: "Test string",
546
+ }, {
547
+ permissions: [
548
+ "Test string"
549
+ ],
550
+ });
551
+ /** Gets details of a single subnet. */
552
+ await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.get({
553
+ name: "Test string",
554
+ });
555
+ /** Lists subnets in a given private cloud. */
556
+ await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.list({
557
+ pageSize: 42,
558
+ pageToken: "Test string",
559
+ parent: "Test string",
560
+ });
561
+ /**
562
+ * 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
563
+ * `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` fields.
564
+ */
565
+ await gapi.client.vmwareengine.projects.locations.privateClouds.subnets.patch({
566
+ name: "Test string",
567
+ updateMask: "Test string",
568
+ }, {
569
+ gatewayIp: "Test string",
570
+ ipCidrRange: "Test string",
571
+ name: "Test string",
572
+ state: "Test string",
573
+ type: "Test string",
574
+ });
575
+ /** Creates a new private connection that can be used for accessing private Clouds. */
576
+ await gapi.client.vmwareengine.projects.locations.privateConnections.create({
577
+ parent: "Test string",
578
+ privateConnectionId: "Test string",
579
+ requestId: "Test string",
580
+ }, {
581
+ createTime: "Test string",
582
+ description: "Test string",
583
+ name: "Test string",
584
+ peeringId: "Test string",
585
+ peeringState: "Test string",
586
+ routingMode: "Test string",
587
+ serviceNetwork: "Test string",
588
+ state: "Test string",
589
+ type: "Test string",
590
+ uid: "Test string",
591
+ updateTime: "Test string",
592
+ vmwareEngineNetwork: "Test string",
593
+ vmwareEngineNetworkCanonical: "Test string",
594
+ });
595
+ /** 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. */
596
+ await gapi.client.vmwareengine.projects.locations.privateConnections.delete({
597
+ name: "Test string",
598
+ requestId: "Test string",
599
+ });
600
+ /** Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of the private connection, such as connected network, routing mode and state. */
601
+ await gapi.client.vmwareengine.projects.locations.privateConnections.get({
602
+ name: "Test string",
603
+ });
604
+ /** Lists `PrivateConnection` resources in a given project and location. */
605
+ await gapi.client.vmwareengine.projects.locations.privateConnections.list({
606
+ filter: "Test string",
607
+ orderBy: "Test string",
608
+ pageSize: 42,
609
+ pageToken: "Test string",
610
+ parent: "Test string",
611
+ });
612
+ /** Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be updated. Only fields specified in `updateMask` are applied. */
613
+ await gapi.client.vmwareengine.projects.locations.privateConnections.patch({
614
+ name: "Test string",
615
+ requestId: "Test string",
616
+ updateMask: "Test string",
617
+ }, {
618
+ createTime: "Test string",
619
+ description: "Test string",
620
+ name: "Test string",
621
+ peeringId: "Test string",
622
+ peeringState: "Test string",
623
+ routingMode: "Test string",
624
+ serviceNetwork: "Test string",
625
+ state: "Test string",
626
+ type: "Test string",
627
+ uid: "Test string",
628
+ updateTime: "Test string",
629
+ vmwareEngineNetwork: "Test string",
630
+ vmwareEngineNetworkCanonical: "Test string",
631
+ });
632
+ /** Lists the private connection routes exchanged over a peering connection. */
633
+ await gapi.client.vmwareengine.projects.locations.privateConnections.peeringRoutes.list({
634
+ pageSize: 42,
635
+ pageToken: "Test string",
636
+ parent: "Test string",
637
+ });
638
+ /** Creates a new VMware Engine network that can be used by a private cloud. */
639
+ await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.create({
640
+ parent: "Test string",
641
+ requestId: "Test string",
642
+ vmwareEngineNetworkId: "Test string",
643
+ }, {
644
+ createTime: "Test string",
645
+ description: "Test string",
646
+ etag: "Test string",
647
+ name: "Test string",
648
+ state: "Test string",
649
+ type: "Test string",
650
+ uid: "Test string",
651
+ updateTime: "Test string",
652
+ vpcNetworks: [
653
+ {
654
+ network: "Test string",
655
+ type: "Test string",
656
+ }
657
+ ],
658
+ });
659
+ /**
660
+ * 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,
661
+ * and a network policy can all refer to the same VMware Engine network.
662
+ */
663
+ await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.delete({
664
+ etag: "Test string",
665
+ name: "Test string",
666
+ requestId: "Test string",
667
+ });
668
+ /**
669
+ * 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
670
+ * service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`).
671
+ */
672
+ await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.get({
673
+ name: "Test string",
674
+ });
675
+ /** Lists `VmwareEngineNetwork` resources in a given project and location. */
676
+ await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.list({
677
+ filter: "Test string",
678
+ orderBy: "Test string",
679
+ pageSize: 42,
680
+ pageToken: "Test string",
681
+ parent: "Test string",
682
+ });
683
+ /** Modifies a VMware Engine network resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. */
684
+ await gapi.client.vmwareengine.projects.locations.vmwareEngineNetworks.patch({
685
+ name: "Test string",
686
+ requestId: "Test string",
687
+ updateMask: "Test string",
688
+ }, {
689
+ createTime: "Test string",
690
+ description: "Test string",
691
+ etag: "Test string",
692
+ name: "Test string",
693
+ state: "Test string",
694
+ type: "Test string",
695
+ uid: "Test string",
696
+ updateTime: "Test string",
697
+ vpcNetworks: [
698
+ {
699
+ network: "Test string",
700
+ type: "Test string",
701
+ }
702
+ ],
703
+ });
704
+ }
705
+ });