/
types.go
1679 lines (1371 loc) · 63.4 KB
/
types.go
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 (c) 2014-2023 VMware, Inc. All Rights Reserved.
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
http://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.
*/
package types
import (
"reflect"
"time"
"github.com/vmware/govmomi/vim25/types"
)
// A boxed array of `VslmDatastoreSyncStatus`. To be used in `Any` placeholders.
type ArrayOfVslmDatastoreSyncStatus struct {
VslmDatastoreSyncStatus []VslmDatastoreSyncStatus `xml:"VslmDatastoreSyncStatus,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmDatastoreSyncStatus", reflect.TypeOf((*ArrayOfVslmDatastoreSyncStatus)(nil)).Elem())
}
// A boxed array of `VslmQueryDatastoreInfoResult`. To be used in `Any` placeholders.
type ArrayOfVslmQueryDatastoreInfoResult struct {
VslmQueryDatastoreInfoResult []VslmQueryDatastoreInfoResult `xml:"VslmQueryDatastoreInfoResult,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmQueryDatastoreInfoResult", reflect.TypeOf((*ArrayOfVslmQueryDatastoreInfoResult)(nil)).Elem())
}
// A boxed array of `VslmVsoVStorageObjectAssociations`. To be used in `Any` placeholders.
type ArrayOfVslmVsoVStorageObjectAssociations struct {
VslmVsoVStorageObjectAssociations []VslmVsoVStorageObjectAssociations `xml:"VslmVsoVStorageObjectAssociations,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectAssociations", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectAssociations)(nil)).Elem())
}
// A boxed array of `VslmVsoVStorageObjectAssociationsVmDiskAssociation`. To be used in `Any` placeholders.
type ArrayOfVslmVsoVStorageObjectAssociationsVmDiskAssociation struct {
VslmVsoVStorageObjectAssociationsVmDiskAssociation []VslmVsoVStorageObjectAssociationsVmDiskAssociation `xml:"VslmVsoVStorageObjectAssociationsVmDiskAssociation,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectAssociationsVmDiskAssociation", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectAssociationsVmDiskAssociation)(nil)).Elem())
}
// A boxed array of `VslmVsoVStorageObjectQuerySpec`. To be used in `Any` placeholders.
type ArrayOfVslmVsoVStorageObjectQuerySpec struct {
VslmVsoVStorageObjectQuerySpec []VslmVsoVStorageObjectQuerySpec `xml:"VslmVsoVStorageObjectQuerySpec,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectQuerySpec", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectQuerySpec)(nil)).Elem())
}
// A boxed array of `VslmVsoVStorageObjectResult`. To be used in `Any` placeholders.
type ArrayOfVslmVsoVStorageObjectResult struct {
VslmVsoVStorageObjectResult []VslmVsoVStorageObjectResult `xml:"VslmVsoVStorageObjectResult,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectResult", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectResult)(nil)).Elem())
}
// A boxed array of `VslmVsoVStorageObjectSnapshotResult`. To be used in `Any` placeholders.
type ArrayOfVslmVsoVStorageObjectSnapshotResult struct {
VslmVsoVStorageObjectSnapshotResult []VslmVsoVStorageObjectSnapshotResult `xml:"VslmVsoVStorageObjectSnapshotResult,omitempty" json:"_value"`
}
func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectSnapshotResult", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectSnapshotResult)(nil)).Elem())
}
type RetrieveContent RetrieveContentRequestType
func init() {
types.Add("vslm:RetrieveContent", reflect.TypeOf((*RetrieveContent)(nil)).Elem())
}
type RetrieveContentRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
}
func init() {
types.Add("vslm:RetrieveContentRequestType", reflect.TypeOf((*RetrieveContentRequestType)(nil)).Elem())
}
type RetrieveContentResponse struct {
Returnval VslmServiceInstanceContent `xml:"returnval" json:"returnval"`
}
// This data object type describes system information.
//
// This structure may be used only with operations rendered under `/vslm`.
type VslmAboutInfo struct {
types.DynamicData
Name string `xml:"name" json:"name"`
FullName string `xml:"fullName" json:"fullName"`
Vendor string `xml:"vendor" json:"vendor"`
ApiVersion string `xml:"apiVersion" json:"apiVersion"`
InstanceUuid string `xml:"instanceUuid" json:"instanceUuid"`
}
func init() {
types.Add("vslm:VslmAboutInfo", reflect.TypeOf((*VslmAboutInfo)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmAttachDisk_Task`.
type VslmAttachDiskRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual disk to be operated. See
// `ID`
Id types.ID `xml:"id" json:"id"`
// The virtual machine where the virtual disk is to be attached.
//
// Refers instance of `VirtualMachine`.
Vm types.ManagedObjectReference `xml:"vm" json:"vm"`
// Key of the controller the disk will connect to.
// It can be unset if there is only one controller
// (SCSI or SATA) with the available slot in the
// virtual machine. If there are multiple SCSI or
// SATA controllers available, user must specify
// the controller; if there is no available
// controllers, a `MissingController`
// fault will be thrown.
ControllerKey int32 `xml:"controllerKey,omitempty" json:"controllerKey,omitempty"`
// The unit number of the attached disk on its controller.
// If unset, the next available slot on the specified
// controller or the only available controller will be
// assigned to the attached disk.
UnitNumber *int32 `xml:"unitNumber" json:"unitNumber,omitempty"`
}
func init() {
types.Add("vslm:VslmAttachDiskRequestType", reflect.TypeOf((*VslmAttachDiskRequestType)(nil)).Elem())
}
type VslmAttachDisk_Task VslmAttachDiskRequestType
func init() {
types.Add("vslm:VslmAttachDisk_Task", reflect.TypeOf((*VslmAttachDisk_Task)(nil)).Elem())
}
type VslmAttachDisk_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type VslmAttachTagToVStorageObject VslmAttachTagToVStorageObjectRequestType
func init() {
types.Add("vslm:VslmAttachTagToVStorageObject", reflect.TypeOf((*VslmAttachTagToVStorageObject)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmAttachTagToVStorageObject`.
type VslmAttachTagToVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The identifier(ID) of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The category to which the tag belongs.
Category string `xml:"category" json:"category"`
// The tag which has to be associated with the virtual storage
// object.
Tag string `xml:"tag" json:"tag"`
}
func init() {
types.Add("vslm:VslmAttachTagToVStorageObjectRequestType", reflect.TypeOf((*VslmAttachTagToVStorageObjectRequestType)(nil)).Elem())
}
type VslmAttachTagToVStorageObjectResponse struct {
}
type VslmCancelTask VslmCancelTaskRequestType
func init() {
types.Add("vslm:VslmCancelTask", reflect.TypeOf((*VslmCancelTask)(nil)).Elem())
}
type VslmCancelTaskRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
}
func init() {
types.Add("vslm:VslmCancelTaskRequestType", reflect.TypeOf((*VslmCancelTaskRequestType)(nil)).Elem())
}
type VslmCancelTaskResponse struct {
}
type VslmClearVStorageObjectControlFlags VslmClearVStorageObjectControlFlagsRequestType
func init() {
types.Add("vslm:VslmClearVStorageObjectControlFlags", reflect.TypeOf((*VslmClearVStorageObjectControlFlags)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmClearVStorageObjectControlFlags`.
type VslmClearVStorageObjectControlFlagsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// control flags enum array to be cleared on the
// VStorageObject. All control flags not included
// in the array remain intact.
ControlFlags []string `xml:"controlFlags,omitempty" json:"controlFlags,omitempty"`
}
func init() {
types.Add("vslm:VslmClearVStorageObjectControlFlagsRequestType", reflect.TypeOf((*VslmClearVStorageObjectControlFlagsRequestType)(nil)).Elem())
}
type VslmClearVStorageObjectControlFlagsResponse struct {
}
// The parameters of `VslmVStorageObjectManager.VslmCloneVStorageObject_Task`.
type VslmCloneVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The specification for cloning the virtual storage
// object.
Spec types.VslmCloneSpec `xml:"spec" json:"spec"`
}
func init() {
types.Add("vslm:VslmCloneVStorageObjectRequestType", reflect.TypeOf((*VslmCloneVStorageObjectRequestType)(nil)).Elem())
}
type VslmCloneVStorageObject_Task VslmCloneVStorageObjectRequestType
func init() {
types.Add("vslm:VslmCloneVStorageObject_Task", reflect.TypeOf((*VslmCloneVStorageObject_Task)(nil)).Elem())
}
type VslmCloneVStorageObject_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
// The parameters of `VslmVStorageObjectManager.VslmCreateDiskFromSnapshot_Task`.
type VslmCreateDiskFromSnapshotRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The ID of the snapshot of the virtual storage object.
SnapshotId types.ID `xml:"snapshotId" json:"snapshotId"`
// A user friendly name to be associated with the new disk.
Name string `xml:"name" json:"name"`
// SPBM Profile requirement on the new virtual storage object.
// If not specified datastore default policy would be
// assigned.
Profile []types.VirtualMachineProfileSpec `xml:"profile,omitempty" json:"profile,omitempty"`
// Crypto information of the new disk.
Crypto *types.CryptoSpec `xml:"crypto,omitempty" json:"crypto,omitempty"`
// Relative location in the specified datastore where disk needs
// to be created. If not specified disk gets created at the
// defualt VStorageObject location on the specified datastore.
Path string `xml:"path,omitempty" json:"path,omitempty"`
}
func init() {
types.Add("vslm:VslmCreateDiskFromSnapshotRequestType", reflect.TypeOf((*VslmCreateDiskFromSnapshotRequestType)(nil)).Elem())
}
type VslmCreateDiskFromSnapshot_Task VslmCreateDiskFromSnapshotRequestType
func init() {
types.Add("vslm:VslmCreateDiskFromSnapshot_Task", reflect.TypeOf((*VslmCreateDiskFromSnapshot_Task)(nil)).Elem())
}
type VslmCreateDiskFromSnapshot_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
// The parameters of `VslmVStorageObjectManager.VslmCreateDisk_Task`.
type VslmCreateDiskRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The specification of the virtual storage object
// to be created.
Spec types.VslmCreateSpec `xml:"spec" json:"spec"`
}
func init() {
types.Add("vslm:VslmCreateDiskRequestType", reflect.TypeOf((*VslmCreateDiskRequestType)(nil)).Elem())
}
type VslmCreateDisk_Task VslmCreateDiskRequestType
func init() {
types.Add("vslm:VslmCreateDisk_Task", reflect.TypeOf((*VslmCreateDisk_Task)(nil)).Elem())
}
type VslmCreateDisk_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
// The parameters of `VslmVStorageObjectManager.VslmCreateSnapshot_Task`.
type VslmCreateSnapshotRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// A short description to be associated with the snapshot.
Description string `xml:"description" json:"description"`
}
func init() {
types.Add("vslm:VslmCreateSnapshotRequestType", reflect.TypeOf((*VslmCreateSnapshotRequestType)(nil)).Elem())
}
type VslmCreateSnapshot_Task VslmCreateSnapshotRequestType
func init() {
types.Add("vslm:VslmCreateSnapshot_Task", reflect.TypeOf((*VslmCreateSnapshot_Task)(nil)).Elem())
}
type VslmCreateSnapshot_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
// DatastoreSyncStatus shows the catalog sync status of a datastore
// and is returned as a result of the VStorageObjectManager
// getGlobalCatalogSyncStatus API.
//
// When syncVClock == objectVClock the global catalog is in sync with the
// local catalog
//
// This structure may be used only with operations rendered under `/vslm`.
type VslmDatastoreSyncStatus struct {
types.DynamicData
// The datastore URL as specified in `DatastoreInfo.url`
DatastoreURL string `xml:"datastoreURL" json:"datastoreURL"`
ObjectVClock int64 `xml:"objectVClock" json:"objectVClock"`
SyncVClock int64 `xml:"syncVClock" json:"syncVClock"`
// The time representing the last successfull sync of the datastore.
SyncTime *time.Time `xml:"syncTime" json:"syncTime,omitempty"`
// The number of retries for the Datastore synchronization in failure
// cases.
NumberOfRetries int32 `xml:"numberOfRetries,omitempty" json:"numberOfRetries,omitempty"`
// The fault is set in case of error conditions.
//
// If the fault is set,
// the objectVClock and syncVClock will be set to -1L.
// Possible Faults:
// SyncFault If specified datastoreURL failed to sync.
Error *types.LocalizedMethodFault `xml:"error,omitempty" json:"error,omitempty"`
}
func init() {
types.Add("vslm:VslmDatastoreSyncStatus", reflect.TypeOf((*VslmDatastoreSyncStatus)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmDeleteSnapshot_Task`.
type VslmDeleteSnapshotRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The ID of the snapshot of a virtual storage object.
SnapshotId types.ID `xml:"snapshotId" json:"snapshotId"`
}
func init() {
types.Add("vslm:VslmDeleteSnapshotRequestType", reflect.TypeOf((*VslmDeleteSnapshotRequestType)(nil)).Elem())
}
type VslmDeleteSnapshot_Task VslmDeleteSnapshotRequestType
func init() {
types.Add("vslm:VslmDeleteSnapshot_Task", reflect.TypeOf((*VslmDeleteSnapshot_Task)(nil)).Elem())
}
type VslmDeleteSnapshot_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
// The parameters of `VslmVStorageObjectManager.VslmDeleteVStorageObject_Task`.
type VslmDeleteVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object to be deleted.
Id types.ID `xml:"id" json:"id"`
}
func init() {
types.Add("vslm:VslmDeleteVStorageObjectRequestType", reflect.TypeOf((*VslmDeleteVStorageObjectRequestType)(nil)).Elem())
}
type VslmDeleteVStorageObject_Task VslmDeleteVStorageObjectRequestType
func init() {
types.Add("vslm:VslmDeleteVStorageObject_Task", reflect.TypeOf((*VslmDeleteVStorageObject_Task)(nil)).Elem())
}
type VslmDeleteVStorageObject_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type VslmDetachTagFromVStorageObject VslmDetachTagFromVStorageObjectRequestType
func init() {
types.Add("vslm:VslmDetachTagFromVStorageObject", reflect.TypeOf((*VslmDetachTagFromVStorageObject)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmDetachTagFromVStorageObject`.
type VslmDetachTagFromVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The identifier(ID) of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The category to which the tag belongs.
Category string `xml:"category" json:"category"`
// The tag which has to be disassociated with the virtual storage
// object.
Tag string `xml:"tag" json:"tag"`
}
func init() {
types.Add("vslm:VslmDetachTagFromVStorageObjectRequestType", reflect.TypeOf((*VslmDetachTagFromVStorageObjectRequestType)(nil)).Elem())
}
type VslmDetachTagFromVStorageObjectResponse struct {
}
// The parameters of `VslmVStorageObjectManager.VslmExtendDisk_Task`.
type VslmExtendDiskRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual disk to be extended.
Id types.ID `xml:"id" json:"id"`
// The new capacity of the virtual disk in MB.
NewCapacityInMB int64 `xml:"newCapacityInMB" json:"newCapacityInMB"`
}
func init() {
types.Add("vslm:VslmExtendDiskRequestType", reflect.TypeOf((*VslmExtendDiskRequestType)(nil)).Elem())
}
type VslmExtendDisk_Task VslmExtendDiskRequestType
func init() {
types.Add("vslm:VslmExtendDisk_Task", reflect.TypeOf((*VslmExtendDisk_Task)(nil)).Elem())
}
type VslmExtendDisk_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
// The super class for all VSLM Faults.
//
// This structure may be used only with operations rendered under `/vslm`.
type VslmFault struct {
types.MethodFault
// The fault message if available.
Msg string `xml:"msg,omitempty" json:"msg,omitempty"`
}
func init() {
types.Add("vslm:VslmFault", reflect.TypeOf((*VslmFault)(nil)).Elem())
}
type VslmFaultFault BaseVslmFault
func init() {
types.Add("vslm:VslmFaultFault", reflect.TypeOf((*VslmFaultFault)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmInflateDisk_Task`.
type VslmInflateDiskRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual disk to be inflated.
Id types.ID `xml:"id" json:"id"`
}
func init() {
types.Add("vslm:VslmInflateDiskRequestType", reflect.TypeOf((*VslmInflateDiskRequestType)(nil)).Elem())
}
type VslmInflateDisk_Task VslmInflateDiskRequestType
func init() {
types.Add("vslm:VslmInflateDisk_Task", reflect.TypeOf((*VslmInflateDisk_Task)(nil)).Elem())
}
type VslmInflateDisk_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type VslmListTagsAttachedToVStorageObject VslmListTagsAttachedToVStorageObjectRequestType
func init() {
types.Add("vslm:VslmListTagsAttachedToVStorageObject", reflect.TypeOf((*VslmListTagsAttachedToVStorageObject)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmListTagsAttachedToVStorageObject`.
type VslmListTagsAttachedToVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
}
func init() {
types.Add("vslm:VslmListTagsAttachedToVStorageObjectRequestType", reflect.TypeOf((*VslmListTagsAttachedToVStorageObjectRequestType)(nil)).Elem())
}
type VslmListTagsAttachedToVStorageObjectResponse struct {
Returnval []types.VslmTagEntry `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmListVStorageObjectForSpec VslmListVStorageObjectForSpecRequestType
func init() {
types.Add("vslm:VslmListVStorageObjectForSpec", reflect.TypeOf((*VslmListVStorageObjectForSpec)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmListVStorageObjectForSpec`.
type VslmListVStorageObjectForSpecRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// Query defined using array of
// `VslmVsoVStorageObjectQuerySpec` objects.
Query []VslmVsoVStorageObjectQuerySpec `xml:"query,omitempty" json:"query,omitempty"`
// Maximum number of virtual storage object IDs to return.
MaxResult int32 `xml:"maxResult" json:"maxResult"`
}
func init() {
types.Add("vslm:VslmListVStorageObjectForSpecRequestType", reflect.TypeOf((*VslmListVStorageObjectForSpecRequestType)(nil)).Elem())
}
type VslmListVStorageObjectForSpecResponse struct {
Returnval *VslmVsoVStorageObjectQueryResult `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmListVStorageObjectsAttachedToTag VslmListVStorageObjectsAttachedToTagRequestType
func init() {
types.Add("vslm:VslmListVStorageObjectsAttachedToTag", reflect.TypeOf((*VslmListVStorageObjectsAttachedToTag)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmListVStorageObjectsAttachedToTag`.
type VslmListVStorageObjectsAttachedToTagRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The category to which the tag belongs.
Category string `xml:"category" json:"category"`
// The tag to be queried.
Tag string `xml:"tag" json:"tag"`
}
func init() {
types.Add("vslm:VslmListVStorageObjectsAttachedToTagRequestType", reflect.TypeOf((*VslmListVStorageObjectsAttachedToTagRequestType)(nil)).Elem())
}
type VslmListVStorageObjectsAttachedToTagResponse struct {
Returnval []types.ID `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmLoginByToken VslmLoginByTokenRequestType
func init() {
types.Add("vslm:VslmLoginByToken", reflect.TypeOf((*VslmLoginByToken)(nil)).Elem())
}
// The parameters of `VslmSessionManager.VslmLoginByToken`.
type VslmLoginByTokenRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The delegated token will be retrieved by the
// client and delegated to VSLM. VSLM will use this token, on user's
// behalf, to login to VC for authorization purposes. It is necessary
// to convert the token to XML because the SAML token itself is
// not a VMODL Data Object and cannot be used as a parameter.
DelegatedTokenXml string `xml:"delegatedTokenXml" json:"delegatedTokenXml"`
}
func init() {
types.Add("vslm:VslmLoginByTokenRequestType", reflect.TypeOf((*VslmLoginByTokenRequestType)(nil)).Elem())
}
type VslmLoginByTokenResponse struct {
}
type VslmLogout VslmLogoutRequestType
func init() {
types.Add("vslm:VslmLogout", reflect.TypeOf((*VslmLogout)(nil)).Elem())
}
type VslmLogoutRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
}
func init() {
types.Add("vslm:VslmLogoutRequestType", reflect.TypeOf((*VslmLogoutRequestType)(nil)).Elem())
}
type VslmLogoutResponse struct {
}
type VslmQueryChangedDiskAreas VslmQueryChangedDiskAreasRequestType
func init() {
types.Add("vslm:VslmQueryChangedDiskAreas", reflect.TypeOf((*VslmQueryChangedDiskAreas)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmQueryChangedDiskAreas`.
type VslmQueryChangedDiskAreasRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The ID of the snapshot of a virtual storage object for
// which changes that have been made since "changeId"
// should be computed.
SnapshotId types.ID `xml:"snapshotId" json:"snapshotId"`
// Start Offset in bytes at which to start computing
// changes. Typically, callers will make multiple calls
// to this function, starting with startOffset 0 and then
// examine the "length" property in the returned
// DiskChangeInfo structure, repeatedly calling
// queryChangedDiskAreas until a map for the entire
// virtual disk has been obtained.
StartOffset int64 `xml:"startOffset" json:"startOffset"`
// Identifier referring to a point in the past that should
// be used as the point in time at which to begin including
// changes to the disk in the result. A typical use case
// would be a backup application obtaining a changeId from
// a virtual disk's backing info when performing a backup.
// When a subsequent incremental backup is to be performed,
// this change Id can be used to obtain a list of changed
// areas on disk.
ChangeId string `xml:"changeId" json:"changeId"`
}
func init() {
types.Add("vslm:VslmQueryChangedDiskAreasRequestType", reflect.TypeOf((*VslmQueryChangedDiskAreasRequestType)(nil)).Elem())
}
type VslmQueryChangedDiskAreasResponse struct {
Returnval types.DiskChangeInfo `xml:"returnval" json:"returnval"`
}
type VslmQueryDatastoreInfo VslmQueryDatastoreInfoRequestType
func init() {
types.Add("vslm:VslmQueryDatastoreInfo", reflect.TypeOf((*VslmQueryDatastoreInfo)(nil)).Elem())
}
// The parameters of `VslmStorageLifecycleManager.VslmQueryDatastoreInfo`.
type VslmQueryDatastoreInfoRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The datastore URL as specified in
// `DatastoreInfo.url`
DatastoreUrl string `xml:"datastoreUrl" json:"datastoreUrl"`
}
func init() {
types.Add("vslm:VslmQueryDatastoreInfoRequestType", reflect.TypeOf((*VslmQueryDatastoreInfoRequestType)(nil)).Elem())
}
type VslmQueryDatastoreInfoResponse struct {
Returnval []VslmQueryDatastoreInfoResult `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
// The `VslmQueryDatastoreInfoResult` provides mapping information
// between `Datacenter` and `Datastore`.
//
// This API is returned as a result of
// `VslmStorageLifecycleManager.VslmQueryDatastoreInfo` invocation.
//
// This structure may be used only with operations rendered under `/vslm`.
type VslmQueryDatastoreInfoResult struct {
types.DynamicData
// Indicates the datacenter containing the
// `VslmQueryDatastoreInfoResult.datastore`.
//
// Refers instance of `Datacenter`.
Datacenter types.ManagedObjectReference `xml:"datacenter" json:"datacenter"`
// Indicates the datastore which is contained within the
// `VslmQueryDatastoreInfoResult.datacenter`.
//
// Refers instance of `Datastore`.
Datastore types.ManagedObjectReference `xml:"datastore" json:"datastore"`
}
func init() {
types.Add("vslm:VslmQueryDatastoreInfoResult", reflect.TypeOf((*VslmQueryDatastoreInfoResult)(nil)).Elem())
}
type VslmQueryGlobalCatalogSyncStatus VslmQueryGlobalCatalogSyncStatusRequestType
func init() {
types.Add("vslm:VslmQueryGlobalCatalogSyncStatus", reflect.TypeOf((*VslmQueryGlobalCatalogSyncStatus)(nil)).Elem())
}
type VslmQueryGlobalCatalogSyncStatusForDatastore VslmQueryGlobalCatalogSyncStatusForDatastoreRequestType
func init() {
types.Add("vslm:VslmQueryGlobalCatalogSyncStatusForDatastore", reflect.TypeOf((*VslmQueryGlobalCatalogSyncStatusForDatastore)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmQueryGlobalCatalogSyncStatusForDatastore`.
type VslmQueryGlobalCatalogSyncStatusForDatastoreRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// URL of the datastore to check synchronization status for
DatastoreURL string `xml:"datastoreURL" json:"datastoreURL"`
}
func init() {
types.Add("vslm:VslmQueryGlobalCatalogSyncStatusForDatastoreRequestType", reflect.TypeOf((*VslmQueryGlobalCatalogSyncStatusForDatastoreRequestType)(nil)).Elem())
}
type VslmQueryGlobalCatalogSyncStatusForDatastoreResponse struct {
Returnval *VslmDatastoreSyncStatus `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmQueryGlobalCatalogSyncStatusRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
}
func init() {
types.Add("vslm:VslmQueryGlobalCatalogSyncStatusRequestType", reflect.TypeOf((*VslmQueryGlobalCatalogSyncStatusRequestType)(nil)).Elem())
}
type VslmQueryGlobalCatalogSyncStatusResponse struct {
Returnval []VslmDatastoreSyncStatus `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmQueryInfo VslmQueryInfoRequestType
func init() {
types.Add("vslm:VslmQueryInfo", reflect.TypeOf((*VslmQueryInfo)(nil)).Elem())
}
type VslmQueryInfoRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
}
func init() {
types.Add("vslm:VslmQueryInfoRequestType", reflect.TypeOf((*VslmQueryInfoRequestType)(nil)).Elem())
}
type VslmQueryInfoResponse struct {
Returnval VslmTaskInfo `xml:"returnval" json:"returnval"`
}
type VslmQueryTaskResult VslmQueryTaskResultRequestType
func init() {
types.Add("vslm:VslmQueryTaskResult", reflect.TypeOf((*VslmQueryTaskResult)(nil)).Elem())
}
type VslmQueryTaskResultRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
}
func init() {
types.Add("vslm:VslmQueryTaskResultRequestType", reflect.TypeOf((*VslmQueryTaskResultRequestType)(nil)).Elem())
}
type VslmQueryTaskResultResponse struct {
Returnval types.AnyType `xml:"returnval,omitempty,typeattr" json:"returnval,omitempty"`
}
// The parameters of `VslmVStorageObjectManager.VslmReconcileDatastoreInventory_Task`.
type VslmReconcileDatastoreInventoryRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The datastore that needs to be reconciled.
//
// Refers instance of `Datastore`.
Datastore types.ManagedObjectReference `xml:"datastore" json:"datastore"`
}
func init() {
types.Add("vslm:VslmReconcileDatastoreInventoryRequestType", reflect.TypeOf((*VslmReconcileDatastoreInventoryRequestType)(nil)).Elem())
}
type VslmReconcileDatastoreInventory_Task VslmReconcileDatastoreInventoryRequestType
func init() {
types.Add("vslm:VslmReconcileDatastoreInventory_Task", reflect.TypeOf((*VslmReconcileDatastoreInventory_Task)(nil)).Elem())
}
type VslmReconcileDatastoreInventory_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type VslmRegisterDisk VslmRegisterDiskRequestType
func init() {
types.Add("vslm:VslmRegisterDisk", reflect.TypeOf((*VslmRegisterDisk)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRegisterDisk`.
type VslmRegisterDiskRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// URL path to the virtual disk.
Path string `xml:"path" json:"path"`
// The descriptive name of the disk object. If
// unset the name will be automatically determined
// from the path. @see vim.vslm.BaseConfigInfo.name
Name string `xml:"name,omitempty" json:"name,omitempty"`
}
func init() {
types.Add("vslm:VslmRegisterDiskRequestType", reflect.TypeOf((*VslmRegisterDiskRequestType)(nil)).Elem())
}
type VslmRegisterDiskResponse struct {
Returnval types.VStorageObject `xml:"returnval" json:"returnval"`
}
// The parameters of `VslmVStorageObjectManager.VslmRelocateVStorageObject_Task`.
type VslmRelocateVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The specification for relocation of the virtual
// storage object.
Spec types.VslmRelocateSpec `xml:"spec" json:"spec"`
}
func init() {
types.Add("vslm:VslmRelocateVStorageObjectRequestType", reflect.TypeOf((*VslmRelocateVStorageObjectRequestType)(nil)).Elem())
}
type VslmRelocateVStorageObject_Task VslmRelocateVStorageObjectRequestType
func init() {
types.Add("vslm:VslmRelocateVStorageObject_Task", reflect.TypeOf((*VslmRelocateVStorageObject_Task)(nil)).Elem())
}
type VslmRelocateVStorageObject_TaskResponse struct {
Returnval types.ManagedObjectReference `xml:"returnval" json:"returnval"`
}
type VslmRenameVStorageObject VslmRenameVStorageObjectRequestType
func init() {
types.Add("vslm:VslmRenameVStorageObject", reflect.TypeOf((*VslmRenameVStorageObject)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRenameVStorageObject`.
type VslmRenameVStorageObjectRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object to be renamed.
Id types.ID `xml:"id" json:"id"`
// The new name for the virtual storage object.
Name string `xml:"name" json:"name"`
}
func init() {
types.Add("vslm:VslmRenameVStorageObjectRequestType", reflect.TypeOf((*VslmRenameVStorageObjectRequestType)(nil)).Elem())
}
type VslmRenameVStorageObjectResponse struct {
}
type VslmRetrieveSnapshotDetails VslmRetrieveSnapshotDetailsRequestType
func init() {
types.Add("vslm:VslmRetrieveSnapshotDetails", reflect.TypeOf((*VslmRetrieveSnapshotDetails)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRetrieveSnapshotDetails`.
type VslmRetrieveSnapshotDetailsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The ID of the snapshot of a virtual storage object.
SnapshotId types.ID `xml:"snapshotId" json:"snapshotId"`
}
func init() {
types.Add("vslm:VslmRetrieveSnapshotDetailsRequestType", reflect.TypeOf((*VslmRetrieveSnapshotDetailsRequestType)(nil)).Elem())
}
type VslmRetrieveSnapshotDetailsResponse struct {
Returnval types.VStorageObjectSnapshotDetails `xml:"returnval" json:"returnval"`
}
type VslmRetrieveSnapshotInfo VslmRetrieveSnapshotInfoRequestType
func init() {
types.Add("vslm:VslmRetrieveSnapshotInfo", reflect.TypeOf((*VslmRetrieveSnapshotInfo)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRetrieveSnapshotInfo`.
type VslmRetrieveSnapshotInfoRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
}
func init() {
types.Add("vslm:VslmRetrieveSnapshotInfoRequestType", reflect.TypeOf((*VslmRetrieveSnapshotInfoRequestType)(nil)).Elem())
}
type VslmRetrieveSnapshotInfoResponse struct {
Returnval types.VStorageObjectSnapshotInfo `xml:"returnval" json:"returnval"`
}
type VslmRetrieveVStorageInfrastructureObjectPolicy VslmRetrieveVStorageInfrastructureObjectPolicyRequestType
func init() {
types.Add("vslm:VslmRetrieveVStorageInfrastructureObjectPolicy", reflect.TypeOf((*VslmRetrieveVStorageInfrastructureObjectPolicy)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRetrieveVStorageInfrastructureObjectPolicy`.
type VslmRetrieveVStorageInfrastructureObjectPolicyRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// Datastore on which policy needs to be retrieved.
//
// Refers instance of `Datastore`.
Datastore types.ManagedObjectReference `xml:"datastore" json:"datastore"`
}
func init() {
types.Add("vslm:VslmRetrieveVStorageInfrastructureObjectPolicyRequestType", reflect.TypeOf((*VslmRetrieveVStorageInfrastructureObjectPolicyRequestType)(nil)).Elem())
}
type VslmRetrieveVStorageInfrastructureObjectPolicyResponse struct {
Returnval []types.VslmInfrastructureObjectPolicy `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmRetrieveVStorageObject VslmRetrieveVStorageObjectRequestType
func init() {
types.Add("vslm:VslmRetrieveVStorageObject", reflect.TypeOf((*VslmRetrieveVStorageObject)(nil)).Elem())
}
type VslmRetrieveVStorageObjectAssociations VslmRetrieveVStorageObjectAssociationsRequestType
func init() {
types.Add("vslm:VslmRetrieveVStorageObjectAssociations", reflect.TypeOf((*VslmRetrieveVStorageObjectAssociations)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRetrieveVStorageObjectAssociations`.
type VslmRetrieveVStorageObjectAssociationsRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The IDs of the virtual storage objects of the query.
Ids []types.ID `xml:"ids,omitempty" json:"ids,omitempty"`
}
func init() {
types.Add("vslm:VslmRetrieveVStorageObjectAssociationsRequestType", reflect.TypeOf((*VslmRetrieveVStorageObjectAssociationsRequestType)(nil)).Elem())
}
type VslmRetrieveVStorageObjectAssociationsResponse struct {
Returnval []VslmVsoVStorageObjectAssociations `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmRetrieveVStorageObjectMetadata VslmRetrieveVStorageObjectMetadataRequestType
func init() {
types.Add("vslm:VslmRetrieveVStorageObjectMetadata", reflect.TypeOf((*VslmRetrieveVStorageObjectMetadata)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRetrieveVStorageObjectMetadata`.
type VslmRetrieveVStorageObjectMetadataRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The ID of the snapshot of virtual storage object.
SnapshotId *types.ID `xml:"snapshotId,omitempty" json:"snapshotId,omitempty"`
// The prefix of the metadata key that needs to be retrieved
Prefix string `xml:"prefix,omitempty" json:"prefix,omitempty"`
}
func init() {
types.Add("vslm:VslmRetrieveVStorageObjectMetadataRequestType", reflect.TypeOf((*VslmRetrieveVStorageObjectMetadataRequestType)(nil)).Elem())
}
type VslmRetrieveVStorageObjectMetadataResponse struct {
Returnval []types.KeyValue `xml:"returnval,omitempty" json:"returnval,omitempty"`
}
type VslmRetrieveVStorageObjectMetadataValue VslmRetrieveVStorageObjectMetadataValueRequestType
func init() {
types.Add("vslm:VslmRetrieveVStorageObjectMetadataValue", reflect.TypeOf((*VslmRetrieveVStorageObjectMetadataValue)(nil)).Elem())
}
// The parameters of `VslmVStorageObjectManager.VslmRetrieveVStorageObjectMetadataValue`.
type VslmRetrieveVStorageObjectMetadataValueRequestType struct {
This types.ManagedObjectReference `xml:"_this" json:"_this"`
// The ID of the virtual storage object.
Id types.ID `xml:"id" json:"id"`
// The ID of the snapshot of virtual storage object.
SnapshotId *types.ID `xml:"snapshotId,omitempty" json:"snapshotId,omitempty"`
// The key for the the virtual storage object