@@ -433,7 +433,8 @@ type AgentConfigInfo struct {
433
433
// virtual machines are installed on the hosts covered by the scope.
434
434
// If `AgencyConfigInfoEx.vmPlacementPolicy` is set, the VM needs to
435
435
// be agnostic to the different host versions inside the cluster.
436
- OvfPackageUrl string `xml:"ovfPackageUrl,omitempty" json:"ovfPackageUrl,omitempty"`
436
+ OvfPackageUrl string `xml:"ovfPackageUrl,omitempty" json:"ovfPackageUrl,omitempty"`
437
+ AuthenticationScheme string `xml:"authenticationScheme,omitempty" json:"authenticationScheme,omitempty"`
437
438
// Specifies an SSL trust policy to be use for verification of the
438
439
// server that hosts the `AgentConfigInfo.ovfPackageUrl`.
439
440
//
@@ -883,14 +884,6 @@ func init() {
883
884
types .Add ("eam:ArrayOfAgentVibMatchingRule" , reflect .TypeOf ((* ArrayOfAgentVibMatchingRule )(nil )).Elem ())
884
885
}
885
886
886
- type ArrayOfHooksHookInfo struct {
887
- HooksHookInfo []HooksHookInfo `xml:"HooksHookInfo,omitempty" json:"_value"`
888
- }
889
-
890
- func init () {
891
- types .Add ("eam:ArrayOfHooksHookInfo" , reflect .TypeOf ((* ArrayOfHooksHookInfo )(nil )).Elem ())
892
- }
893
-
894
887
// A boxed array of `Issue`. To be used in `Any` placeholders.
895
888
//
896
889
// This structure may be used only with operations rendered under `/eam`.
@@ -935,6 +928,17 @@ func init() {
935
928
types .Add ("eam:ArrayOfSolutionsHookConfig" , reflect .TypeOf ((* ArrayOfSolutionsHookConfig )(nil )).Elem ())
936
929
}
937
930
931
+ // A boxed array of `SolutionsHookInfo`. To be used in `Any` placeholders.
932
+ //
933
+ // This structure may be used only with operations rendered under `/eam`.
934
+ type ArrayOfSolutionsHookInfo struct {
935
+ SolutionsHookInfo []SolutionsHookInfo `xml:"SolutionsHookInfo,omitempty" json:"_value"`
936
+ }
937
+
938
+ func init () {
939
+ types .Add ("eam:ArrayOfSolutionsHookInfo" , reflect .TypeOf ((* ArrayOfSolutionsHookInfo )(nil )).Elem ())
940
+ }
941
+
938
942
// A boxed array of `SolutionsHostComplianceResult`. To be used in `Any` placeholders.
939
943
//
940
944
// This structure may be used only with operations rendered under `/eam`.
@@ -1320,6 +1324,22 @@ func init() {
1320
1324
types .Add ("eam:ClusterAgentOvfInvalidProperty" , reflect .TypeOf ((* ClusterAgentOvfInvalidProperty )(nil )).Elem ())
1321
1325
}
1322
1326
1327
+ type ClusterAgentVmHookFailed struct {
1328
+ ClusterAgentVmIssue
1329
+ }
1330
+
1331
+ func init () {
1332
+ types .Add ("eam:ClusterAgentVmHookFailed" , reflect .TypeOf ((* ClusterAgentVmHookFailed )(nil )).Elem ())
1333
+ }
1334
+
1335
+ type ClusterAgentVmHookTimedout struct {
1336
+ ClusterAgentVmIssue
1337
+ }
1338
+
1339
+ func init () {
1340
+ types .Add ("eam:ClusterAgentVmHookTimedout" , reflect .TypeOf ((* ClusterAgentVmHookTimedout )(nil )).Elem ())
1341
+ }
1342
+
1323
1343
type ClusterAgentVmInaccessible struct {
1324
1344
ClusterAgentVmIssue
1325
1345
}
@@ -1415,6 +1435,14 @@ func init() {
1415
1435
types .Add ("eam:ClusterAgentVmPoweredOn" , reflect .TypeOf ((* ClusterAgentVmPoweredOn )(nil )).Elem ())
1416
1436
}
1417
1437
1438
+ type ClusterAgentVmProtected struct {
1439
+ ClusterAgentVmIssue
1440
+ }
1441
+
1442
+ func init () {
1443
+ types .Add ("eam:ClusterAgentVmProtected" , reflect .TypeOf ((* ClusterAgentVmProtected )(nil )).Elem ())
1444
+ }
1445
+
1418
1446
// A cluster agent Virtual Machine is expected to be powered on, but the agent
1419
1447
// Virtual Machine is suspended.
1420
1448
//
@@ -1760,19 +1788,6 @@ type GetMaintenanceModePolicyResponse struct {
1760
1788
Returnval string `xml:"returnval" json:"returnval"`
1761
1789
}
1762
1790
1763
- type HooksHookInfo struct {
1764
- types.DynamicData
1765
-
1766
- Vm types.ManagedObjectReference `xml:"vm" json:"vm"`
1767
- Solution string `xml:"solution" json:"solution"`
1768
- HookType string `xml:"hookType" json:"hookType"`
1769
- RaisedAt time.Time `xml:"raisedAt" json:"raisedAt"`
1770
- }
1771
-
1772
- func init () {
1773
- types .Add ("eam:HooksHookInfo" , reflect .TypeOf ((* HooksHookInfo )(nil )).Elem ())
1774
- }
1775
-
1776
1791
// Limits the hooks reported to the user.
1777
1792
//
1778
1793
// This structure may be used only with operations rendered under `/eam`.
@@ -2987,7 +3002,8 @@ type SolutionsClusterBoundSolutionConfig struct {
2987
3002
// contain duplicate elements.
2988
3003
//
2989
3004
// Refers instances of `Datastore`.
2990
- Datastores []types.ManagedObjectReference `xml:"datastores" json:"datastores"`
3005
+ Datastores []types.ManagedObjectReference `xml:"datastores,omitempty" json:"datastores,omitempty"`
3006
+ Devices * types.VirtualMachineConfigSpec `xml:"devices,omitempty" json:"devices,omitempty"`
2991
3007
}
2992
3008
2993
3009
func init () {
@@ -3113,12 +3129,41 @@ type SolutionsHookConfig struct {
3113
3129
Type string `xml:"type" json:"type"`
3114
3130
// Type of acknoledgement of the configured hook.
3115
3131
Acknowledgement BaseSolutionsHookAcknowledgeConfig `xml:"acknowledgement,typeattr" json:"acknowledgement"`
3132
+ // The maximum time in seconds to wait for a hook to be processed.
3133
+ //
3134
+ // An
3135
+ // issue is raised if the time elapsed and the hook is still not
3136
+ // processed.
3137
+ // If omitted - defaults to 10 hours.
3138
+ Timeout int64 `xml:"timeout,omitempty" json:"timeout,omitempty"`
3116
3139
}
3117
3140
3118
3141
func init () {
3119
3142
types .Add ("eam:SolutionsHookConfig" , reflect .TypeOf ((* SolutionsHookConfig )(nil )).Elem ())
3120
3143
}
3121
3144
3145
+ // Contains information for a raised hook.
3146
+ //
3147
+ // This structure may be used only with operations rendered under `/eam`.
3148
+ type SolutionsHookInfo struct {
3149
+ types.DynamicData
3150
+
3151
+ // Virtual Machine, the hook was raised for.
3152
+ //
3153
+ // Refers instance of `VirtualMachine`.
3154
+ Vm types.ManagedObjectReference `xml:"vm" json:"vm"`
3155
+ // Solution the Virtual Machine belongs to.
3156
+ Solution string `xml:"solution" json:"solution"`
3157
+ // Configuration of the hook.
3158
+ Config SolutionsHookConfig `xml:"config" json:"config"`
3159
+ // Time the hook was raised.
3160
+ RaisedAt time.Time `xml:"raisedAt" json:"raisedAt"`
3161
+ }
3162
+
3163
+ func init () {
3164
+ types .Add ("eam:SolutionsHookInfo" , reflect .TypeOf ((* SolutionsHookInfo )(nil )).Elem ())
3165
+ }
3166
+
3122
3167
// Specifies host-bound solution configuration.
3123
3168
//
3124
3169
// This structure may be used only with operations rendered under `/eam`.
@@ -3248,7 +3293,7 @@ type SolutionsSolutionComplianceResult struct {
3248
3293
// Refers instance of `VirtualMachine`.
3249
3294
UpgradingVm * types.ManagedObjectReference `xml:"upgradingVm,omitempty" json:"upgradingVm,omitempty"`
3250
3295
// Hook, ESX Agent Manager is awaiting to be processed for this solution.
3251
- Hook * HooksHookInfo `xml:"hook,omitempty" json:"hook,omitempty"`
3296
+ Hook * SolutionsHookInfo `xml:"hook,omitempty" json:"hook,omitempty"`
3252
3297
// Issues, ESX Agent Manager has encountered while attempting to acheive
3253
3298
// the solution's requested desired state.
3254
3299
Issues []BaseIssue `xml:"issues,omitempty,typeattr" json:"issues,omitempty"`
@@ -3269,10 +3314,14 @@ type SolutionsSolutionConfig struct {
3269
3314
3270
3315
// Solution, this configuration belongs to.
3271
3316
Solution string `xml:"solution" json:"solution"`
3272
- Name string `xml:"name" json:"name"`
3273
- Version string `xml:"version" json:"version"`
3317
+ // Display name of the solution.
3318
+ DisplayName string `xml:"displayName" json:"displayName"`
3319
+ // Display version of the solution.
3320
+ DisplayVersion string `xml:"displayVersion" json:"displayVersion"`
3274
3321
// Source of the system Virtual Machine files.
3275
3322
VmSource BaseSolutionsVMSource `xml:"vmSource,typeattr" json:"vmSource"`
3323
+ // VM name prefix.
3324
+ PrefixVmName string `xml:"prefixVmName" json:"prefixVmName"`
3276
3325
// If set to `True` - will insert an UUID in the system Virtual
3277
3326
// Machines' names created for the solution, otherwise - no additional
3278
3327
// UUID will be inserted in the system Virtual Machines' names.
@@ -3873,6 +3922,22 @@ func init() {
3873
3922
types .Add ("eam:VmDeployed" , reflect .TypeOf ((* VmDeployed )(nil )).Elem ())
3874
3923
}
3875
3924
3925
+ type VmHookFailed struct {
3926
+ VmIssue
3927
+ }
3928
+
3929
+ func init () {
3930
+ types .Add ("eam:VmHookFailed" , reflect .TypeOf ((* VmHookFailed )(nil )).Elem ())
3931
+ }
3932
+
3933
+ type VmHookTimedout struct {
3934
+ VmIssue
3935
+ }
3936
+
3937
+ func init () {
3938
+ types .Add ("eam:VmHookTimedout" , reflect .TypeOf ((* VmHookTimedout )(nil )).Elem ())
3939
+ }
3940
+
3876
3941
type VmInaccessible struct {
3877
3942
VmIssue
3878
3943
}
@@ -3980,6 +4045,14 @@ func init() {
3980
4045
types .Add ("eam:VmPoweredOn" , reflect .TypeOf ((* VmPoweredOn )(nil )).Elem ())
3981
4046
}
3982
4047
4048
+ type VmProtected struct {
4049
+ VmIssue
4050
+ }
4051
+
4052
+ func init () {
4053
+ types .Add ("eam:VmProtected" , reflect .TypeOf ((* VmProtected )(nil )).Elem ())
4054
+ }
4055
+
3983
4056
// An agent virtual machine is expected to be deployed on a host, but the agent
3984
4057
// virtual machine cannot be deployed because the host is in Maintenance Mode.
3985
4058
//
0 commit comments