@maxim_mazurok/gapi.client.vmmigration-v1 0.0.20220803

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,1070 @@
1
+ /* This is stub file for gapi.client.vmmigration-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: 20220803
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://vmmigration.googleapis.com/$discovery/rest?version=v1');
12
+ /** now we can use gapi.client.vmmigration */
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.vmmigration.projects.locations.get({
34
+ name: "Test string",
35
+ });
36
+ /** Lists information about the supported locations for this service. */
37
+ await gapi.client.vmmigration.projects.locations.list({
38
+ filter: "Test string",
39
+ name: "Test string",
40
+ pageSize: 42,
41
+ pageToken: "Test string",
42
+ });
43
+ /** Adds a MigratingVm to a Group. */
44
+ await gapi.client.vmmigration.projects.locations.groups.addGroupMigration({
45
+ group: "Test string",
46
+ }, {
47
+ migratingVm: "Test string",
48
+ });
49
+ /** Creates a new Group in a given project and location. */
50
+ await gapi.client.vmmigration.projects.locations.groups.create({
51
+ groupId: "Test string",
52
+ parent: "Test string",
53
+ requestId: "Test string",
54
+ }, {
55
+ createTime: "Test string",
56
+ description: "Test string",
57
+ displayName: "Test string",
58
+ name: "Test string",
59
+ updateTime: "Test string",
60
+ });
61
+ /** Deletes a single Group. */
62
+ await gapi.client.vmmigration.projects.locations.groups.delete({
63
+ name: "Test string",
64
+ requestId: "Test string",
65
+ });
66
+ /** Gets details of a single Group. */
67
+ await gapi.client.vmmigration.projects.locations.groups.get({
68
+ name: "Test string",
69
+ });
70
+ /** Lists Groups in a given project and location. */
71
+ await gapi.client.vmmigration.projects.locations.groups.list({
72
+ filter: "Test string",
73
+ orderBy: "Test string",
74
+ pageSize: 42,
75
+ pageToken: "Test string",
76
+ parent: "Test string",
77
+ });
78
+ /** Updates the parameters of a single Group. */
79
+ await gapi.client.vmmigration.projects.locations.groups.patch({
80
+ name: "Test string",
81
+ requestId: "Test string",
82
+ updateMask: "Test string",
83
+ }, {
84
+ createTime: "Test string",
85
+ description: "Test string",
86
+ displayName: "Test string",
87
+ name: "Test string",
88
+ updateTime: "Test string",
89
+ });
90
+ /** Removes a MigratingVm from a Group. */
91
+ await gapi.client.vmmigration.projects.locations.groups.removeGroupMigration({
92
+ group: "Test string",
93
+ }, {
94
+ migratingVm: "Test string",
95
+ });
96
+ /**
97
+ * 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
98
+ * 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
99
+ * 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
100
+ * 1, corresponding to `Code.CANCELLED`.
101
+ */
102
+ await gapi.client.vmmigration.projects.locations.operations.cancel({
103
+ name: "Test string",
104
+ }, {
105
+ });
106
+ /**
107
+ * 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
108
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
109
+ */
110
+ await gapi.client.vmmigration.projects.locations.operations.delete({
111
+ name: "Test string",
112
+ });
113
+ /** 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. */
114
+ await gapi.client.vmmigration.projects.locations.operations.get({
115
+ name: "Test string",
116
+ });
117
+ /**
118
+ * 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
119
+ * 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
120
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
121
+ * ensure the name binding is the parent resource, without the operations collection id.
122
+ */
123
+ await gapi.client.vmmigration.projects.locations.operations.list({
124
+ filter: "Test string",
125
+ name: "Test string",
126
+ pageSize: 42,
127
+ pageToken: "Test string",
128
+ });
129
+ /** Creates a new Source in a given project and location. */
130
+ await gapi.client.vmmigration.projects.locations.sources.create({
131
+ parent: "Test string",
132
+ requestId: "Test string",
133
+ sourceId: "Test string",
134
+ }, {
135
+ createTime: "Test string",
136
+ description: "Test string",
137
+ labels: {
138
+ A: "Test string"
139
+ },
140
+ name: "Test string",
141
+ updateTime: "Test string",
142
+ vmware: {
143
+ password: "Test string",
144
+ thumbprint: "Test string",
145
+ username: "Test string",
146
+ vcenterIp: "Test string",
147
+ },
148
+ });
149
+ /** Deletes a single Source. */
150
+ await gapi.client.vmmigration.projects.locations.sources.delete({
151
+ name: "Test string",
152
+ requestId: "Test string",
153
+ });
154
+ /**
155
+ * List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that
156
+ * source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
157
+ */
158
+ await gapi.client.vmmigration.projects.locations.sources.fetchInventory({
159
+ forceRefresh: true,
160
+ pageSize: 42,
161
+ pageToken: "Test string",
162
+ source: "Test string",
163
+ });
164
+ /** Gets details of a single Source. */
165
+ await gapi.client.vmmigration.projects.locations.sources.get({
166
+ name: "Test string",
167
+ });
168
+ /** Lists Sources in a given project and location. */
169
+ await gapi.client.vmmigration.projects.locations.sources.list({
170
+ filter: "Test string",
171
+ orderBy: "Test string",
172
+ pageSize: 42,
173
+ pageToken: "Test string",
174
+ parent: "Test string",
175
+ });
176
+ /** Updates the parameters of a single Source. */
177
+ await gapi.client.vmmigration.projects.locations.sources.patch({
178
+ name: "Test string",
179
+ requestId: "Test string",
180
+ updateMask: "Test string",
181
+ }, {
182
+ createTime: "Test string",
183
+ description: "Test string",
184
+ labels: {
185
+ A: "Test string"
186
+ },
187
+ name: "Test string",
188
+ updateTime: "Test string",
189
+ vmware: {
190
+ password: "Test string",
191
+ thumbprint: "Test string",
192
+ username: "Test string",
193
+ vcenterIp: "Test string",
194
+ },
195
+ });
196
+ /** Creates a new DatacenterConnector in a given Source. */
197
+ await gapi.client.vmmigration.projects.locations.sources.datacenterConnectors.create({
198
+ datacenterConnectorId: "Test string",
199
+ parent: "Test string",
200
+ requestId: "Test string",
201
+ }, {
202
+ applianceInfrastructureVersion: "Test string",
203
+ applianceSoftwareVersion: "Test string",
204
+ availableVersions: {
205
+ inPlaceUpdate: {
206
+ critical: true,
207
+ releaseNotesUri: "Test string",
208
+ uri: "Test string",
209
+ version: "Test string",
210
+ },
211
+ newDeployableAppliance: {
212
+ critical: true,
213
+ releaseNotesUri: "Test string",
214
+ uri: "Test string",
215
+ version: "Test string",
216
+ },
217
+ },
218
+ bucket: "Test string",
219
+ createTime: "Test string",
220
+ error: {
221
+ code: 42,
222
+ details: [
223
+ {
224
+ A: 42
225
+ }
226
+ ],
227
+ message: "Test string",
228
+ },
229
+ name: "Test string",
230
+ registrationId: "Test string",
231
+ serviceAccount: "Test string",
232
+ state: "Test string",
233
+ stateTime: "Test string",
234
+ updateTime: "Test string",
235
+ upgradeStatus: {
236
+ error: {
237
+ code: 42,
238
+ details: [
239
+ {
240
+ A: 42
241
+ }
242
+ ],
243
+ message: "Test string",
244
+ },
245
+ previousVersion: "Test string",
246
+ startTime: "Test string",
247
+ state: "Test string",
248
+ version: "Test string",
249
+ },
250
+ version: "Test string",
251
+ });
252
+ /** Deletes a single DatacenterConnector. */
253
+ await gapi.client.vmmigration.projects.locations.sources.datacenterConnectors.delete({
254
+ name: "Test string",
255
+ requestId: "Test string",
256
+ });
257
+ /** Gets details of a single DatacenterConnector. */
258
+ await gapi.client.vmmigration.projects.locations.sources.datacenterConnectors.get({
259
+ name: "Test string",
260
+ });
261
+ /** Lists DatacenterConnectors in a given Source. */
262
+ await gapi.client.vmmigration.projects.locations.sources.datacenterConnectors.list({
263
+ filter: "Test string",
264
+ orderBy: "Test string",
265
+ pageSize: 42,
266
+ pageToken: "Test string",
267
+ parent: "Test string",
268
+ });
269
+ /** Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version. */
270
+ await gapi.client.vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance({
271
+ datacenterConnector: "Test string",
272
+ }, {
273
+ requestId: "Test string",
274
+ });
275
+ /** Creates a new MigratingVm in a given Source. */
276
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.create({
277
+ migratingVmId: "Test string",
278
+ parent: "Test string",
279
+ requestId: "Test string",
280
+ }, {
281
+ computeEngineTargetDefaults: {
282
+ additionalLicenses: [
283
+ "Test string"
284
+ ],
285
+ appliedLicense: {
286
+ osLicense: "Test string",
287
+ type: "Test string",
288
+ },
289
+ bootOption: "Test string",
290
+ computeScheduling: {
291
+ minNodeCpus: 42,
292
+ nodeAffinities: [
293
+ {
294
+ key: "Test string",
295
+ operator: "Test string",
296
+ values: [
297
+ "Test string"
298
+ ],
299
+ }
300
+ ],
301
+ onHostMaintenance: "Test string",
302
+ restartType: "Test string",
303
+ },
304
+ diskType: "Test string",
305
+ hostname: "Test string",
306
+ labels: {
307
+ A: "Test string"
308
+ },
309
+ licenseType: "Test string",
310
+ machineType: "Test string",
311
+ machineTypeSeries: "Test string",
312
+ metadata: {
313
+ A: "Test string"
314
+ },
315
+ networkInterfaces: [
316
+ {
317
+ externalIp: "Test string",
318
+ internalIp: "Test string",
319
+ network: "Test string",
320
+ subnetwork: "Test string",
321
+ }
322
+ ],
323
+ networkTags: [
324
+ "Test string"
325
+ ],
326
+ secureBoot: true,
327
+ serviceAccount: "Test string",
328
+ targetProject: "Test string",
329
+ vmName: "Test string",
330
+ zone: "Test string",
331
+ },
332
+ createTime: "Test string",
333
+ currentSyncInfo: {
334
+ progressPercent: 42,
335
+ startTime: "Test string",
336
+ },
337
+ description: "Test string",
338
+ displayName: "Test string",
339
+ error: {
340
+ code: 42,
341
+ details: [
342
+ {
343
+ A: 42
344
+ }
345
+ ],
346
+ message: "Test string",
347
+ },
348
+ group: "Test string",
349
+ labels: {
350
+ A: "Test string"
351
+ },
352
+ lastSync: {
353
+ lastSyncTime: "Test string",
354
+ },
355
+ name: "Test string",
356
+ policy: {
357
+ idleDuration: "Test string",
358
+ skipOsAdaptation: true,
359
+ },
360
+ recentCloneJobs: [
361
+ {
362
+ computeEngineTargetDetails: {
363
+ additionalLicenses: [
364
+ "Test string"
365
+ ],
366
+ appliedLicense: {
367
+ osLicense: "Test string",
368
+ type: "Test string",
369
+ },
370
+ bootOption: "Test string",
371
+ computeScheduling: {
372
+ minNodeCpus: 42,
373
+ nodeAffinities: [
374
+ {
375
+ key: "Test string",
376
+ operator: "Test string",
377
+ values: [
378
+ "Test string"
379
+ ],
380
+ }
381
+ ],
382
+ onHostMaintenance: "Test string",
383
+ restartType: "Test string",
384
+ },
385
+ diskType: "Test string",
386
+ hostname: "Test string",
387
+ labels: {
388
+ A: "Test string"
389
+ },
390
+ licenseType: "Test string",
391
+ machineType: "Test string",
392
+ machineTypeSeries: "Test string",
393
+ metadata: {
394
+ A: "Test string"
395
+ },
396
+ networkInterfaces: [
397
+ {
398
+ externalIp: "Test string",
399
+ internalIp: "Test string",
400
+ network: "Test string",
401
+ subnetwork: "Test string",
402
+ }
403
+ ],
404
+ networkTags: [
405
+ "Test string"
406
+ ],
407
+ project: "Test string",
408
+ secureBoot: true,
409
+ serviceAccount: "Test string",
410
+ vmName: "Test string",
411
+ zone: "Test string",
412
+ },
413
+ createTime: "Test string",
414
+ endTime: "Test string",
415
+ error: {
416
+ code: 42,
417
+ details: [
418
+ {
419
+ A: 42
420
+ }
421
+ ],
422
+ message: "Test string",
423
+ },
424
+ name: "Test string",
425
+ state: "Test string",
426
+ stateTime: "Test string",
427
+ }
428
+ ],
429
+ recentCutoverJobs: [
430
+ {
431
+ computeEngineTargetDetails: {
432
+ additionalLicenses: [
433
+ "Test string"
434
+ ],
435
+ appliedLicense: {
436
+ osLicense: "Test string",
437
+ type: "Test string",
438
+ },
439
+ bootOption: "Test string",
440
+ computeScheduling: {
441
+ minNodeCpus: 42,
442
+ nodeAffinities: [
443
+ {
444
+ key: "Test string",
445
+ operator: "Test string",
446
+ values: [
447
+ "Test string"
448
+ ],
449
+ }
450
+ ],
451
+ onHostMaintenance: "Test string",
452
+ restartType: "Test string",
453
+ },
454
+ diskType: "Test string",
455
+ hostname: "Test string",
456
+ labels: {
457
+ A: "Test string"
458
+ },
459
+ licenseType: "Test string",
460
+ machineType: "Test string",
461
+ machineTypeSeries: "Test string",
462
+ metadata: {
463
+ A: "Test string"
464
+ },
465
+ networkInterfaces: [
466
+ {
467
+ externalIp: "Test string",
468
+ internalIp: "Test string",
469
+ network: "Test string",
470
+ subnetwork: "Test string",
471
+ }
472
+ ],
473
+ networkTags: [
474
+ "Test string"
475
+ ],
476
+ project: "Test string",
477
+ secureBoot: true,
478
+ serviceAccount: "Test string",
479
+ vmName: "Test string",
480
+ zone: "Test string",
481
+ },
482
+ createTime: "Test string",
483
+ endTime: "Test string",
484
+ error: {
485
+ code: 42,
486
+ details: [
487
+ {
488
+ A: 42
489
+ }
490
+ ],
491
+ message: "Test string",
492
+ },
493
+ name: "Test string",
494
+ progressPercent: 42,
495
+ state: "Test string",
496
+ stateMessage: "Test string",
497
+ stateTime: "Test string",
498
+ }
499
+ ],
500
+ sourceVmId: "Test string",
501
+ state: "Test string",
502
+ stateTime: "Test string",
503
+ updateTime: "Test string",
504
+ });
505
+ /** Deletes a single MigratingVm. */
506
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.delete({
507
+ name: "Test string",
508
+ });
509
+ /** Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done. */
510
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.finalizeMigration({
511
+ migratingVm: "Test string",
512
+ }, {
513
+ });
514
+ /** Gets details of a single MigratingVm. */
515
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.get({
516
+ name: "Test string",
517
+ view: "Test string",
518
+ });
519
+ /** Lists MigratingVms in a given Source. */
520
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.list({
521
+ filter: "Test string",
522
+ orderBy: "Test string",
523
+ pageSize: 42,
524
+ pageToken: "Test string",
525
+ parent: "Test string",
526
+ view: "Test string",
527
+ });
528
+ /** Updates the parameters of a single MigratingVm. */
529
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.patch({
530
+ name: "Test string",
531
+ requestId: "Test string",
532
+ updateMask: "Test string",
533
+ }, {
534
+ computeEngineTargetDefaults: {
535
+ additionalLicenses: [
536
+ "Test string"
537
+ ],
538
+ appliedLicense: {
539
+ osLicense: "Test string",
540
+ type: "Test string",
541
+ },
542
+ bootOption: "Test string",
543
+ computeScheduling: {
544
+ minNodeCpus: 42,
545
+ nodeAffinities: [
546
+ {
547
+ key: "Test string",
548
+ operator: "Test string",
549
+ values: [
550
+ "Test string"
551
+ ],
552
+ }
553
+ ],
554
+ onHostMaintenance: "Test string",
555
+ restartType: "Test string",
556
+ },
557
+ diskType: "Test string",
558
+ hostname: "Test string",
559
+ labels: {
560
+ A: "Test string"
561
+ },
562
+ licenseType: "Test string",
563
+ machineType: "Test string",
564
+ machineTypeSeries: "Test string",
565
+ metadata: {
566
+ A: "Test string"
567
+ },
568
+ networkInterfaces: [
569
+ {
570
+ externalIp: "Test string",
571
+ internalIp: "Test string",
572
+ network: "Test string",
573
+ subnetwork: "Test string",
574
+ }
575
+ ],
576
+ networkTags: [
577
+ "Test string"
578
+ ],
579
+ secureBoot: true,
580
+ serviceAccount: "Test string",
581
+ targetProject: "Test string",
582
+ vmName: "Test string",
583
+ zone: "Test string",
584
+ },
585
+ createTime: "Test string",
586
+ currentSyncInfo: {
587
+ progressPercent: 42,
588
+ startTime: "Test string",
589
+ },
590
+ description: "Test string",
591
+ displayName: "Test string",
592
+ error: {
593
+ code: 42,
594
+ details: [
595
+ {
596
+ A: 42
597
+ }
598
+ ],
599
+ message: "Test string",
600
+ },
601
+ group: "Test string",
602
+ labels: {
603
+ A: "Test string"
604
+ },
605
+ lastSync: {
606
+ lastSyncTime: "Test string",
607
+ },
608
+ name: "Test string",
609
+ policy: {
610
+ idleDuration: "Test string",
611
+ skipOsAdaptation: true,
612
+ },
613
+ recentCloneJobs: [
614
+ {
615
+ computeEngineTargetDetails: {
616
+ additionalLicenses: [
617
+ "Test string"
618
+ ],
619
+ appliedLicense: {
620
+ osLicense: "Test string",
621
+ type: "Test string",
622
+ },
623
+ bootOption: "Test string",
624
+ computeScheduling: {
625
+ minNodeCpus: 42,
626
+ nodeAffinities: [
627
+ {
628
+ key: "Test string",
629
+ operator: "Test string",
630
+ values: [
631
+ "Test string"
632
+ ],
633
+ }
634
+ ],
635
+ onHostMaintenance: "Test string",
636
+ restartType: "Test string",
637
+ },
638
+ diskType: "Test string",
639
+ hostname: "Test string",
640
+ labels: {
641
+ A: "Test string"
642
+ },
643
+ licenseType: "Test string",
644
+ machineType: "Test string",
645
+ machineTypeSeries: "Test string",
646
+ metadata: {
647
+ A: "Test string"
648
+ },
649
+ networkInterfaces: [
650
+ {
651
+ externalIp: "Test string",
652
+ internalIp: "Test string",
653
+ network: "Test string",
654
+ subnetwork: "Test string",
655
+ }
656
+ ],
657
+ networkTags: [
658
+ "Test string"
659
+ ],
660
+ project: "Test string",
661
+ secureBoot: true,
662
+ serviceAccount: "Test string",
663
+ vmName: "Test string",
664
+ zone: "Test string",
665
+ },
666
+ createTime: "Test string",
667
+ endTime: "Test string",
668
+ error: {
669
+ code: 42,
670
+ details: [
671
+ {
672
+ A: 42
673
+ }
674
+ ],
675
+ message: "Test string",
676
+ },
677
+ name: "Test string",
678
+ state: "Test string",
679
+ stateTime: "Test string",
680
+ }
681
+ ],
682
+ recentCutoverJobs: [
683
+ {
684
+ computeEngineTargetDetails: {
685
+ additionalLicenses: [
686
+ "Test string"
687
+ ],
688
+ appliedLicense: {
689
+ osLicense: "Test string",
690
+ type: "Test string",
691
+ },
692
+ bootOption: "Test string",
693
+ computeScheduling: {
694
+ minNodeCpus: 42,
695
+ nodeAffinities: [
696
+ {
697
+ key: "Test string",
698
+ operator: "Test string",
699
+ values: [
700
+ "Test string"
701
+ ],
702
+ }
703
+ ],
704
+ onHostMaintenance: "Test string",
705
+ restartType: "Test string",
706
+ },
707
+ diskType: "Test string",
708
+ hostname: "Test string",
709
+ labels: {
710
+ A: "Test string"
711
+ },
712
+ licenseType: "Test string",
713
+ machineType: "Test string",
714
+ machineTypeSeries: "Test string",
715
+ metadata: {
716
+ A: "Test string"
717
+ },
718
+ networkInterfaces: [
719
+ {
720
+ externalIp: "Test string",
721
+ internalIp: "Test string",
722
+ network: "Test string",
723
+ subnetwork: "Test string",
724
+ }
725
+ ],
726
+ networkTags: [
727
+ "Test string"
728
+ ],
729
+ project: "Test string",
730
+ secureBoot: true,
731
+ serviceAccount: "Test string",
732
+ vmName: "Test string",
733
+ zone: "Test string",
734
+ },
735
+ createTime: "Test string",
736
+ endTime: "Test string",
737
+ error: {
738
+ code: 42,
739
+ details: [
740
+ {
741
+ A: 42
742
+ }
743
+ ],
744
+ message: "Test string",
745
+ },
746
+ name: "Test string",
747
+ progressPercent: 42,
748
+ state: "Test string",
749
+ stateMessage: "Test string",
750
+ stateTime: "Test string",
751
+ }
752
+ ],
753
+ sourceVmId: "Test string",
754
+ state: "Test string",
755
+ stateTime: "Test string",
756
+ updateTime: "Test string",
757
+ });
758
+ /** Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused. */
759
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.pauseMigration({
760
+ migratingVm: "Test string",
761
+ }, {
762
+ });
763
+ /**
764
+ * Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will
765
+ * update the migration to active state and start the process of uploading data and creating snapshots.
766
+ */
767
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.resumeMigration({
768
+ migratingVm: "Test string",
769
+ }, {
770
+ });
771
+ /** Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy. */
772
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.startMigration({
773
+ migratingVm: "Test string",
774
+ }, {
775
+ });
776
+ /** Initiates the cancellation of a running clone job. */
777
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cloneJobs.cancel({
778
+ name: "Test string",
779
+ }, {
780
+ });
781
+ /** Initiates a Clone of a specific migrating VM. */
782
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cloneJobs.create({
783
+ cloneJobId: "Test string",
784
+ parent: "Test string",
785
+ requestId: "Test string",
786
+ }, {
787
+ computeEngineTargetDetails: {
788
+ additionalLicenses: [
789
+ "Test string"
790
+ ],
791
+ appliedLicense: {
792
+ osLicense: "Test string",
793
+ type: "Test string",
794
+ },
795
+ bootOption: "Test string",
796
+ computeScheduling: {
797
+ minNodeCpus: 42,
798
+ nodeAffinities: [
799
+ {
800
+ key: "Test string",
801
+ operator: "Test string",
802
+ values: [
803
+ "Test string"
804
+ ],
805
+ }
806
+ ],
807
+ onHostMaintenance: "Test string",
808
+ restartType: "Test string",
809
+ },
810
+ diskType: "Test string",
811
+ hostname: "Test string",
812
+ labels: {
813
+ A: "Test string"
814
+ },
815
+ licenseType: "Test string",
816
+ machineType: "Test string",
817
+ machineTypeSeries: "Test string",
818
+ metadata: {
819
+ A: "Test string"
820
+ },
821
+ networkInterfaces: [
822
+ {
823
+ externalIp: "Test string",
824
+ internalIp: "Test string",
825
+ network: "Test string",
826
+ subnetwork: "Test string",
827
+ }
828
+ ],
829
+ networkTags: [
830
+ "Test string"
831
+ ],
832
+ project: "Test string",
833
+ secureBoot: true,
834
+ serviceAccount: "Test string",
835
+ vmName: "Test string",
836
+ zone: "Test string",
837
+ },
838
+ createTime: "Test string",
839
+ endTime: "Test string",
840
+ error: {
841
+ code: 42,
842
+ details: [
843
+ {
844
+ A: 42
845
+ }
846
+ ],
847
+ message: "Test string",
848
+ },
849
+ name: "Test string",
850
+ state: "Test string",
851
+ stateTime: "Test string",
852
+ });
853
+ /** Gets details of a single CloneJob. */
854
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cloneJobs.get({
855
+ name: "Test string",
856
+ });
857
+ /** Lists CloneJobs of a given migrating VM. */
858
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cloneJobs.list({
859
+ filter: "Test string",
860
+ orderBy: "Test string",
861
+ pageSize: 42,
862
+ pageToken: "Test string",
863
+ parent: "Test string",
864
+ });
865
+ /** Initiates the cancellation of a running cutover job. */
866
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cutoverJobs.cancel({
867
+ name: "Test string",
868
+ }, {
869
+ });
870
+ /** Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated. */
871
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cutoverJobs.create({
872
+ cutoverJobId: "Test string",
873
+ parent: "Test string",
874
+ requestId: "Test string",
875
+ }, {
876
+ computeEngineTargetDetails: {
877
+ additionalLicenses: [
878
+ "Test string"
879
+ ],
880
+ appliedLicense: {
881
+ osLicense: "Test string",
882
+ type: "Test string",
883
+ },
884
+ bootOption: "Test string",
885
+ computeScheduling: {
886
+ minNodeCpus: 42,
887
+ nodeAffinities: [
888
+ {
889
+ key: "Test string",
890
+ operator: "Test string",
891
+ values: [
892
+ "Test string"
893
+ ],
894
+ }
895
+ ],
896
+ onHostMaintenance: "Test string",
897
+ restartType: "Test string",
898
+ },
899
+ diskType: "Test string",
900
+ hostname: "Test string",
901
+ labels: {
902
+ A: "Test string"
903
+ },
904
+ licenseType: "Test string",
905
+ machineType: "Test string",
906
+ machineTypeSeries: "Test string",
907
+ metadata: {
908
+ A: "Test string"
909
+ },
910
+ networkInterfaces: [
911
+ {
912
+ externalIp: "Test string",
913
+ internalIp: "Test string",
914
+ network: "Test string",
915
+ subnetwork: "Test string",
916
+ }
917
+ ],
918
+ networkTags: [
919
+ "Test string"
920
+ ],
921
+ project: "Test string",
922
+ secureBoot: true,
923
+ serviceAccount: "Test string",
924
+ vmName: "Test string",
925
+ zone: "Test string",
926
+ },
927
+ createTime: "Test string",
928
+ endTime: "Test string",
929
+ error: {
930
+ code: 42,
931
+ details: [
932
+ {
933
+ A: 42
934
+ }
935
+ ],
936
+ message: "Test string",
937
+ },
938
+ name: "Test string",
939
+ progressPercent: 42,
940
+ state: "Test string",
941
+ stateMessage: "Test string",
942
+ stateTime: "Test string",
943
+ });
944
+ /** Gets details of a single CutoverJob. */
945
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cutoverJobs.get({
946
+ name: "Test string",
947
+ });
948
+ /** Lists CutoverJobs of a given migrating VM. */
949
+ await gapi.client.vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list({
950
+ filter: "Test string",
951
+ orderBy: "Test string",
952
+ pageSize: 42,
953
+ pageToken: "Test string",
954
+ parent: "Test string",
955
+ });
956
+ /** Creates a new UtilizationReport. */
957
+ await gapi.client.vmmigration.projects.locations.sources.utilizationReports.create({
958
+ parent: "Test string",
959
+ requestId: "Test string",
960
+ utilizationReportId: "Test string",
961
+ }, {
962
+ createTime: "Test string",
963
+ displayName: "Test string",
964
+ error: {
965
+ code: 42,
966
+ details: [
967
+ {
968
+ A: 42
969
+ }
970
+ ],
971
+ message: "Test string",
972
+ },
973
+ frameEndTime: "Test string",
974
+ name: "Test string",
975
+ state: "Test string",
976
+ stateTime: "Test string",
977
+ timeFrame: "Test string",
978
+ vmCount: 42,
979
+ vms: [
980
+ {
981
+ utilization: {
982
+ cpuAveragePercent: 42,
983
+ cpuMaxPercent: 42,
984
+ diskIoRateAverageKbps: "Test string",
985
+ diskIoRateMaxKbps: "Test string",
986
+ memoryAveragePercent: 42,
987
+ memoryMaxPercent: 42,
988
+ networkThroughputAverageKbps: "Test string",
989
+ networkThroughputMaxKbps: "Test string",
990
+ },
991
+ vmId: "Test string",
992
+ vmwareVmDetails: {
993
+ bootOption: "Test string",
994
+ committedStorageMb: "Test string",
995
+ cpuCount: 42,
996
+ datacenterDescription: "Test string",
997
+ datacenterId: "Test string",
998
+ diskCount: 42,
999
+ displayName: "Test string",
1000
+ guestDescription: "Test string",
1001
+ memoryMb: 42,
1002
+ powerState: "Test string",
1003
+ uuid: "Test string",
1004
+ vmId: "Test string",
1005
+ },
1006
+ }
1007
+ ],
1008
+ });
1009
+ /** Deletes a single Utilization Report. */
1010
+ await gapi.client.vmmigration.projects.locations.sources.utilizationReports.delete({
1011
+ name: "Test string",
1012
+ requestId: "Test string",
1013
+ });
1014
+ /** Gets a single Utilization Report. */
1015
+ await gapi.client.vmmigration.projects.locations.sources.utilizationReports.get({
1016
+ name: "Test string",
1017
+ view: "Test string",
1018
+ });
1019
+ /** Lists Utilization Reports of the given Source. */
1020
+ await gapi.client.vmmigration.projects.locations.sources.utilizationReports.list({
1021
+ filter: "Test string",
1022
+ orderBy: "Test string",
1023
+ pageSize: 42,
1024
+ pageToken: "Test string",
1025
+ parent: "Test string",
1026
+ view: "Test string",
1027
+ });
1028
+ /** Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. */
1029
+ await gapi.client.vmmigration.projects.locations.targetProjects.create({
1030
+ parent: "Test string",
1031
+ requestId: "Test string",
1032
+ targetProjectId: "Test string",
1033
+ }, {
1034
+ createTime: "Test string",
1035
+ description: "Test string",
1036
+ name: "Test string",
1037
+ project: "Test string",
1038
+ updateTime: "Test string",
1039
+ });
1040
+ /** Deletes a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. */
1041
+ await gapi.client.vmmigration.projects.locations.targetProjects.delete({
1042
+ name: "Test string",
1043
+ requestId: "Test string",
1044
+ });
1045
+ /** Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. */
1046
+ await gapi.client.vmmigration.projects.locations.targetProjects.get({
1047
+ name: "Test string",
1048
+ });
1049
+ /** Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. */
1050
+ await gapi.client.vmmigration.projects.locations.targetProjects.list({
1051
+ filter: "Test string",
1052
+ orderBy: "Test string",
1053
+ pageSize: 42,
1054
+ pageToken: "Test string",
1055
+ parent: "Test string",
1056
+ });
1057
+ /** Updates the parameters of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`. */
1058
+ await gapi.client.vmmigration.projects.locations.targetProjects.patch({
1059
+ name: "Test string",
1060
+ requestId: "Test string",
1061
+ updateMask: "Test string",
1062
+ }, {
1063
+ createTime: "Test string",
1064
+ description: "Test string",
1065
+ name: "Test string",
1066
+ project: "Test string",
1067
+ updateTime: "Test string",
1068
+ });
1069
+ }
1070
+ });