-
Notifications
You must be signed in to change notification settings - Fork 22
/
data.proto
1347 lines (1017 loc) · 40.1 KB
/
data.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.events.cloud.vmmigration.v1;
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/error_details.proto";
import "google/rpc/status.proto";
option csharp_namespace = "Google.Events.Protobuf.Cloud.VMMigration.V1";
option php_namespace = "Google\\Events\\Cloud\\VMMigration\\V1";
option ruby_package = "Google::Events::Cloud::VMMigration::V1";
// ReplicationCycle contains information about the current replication cycle
// status.
message ReplicationCycle {
// Possible states of a replication cycle.
enum State {
// The state is unknown. This is used for API compatibility only and is not
// used by the system.
STATE_UNSPECIFIED = 0;
// The replication cycle is running.
RUNNING = 1;
// The replication cycle is paused.
PAUSED = 2;
// The replication cycle finished with errors.
FAILED = 3;
// The replication cycle finished successfully.
SUCCEEDED = 4;
}
// The identifier of the ReplicationCycle.
string name = 13;
// The cycle's ordinal number.
int32 cycle_number = 10;
// The time the replication cycle has started.
google.protobuf.Timestamp start_time = 1;
// The time the replication cycle has ended.
google.protobuf.Timestamp end_time = 6;
// The accumulated duration the replication cycle was paused.
google.protobuf.Duration total_pause_duration = 7;
// The current progress in percentage of this cycle.
// Was replaced by 'steps' field, which breaks down the cycle progression more
// accurately.
int32 progress_percent = 5;
// The cycle's steps list representing its progress.
repeated CycleStep steps = 9;
// State of the ReplicationCycle.
State state = 11;
// Provides details on the state of the cycle in case of an error.
google.rpc.Status error = 12;
// Output only. Warnings that occurred during the cycle.
repeated MigrationWarning warnings = 14;
}
// CycleStep holds information about a step progress.
message CycleStep {
oneof step {
// Initializing replication step.
InitializingReplicationStep initializing_replication = 3;
// Replicating step.
ReplicatingStep replicating = 4;
// Post processing step.
PostProcessingStep post_processing = 5;
}
// The time the cycle step has started.
google.protobuf.Timestamp start_time = 1;
// The time the cycle step has ended.
google.protobuf.Timestamp end_time = 2;
}
// InitializingReplicationStep contains specific step details.
message InitializingReplicationStep {}
// ReplicatingStep contains specific step details.
message ReplicatingStep {
// Total bytes to be handled in the step.
int64 total_bytes = 1;
// Replicated bytes in the step.
int64 replicated_bytes = 2;
// The source disks replication rate for the last 2 minutes in bytes per
// second.
int64 last_two_minutes_average_bytes_per_second = 3;
// The source disks replication rate for the last 30 minutes in bytes per
// second.
int64 last_thirty_minutes_average_bytes_per_second = 4;
}
// PostProcessingStep contains specific step details.
message PostProcessingStep {}
// ReplicationSync contain information about the last replica sync to the cloud.
message ReplicationSync {
// The most updated snapshot created time in the source that finished
// replication.
google.protobuf.Timestamp last_sync_time = 1;
}
// MigratingVm describes the VM that will be migrated from a Source environment
// and its replication state.
message MigratingVm {
// The possible values of the state/health of source VM.
enum State {
// The state was not sampled by the health checks yet.
STATE_UNSPECIFIED = 0;
// The VM in the source is being verified.
PENDING = 1;
// The source VM was verified, and it's ready to start replication.
READY = 2;
// Migration is going through the first sync cycle.
FIRST_SYNC = 3;
// The replication is active, and it's running or scheduled to run.
ACTIVE = 4;
// The source VM is being turned off, and a final replication is currently
// running.
CUTTING_OVER = 7;
// The source VM was stopped and replicated. The replication is currently
// paused.
CUTOVER = 8;
// A cutover job is active and replication cycle is running the final sync.
FINAL_SYNC = 9;
// The replication was paused by the user and no cycles are scheduled to
// run.
PAUSED = 10;
// The migrating VM is being finalized and migration resources are being
// removed.
FINALIZING = 11;
// The replication process is done. The migrating VM is finalized and no
// longer consumes billable resources.
FINALIZED = 12;
// The replication process encountered an unrecoverable error and was
// aborted.
ERROR = 13;
}
// The default configuration of the target VM that will be created in Google
// Cloud as a result of the migration.
oneof target_vm_defaults {
// Details of the target VM in Compute Engine.
ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
}
// Details about the source VM.
oneof source_vm_details {
// Output only. Details of the VM from an AWS source.
AwsSourceVmDetails aws_source_vm_details = 29;
}
// Output only. The identifier of the MigratingVm.
string name = 1;
// The unique ID of the VM in the source.
// The VM's name in vSphere can be changed, so this is not the VM's name but
// rather its moRef id. This id is of the form vm-<num>.
string source_vm_id = 2;
// The display name attached to the MigratingVm by the user.
string display_name = 18;
// The description attached to the migrating VM by the user.
string description = 3;
// The replication schedule policy.
SchedulePolicy policy = 8;
// Output only. The time the migrating VM was created (this refers to this
// resource and not to the time it was installed in the source).
google.protobuf.Timestamp create_time = 9;
// Output only. The last time the migrating VM resource was updated.
google.protobuf.Timestamp update_time = 10;
// Output only. The most updated snapshot created time in the source that
// finished replication.
ReplicationSync last_sync = 11;
// Output only. State of the MigratingVm.
State state = 23;
// Output only. The last time the migrating VM state was updated.
google.protobuf.Timestamp state_time = 22;
// Output only. Details of the current running replication cycle.
ReplicationCycle current_sync_info = 13;
// Output only. Details of the last replication cycle. This will be updated
// whenever a replication cycle is finished and is not to be confused with
// last_sync which is only updated on successful replication cycles.
ReplicationCycle last_replication_cycle = 32;
// Output only. The group this migrating vm is included in, if any. The group
// is represented by the full path of the appropriate
// [Group][google.cloud.vmmigration.v1.Group] resource.
string group = 15;
// The labels of the migrating VM.
map<string, string> labels = 16;
// Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
// performed on the migrating VM. This field holds the vm's last completed
// clone job and the vm's running clone job, if one exists.
// Note: To have this field populated you need to explicitly request it via
// the "view" parameter of the Get/List request.
repeated CloneJob recent_clone_jobs = 17;
// Output only. Provides details on the state of the Migrating VM in case of
// an error in replication.
google.rpc.Status error = 19;
// Output only. The recent cutover jobs performed on the migrating VM.
// This field holds the vm's last completed cutover job and the vm's
// running cutover job, if one exists.
// Note: To have this field populated you need to explicitly request it via
// the "view" parameter of the Get/List request.
repeated CutoverJob recent_cutover_jobs = 20;
// Output only. Provides details of future CutoverJobs of a MigratingVm.
// Set to empty when cutover forecast is unavailable.
CutoverForecast cutover_forecast = 33;
}
// CutoverForecast holds information about future CutoverJobs of a MigratingVm.
message CutoverForecast {
// Output only. Estimation of the CutoverJob duration.
google.protobuf.Duration estimated_cutover_job_duration = 1;
}
// CloneJob describes the process of creating a clone of a
// [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the
// requested target based on the latest successful uploaded snapshots.
// While the migration cycles of a MigratingVm take place, it is possible to
// verify the uploaded VM can be started in the cloud, by creating a clone. The
// clone can be created without any downtime, and it is created using the latest
// snapshots which are already in the cloud. The cloneJob is only responsible
// for its work, not its products, which means once it is finished, it will
// never touch the instance it created. It will only delete it in case of the
// CloneJob being cancelled or upon failure to clone.
message CloneJob {
// Possible states of the clone job.
enum State {
// The state is unknown. This is used for API compatibility only and is not
// used by the system.
STATE_UNSPECIFIED = 0;
// The clone job has not yet started.
PENDING = 1;
// The clone job is active and running.
ACTIVE = 2;
// The clone job finished with errors.
FAILED = 3;
// The clone job finished successfully.
SUCCEEDED = 4;
// The clone job was cancelled.
CANCELLED = 5;
// The clone job is being cancelled.
CANCELLING = 6;
// OS adaptation is running as part of the clone job to generate license.
ADAPTING_OS = 7;
}
// Details of the VM to create as the target of this clone job.
oneof target_vm_details {
// Output only. Details of the target VM in Compute Engine.
ComputeEngineTargetDetails compute_engine_target_details = 20;
}
// Output only. The time the clone job was created (as an API call, not when
// it was actually created in the target).
google.protobuf.Timestamp create_time = 1;
// Output only. The time the clone job was ended.
google.protobuf.Timestamp end_time = 22;
// Output only. The name of the clone.
string name = 3;
// Output only. State of the clone job.
State state = 12;
// Output only. The time the state was last updated.
google.protobuf.Timestamp state_time = 14;
// Output only. Provides details for the errors that led to the Clone Job's
// state.
google.rpc.Status error = 17;
// Output only. The clone steps list representing its progress.
repeated CloneStep steps = 23;
}
// CloneStep holds information about the clone step progress.
message CloneStep {
oneof step {
// Adapting OS step.
AdaptingOSStep adapting_os = 3;
// Preparing VM disks step.
PreparingVMDisksStep preparing_vm_disks = 4;
// Instantiating migrated VM step.
InstantiatingMigratedVMStep instantiating_migrated_vm = 5;
}
// The time the step has started.
google.protobuf.Timestamp start_time = 1;
// The time the step has ended.
google.protobuf.Timestamp end_time = 2;
}
// AdaptingOSStep contains specific step details.
message AdaptingOSStep {}
// PreparingVMDisksStep contains specific step details.
message PreparingVMDisksStep {}
// InstantiatingMigratedVMStep contains specific step details.
message InstantiatingMigratedVMStep {}
// CutoverJob message describes a cutover of a migrating VM. The CutoverJob is
// the operation of shutting down the VM, creating a snapshot and
// clonning the VM using the replicated snapshot.
message CutoverJob {
// Possible states of the cutover job.
enum State {
// The state is unknown. This is used for API compatibility only and is not
// used by the system.
STATE_UNSPECIFIED = 0;
// The cutover job has not yet started.
PENDING = 1;
// The cutover job finished with errors.
FAILED = 2;
// The cutover job finished successfully.
SUCCEEDED = 3;
// The cutover job was cancelled.
CANCELLED = 4;
// The cutover job is being cancelled.
CANCELLING = 5;
// The cutover job is active and running.
ACTIVE = 6;
// OS adaptation is running as part of the cutover job to generate license.
ADAPTING_OS = 7;
}
// Details of the VM to create as the target of this cutover job.
oneof target_vm_details {
// Output only. Details of the target VM in Compute Engine.
ComputeEngineTargetDetails compute_engine_target_details = 14;
}
// Output only. The time the cutover job was created (as an API call, not when
// it was actually created in the target).
google.protobuf.Timestamp create_time = 1;
// Output only. The time the cutover job had finished.
google.protobuf.Timestamp end_time = 16;
// Output only. The name of the cutover job.
string name = 3;
// Output only. State of the cutover job.
State state = 5;
// Output only. The time the state was last updated.
google.protobuf.Timestamp state_time = 6;
// Output only. The current progress in percentage of the cutover job.
int32 progress_percent = 13;
// Output only. Provides details for the errors that led to the Cutover Job's
// state.
google.rpc.Status error = 9;
// Output only. A message providing possible extra details about the current
// state.
string state_message = 10;
// Output only. The cutover steps list representing its progress.
repeated CutoverStep steps = 17;
}
// CutoverStep holds information about the cutover step progress.
message CutoverStep {
oneof step {
// A replication cycle prior cutover step.
ReplicationCycle previous_replication_cycle = 3;
// Shutting down VM step.
ShuttingDownSourceVMStep shutting_down_source_vm = 4;
// Final sync step.
ReplicationCycle final_sync = 5;
// Preparing VM disks step.
PreparingVMDisksStep preparing_vm_disks = 6;
// Instantiating migrated VM step.
InstantiatingMigratedVMStep instantiating_migrated_vm = 7;
}
// The time the step has started.
google.protobuf.Timestamp start_time = 1;
// The time the step has ended.
google.protobuf.Timestamp end_time = 2;
}
// ShuttingDownSourceVMStep contains specific step details.
message ShuttingDownSourceVMStep {}
// Source message describes a specific vm migration Source resource. It contains
// the source environment information.
message Source {
oneof source_details {
// Vmware type source details.
VmwareSourceDetails vmware = 10;
// AWS type source details.
AwsSourceDetails aws = 12;
}
// Output only. The Source name.
string name = 1;
// Output only. The create time timestamp.
google.protobuf.Timestamp create_time = 2;
// Output only. The update time timestamp.
google.protobuf.Timestamp update_time = 3;
// The labels of the source.
map<string, string> labels = 4;
// User-provided description of the source.
string description = 6;
}
// VmwareSourceDetails message describes a specific source details for the
// vmware source type.
message VmwareSourceDetails {
// The credentials username.
string username = 1;
// The ip address of the vcenter this Source represents.
string vcenter_ip = 3;
// The thumbprint representing the certificate for the vcenter.
string thumbprint = 4;
// The hostname of the vcenter.
string resolved_vcenter_host = 5;
}
// AwsSourceDetails message describes a specific source details for the
// AWS source type.
message AwsSourceDetails {
// Message describing AWS Credentials using access key id and secret.
message AccessKeyCredentials {
// AWS access key ID.
string access_key_id = 1;
}
// Tag is an AWS tag representation.
message Tag {
// Key of tag.
string key = 1;
// Value of tag.
string value = 2;
}
// The possible values of the state.
enum State {
// The state is unknown. This is used for API compatibility only and is not
// used by the system.
STATE_UNSPECIFIED = 0;
// The state was not sampled by the health checks yet.
PENDING = 1;
// The source is available but might not be usable yet due to invalid
// credentials or another reason.
// The error message will contain further details.
FAILED = 2;
// The source exists and its credentials were verified.
ACTIVE = 3;
}
oneof credentials_type {
// AWS Credentials using access key id and secret.
AccessKeyCredentials access_key_creds = 11;
}
// Immutable. The AWS region that the source VMs will be migrated from.
string aws_region = 3;
// Output only. State of the source as determined by the health check.
State state = 4;
// Output only. Provides details on the state of the Source in case of an
// error.
google.rpc.Status error = 5;
// AWS resource tags to limit the scope of the source inventory.
repeated Tag inventory_tag_list = 10;
// AWS security group names to limit the scope of the source
// inventory.
repeated string inventory_security_group_names = 7;
// User specified tags to add to every M2VM generated resource in AWS.
// These tags will be set in addition to the default tags that are set as part
// of the migration process. The tags must not begin with the reserved prefix
// `m2vm`.
map<string, string> migration_resources_user_tags = 8;
// Output only. The source's public IP. All communication initiated by this
// source will originate from this IP.
string public_ip = 9;
}
// DatacenterConnector message describes a connector between the Source and
// Google Cloud, which is installed on a vmware datacenter (an OVA vm installed
// by the user) to connect the Datacenter to Google Cloud and support vm
// migration data transfer.
message DatacenterConnector {
// The possible values of the state.
enum State {
// The state is unknown. This is used for API compatibility only and is not
// used by the system.
STATE_UNSPECIFIED = 0;
// The state was not sampled by the health checks yet.
PENDING = 1;
// The source was sampled by health checks and is not available.
OFFLINE = 2;
// The source is available but might not be usable yet due to unvalidated
// credentials or another reason. The credentials referred to are the ones
// to the Source. The error message will contain further details.
FAILED = 3;
// The source exists and its credentials were verified.
ACTIVE = 4;
}
// Output only. The time the connector was created (as an API call, not when
// it was actually installed).
google.protobuf.Timestamp create_time = 1;
// Output only. The last time the connector was updated with an API call.
google.protobuf.Timestamp update_time = 2;
// Output only. The connector's name.
string name = 3;
// Immutable. A unique key for this connector. This key is internal to the OVA
// connector and is supplied with its creation during the registration process
// and can not be modified.
string registration_id = 12;
// The service account to use in the connector when communicating with the
// cloud.
string service_account = 5;
// The version running in the DatacenterConnector. This is supplied by the OVA
// connector during the registration process and can not be modified.
string version = 6;
// Output only. The communication channel between the datacenter connector and
// Google Cloud.
string bucket = 10;
// Output only. State of the DatacenterConnector, as determined by the health
// checks.
State state = 7;
// Output only. The time the state was last set.
google.protobuf.Timestamp state_time = 8;
// Output only. Provides details on the state of the Datacenter Connector in
// case of an error.
google.rpc.Status error = 11;
// Output only. Appliance OVA version.
// This is the OVA which is manually installed by the user and contains the
// infrastructure for the automatically updatable components on the appliance.
string appliance_infrastructure_version = 13;
// Output only. Appliance last installed update bundle version.
// This is the version of the automatically updatable components on the
// appliance.
string appliance_software_version = 14;
// Output only. The available versions for updating this appliance.
AvailableUpdates available_versions = 15;
// Output only. The status of the current / last upgradeAppliance operation.
UpgradeStatus upgrade_status = 16;
}
// UpgradeStatus contains information about upgradeAppliance operation.
message UpgradeStatus {
// The possible values of the state.
enum State {
// The state was not sampled by the health checks yet.
STATE_UNSPECIFIED = 0;
// The upgrade has started.
RUNNING = 1;
// The upgrade failed.
FAILED = 2;
// The upgrade finished successfully.
SUCCEEDED = 3;
}
// The version to upgrade to.
string version = 1;
// The state of the upgradeAppliance operation.
State state = 2;
// Provides details on the state of the upgrade operation in case of an error.
google.rpc.Status error = 3;
// The time the operation was started.
google.protobuf.Timestamp start_time = 4;
// The version from which we upgraded.
string previous_version = 5;
}
// Holds informatiom about the available versions for upgrade.
message AvailableUpdates {
// The newest deployable version of the appliance.
// The current appliance can't be updated into this version, and the owner
// must manually deploy this OVA to a new appliance.
ApplianceVersion new_deployable_appliance = 1;
// The latest version for in place update.
// The current appliance can be updated to this version using the API or m4c
// CLI.
ApplianceVersion in_place_update = 2;
}
// Describes an appliance version.
message ApplianceVersion {
// The appliance version.
string version = 1;
// A link for downloading the version.
string uri = 2;
// Determine whether it's critical to upgrade the appliance to this version.
bool critical = 3;
// Link to a page that contains the version release notes.
string release_notes_uri = 4;
}
// VmwareVmDetails describes a VM in vCenter.
message VmwareVmDetails {
// Possible values for the power state of the VM.
enum PowerState {
// Power state is not specified.
POWER_STATE_UNSPECIFIED = 0;
// The VM is turned ON.
ON = 1;
// The VM is turned OFF.
OFF = 2;
// The VM is suspended. This is similar to hibernation or sleep mode.
SUSPENDED = 3;
}
// Possible values for vm boot option.
enum BootOption {
// The boot option is unknown.
BOOT_OPTION_UNSPECIFIED = 0;
// The boot option is EFI.
EFI = 1;
// The boot option is BIOS.
BIOS = 2;
}
// The VM's id in the source (note that this is not the MigratingVm's id).
// This is the moref id of the VM.
string vm_id = 1;
// The id of the vCenter's datacenter this VM is contained in.
string datacenter_id = 2;
// The descriptive name of the vCenter's datacenter this VM is contained in.
string datacenter_description = 3;
// The unique identifier of the VM in vCenter.
string uuid = 4;
// The display name of the VM. Note that this is not necessarily unique.
string display_name = 5;
// The power state of the VM at the moment list was taken.
PowerState power_state = 6;
// The number of cpus in the VM.
int32 cpu_count = 7;
// The size of the memory of the VM in MB.
int32 memory_mb = 8;
// The number of disks the VM has.
int32 disk_count = 9;
// The total size of the storage allocated to the VM in MB.
int64 committed_storage_mb = 12;
// The VM's OS. See for example
// https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
// for types of strings this might hold.
string guest_description = 11;
// Output only. The VM Boot Option.
BootOption boot_option = 13;
}
// Utilization report details the utilization (CPU, memory, etc.) of selected
// source VMs.
message UtilizationReport {
// Utilization report state.
enum State {
// The state is unknown. This value is not in use.
STATE_UNSPECIFIED = 0;
// The report is in the making.
CREATING = 1;
// Report creation completed successfully.
SUCCEEDED = 2;
// Report creation failed.
FAILED = 3;
}
// Report time frame options.
enum TimeFrame {
// The time frame was not specified and will default to WEEK.
TIME_FRAME_UNSPECIFIED = 0;
// One week.
WEEK = 1;
// One month.
MONTH = 2;
// One year.
YEAR = 3;
}
// Output only. The report unique name.
string name = 1;
// The report display name, as assigned by the user.
string display_name = 2;
// Output only. Current state of the report.
State state = 3;
// Output only. The time the state was last set.
google.protobuf.Timestamp state_time = 4;
// Output only. Provides details on the state of the report in case of an
// error.
google.rpc.Status error = 5;
// Output only. The time the report was created (this refers to the time of
// the request, not the time the report creation completed).
google.protobuf.Timestamp create_time = 6;
// Time frame of the report.
TimeFrame time_frame = 7;
// Output only. The point in time when the time frame ends. Notice that the
// time frame is counted backwards. For instance if the "frame_end_time" value
// is 2021/01/20 and the time frame is WEEK then the report covers the week
// between 2021/01/20 and 2021/01/14.
google.protobuf.Timestamp frame_end_time = 8;
// Output only. Total number of VMs included in the report.
int32 vm_count = 9;
// List of utilization information per VM.
// When sent as part of the request, the "vm_id" field is used in order to
// specify which VMs to include in the report. In that case all other fields
// are ignored.
repeated VmUtilizationInfo vms = 10;
}
// Utilization information of a single VM.
message VmUtilizationInfo {
oneof VmDetails {
// The description of the VM in a Source of type Vmware.
VmwareVmDetails vmware_vm_details = 1;
}
// The VM's ID in the source.
string vm_id = 3;
// Utilization metrics for this VM.
VmUtilizationMetrics utilization = 2;
}
// Utilization metrics values for a single VM.
message VmUtilizationMetrics {
// Max CPU usage, percent.
int32 cpu_max_percent = 9;
// Average CPU usage, percent.
int32 cpu_average_percent = 10;
// Max memory usage, percent.
int32 memory_max_percent = 11;
// Average memory usage, percent.
int32 memory_average_percent = 12;
// Max disk IO rate, in kilobytes per second.
int64 disk_io_rate_max_kbps = 13;
// Average disk IO rate, in kilobytes per second.
int64 disk_io_rate_average_kbps = 14;
// Max network throughput (combined transmit-rates and receive-rates), in
// kilobytes per second.
int64 network_throughput_max_kbps = 15;
// Average network throughput (combined transmit-rates and receive-rates), in
// kilobytes per second.
int64 network_throughput_average_kbps = 16;
}
// ComputeEngineTargetDefaults is a collection of details for creating a VM in a
// target Compute Engine project.
message ComputeEngineTargetDefaults {
// The name of the VM to create.
string vm_name = 1;
// The full path of the resource of type TargetProject which represents the
// Compute Engine project in which to create this VM.
string target_project = 2;
// The zone in which to create the VM.
string zone = 3;
// The machine type series to create the VM with.
string machine_type_series = 4;
// The machine type to create the VM with.
string machine_type = 5;
// A map of network tags to associate with the VM.
repeated string network_tags = 6;
// List of NICs connected to this VM.
repeated NetworkInterface network_interfaces = 7;
// The service account to associate the VM with.
string service_account = 8;
// The disk type to use in the VM.
ComputeEngineDiskType disk_type = 9;
// A map of labels to associate with the VM.
map<string, string> labels = 10;
// The license type to use in OS adaptation.
ComputeEngineLicenseType license_type = 11;
// Output only. The OS license returned from the adaptation module report.
AppliedLicense applied_license = 12;
// Compute instance scheduling information (if empty default is used).
ComputeScheduling compute_scheduling = 13;
// Defines whether the instance has Secure Boot enabled.
// This can be set to true only if the vm boot option is EFI.
bool secure_boot = 14;
// Output only. The VM Boot Option, as set in the source vm.
ComputeEngineBootOption boot_option = 15;
// The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
// Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
// The hostname to assign to the VM.
string hostname = 18;
}
// ComputeEngineTargetDetails is a collection of details for creating a VM in a
// target Compute Engine project.
message ComputeEngineTargetDetails {
// The name of the VM to create.
string vm_name = 1;
// The Google Cloud target project ID or project name.
string project = 2;
// The zone in which to create the VM.
string zone = 3;
// The machine type series to create the VM with.
string machine_type_series = 4;
// The machine type to create the VM with.
string machine_type = 5;
// A map of network tags to associate with the VM.
repeated string network_tags = 6;
// List of NICs connected to this VM.
repeated NetworkInterface network_interfaces = 7;
// The service account to associate the VM with.
string service_account = 8;
// The disk type to use in the VM.
ComputeEngineDiskType disk_type = 9;
// A map of labels to associate with the VM.
map<string, string> labels = 10;
// The license type to use in OS adaptation.