1
- /*
2
- Copyright (c) 2021-2024 VMware, Inc. All Rights Reserved.
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */
1
+ // © Broadcom. All Rights Reserved.
2
+ // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
3
+ // SPDX-License-Identifier: Apache-2.0
16
4
17
5
package types
18
6
@@ -22,6 +10,8 @@ import (
22
10
"github.com/vmware/govmomi/vim25/types"
23
11
)
24
12
13
+ // Deprecated as of vSphere 9.0. Please refer to vLCM System VMs APIs.
14
+ //
25
15
// Defines if the deployed VMs needs to run on different hosts.
26
16
type AgencyVMPlacementPolicyVMAntiAffinity string
27
17
@@ -52,6 +42,8 @@ func init() {
52
42
types .Add ("eam:AgencyVMPlacementPolicyVMAntiAffinity" , reflect .TypeOf ((* AgencyVMPlacementPolicyVMAntiAffinity )(nil )).Elem ())
53
43
}
54
44
45
+ // Deprecated as of vSphere 9.0. Please refer to vLCM System VMs APIs.
46
+ //
55
47
// Defines if the deployed VM is affinied to run on the same host it is
56
48
// deployed on.
57
49
type AgencyVMPlacementPolicyVMDataAffinity string
@@ -106,6 +98,8 @@ func init() {
106
98
types .Add ("eam:AgentConfigInfoAuthenticationScheme" , reflect .TypeOf ((* AgentConfigInfoAuthenticationScheme )(nil )).Elem ())
107
99
}
108
100
101
+ // Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
102
+ //
109
103
// Defines the type of disk provisioning for the target Agent VMs.
110
104
type AgentConfigInfoOvfDiskProvisioning string
111
105
@@ -165,6 +159,8 @@ func init() {
165
159
types .Add ("eam:AgentVmHookVmState" , reflect .TypeOf ((* AgentVmHookVmState )(nil )).Elem ())
166
160
}
167
161
162
+ // Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
163
+ //
168
164
// The <code>GoalState</code> enumeration defines the goal of the entity.
169
165
type EamObjectRuntimeInfoGoalState string
170
166
@@ -210,6 +206,8 @@ func init() {
210
206
types .Add ("eam:EamObjectRuntimeInfoGoalState" , reflect .TypeOf ((* EamObjectRuntimeInfoGoalState )(nil )).Elem ())
211
207
}
212
208
209
+ // Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
210
+ //
213
211
// <code>Status</code> defines a health value that denotes how well the entity
214
212
// conforms to the goal state.
215
213
type EamObjectRuntimeInfoStatus string
@@ -244,6 +242,8 @@ func init() {
244
242
types .Add ("eam:EamObjectRuntimeInfoStatus" , reflect .TypeOf ((* EamObjectRuntimeInfoStatus )(nil )).Elem ())
245
243
}
246
244
245
+ // Deprecated as of vSphere 9.0. Please refer to vLCM Image APIs.
246
+ //
247
247
// <code>MaintenanceModePolicy</code> defines how ESX Agent Manager is going
248
248
// to put into maintenance mode hosts which are part of a cluster not managed
249
249
type EsxAgentManagerMaintenanceModePolicy string
@@ -303,6 +303,34 @@ func init() {
303
303
types .Add ("eam:HooksHookType" , reflect .TypeOf ((* HooksHookType )(nil )).Elem ())
304
304
}
305
305
306
+ type ManagedObjectTypes string
307
+
308
+ const (
309
+ ManagedObjectTypesAgency = ManagedObjectTypes ("Agency" )
310
+ ManagedObjectTypesAgent = ManagedObjectTypes ("Agent" )
311
+ ManagedObjectTypesEamObject = ManagedObjectTypes ("EamObject" )
312
+ ManagedObjectTypesEsxAgentManager = ManagedObjectTypes ("EsxAgentManager" )
313
+ ManagedObjectTypesEamTask = ManagedObjectTypes ("EamTask" )
314
+ )
315
+
316
+ func (e ManagedObjectTypes ) Values () []ManagedObjectTypes {
317
+ return []ManagedObjectTypes {
318
+ ManagedObjectTypesAgency ,
319
+ ManagedObjectTypesAgent ,
320
+ ManagedObjectTypesEamObject ,
321
+ ManagedObjectTypesEsxAgentManager ,
322
+ ManagedObjectTypesEamTask ,
323
+ }
324
+ }
325
+
326
+ func (e ManagedObjectTypes ) Strings () []string {
327
+ return types .EnumValuesAsStrings (e .Values ())
328
+ }
329
+
330
+ func init () {
331
+ types .Add ("eam:ManagedObjectTypes" , reflect .TypeOf ((* ManagedObjectTypes )(nil )).Elem ())
332
+ }
333
+
306
334
// Reasons solution is not valid for application.
307
335
type SolutionsInvalidReason string
308
336
0 commit comments