Skip to content

Commit

Permalink
Update generated code to vSphere 6.7u3
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Sep 3, 2019
1 parent 95b94da commit 6898070
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gen/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ generate() {
done
}

# ./sdk/ contains the contents of wsdl.zip from vimbase build 12317751 (vSphere 6.7u2)
# ./sdk/ contains the contents of wsdl.zip from vimbase build 14360549 (vSphere 6.7u3)

generate "../vim25" "vim" "./rbvmomi/vmodl.db" # from github.com/vmware/rbvmomi@1cc9f9e
generate "../pbm" "pbm"
Expand Down
13 changes: 7 additions & 6 deletions vim25/mo/mo.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ func init() {
type ClusterComputeResource struct {
ComputeResource

Configuration types.ClusterConfigInfo `mo:"configuration"`
Recommendation []types.ClusterRecommendation `mo:"recommendation"`
DrsRecommendation []types.ClusterDrsRecommendation `mo:"drsRecommendation"`
MigrationHistory []types.ClusterDrsMigration `mo:"migrationHistory"`
ActionHistory []types.ClusterActionHistory `mo:"actionHistory"`
DrsFault []types.ClusterDrsFaults `mo:"drsFault"`
Configuration types.ClusterConfigInfo `mo:"configuration"`
Recommendation []types.ClusterRecommendation `mo:"recommendation"`
DrsRecommendation []types.ClusterDrsRecommendation `mo:"drsRecommendation"`
HciConfig *types.ClusterComputeResourceHCIConfigInfo `mo:"hciConfig"`
MigrationHistory []types.ClusterDrsMigration `mo:"migrationHistory"`
ActionHistory []types.ClusterActionHistory `mo:"actionHistory"`
DrsFault []types.ClusterDrsFaults `mo:"drsFault"`
}

func init() {
Expand Down
11 changes: 11 additions & 0 deletions vim25/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49027,6 +49027,17 @@ type VStorageObjectCreateSnapshot_TaskResponse struct {
Returnval ManagedObjectReference `xml:"returnval"`
}

type VStorageObjectSnapshotDetails struct {
DynamicData

Path string `xml:"path,omitempty"`
ChangedBlockTrackingId string `xml:"changedBlockTrackingId,omitempty"`
}

func init() {
t["VStorageObjectSnapshotDetails"] = reflect.TypeOf((*VStorageObjectSnapshotDetails)(nil)).Elem()
}

type VStorageObjectSnapshotInfo struct {
DynamicData

Expand Down
20 changes: 20 additions & 0 deletions vslm/methods/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,26 @@ func VslmRenameVStorageObject(ctx context.Context, r soap.RoundTripper, req *typ
return resBody.Res, nil
}

type VslmRetrieveSnapshotDetailsBody struct {
Req *types.VslmRetrieveSnapshotDetails `xml:"urn:vslm VslmRetrieveSnapshotDetails,omitempty"`
Res *types.VslmRetrieveSnapshotDetailsResponse `xml:"urn:vslm VslmRetrieveSnapshotDetailsResponse,omitempty"`
Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"`
}

func (b *VslmRetrieveSnapshotDetailsBody) Fault() *soap.Fault { return b.Fault_ }

func VslmRetrieveSnapshotDetails(ctx context.Context, r soap.RoundTripper, req *types.VslmRetrieveSnapshotDetails) (*types.VslmRetrieveSnapshotDetailsResponse, error) {
var reqBody, resBody VslmRetrieveSnapshotDetailsBody

reqBody.Req = req

if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
return nil, err
}

return resBody.Res, nil
}

type VslmRetrieveSnapshotInfoBody struct {
Req *types.VslmRetrieveSnapshotInfo `xml:"urn:vslm VslmRetrieveSnapshotInfo,omitempty"`
Res *types.VslmRetrieveSnapshotInfoResponse `xml:"urn:vslm VslmRetrieveSnapshotInfoResponse,omitempty"`
Expand Down
54 changes: 47 additions & 7 deletions vslm/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectResult", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectResult)(nil)).Elem())
}

type ArrayOfVslmVsoVStorageObjectSnapshotResult struct {
VslmVsoVStorageObjectSnapshotResult []VslmVsoVStorageObjectSnapshotResult `xml:"VslmVsoVStorageObjectSnapshotResult,omitempty"`
}

func init() {
types.Add("vslm:ArrayOfVslmVsoVStorageObjectSnapshotResult", reflect.TypeOf((*ArrayOfVslmVsoVStorageObjectSnapshotResult)(nil)).Elem())
}

type RetrieveContent RetrieveContentRequestType

func init() {
Expand Down Expand Up @@ -690,6 +698,26 @@ func init() {
type VslmRenameVStorageObjectResponse struct {
}

type VslmRetrieveSnapshotDetails VslmRetrieveSnapshotDetailsRequestType

func init() {
types.Add("vslm:VslmRetrieveSnapshotDetails", reflect.TypeOf((*VslmRetrieveSnapshotDetails)(nil)).Elem())
}

type VslmRetrieveSnapshotDetailsRequestType struct {
This types.ManagedObjectReference `xml:"_this"`
Id types.ID `xml:"id"`
SnapshotId types.ID `xml:"snapshotId"`
}

func init() {
types.Add("vslm:VslmRetrieveSnapshotDetailsRequestType", reflect.TypeOf((*VslmRetrieveSnapshotDetailsRequestType)(nil)).Elem())
}

type VslmRetrieveSnapshotDetailsResponse struct {
Returnval types.VStorageObjectSnapshotDetails `xml:"returnval"`
}

type VslmRetrieveSnapshotInfo VslmRetrieveSnapshotInfoRequestType

func init() {
Expand Down Expand Up @@ -1141,19 +1169,31 @@ func init() {
type VslmVsoVStorageObjectResult struct {
types.DynamicData

Id types.ID `xml:"id"`
Name string `xml:"name,omitempty"`
CapacityInMB int64 `xml:"capacityInMB"`
CreateTime *time.Time `xml:"createTime"`
DatastoreUrl string `xml:"datastoreUrl,omitempty"`
Metadata []types.KeyValue `xml:"metadata,omitempty"`
Error *types.LocalizedMethodFault `xml:"error,omitempty"`
Id types.ID `xml:"id"`
Name string `xml:"name,omitempty"`
CapacityInMB int64 `xml:"capacityInMB"`
CreateTime *time.Time `xml:"createTime"`
DatastoreUrl string `xml:"datastoreUrl,omitempty"`
BackingObjectId *types.ID `xml:"backingObjectId,omitempty"`
SnapshotInfo []VslmVsoVStorageObjectSnapshotResult `xml:"snapshotInfo,omitempty"`
Metadata []types.KeyValue `xml:"metadata,omitempty"`
Error *types.LocalizedMethodFault `xml:"error,omitempty"`
}

func init() {
types.Add("vslm:VslmVsoVStorageObjectResult", reflect.TypeOf((*VslmVsoVStorageObjectResult)(nil)).Elem())
}

type VslmVsoVStorageObjectSnapshotResult struct {
types.DynamicData

BackingObjectId types.ID `xml:"backingObjectId"`
}

func init() {
types.Add("vslm:VslmVsoVStorageObjectSnapshotResult", reflect.TypeOf((*VslmVsoVStorageObjectSnapshotResult)(nil)).Elem())
}

type VersionURI string

func init() {
Expand Down

0 comments on commit 6898070

Please sign in to comment.