Skip to content

Commit 17b5c08

Browse files
committedJan 2, 2025
api: Generate bindings for 9.0.0.0.rc1
This patch updates the generated bindings based on 9.0.0.0.rc1. The API version itself is 9.0.0.0, and a follow-up will occur when the GA version is released. This hack still remains compatible with vSphere since GoVmomi uses the version advertised by the server itself. Signed-off-by: akutz <andrew.kutz@broadcom.com>
1 parent 77de0b5 commit 17b5c08

File tree

24 files changed

+3367
-374
lines changed

24 files changed

+3367
-374
lines changed
 

‎eam/methods/methods.go

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
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
164

175
package methods
186

‎eam/types/enum.go

+43-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
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
164

175
package types
186

@@ -22,6 +10,8 @@ import (
2210
"github.com/vmware/govmomi/vim25/types"
2311
)
2412

13+
// Deprecated as of vSphere 9.0. Please refer to vLCM System VMs APIs.
14+
//
2515
// Defines if the deployed VMs needs to run on different hosts.
2616
type AgencyVMPlacementPolicyVMAntiAffinity string
2717

@@ -52,6 +42,8 @@ func init() {
5242
types.Add("eam:AgencyVMPlacementPolicyVMAntiAffinity", reflect.TypeOf((*AgencyVMPlacementPolicyVMAntiAffinity)(nil)).Elem())
5343
}
5444

45+
// Deprecated as of vSphere 9.0. Please refer to vLCM System VMs APIs.
46+
//
5547
// Defines if the deployed VM is affinied to run on the same host it is
5648
// deployed on.
5749
type AgencyVMPlacementPolicyVMDataAffinity string
@@ -106,6 +98,8 @@ func init() {
10698
types.Add("eam:AgentConfigInfoAuthenticationScheme", reflect.TypeOf((*AgentConfigInfoAuthenticationScheme)(nil)).Elem())
10799
}
108100

101+
// Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
102+
//
109103
// Defines the type of disk provisioning for the target Agent VMs.
110104
type AgentConfigInfoOvfDiskProvisioning string
111105

@@ -165,6 +159,8 @@ func init() {
165159
types.Add("eam:AgentVmHookVmState", reflect.TypeOf((*AgentVmHookVmState)(nil)).Elem())
166160
}
167161

162+
// Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
163+
//
168164
// The <code>GoalState</code> enumeration defines the goal of the entity.
169165
type EamObjectRuntimeInfoGoalState string
170166

@@ -210,6 +206,8 @@ func init() {
210206
types.Add("eam:EamObjectRuntimeInfoGoalState", reflect.TypeOf((*EamObjectRuntimeInfoGoalState)(nil)).Elem())
211207
}
212208

209+
// Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
210+
//
213211
// <code>Status</code> defines a health value that denotes how well the entity
214212
// conforms to the goal state.
215213
type EamObjectRuntimeInfoStatus string
@@ -244,6 +242,8 @@ func init() {
244242
types.Add("eam:EamObjectRuntimeInfoStatus", reflect.TypeOf((*EamObjectRuntimeInfoStatus)(nil)).Elem())
245243
}
246244

245+
// Deprecated as of vSphere 9.0. Please refer to vLCM Image APIs.
246+
//
247247
// <code>MaintenanceModePolicy</code> defines how ESX Agent Manager is going
248248
// to put into maintenance mode hosts which are part of a cluster not managed
249249
type EsxAgentManagerMaintenanceModePolicy string
@@ -303,6 +303,34 @@ func init() {
303303
types.Add("eam:HooksHookType", reflect.TypeOf((*HooksHookType)(nil)).Elem())
304304
}
305305

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+
306334
// Reasons solution is not valid for application.
307335
type SolutionsInvalidReason string
308336

‎eam/types/if.go

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
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
164

175
package types
186

0 commit comments

Comments
 (0)
Please sign in to comment.