google-apis-vmmigration_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,901 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module VmmigrationV1
24
+
25
+ class AddGroupMigrationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AppliedLicense
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CancelCloneJobRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelCutoverJobRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CancelOperationRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CloneJob
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ComputeEngineTargetDefaults
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ComputeEngineTargetDetails
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ComputeScheduling
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class CutoverJob
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class DatacenterConnector
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Empty
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class FetchInventoryResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class FinalizeMigrationRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Group
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Link
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListCloneJobsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListCutoverJobsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListDatacenterConnectorsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListGroupsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListLocationsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ListMigratingVmsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ListOperationsResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ListSourcesResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ListTargetProjectsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ListUtilizationReportsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class LocalizedMessage
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Location
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class MigratingVm
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class MigrationError
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class NetworkInterface
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class Operation
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class OperationMetadata
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class PauseMigrationRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class RemoveGroupMigrationRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class ReplicationCycle
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class ReplicationSync
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class ResumeMigrationRequest
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class SchedulePolicy
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class SchedulingNodeAffinity
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class Source
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class StartMigrationRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class Status
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class TargetProject
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class TargetVmDetails
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class UtilizationReport
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class VmUtilizationInfo
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class VmUtilizationMetrics
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class VmwareSourceDetails
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class VmwareVmDetails
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class VmwareVmsDetails
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class AddGroupMigrationRequest
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :migrating_vm, as: 'migratingVm'
335
+ end
336
+ end
337
+
338
+ class AppliedLicense
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :os_license, as: 'osLicense'
342
+ property :type, as: 'type'
343
+ end
344
+ end
345
+
346
+ class CancelCloneJobRequest
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ end
350
+ end
351
+
352
+ class CancelCutoverJobRequest
353
+ # @private
354
+ class Representation < Google::Apis::Core::JsonRepresentation
355
+ end
356
+ end
357
+
358
+ class CancelOperationRequest
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ end
362
+ end
363
+
364
+ class CloneJob
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :compute_engine_target_details, as: 'computeEngineTargetDetails', class: Google::Apis::VmmigrationV1::ComputeEngineTargetDetails, decorator: Google::Apis::VmmigrationV1::ComputeEngineTargetDetails::Representation
368
+
369
+ property :compute_engine_vm_details, as: 'computeEngineVmDetails', class: Google::Apis::VmmigrationV1::TargetVmDetails, decorator: Google::Apis::VmmigrationV1::TargetVmDetails::Representation
370
+
371
+ property :create_time, as: 'createTime'
372
+ property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
373
+
374
+ property :name, as: 'name'
375
+ property :state, as: 'state'
376
+ property :state_time, as: 'stateTime'
377
+ end
378
+ end
379
+
380
+ class ComputeEngineTargetDefaults
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :applied_license, as: 'appliedLicense', class: Google::Apis::VmmigrationV1::AppliedLicense, decorator: Google::Apis::VmmigrationV1::AppliedLicense::Representation
384
+
385
+ property :compute_scheduling, as: 'computeScheduling', class: Google::Apis::VmmigrationV1::ComputeScheduling, decorator: Google::Apis::VmmigrationV1::ComputeScheduling::Representation
386
+
387
+ property :disk_type, as: 'diskType'
388
+ hash :labels, as: 'labels'
389
+ property :license_type, as: 'licenseType'
390
+ property :machine_type, as: 'machineType'
391
+ property :machine_type_series, as: 'machineTypeSeries'
392
+ collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::VmmigrationV1::NetworkInterface, decorator: Google::Apis::VmmigrationV1::NetworkInterface::Representation
393
+
394
+ collection :network_tags, as: 'networkTags'
395
+ property :service_account, as: 'serviceAccount'
396
+ property :target_project, as: 'targetProject'
397
+ property :vm_name, as: 'vmName'
398
+ property :zone, as: 'zone'
399
+ end
400
+ end
401
+
402
+ class ComputeEngineTargetDetails
403
+ # @private
404
+ class Representation < Google::Apis::Core::JsonRepresentation
405
+ property :applied_license, as: 'appliedLicense', class: Google::Apis::VmmigrationV1::AppliedLicense, decorator: Google::Apis::VmmigrationV1::AppliedLicense::Representation
406
+
407
+ property :boot_option, as: 'bootOption'
408
+ property :compute_scheduling, as: 'computeScheduling', class: Google::Apis::VmmigrationV1::ComputeScheduling, decorator: Google::Apis::VmmigrationV1::ComputeScheduling::Representation
409
+
410
+ property :disk_type, as: 'diskType'
411
+ hash :labels, as: 'labels'
412
+ property :license_type, as: 'licenseType'
413
+ property :machine_type, as: 'machineType'
414
+ property :machine_type_series, as: 'machineTypeSeries'
415
+ hash :metadata, as: 'metadata'
416
+ collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::VmmigrationV1::NetworkInterface, decorator: Google::Apis::VmmigrationV1::NetworkInterface::Representation
417
+
418
+ collection :network_tags, as: 'networkTags'
419
+ property :project, as: 'project'
420
+ property :secure_boot, as: 'secureBoot'
421
+ property :service_account, as: 'serviceAccount'
422
+ property :vm_name, as: 'vmName'
423
+ property :zone, as: 'zone'
424
+ end
425
+ end
426
+
427
+ class ComputeScheduling
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ property :min_node_cpus, as: 'minNodeCpus'
431
+ collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::VmmigrationV1::SchedulingNodeAffinity, decorator: Google::Apis::VmmigrationV1::SchedulingNodeAffinity::Representation
432
+
433
+ property :on_host_maintenance, as: 'onHostMaintenance'
434
+ property :restart_type, as: 'restartType'
435
+ end
436
+ end
437
+
438
+ class CutoverJob
439
+ # @private
440
+ class Representation < Google::Apis::Core::JsonRepresentation
441
+ property :compute_engine_target_details, as: 'computeEngineTargetDetails', class: Google::Apis::VmmigrationV1::ComputeEngineTargetDetails, decorator: Google::Apis::VmmigrationV1::ComputeEngineTargetDetails::Representation
442
+
443
+ property :compute_engine_vm_details, as: 'computeEngineVmDetails', class: Google::Apis::VmmigrationV1::TargetVmDetails, decorator: Google::Apis::VmmigrationV1::TargetVmDetails::Representation
444
+
445
+ property :create_time, as: 'createTime'
446
+ property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
447
+
448
+ property :name, as: 'name'
449
+ property :progress_percent, as: 'progressPercent'
450
+ property :state, as: 'state'
451
+ property :state_message, as: 'stateMessage'
452
+ property :state_time, as: 'stateTime'
453
+ end
454
+ end
455
+
456
+ class DatacenterConnector
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :bucket, as: 'bucket'
460
+ property :create_time, as: 'createTime'
461
+ property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
462
+
463
+ property :name, as: 'name'
464
+ property :registration_id, as: 'registrationId'
465
+ property :service_account, as: 'serviceAccount'
466
+ property :state, as: 'state'
467
+ property :state_time, as: 'stateTime'
468
+ property :update_time, as: 'updateTime'
469
+ property :version, as: 'version'
470
+ end
471
+ end
472
+
473
+ class Empty
474
+ # @private
475
+ class Representation < Google::Apis::Core::JsonRepresentation
476
+ end
477
+ end
478
+
479
+ class FetchInventoryResponse
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :update_time, as: 'updateTime'
483
+ property :vmware_vms, as: 'vmwareVms', class: Google::Apis::VmmigrationV1::VmwareVmsDetails, decorator: Google::Apis::VmmigrationV1::VmwareVmsDetails::Representation
484
+
485
+ end
486
+ end
487
+
488
+ class FinalizeMigrationRequest
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ end
492
+ end
493
+
494
+ class Group
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :create_time, as: 'createTime'
498
+ property :description, as: 'description'
499
+ property :display_name, as: 'displayName'
500
+ property :name, as: 'name'
501
+ property :update_time, as: 'updateTime'
502
+ end
503
+ end
504
+
505
+ class Link
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ property :description, as: 'description'
509
+ property :url, as: 'url'
510
+ end
511
+ end
512
+
513
+ class ListCloneJobsResponse
514
+ # @private
515
+ class Representation < Google::Apis::Core::JsonRepresentation
516
+ collection :clone_jobs, as: 'cloneJobs', class: Google::Apis::VmmigrationV1::CloneJob, decorator: Google::Apis::VmmigrationV1::CloneJob::Representation
517
+
518
+ property :next_page_token, as: 'nextPageToken'
519
+ collection :unreachable, as: 'unreachable'
520
+ end
521
+ end
522
+
523
+ class ListCutoverJobsResponse
524
+ # @private
525
+ class Representation < Google::Apis::Core::JsonRepresentation
526
+ collection :cutover_jobs, as: 'cutoverJobs', class: Google::Apis::VmmigrationV1::CutoverJob, decorator: Google::Apis::VmmigrationV1::CutoverJob::Representation
527
+
528
+ property :next_page_token, as: 'nextPageToken'
529
+ collection :unreachable, as: 'unreachable'
530
+ end
531
+ end
532
+
533
+ class ListDatacenterConnectorsResponse
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ collection :datacenter_connectors, as: 'datacenterConnectors', class: Google::Apis::VmmigrationV1::DatacenterConnector, decorator: Google::Apis::VmmigrationV1::DatacenterConnector::Representation
537
+
538
+ property :next_page_token, as: 'nextPageToken'
539
+ collection :unreachable, as: 'unreachable'
540
+ end
541
+ end
542
+
543
+ class ListGroupsResponse
544
+ # @private
545
+ class Representation < Google::Apis::Core::JsonRepresentation
546
+ collection :groups, as: 'groups', class: Google::Apis::VmmigrationV1::Group, decorator: Google::Apis::VmmigrationV1::Group::Representation
547
+
548
+ property :next_page_token, as: 'nextPageToken'
549
+ collection :unreachable, as: 'unreachable'
550
+ end
551
+ end
552
+
553
+ class ListLocationsResponse
554
+ # @private
555
+ class Representation < Google::Apis::Core::JsonRepresentation
556
+ collection :locations, as: 'locations', class: Google::Apis::VmmigrationV1::Location, decorator: Google::Apis::VmmigrationV1::Location::Representation
557
+
558
+ property :next_page_token, as: 'nextPageToken'
559
+ end
560
+ end
561
+
562
+ class ListMigratingVmsResponse
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ collection :migrating_vms, as: 'migratingVms', class: Google::Apis::VmmigrationV1::MigratingVm, decorator: Google::Apis::VmmigrationV1::MigratingVm::Representation
566
+
567
+ property :next_page_token, as: 'nextPageToken'
568
+ collection :unreachable, as: 'unreachable'
569
+ end
570
+ end
571
+
572
+ class ListOperationsResponse
573
+ # @private
574
+ class Representation < Google::Apis::Core::JsonRepresentation
575
+ property :next_page_token, as: 'nextPageToken'
576
+ collection :operations, as: 'operations', class: Google::Apis::VmmigrationV1::Operation, decorator: Google::Apis::VmmigrationV1::Operation::Representation
577
+
578
+ end
579
+ end
580
+
581
+ class ListSourcesResponse
582
+ # @private
583
+ class Representation < Google::Apis::Core::JsonRepresentation
584
+ property :next_page_token, as: 'nextPageToken'
585
+ collection :sources, as: 'sources', class: Google::Apis::VmmigrationV1::Source, decorator: Google::Apis::VmmigrationV1::Source::Representation
586
+
587
+ collection :unreachable, as: 'unreachable'
588
+ end
589
+ end
590
+
591
+ class ListTargetProjectsResponse
592
+ # @private
593
+ class Representation < Google::Apis::Core::JsonRepresentation
594
+ property :next_page_token, as: 'nextPageToken'
595
+ collection :target_projects, as: 'targetProjects', class: Google::Apis::VmmigrationV1::TargetProject, decorator: Google::Apis::VmmigrationV1::TargetProject::Representation
596
+
597
+ collection :unreachable, as: 'unreachable'
598
+ end
599
+ end
600
+
601
+ class ListUtilizationReportsResponse
602
+ # @private
603
+ class Representation < Google::Apis::Core::JsonRepresentation
604
+ property :next_page_token, as: 'nextPageToken'
605
+ collection :unreachable, as: 'unreachable'
606
+ collection :utilization_reports, as: 'utilizationReports', class: Google::Apis::VmmigrationV1::UtilizationReport, decorator: Google::Apis::VmmigrationV1::UtilizationReport::Representation
607
+
608
+ end
609
+ end
610
+
611
+ class LocalizedMessage
612
+ # @private
613
+ class Representation < Google::Apis::Core::JsonRepresentation
614
+ property :locale, as: 'locale'
615
+ property :message, as: 'message'
616
+ end
617
+ end
618
+
619
+ class Location
620
+ # @private
621
+ class Representation < Google::Apis::Core::JsonRepresentation
622
+ property :display_name, as: 'displayName'
623
+ hash :labels, as: 'labels'
624
+ property :location_id, as: 'locationId'
625
+ hash :metadata, as: 'metadata'
626
+ property :name, as: 'name'
627
+ end
628
+ end
629
+
630
+ class MigratingVm
631
+ # @private
632
+ class Representation < Google::Apis::Core::JsonRepresentation
633
+ property :compute_engine_target_defaults, as: 'computeEngineTargetDefaults', class: Google::Apis::VmmigrationV1::ComputeEngineTargetDefaults, decorator: Google::Apis::VmmigrationV1::ComputeEngineTargetDefaults::Representation
634
+
635
+ property :create_time, as: 'createTime'
636
+ property :current_sync_info, as: 'currentSyncInfo', class: Google::Apis::VmmigrationV1::ReplicationCycle, decorator: Google::Apis::VmmigrationV1::ReplicationCycle::Representation
637
+
638
+ property :description, as: 'description'
639
+ property :display_name, as: 'displayName'
640
+ property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
641
+
642
+ property :group, as: 'group'
643
+ hash :labels, as: 'labels'
644
+ property :last_sync, as: 'lastSync', class: Google::Apis::VmmigrationV1::ReplicationSync, decorator: Google::Apis::VmmigrationV1::ReplicationSync::Representation
645
+
646
+ property :name, as: 'name'
647
+ property :policy, as: 'policy', class: Google::Apis::VmmigrationV1::SchedulePolicy, decorator: Google::Apis::VmmigrationV1::SchedulePolicy::Representation
648
+
649
+ property :source_vm_id, as: 'sourceVmId'
650
+ property :state, as: 'state'
651
+ property :state_time, as: 'stateTime'
652
+ property :update_time, as: 'updateTime'
653
+ end
654
+ end
655
+
656
+ class MigrationError
657
+ # @private
658
+ class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :action_item, as: 'actionItem', class: Google::Apis::VmmigrationV1::LocalizedMessage, decorator: Google::Apis::VmmigrationV1::LocalizedMessage::Representation
660
+
661
+ property :code, as: 'code'
662
+ property :error_message, as: 'errorMessage', class: Google::Apis::VmmigrationV1::LocalizedMessage, decorator: Google::Apis::VmmigrationV1::LocalizedMessage::Representation
663
+
664
+ property :error_time, as: 'errorTime'
665
+ collection :help_links, as: 'helpLinks', class: Google::Apis::VmmigrationV1::Link, decorator: Google::Apis::VmmigrationV1::Link::Representation
666
+
667
+ end
668
+ end
669
+
670
+ class NetworkInterface
671
+ # @private
672
+ class Representation < Google::Apis::Core::JsonRepresentation
673
+ property :external_ip, as: 'externalIp'
674
+ property :internal_ip, as: 'internalIp'
675
+ property :network, as: 'network'
676
+ property :subnetwork, as: 'subnetwork'
677
+ end
678
+ end
679
+
680
+ class Operation
681
+ # @private
682
+ class Representation < Google::Apis::Core::JsonRepresentation
683
+ property :done, as: 'done'
684
+ property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
685
+
686
+ hash :metadata, as: 'metadata'
687
+ property :name, as: 'name'
688
+ hash :response, as: 'response'
689
+ end
690
+ end
691
+
692
+ class OperationMetadata
693
+ # @private
694
+ class Representation < Google::Apis::Core::JsonRepresentation
695
+ property :api_version, as: 'apiVersion'
696
+ property :create_time, as: 'createTime'
697
+ property :end_time, as: 'endTime'
698
+ property :requested_cancellation, as: 'requestedCancellation'
699
+ property :status_message, as: 'statusMessage'
700
+ property :target, as: 'target'
701
+ property :verb, as: 'verb'
702
+ end
703
+ end
704
+
705
+ class PauseMigrationRequest
706
+ # @private
707
+ class Representation < Google::Apis::Core::JsonRepresentation
708
+ end
709
+ end
710
+
711
+ class RemoveGroupMigrationRequest
712
+ # @private
713
+ class Representation < Google::Apis::Core::JsonRepresentation
714
+ property :migrating_vm, as: 'migratingVm'
715
+ end
716
+ end
717
+
718
+ class ReplicationCycle
719
+ # @private
720
+ class Representation < Google::Apis::Core::JsonRepresentation
721
+ property :progress_percent, as: 'progressPercent'
722
+ property :start_time, as: 'startTime'
723
+ end
724
+ end
725
+
726
+ class ReplicationSync
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :last_sync_time, as: 'lastSyncTime'
730
+ end
731
+ end
732
+
733
+ class ResumeMigrationRequest
734
+ # @private
735
+ class Representation < Google::Apis::Core::JsonRepresentation
736
+ end
737
+ end
738
+
739
+ class SchedulePolicy
740
+ # @private
741
+ class Representation < Google::Apis::Core::JsonRepresentation
742
+ property :idle_duration, as: 'idleDuration'
743
+ property :skip_os_adaptation, as: 'skipOsAdaptation'
744
+ end
745
+ end
746
+
747
+ class SchedulingNodeAffinity
748
+ # @private
749
+ class Representation < Google::Apis::Core::JsonRepresentation
750
+ property :key, as: 'key'
751
+ property :operator, as: 'operator'
752
+ collection :values, as: 'values'
753
+ end
754
+ end
755
+
756
+ class Source
757
+ # @private
758
+ class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :create_time, as: 'createTime'
760
+ property :description, as: 'description'
761
+ hash :labels, as: 'labels'
762
+ property :name, as: 'name'
763
+ property :update_time, as: 'updateTime'
764
+ property :vmware, as: 'vmware', class: Google::Apis::VmmigrationV1::VmwareSourceDetails, decorator: Google::Apis::VmmigrationV1::VmwareSourceDetails::Representation
765
+
766
+ end
767
+ end
768
+
769
+ class StartMigrationRequest
770
+ # @private
771
+ class Representation < Google::Apis::Core::JsonRepresentation
772
+ end
773
+ end
774
+
775
+ class Status
776
+ # @private
777
+ class Representation < Google::Apis::Core::JsonRepresentation
778
+ property :code, as: 'code'
779
+ collection :details, as: 'details'
780
+ property :message, as: 'message'
781
+ end
782
+ end
783
+
784
+ class TargetProject
785
+ # @private
786
+ class Representation < Google::Apis::Core::JsonRepresentation
787
+ property :create_time, as: 'createTime'
788
+ property :description, as: 'description'
789
+ property :name, as: 'name'
790
+ property :project, as: 'project'
791
+ property :update_time, as: 'updateTime'
792
+ end
793
+ end
794
+
795
+ class TargetVmDetails
796
+ # @private
797
+ class Representation < Google::Apis::Core::JsonRepresentation
798
+ property :applied_license, as: 'appliedLicense', class: Google::Apis::VmmigrationV1::AppliedLicense, decorator: Google::Apis::VmmigrationV1::AppliedLicense::Representation
799
+
800
+ property :boot_option, as: 'bootOption'
801
+ property :compute_scheduling, as: 'computeScheduling', class: Google::Apis::VmmigrationV1::ComputeScheduling, decorator: Google::Apis::VmmigrationV1::ComputeScheduling::Representation
802
+
803
+ property :disk_type, as: 'diskType'
804
+ hash :labels, as: 'labels'
805
+ property :license_type, as: 'licenseType'
806
+ property :machine_type, as: 'machineType'
807
+ property :machine_type_series, as: 'machineTypeSeries'
808
+ hash :metadata, as: 'metadata'
809
+ property :name, as: 'name'
810
+ collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::VmmigrationV1::NetworkInterface, decorator: Google::Apis::VmmigrationV1::NetworkInterface::Representation
811
+
812
+ collection :network_tags, as: 'networkTags'
813
+ property :project, as: 'project'
814
+ property :secure_boot, as: 'secureBoot'
815
+ property :service_account, as: 'serviceAccount'
816
+ property :target_project, as: 'targetProject'
817
+ property :zone, as: 'zone'
818
+ end
819
+ end
820
+
821
+ class UtilizationReport
822
+ # @private
823
+ class Representation < Google::Apis::Core::JsonRepresentation
824
+ property :create_time, as: 'createTime'
825
+ property :display_name, as: 'displayName'
826
+ property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
827
+
828
+ property :frame_end_time, as: 'frameEndTime'
829
+ property :name, as: 'name'
830
+ property :state, as: 'state'
831
+ property :state_time, as: 'stateTime'
832
+ property :time_frame, as: 'timeFrame'
833
+ property :vm_count, as: 'vmCount'
834
+ collection :vms, as: 'vms', class: Google::Apis::VmmigrationV1::VmUtilizationInfo, decorator: Google::Apis::VmmigrationV1::VmUtilizationInfo::Representation
835
+
836
+ end
837
+ end
838
+
839
+ class VmUtilizationInfo
840
+ # @private
841
+ class Representation < Google::Apis::Core::JsonRepresentation
842
+ property :utilization, as: 'utilization', class: Google::Apis::VmmigrationV1::VmUtilizationMetrics, decorator: Google::Apis::VmmigrationV1::VmUtilizationMetrics::Representation
843
+
844
+ property :vm_id, as: 'vmId'
845
+ property :vmware_vm_details, as: 'vmwareVmDetails', class: Google::Apis::VmmigrationV1::VmwareVmDetails, decorator: Google::Apis::VmmigrationV1::VmwareVmDetails::Representation
846
+
847
+ end
848
+ end
849
+
850
+ class VmUtilizationMetrics
851
+ # @private
852
+ class Representation < Google::Apis::Core::JsonRepresentation
853
+ property :cpu_average_percent, as: 'cpuAveragePercent'
854
+ property :cpu_max_percent, as: 'cpuMaxPercent'
855
+ property :disk_io_rate_average_kbps, :numeric_string => true, as: 'diskIoRateAverageKbps'
856
+ property :disk_io_rate_max_kbps, :numeric_string => true, as: 'diskIoRateMaxKbps'
857
+ property :memory_average_percent, as: 'memoryAveragePercent'
858
+ property :memory_max_percent, as: 'memoryMaxPercent'
859
+ property :network_throughput_average_kbps, :numeric_string => true, as: 'networkThroughputAverageKbps'
860
+ property :network_throughput_max_kbps, :numeric_string => true, as: 'networkThroughputMaxKbps'
861
+ end
862
+ end
863
+
864
+ class VmwareSourceDetails
865
+ # @private
866
+ class Representation < Google::Apis::Core::JsonRepresentation
867
+ property :password, as: 'password'
868
+ property :thumbprint, as: 'thumbprint'
869
+ property :username, as: 'username'
870
+ property :vcenter_ip, as: 'vcenterIp'
871
+ end
872
+ end
873
+
874
+ class VmwareVmDetails
875
+ # @private
876
+ class Representation < Google::Apis::Core::JsonRepresentation
877
+ property :boot_option, as: 'bootOption'
878
+ property :committed_storage_mb, :numeric_string => true, as: 'committedStorageMb'
879
+ property :cpu_count, as: 'cpuCount'
880
+ property :datacenter_description, as: 'datacenterDescription'
881
+ property :datacenter_id, as: 'datacenterId'
882
+ property :disk_count, as: 'diskCount'
883
+ property :display_name, as: 'displayName'
884
+ property :guest_description, as: 'guestDescription'
885
+ property :memory_mb, as: 'memoryMb'
886
+ property :power_state, as: 'powerState'
887
+ property :uuid, as: 'uuid'
888
+ property :vm_id, as: 'vmId'
889
+ end
890
+ end
891
+
892
+ class VmwareVmsDetails
893
+ # @private
894
+ class Representation < Google::Apis::Core::JsonRepresentation
895
+ collection :details, as: 'details', class: Google::Apis::VmmigrationV1::VmwareVmDetails, decorator: Google::Apis::VmmigrationV1::VmwareVmDetails::Representation
896
+
897
+ end
898
+ end
899
+ end
900
+ end
901
+ end