Skip to content

Commit 7d3b2b3

Browse files
committed
Update generated types
This patch updates the generated types to the version for the upcoming release in order to support internal and partner driven development that depends on GoVmomi.
1 parent 106441a commit 7d3b2b3

File tree

22 files changed

+1393
-237
lines changed

22 files changed

+1393
-237
lines changed

eam/methods/methods.go

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -183,26 +183,6 @@ func DestroyAgency(ctx context.Context, r soap.RoundTripper, req *types.DestroyA
183183
return resBody.Res, nil
184184
}
185185

186-
type GetMaintenanceModePolicyBody struct {
187-
Req *types.GetMaintenanceModePolicy `xml:"urn:eam GetMaintenanceModePolicy,omitempty"`
188-
Res *types.GetMaintenanceModePolicyResponse `xml:"urn:eam GetMaintenanceModePolicyResponse,omitempty"`
189-
Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"`
190-
}
191-
192-
func (b *GetMaintenanceModePolicyBody) Fault() *soap.Fault { return b.Fault_ }
193-
194-
func GetMaintenanceModePolicy(ctx context.Context, r soap.RoundTripper, req *types.GetMaintenanceModePolicy) (*types.GetMaintenanceModePolicyResponse, error) {
195-
var reqBody, resBody GetMaintenanceModePolicyBody
196-
197-
reqBody.Req = req
198-
199-
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
200-
return nil, err
201-
}
202-
203-
return resBody.Res, nil
204-
}
205-
206186
type MarkAsAvailableBody struct {
207187
Req *types.MarkAsAvailable `xml:"urn:eam MarkAsAvailable,omitempty"`
208188
Res *types.MarkAsAvailableResponse `xml:"urn:eam MarkAsAvailableResponse,omitempty"`
@@ -403,26 +383,6 @@ func ScanForUnknownAgentVm(ctx context.Context, r soap.RoundTripper, req *types.
403383
return resBody.Res, nil
404384
}
405385

406-
type SetMaintenanceModePolicyBody struct {
407-
Req *types.SetMaintenanceModePolicy `xml:"urn:eam SetMaintenanceModePolicy,omitempty"`
408-
Res *types.SetMaintenanceModePolicyResponse `xml:"urn:eam SetMaintenanceModePolicyResponse,omitempty"`
409-
Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"`
410-
}
411-
412-
func (b *SetMaintenanceModePolicyBody) Fault() *soap.Fault { return b.Fault_ }
413-
414-
func SetMaintenanceModePolicy(ctx context.Context, r soap.RoundTripper, req *types.SetMaintenanceModePolicy) (*types.SetMaintenanceModePolicyResponse, error) {
415-
var reqBody, resBody SetMaintenanceModePolicyBody
416-
417-
reqBody.Req = req
418-
419-
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
420-
return nil, err
421-
}
422-
423-
return resBody.Res, nil
424-
}
425-
426386
type UninstallBody struct {
427387
Req *types.Uninstall `xml:"urn:eam Uninstall,omitempty"`
428388
Res *types.UninstallResponse `xml:"urn:eam UninstallResponse,omitempty"`

eam/types/types.go

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,6 @@ func init() {
582582
types.Add("eam:DisabledClusterFault", reflect.TypeOf((*DisabledClusterFault)(nil)).Elem())
583583
}
584584

585-
type DisabledClusterFaultFault DisabledClusterFault
586-
587-
func init() {
588-
types.Add("eam:DisabledClusterFaultFault", reflect.TypeOf((*DisabledClusterFaultFault)(nil)).Elem())
589-
}
590-
591585
type EamAppFault struct {
592586
EamRuntimeFault
593587
}
@@ -652,12 +646,6 @@ func init() {
652646
types.Add("eam:EamInvalidState", reflect.TypeOf((*EamInvalidState)(nil)).Elem())
653647
}
654648

655-
type EamInvalidStateFault EamInvalidState
656-
657-
func init() {
658-
types.Add("eam:EamInvalidStateFault", reflect.TypeOf((*EamInvalidStateFault)(nil)).Elem())
659-
}
660-
661649
type EamInvalidVibPackage struct {
662650
EamRuntimeFault
663651
}
@@ -741,12 +729,6 @@ func init() {
741729
types.Add("eam:ExtensibleIssue", reflect.TypeOf((*ExtensibleIssue)(nil)).Elem())
742730
}
743731

744-
type GetMaintenanceModePolicy GetMaintenanceModePolicyRequestType
745-
746-
func init() {
747-
types.Add("eam:GetMaintenanceModePolicy", reflect.TypeOf((*GetMaintenanceModePolicy)(nil)).Elem())
748-
}
749-
750732
type GetMaintenanceModePolicyRequestType struct {
751733
This types.ManagedObjectReference `xml:"_this"`
752734
}
@@ -755,10 +737,6 @@ func init() {
755737
types.Add("eam:GetMaintenanceModePolicyRequestType", reflect.TypeOf((*GetMaintenanceModePolicyRequestType)(nil)).Elem())
756738
}
757739

758-
type GetMaintenanceModePolicyResponse struct {
759-
Returnval string `xml:"returnval"`
760-
}
761-
762740
type HostInMaintenanceMode struct {
763741
VmDeployed
764742
}
@@ -1354,12 +1332,6 @@ func init() {
13541332
type ScanForUnknownAgentVmResponse struct {
13551333
}
13561334

1357-
type SetMaintenanceModePolicy SetMaintenanceModePolicyRequestType
1358-
1359-
func init() {
1360-
types.Add("eam:SetMaintenanceModePolicy", reflect.TypeOf((*SetMaintenanceModePolicy)(nil)).Elem())
1361-
}
1362-
13631335
type SetMaintenanceModePolicyRequestType struct {
13641336
This types.ManagedObjectReference `xml:"_this"`
13651337
Policy string `xml:"policy"`
@@ -1369,9 +1341,6 @@ func init() {
13691341
types.Add("eam:SetMaintenanceModePolicyRequestType", reflect.TypeOf((*SetMaintenanceModePolicyRequestType)(nil)).Elem())
13701342
}
13711343

1372-
type SetMaintenanceModePolicyResponse struct {
1373-
}
1374-
13751344
type Uninstall UninstallRequestType
13761345

13771346
func init() {

gen/gen.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved.
3+
# Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -48,9 +48,9 @@ generate() {
4848
}
4949

5050
#
51-
# All types derive from vCenter build 18700403, vSphere 7.0U3.
51+
# All types derive from vCenter build 20023987, vSphere 8.0.
5252
#
53-
export COPYRIGHT_DATE_RANGE="2014-2021"
53+
export COPYRIGHT_DATE_RANGE="2014-2022"
5454

5555
#
5656
# FORCE_BASE_INTERFACE_FOR_TYPES defines the types that we want to
@@ -59,14 +59,14 @@ export COPYRIGHT_DATE_RANGE="2014-2021"
5959
#
6060
export FORCE_BASE_INTERFACE_FOR_TYPES="AgencyConfigInfo"
6161

62-
# ./sdk/ contains the contents of wsdl.zip from vimbase build 18281059.
62+
# ./sdk/ contains the contents of wsdl.zip from vimbase build 19936444.
6363
generate "../vim25" "vim" "./rbvmomi/vmodl.db" # from github.com/vmware/[email protected]
6464
generate "../pbm" "pbm"
6565
generate "../vslm" "vslm"
6666
generate "../sms" "sms"
6767

6868
# ./sdk/ contains the files eam-messagetypes.xsd and eam-types.xsd from
69-
# eam-wsdl.zip, from eam-vcenter build 18281060.
69+
# eam-wsdl.zip, from eam-vcenter build 19970683.
7070
#
7171
# Please note the EAM files are also available at the following, public URL --
7272
# http://bit.ly/eam-sdk, therefore the WSDL resource for EAM are in fact

pbm/methods/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved.
2+
Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

pbm/types/enum.go

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved.
2+
Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -116,6 +116,17 @@ func init() {
116116
types.Add("pbm:PbmComplianceStatus", reflect.TypeOf((*PbmComplianceStatus)(nil)).Elem())
117117
}
118118

119+
type PbmDebugManagerKeystoreName string
120+
121+
const (
122+
PbmDebugManagerKeystoreNameSMS = PbmDebugManagerKeystoreName("SMS")
123+
PbmDebugManagerKeystoreNameTRUSTED_ROOTS = PbmDebugManagerKeystoreName("TRUSTED_ROOTS")
124+
)
125+
126+
func init() {
127+
types.Add("pbm:PbmDebugManagerKeystoreName", reflect.TypeOf((*PbmDebugManagerKeystoreName)(nil)).Elem())
128+
}
129+
119130
type PbmHealthStatusForEntity string
120131

121132
const (
@@ -163,6 +174,35 @@ func init() {
163174
types.Add("pbm:PbmLineOfServiceInfoLineOfServiceEnum", reflect.TypeOf((*PbmLineOfServiceInfoLineOfServiceEnum)(nil)).Elem())
164175
}
165176

177+
type PbmLoggingConfigurationComponent string
178+
179+
const (
180+
PbmLoggingConfigurationComponentPbm = PbmLoggingConfigurationComponent("pbm")
181+
PbmLoggingConfigurationComponentVslm = PbmLoggingConfigurationComponent("vslm")
182+
PbmLoggingConfigurationComponentSms = PbmLoggingConfigurationComponent("sms")
183+
PbmLoggingConfigurationComponentSpbm = PbmLoggingConfigurationComponent("spbm")
184+
PbmLoggingConfigurationComponentSps = PbmLoggingConfigurationComponent("sps")
185+
PbmLoggingConfigurationComponentHttpclient_header = PbmLoggingConfigurationComponent("httpclient_header")
186+
PbmLoggingConfigurationComponentHttpclient_content = PbmLoggingConfigurationComponent("httpclient_content")
187+
PbmLoggingConfigurationComponentVmomi = PbmLoggingConfigurationComponent("vmomi")
188+
)
189+
190+
func init() {
191+
types.Add("pbm:PbmLoggingConfigurationComponent", reflect.TypeOf((*PbmLoggingConfigurationComponent)(nil)).Elem())
192+
}
193+
194+
type PbmLoggingConfigurationLogLevel string
195+
196+
const (
197+
PbmLoggingConfigurationLogLevelINFO = PbmLoggingConfigurationLogLevel("INFO")
198+
PbmLoggingConfigurationLogLevelDEBUG = PbmLoggingConfigurationLogLevel("DEBUG")
199+
PbmLoggingConfigurationLogLevelTRACE = PbmLoggingConfigurationLogLevel("TRACE")
200+
)
201+
202+
func init() {
203+
types.Add("pbm:PbmLoggingConfigurationLogLevel", reflect.TypeOf((*PbmLoggingConfigurationLogLevel)(nil)).Elem())
204+
}
205+
166206
type PbmObjectType string
167207

168208
const (
@@ -194,6 +234,18 @@ func init() {
194234
types.Add("pbm:PbmOperation", reflect.TypeOf((*PbmOperation)(nil)).Elem())
195235
}
196236

237+
type PbmPolicyAssociationVolumeAllocationType string
238+
239+
const (
240+
PbmPolicyAssociationVolumeAllocationTypeFullyInitialized = PbmPolicyAssociationVolumeAllocationType("FullyInitialized")
241+
PbmPolicyAssociationVolumeAllocationTypeReserveSpace = PbmPolicyAssociationVolumeAllocationType("ReserveSpace")
242+
PbmPolicyAssociationVolumeAllocationTypeConserveSpaceWhenPossible = PbmPolicyAssociationVolumeAllocationType("ConserveSpaceWhenPossible")
243+
)
244+
245+
func init() {
246+
types.Add("pbm:PbmPolicyAssociationVolumeAllocationType", reflect.TypeOf((*PbmPolicyAssociationVolumeAllocationType)(nil)).Elem())
247+
}
248+
197249
type PbmProfileCategoryEnum string
198250

199251
const (
@@ -219,9 +271,10 @@ func init() {
219271
type PbmSystemCreatedProfileType string
220272

221273
const (
222-
PbmSystemCreatedProfileTypeVsanDefaultProfile = PbmSystemCreatedProfileType("VsanDefaultProfile")
223-
PbmSystemCreatedProfileTypeVVolDefaultProfile = PbmSystemCreatedProfileType("VVolDefaultProfile")
224-
PbmSystemCreatedProfileTypePmemDefaultProfile = PbmSystemCreatedProfileType("PmemDefaultProfile")
274+
PbmSystemCreatedProfileTypeVsanDefaultProfile = PbmSystemCreatedProfileType("VsanDefaultProfile")
275+
PbmSystemCreatedProfileTypeVVolDefaultProfile = PbmSystemCreatedProfileType("VVolDefaultProfile")
276+
PbmSystemCreatedProfileTypePmemDefaultProfile = PbmSystemCreatedProfileType("PmemDefaultProfile")
277+
PbmSystemCreatedProfileTypeVsanMaxDefaultProfile = PbmSystemCreatedProfileType("VsanMaxDefaultProfile")
225278
)
226279

227280
func init() {

pbm/types/if.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved.
2+
Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

pbm/types/types.go

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved.
2+
Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -909,6 +909,17 @@ func init() {
909909
types.Add("pbm:PbmFaultInvalidLoginFault", reflect.TypeOf((*PbmFaultInvalidLoginFault)(nil)).Elem())
910910
}
911911

912+
type PbmFaultNoPermissionEntityPrivileges struct {
913+
types.DynamicData
914+
915+
ProfileId *PbmProfileId `xml:"profileId,omitempty"`
916+
PrivilegeIds []string `xml:"privilegeIds,omitempty"`
917+
}
918+
919+
func init() {
920+
types.Add("pbm:PbmFaultNoPermissionEntityPrivileges", reflect.TypeOf((*PbmFaultNoPermissionEntityPrivileges)(nil)).Elem())
921+
}
922+
912923
type PbmFaultNotFound struct {
913924
PbmFault
914925
}
@@ -1125,6 +1136,17 @@ func init() {
11251136
types.Add("pbm:PbmLineOfServiceInfo", reflect.TypeOf((*PbmLineOfServiceInfo)(nil)).Elem())
11261137
}
11271138

1139+
type PbmLoggingConfiguration struct {
1140+
types.DynamicData
1141+
1142+
Component string `xml:"component"`
1143+
LogLevel string `xml:"logLevel"`
1144+
}
1145+
1146+
func init() {
1147+
types.Add("pbm:PbmLoggingConfiguration", reflect.TypeOf((*PbmLoggingConfiguration)(nil)).Elem())
1148+
}
1149+
11281150
type PbmNonExistentHubs struct {
11291151
PbmFault
11301152

simulator/property_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (rr *retrieveResult) add(ctx *Context, name string, val types.AnyType, cont
262262
Path: name,
263263
Fault: types.LocalizedMethodFault{Fault: &types.NotAuthenticated{
264264
NoPermission: types.NoPermission{
265-
Object: content.Obj,
265+
Object: &content.Obj,
266266
PrivilegeId: "System.Read",
267267
}},
268268
},

simulator/simulator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (s *Service) call(ctx *Context, method *Method) soap.HasFault {
158158
default:
159159
fault := &types.NotAuthenticated{
160160
NoPermission: types.NoPermission{
161-
Object: method.This,
161+
Object: &method.This,
162162
PrivilegeId: "System.View",
163163
},
164164
}

sms/methods/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved.
2+
Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)