Update vmware/govmomi godeps
This commit is contained in:
1
vendor/github.com/vmware/govmomi/vim25/methods/BUILD
generated
vendored
1
vendor/github.com/vmware/govmomi/vim25/methods/BUILD
generated
vendored
@@ -3,7 +3,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = [
|
||||
"internal.go",
|
||||
"methods.go",
|
||||
"service_content.go",
|
||||
],
|
||||
|
||||
124
vendor/github.com/vmware/govmomi/vim25/methods/internal.go
generated
vendored
124
vendor/github.com/vmware/govmomi/vim25/methods/internal.go
generated
vendored
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package methods
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/vmware/govmomi/vim25/soap"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
|
||||
type RetrieveDynamicTypeManagerBody struct {
|
||||
Req *types.RetrieveDynamicTypeManager `xml:"urn:vim25 RetrieveDynamicTypeManager"`
|
||||
Res *types.RetrieveDynamicTypeManagerResponse `xml:"urn:vim25 RetrieveDynamicTypeManagerResponse"`
|
||||
Fault_ *soap.Fault
|
||||
}
|
||||
|
||||
func (b *RetrieveDynamicTypeManagerBody) Fault() *soap.Fault { return b.Fault_ }
|
||||
|
||||
func RetrieveDynamicTypeManager(ctx context.Context, r soap.RoundTripper, req *types.RetrieveDynamicTypeManager) (*types.RetrieveDynamicTypeManagerResponse, error) {
|
||||
var reqBody, resBody RetrieveDynamicTypeManagerBody
|
||||
|
||||
reqBody.Req = req
|
||||
|
||||
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return resBody.Res, nil
|
||||
}
|
||||
|
||||
type RetrieveManagedMethodExecuterBody struct {
|
||||
Req *types.RetrieveManagedMethodExecuter `xml:"urn:vim25 RetrieveManagedMethodExecuter"`
|
||||
Res *types.RetrieveManagedMethodExecuterResponse `xml:"urn:vim25 RetrieveManagedMethodExecuterResponse"`
|
||||
Fault_ *soap.Fault
|
||||
}
|
||||
|
||||
func (b *RetrieveManagedMethodExecuterBody) Fault() *soap.Fault { return b.Fault_ }
|
||||
|
||||
func RetrieveManagedMethodExecuter(ctx context.Context, r soap.RoundTripper, req *types.RetrieveManagedMethodExecuter) (*types.RetrieveManagedMethodExecuterResponse, error) {
|
||||
var reqBody, resBody RetrieveManagedMethodExecuterBody
|
||||
|
||||
reqBody.Req = req
|
||||
|
||||
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return resBody.Res, nil
|
||||
}
|
||||
|
||||
type DynamicTypeMgrQueryMoInstancesBody struct {
|
||||
Req *types.DynamicTypeMgrQueryMoInstances `xml:"urn:vim25 DynamicTypeMgrQueryMoInstances"`
|
||||
Res *types.DynamicTypeMgrQueryMoInstancesResponse `xml:"urn:vim25 DynamicTypeMgrQueryMoInstancesResponse"`
|
||||
Fault_ *soap.Fault
|
||||
}
|
||||
|
||||
func (b *DynamicTypeMgrQueryMoInstancesBody) Fault() *soap.Fault { return b.Fault_ }
|
||||
|
||||
func DynamicTypeMgrQueryMoInstances(ctx context.Context, r soap.RoundTripper, req *types.DynamicTypeMgrQueryMoInstances) (*types.DynamicTypeMgrQueryMoInstancesResponse, error) {
|
||||
var reqBody, resBody DynamicTypeMgrQueryMoInstancesBody
|
||||
|
||||
reqBody.Req = req
|
||||
|
||||
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return resBody.Res, nil
|
||||
}
|
||||
|
||||
type DynamicTypeMgrQueryTypeInfoBody struct {
|
||||
Req *types.DynamicTypeMgrQueryTypeInfo `xml:"urn:vim25 DynamicTypeMgrQueryTypeInfo"`
|
||||
Res *types.DynamicTypeMgrQueryTypeInfoResponse `xml:"urn:vim25 DynamicTypeMgrQueryTypeInfoResponse"`
|
||||
Fault_ *soap.Fault
|
||||
}
|
||||
|
||||
func (b *DynamicTypeMgrQueryTypeInfoBody) Fault() *soap.Fault { return b.Fault_ }
|
||||
|
||||
func DynamicTypeMgrQueryTypeInfo(ctx context.Context, r soap.RoundTripper, req *types.DynamicTypeMgrQueryTypeInfo) (*types.DynamicTypeMgrQueryTypeInfoResponse, error) {
|
||||
var reqBody, resBody DynamicTypeMgrQueryTypeInfoBody
|
||||
|
||||
reqBody.Req = req
|
||||
|
||||
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return resBody.Res, nil
|
||||
}
|
||||
|
||||
type ExecuteSoapBody struct {
|
||||
Req *types.ExecuteSoap `xml:"urn:vim25 ExecuteSoap"`
|
||||
Res *types.ExecuteSoapResponse `xml:"urn:vim25 ExecuteSoapResponse"`
|
||||
Fault_ *soap.Fault
|
||||
}
|
||||
|
||||
func (b *ExecuteSoapBody) Fault() *soap.Fault { return b.Fault_ }
|
||||
|
||||
func ExecuteSoap(ctx context.Context, r soap.RoundTripper, req *types.ExecuteSoap) (*types.ExecuteSoapResponse, error) {
|
||||
var reqBody, resBody ExecuteSoapBody
|
||||
|
||||
reqBody.Req = req
|
||||
|
||||
if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return resBody.Res, nil
|
||||
}
|
||||
95
vendor/github.com/vmware/govmomi/vim25/soap/client.go
generated
vendored
95
vendor/github.com/vmware/govmomi/vim25/soap/client.go
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -60,6 +60,7 @@ const (
|
||||
|
||||
type header struct {
|
||||
Cookie string `xml:"vcSessionCookie,omitempty"`
|
||||
ID string `xml:"operationID,omitempty"`
|
||||
}
|
||||
|
||||
type Client struct {
|
||||
@@ -78,7 +79,7 @@ type Client struct {
|
||||
Version string // Vim version
|
||||
UserAgent string
|
||||
|
||||
header *header
|
||||
cookie string
|
||||
}
|
||||
|
||||
var schemeMatch = regexp.MustCompile(`^\w+://`)
|
||||
@@ -168,10 +169,7 @@ func (c *Client) NewServiceClient(path string, namespace string) *Client {
|
||||
// Set SOAP Header cookie
|
||||
for _, cookie := range client.Jar.Cookies(u) {
|
||||
if cookie.Name == "vmware_soap_session" {
|
||||
client.header = &header{
|
||||
Cookie: cookie.Value,
|
||||
}
|
||||
|
||||
client.cookie = cookie.Value
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -433,7 +431,15 @@ func (c *Client) RoundTrip(ctx context.Context, reqBody, resBody HasFault) error
|
||||
reqEnv := Envelope{Body: reqBody}
|
||||
resEnv := Envelope{Body: resBody}
|
||||
|
||||
reqEnv.Header = c.header
|
||||
h := &header{
|
||||
Cookie: c.cookie,
|
||||
}
|
||||
|
||||
if id, ok := ctx.Value(types.ID{}).(string); ok {
|
||||
h.ID = id
|
||||
}
|
||||
|
||||
reqEnv.Header = h
|
||||
|
||||
// Create debugging context for this round trip
|
||||
d := c.d.newRoundTrip()
|
||||
@@ -614,6 +620,7 @@ type Download struct {
|
||||
Headers map[string]string
|
||||
Ticket *http.Cookie
|
||||
Progress progress.Sinker
|
||||
Writer io.Writer
|
||||
}
|
||||
|
||||
var DefaultDownload = Download{
|
||||
@@ -655,7 +662,46 @@ func (c *Client) Download(u *url.URL, param *Download) (io.ReadCloser, int64, er
|
||||
return nil, 0, err
|
||||
}
|
||||
|
||||
return res.Body, res.ContentLength, nil
|
||||
r := res.Body
|
||||
|
||||
return r, res.ContentLength, nil
|
||||
}
|
||||
|
||||
func (c *Client) WriteFile(file string, src io.Reader, size int64, s progress.Sinker, w io.Writer) error {
|
||||
var err error
|
||||
|
||||
r := src
|
||||
|
||||
fh, err := os.Create(file)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if s != nil {
|
||||
pr := progress.NewReader(s, src, size)
|
||||
src = pr
|
||||
|
||||
// Mark progress reader as done when returning from this function.
|
||||
defer func() {
|
||||
pr.Done(err)
|
||||
}()
|
||||
}
|
||||
|
||||
if w == nil {
|
||||
w = fh
|
||||
} else {
|
||||
w = io.MultiWriter(w, fh)
|
||||
}
|
||||
|
||||
_, err = io.Copy(w, r)
|
||||
|
||||
cerr := fh.Close()
|
||||
|
||||
if err == nil {
|
||||
err = cerr
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DownloadFile GETs the given URL to a local file
|
||||
@@ -669,37 +715,6 @@ func (c *Client) DownloadFile(file string, u *url.URL, param *Download) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer rc.Close()
|
||||
|
||||
var r io.Reader = rc
|
||||
|
||||
fh, err := os.Create(file)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer fh.Close()
|
||||
|
||||
if param.Progress != nil {
|
||||
pr := progress.NewReader(param.Progress, r, contentLength)
|
||||
r = pr
|
||||
|
||||
// Mark progress reader as done when returning from this function.
|
||||
defer func() {
|
||||
pr.Done(err)
|
||||
}()
|
||||
}
|
||||
|
||||
_, err = io.Copy(fh, r)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Assign error before returning so that it gets picked up by the deferred
|
||||
// function marking the progress reader as done.
|
||||
err = fh.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return c.WriteFile(file, rc, contentLength, param.Progress, param.Writer)
|
||||
}
|
||||
|
||||
1
vendor/github.com/vmware/govmomi/vim25/types/BUILD
generated
vendored
1
vendor/github.com/vmware/govmomi/vim25/types/BUILD
generated
vendored
@@ -8,7 +8,6 @@ go_library(
|
||||
"fault.go",
|
||||
"helpers.go",
|
||||
"if.go",
|
||||
"internal.go",
|
||||
"registry.go",
|
||||
"types.go",
|
||||
],
|
||||
|
||||
40
vendor/github.com/vmware/govmomi/vim25/types/helpers.go
generated
vendored
40
vendor/github.com/vmware/govmomi/vim25/types/helpers.go
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
||||
Copyright (c) 2015-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -16,12 +16,27 @@ limitations under the License.
|
||||
|
||||
package types
|
||||
|
||||
import "strings"
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func NewBool(v bool) *bool {
|
||||
return &v
|
||||
}
|
||||
|
||||
func NewInt32(v int32) *int32 {
|
||||
return &v
|
||||
}
|
||||
|
||||
func NewInt64(v int64) *int64 {
|
||||
return &v
|
||||
}
|
||||
|
||||
func NewTime(v time.Time) *time.Time {
|
||||
return &v
|
||||
}
|
||||
|
||||
func NewReference(r ManagedObjectReference) *ManagedObjectReference {
|
||||
return &r
|
||||
}
|
||||
@@ -50,3 +65,24 @@ func (r *ManagedObjectReference) FromString(o string) bool {
|
||||
func (c *PerfCounterInfo) Name() string {
|
||||
return c.GroupInfo.GetElementDescription().Key + "." + c.NameInfo.GetElementDescription().Key + "." + string(c.RollupType)
|
||||
}
|
||||
|
||||
func defaultResourceAllocationInfo() ResourceAllocationInfo {
|
||||
return ResourceAllocationInfo{
|
||||
Reservation: NewInt64(0),
|
||||
ExpandableReservation: NewBool(true),
|
||||
Limit: NewInt64(-1),
|
||||
Shares: &SharesInfo{
|
||||
Level: SharesLevelNormal,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultResourceConfigSpec returns a ResourceConfigSpec populated with the same default field values as vCenter.
|
||||
// Note that the wsdl marks these fields as optional, but they are required to be set when creating a resource pool.
|
||||
// They are only optional when updating a resource pool.
|
||||
func DefaultResourceConfigSpec() ResourceConfigSpec {
|
||||
return ResourceConfigSpec{
|
||||
CpuAllocation: defaultResourceAllocationInfo(),
|
||||
MemoryAllocation: defaultResourceAllocationInfo(),
|
||||
}
|
||||
}
|
||||
|
||||
10
vendor/github.com/vmware/govmomi/vim25/types/if.go
generated
vendored
10
vendor/github.com/vmware/govmomi/vim25/types/if.go
generated
vendored
@@ -2360,16 +2360,6 @@ func init() {
|
||||
t["BaseReplicationVmFault"] = reflect.TypeOf((*ReplicationVmFault)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (b *ResourceAllocationInfo) GetResourceAllocationInfo() *ResourceAllocationInfo { return b }
|
||||
|
||||
type BaseResourceAllocationInfo interface {
|
||||
GetResourceAllocationInfo() *ResourceAllocationInfo
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["BaseResourceAllocationInfo"] = reflect.TypeOf((*ResourceAllocationInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (b *ResourceInUse) GetResourceInUse() *ResourceInUse { return b }
|
||||
|
||||
type BaseResourceInUse interface {
|
||||
|
||||
266
vendor/github.com/vmware/govmomi/vim25/types/internal.go
generated
vendored
266
vendor/github.com/vmware/govmomi/vim25/types/internal.go
generated
vendored
@@ -1,266 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2014 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package types
|
||||
|
||||
import "reflect"
|
||||
|
||||
type DynamicTypeMgrQueryMoInstances struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"`
|
||||
}
|
||||
|
||||
type DynamicTypeMgrQueryMoInstancesResponse struct {
|
||||
Returnval []DynamicTypeMgrMoInstance `xml:"urn:vim25 returnval"`
|
||||
}
|
||||
|
||||
type DynamicTypeEnumTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
WsdlName string `xml:"wsdlName"`
|
||||
Version string `xml:"version"`
|
||||
Value []string `xml:"value,omitempty"`
|
||||
Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeEnumTypeInfo"] = reflect.TypeOf((*DynamicTypeEnumTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrAllTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
ManagedTypeInfo []DynamicTypeMgrManagedTypeInfo `xml:"managedTypeInfo,omitempty"`
|
||||
EnumTypeInfo []DynamicTypeEnumTypeInfo `xml:"enumTypeInfo,omitempty"`
|
||||
DataTypeInfo []DynamicTypeMgrDataTypeInfo `xml:"dataTypeInfo,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrAllTypeInfo"] = reflect.TypeOf((*DynamicTypeMgrAllTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrAnnotation struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
Parameter []string `xml:"parameter,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrAnnotation"] = reflect.TypeOf((*DynamicTypeMgrAnnotation)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrDataTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
WsdlName string `xml:"wsdlName"`
|
||||
Version string `xml:"version"`
|
||||
Base []string `xml:"base,omitempty"`
|
||||
Property []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"`
|
||||
Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrDataTypeInfo"] = reflect.TypeOf((*DynamicTypeMgrDataTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (b *DynamicTypeMgrFilterSpec) GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec { return b }
|
||||
|
||||
type BaseDynamicTypeMgrFilterSpec interface {
|
||||
GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec
|
||||
}
|
||||
|
||||
type DynamicTypeMgrFilterSpec struct {
|
||||
DynamicData
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrFilterSpec"] = reflect.TypeOf((*DynamicTypeMgrFilterSpec)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrManagedTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
WsdlName string `xml:"wsdlName"`
|
||||
Version string `xml:"version"`
|
||||
Base []string `xml:"base,omitempty"`
|
||||
Property []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"`
|
||||
Method []DynamicTypeMgrMethodTypeInfo `xml:"method,omitempty"`
|
||||
Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrManagedTypeInfo"] = reflect.TypeOf((*DynamicTypeMgrManagedTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrMethodTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
WsdlName string `xml:"wsdlName"`
|
||||
Version string `xml:"version"`
|
||||
ParamTypeInfo []DynamicTypeMgrParamTypeInfo `xml:"paramTypeInfo,omitempty"`
|
||||
ReturnTypeInfo *DynamicTypeMgrParamTypeInfo `xml:"returnTypeInfo,omitempty"`
|
||||
Fault []string `xml:"fault,omitempty"`
|
||||
PrivId string `xml:"privId,omitempty"`
|
||||
Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrMethodTypeInfo"] = reflect.TypeOf((*DynamicTypeMgrMethodTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrMoFilterSpec struct {
|
||||
DynamicTypeMgrFilterSpec
|
||||
|
||||
Id string `xml:"id,omitempty"`
|
||||
TypeSubstr string `xml:"typeSubstr,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrMoFilterSpec"] = reflect.TypeOf((*DynamicTypeMgrMoFilterSpec)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrMoInstance struct {
|
||||
DynamicData
|
||||
|
||||
Id string `xml:"id"`
|
||||
MoType string `xml:"moType"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrMoInstance"] = reflect.TypeOf((*DynamicTypeMgrMoInstance)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrParamTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
Version string `xml:"version"`
|
||||
Type string `xml:"type"`
|
||||
PrivId string `xml:"privId,omitempty"`
|
||||
Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrParamTypeInfo"] = reflect.TypeOf((*DynamicTypeMgrParamTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrPropertyTypeInfo struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
Version string `xml:"version"`
|
||||
Type string `xml:"type"`
|
||||
PrivId string `xml:"privId,omitempty"`
|
||||
MsgIdFormat string `xml:"msgIdFormat,omitempty"`
|
||||
Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
|
||||
}
|
||||
|
||||
type DynamicTypeMgrQueryTypeInfo struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"`
|
||||
}
|
||||
|
||||
type DynamicTypeMgrQueryTypeInfoResponse struct {
|
||||
Returnval DynamicTypeMgrAllTypeInfo `xml:"urn:vim25 returnval"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrPropertyTypeInfo"] = reflect.TypeOf((*DynamicTypeMgrPropertyTypeInfo)(nil)).Elem()
|
||||
}
|
||||
|
||||
type DynamicTypeMgrTypeFilterSpec struct {
|
||||
DynamicTypeMgrFilterSpec
|
||||
|
||||
TypeSubstr string `xml:"typeSubstr,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["DynamicTypeMgrTypeFilterSpec"] = reflect.TypeOf((*DynamicTypeMgrTypeFilterSpec)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ReflectManagedMethodExecuterSoapArgument struct {
|
||||
DynamicData
|
||||
|
||||
Name string `xml:"name"`
|
||||
Val string `xml:"val"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["ReflectManagedMethodExecuterSoapArgument"] = reflect.TypeOf((*ReflectManagedMethodExecuterSoapArgument)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ReflectManagedMethodExecuterSoapFault struct {
|
||||
DynamicData
|
||||
|
||||
FaultMsg string `xml:"faultMsg"`
|
||||
FaultDetail string `xml:"faultDetail,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["ReflectManagedMethodExecuterSoapFault"] = reflect.TypeOf((*ReflectManagedMethodExecuterSoapFault)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ReflectManagedMethodExecuterSoapResult struct {
|
||||
DynamicData
|
||||
|
||||
Response string `xml:"response,omitempty"`
|
||||
Fault *ReflectManagedMethodExecuterSoapFault `xml:"fault,omitempty"`
|
||||
}
|
||||
|
||||
type RetrieveDynamicTypeManager struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
}
|
||||
|
||||
type RetrieveDynamicTypeManagerResponse struct {
|
||||
Returnval *InternalDynamicTypeManager `xml:"urn:vim25 returnval"`
|
||||
}
|
||||
|
||||
type RetrieveManagedMethodExecuter struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
t["RetrieveManagedMethodExecuter"] = reflect.TypeOf((*RetrieveManagedMethodExecuter)(nil)).Elem()
|
||||
}
|
||||
|
||||
type RetrieveManagedMethodExecuterResponse struct {
|
||||
Returnval *ReflectManagedMethodExecuter `xml:"urn:vim25 returnval"`
|
||||
}
|
||||
|
||||
type InternalDynamicTypeManager struct {
|
||||
ManagedObjectReference
|
||||
}
|
||||
|
||||
type ReflectManagedMethodExecuter struct {
|
||||
ManagedObjectReference
|
||||
}
|
||||
|
||||
type ExecuteSoap struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
Moid string `xml:"moid"`
|
||||
Version string `xml:"version"`
|
||||
Method string `xml:"method"`
|
||||
Argument []ReflectManagedMethodExecuterSoapArgument `xml:"argument,omitempty"`
|
||||
}
|
||||
|
||||
type ExecuteSoapResponse struct {
|
||||
Returnval *ReflectManagedMethodExecuterSoapResult `xml:"urn:vim25 returnval"`
|
||||
}
|
||||
68
vendor/github.com/vmware/govmomi/vim25/types/types.go
generated
vendored
68
vendor/github.com/vmware/govmomi/vim25/types/types.go
generated
vendored
@@ -11331,7 +11331,7 @@ func init() {
|
||||
type DVSNetworkResourcePoolAllocationInfo struct {
|
||||
DynamicData
|
||||
|
||||
Limit int64 `xml:"limit,omitempty"`
|
||||
Limit *int64 `xml:"limit"`
|
||||
Shares *SharesInfo `xml:"shares,omitempty"`
|
||||
PriorityTag int32 `xml:"priorityTag,omitempty"`
|
||||
}
|
||||
@@ -14165,9 +14165,9 @@ func init() {
|
||||
type DvsHostInfrastructureTrafficResourceAllocation struct {
|
||||
DynamicData
|
||||
|
||||
Limit int64 `xml:"limit,omitempty"`
|
||||
Limit *int64 `xml:"limit"`
|
||||
Shares *SharesInfo `xml:"shares,omitempty"`
|
||||
Reservation int64 `xml:"reservation,omitempty"`
|
||||
Reservation *int64 `xml:"reservation"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -14846,7 +14846,7 @@ type DvsVnicAllocatedResource struct {
|
||||
|
||||
Vm ManagedObjectReference `xml:"vm"`
|
||||
VnicKey string `xml:"vnicKey"`
|
||||
Reservation int64 `xml:"reservation,omitempty"`
|
||||
Reservation *int64 `xml:"reservation"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -18341,9 +18341,9 @@ func init() {
|
||||
type GuestPosixFileAttributes struct {
|
||||
GuestFileAttributes
|
||||
|
||||
OwnerId int32 `xml:"ownerId,omitempty"`
|
||||
GroupId int32 `xml:"groupId,omitempty"`
|
||||
Permissions int64 `xml:"permissions,omitempty"`
|
||||
OwnerId *int32 `xml:"ownerId"`
|
||||
GroupId *int32 `xml:"groupId"`
|
||||
Permissions int64 `xml:"permissions,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -22589,7 +22589,7 @@ type HostPlacedVirtualNicIdentifier struct {
|
||||
|
||||
Vm ManagedObjectReference `xml:"vm"`
|
||||
VnicKey string `xml:"vnicKey"`
|
||||
Reservation int32 `xml:"reservation,omitempty"`
|
||||
Reservation *int32 `xml:"reservation"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -27456,7 +27456,7 @@ type LimitExceeded struct {
|
||||
VimFault
|
||||
|
||||
Property string `xml:"property,omitempty"`
|
||||
Limit int32 `xml:"limit,omitempty"`
|
||||
Limit *int32 `xml:"limit"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -27624,7 +27624,7 @@ func init() {
|
||||
|
||||
type ListKeysRequestType struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
Limit int32 `xml:"limit,omitempty"`
|
||||
Limit *int32 `xml:"limit"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -27643,7 +27643,7 @@ func init() {
|
||||
|
||||
type ListKmipServersRequestType struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
Limit int32 `xml:"limit,omitempty"`
|
||||
Limit *int32 `xml:"limit"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -28546,7 +28546,7 @@ func init() {
|
||||
type MethodActionArgument struct {
|
||||
DynamicData
|
||||
|
||||
Value AnyType `xml:"value,omitempty,typeattr"`
|
||||
Value AnyType `xml:"value,typeattr"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -29452,7 +29452,7 @@ func init() {
|
||||
type NamespaceLimitReached struct {
|
||||
VimFault
|
||||
|
||||
Limit int32 `xml:"limit,omitempty"`
|
||||
Limit *int32 `xml:"limit"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -31074,7 +31074,7 @@ type OptionValue struct {
|
||||
DynamicData
|
||||
|
||||
Key string `xml:"key"`
|
||||
Value AnyType `xml:"value,omitempty,typeattr"`
|
||||
Value AnyType `xml:"value,typeattr"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -34231,7 +34231,7 @@ type PropertyChange struct {
|
||||
|
||||
Name string `xml:"name"`
|
||||
Op PropertyChangeOp `xml:"op"`
|
||||
Val AnyType `xml:"val,omitempty,typeattr"`
|
||||
Val AnyType `xml:"val,typeattr"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -36332,7 +36332,7 @@ func init() {
|
||||
type QueryVsanObjectUuidsByFilterRequestType struct {
|
||||
This ManagedObjectReference `xml:"_this"`
|
||||
Uuids []string `xml:"uuids,omitempty"`
|
||||
Limit int32 `xml:"limit,omitempty"`
|
||||
Limit *int32 `xml:"limit"`
|
||||
Version int32 `xml:"version,omitempty"`
|
||||
}
|
||||
|
||||
@@ -39065,11 +39065,11 @@ type ResolveMultipleUnresolvedVmfsVolumesResponse struct {
|
||||
type ResourceAllocationInfo struct {
|
||||
DynamicData
|
||||
|
||||
Reservation int64 `xml:"reservation,omitempty"`
|
||||
Reservation *int64 `xml:"reservation"`
|
||||
ExpandableReservation *bool `xml:"expandableReservation"`
|
||||
Limit int64 `xml:"limit,omitempty"`
|
||||
Limit *int64 `xml:"limit"`
|
||||
Shares *SharesInfo `xml:"shares,omitempty"`
|
||||
OverheadLimit int64 `xml:"overheadLimit,omitempty"`
|
||||
OverheadLimit *int64 `xml:"overheadLimit"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -39100,11 +39100,11 @@ func init() {
|
||||
type ResourceConfigSpec struct {
|
||||
DynamicData
|
||||
|
||||
Entity *ManagedObjectReference `xml:"entity,omitempty"`
|
||||
ChangeVersion string `xml:"changeVersion,omitempty"`
|
||||
LastModified *time.Time `xml:"lastModified"`
|
||||
CpuAllocation BaseResourceAllocationInfo `xml:"cpuAllocation,typeattr"`
|
||||
MemoryAllocation BaseResourceAllocationInfo `xml:"memoryAllocation,typeattr"`
|
||||
Entity *ManagedObjectReference `xml:"entity,omitempty"`
|
||||
ChangeVersion string `xml:"changeVersion,omitempty"`
|
||||
LastModified *time.Time `xml:"lastModified"`
|
||||
CpuAllocation ResourceAllocationInfo `xml:"cpuAllocation"`
|
||||
MemoryAllocation ResourceAllocationInfo `xml:"memoryAllocation"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -42322,9 +42322,9 @@ func init() {
|
||||
type StorageIOAllocationInfo struct {
|
||||
DynamicData
|
||||
|
||||
Limit int64 `xml:"limit,omitempty"`
|
||||
Limit *int64 `xml:"limit"`
|
||||
Shares *SharesInfo `xml:"shares,omitempty"`
|
||||
Reservation int32 `xml:"reservation,omitempty"`
|
||||
Reservation *int32 `xml:"reservation"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -47957,9 +47957,9 @@ func init() {
|
||||
type VirtualEthernetCardResourceAllocation struct {
|
||||
DynamicData
|
||||
|
||||
Reservation int64 `xml:"reservation,omitempty"`
|
||||
Reservation *int64 `xml:"reservation"`
|
||||
Share SharesInfo `xml:"share"`
|
||||
Limit int64 `xml:"limit,omitempty"`
|
||||
Limit *int64 `xml:"limit"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -48356,8 +48356,8 @@ type VirtualMachineConfigInfo struct {
|
||||
ConsolePreferences *VirtualMachineConsolePreferences `xml:"consolePreferences,omitempty"`
|
||||
DefaultPowerOps VirtualMachineDefaultPowerOpInfo `xml:"defaultPowerOps"`
|
||||
Hardware VirtualHardware `xml:"hardware"`
|
||||
CpuAllocation BaseResourceAllocationInfo `xml:"cpuAllocation,omitempty,typeattr"`
|
||||
MemoryAllocation BaseResourceAllocationInfo `xml:"memoryAllocation,omitempty,typeattr"`
|
||||
CpuAllocation *ResourceAllocationInfo `xml:"cpuAllocation,omitempty"`
|
||||
MemoryAllocation *ResourceAllocationInfo `xml:"memoryAllocation,omitempty"`
|
||||
LatencySensitivity *LatencySensitivity `xml:"latencySensitivity,omitempty"`
|
||||
MemoryHotAddEnabled *bool `xml:"memoryHotAddEnabled"`
|
||||
CpuHotAddEnabled *bool `xml:"cpuHotAddEnabled"`
|
||||
@@ -48493,8 +48493,8 @@ type VirtualMachineConfigSpec struct {
|
||||
VirtualICH7MPresent *bool `xml:"virtualICH7MPresent"`
|
||||
VirtualSMCPresent *bool `xml:"virtualSMCPresent"`
|
||||
DeviceChange []BaseVirtualDeviceConfigSpec `xml:"deviceChange,omitempty,typeattr"`
|
||||
CpuAllocation BaseResourceAllocationInfo `xml:"cpuAllocation,omitempty,typeattr"`
|
||||
MemoryAllocation BaseResourceAllocationInfo `xml:"memoryAllocation,omitempty,typeattr"`
|
||||
CpuAllocation *ResourceAllocationInfo `xml:"cpuAllocation,omitempty"`
|
||||
MemoryAllocation *ResourceAllocationInfo `xml:"memoryAllocation,omitempty"`
|
||||
LatencySensitivity *LatencySensitivity `xml:"latencySensitivity,omitempty"`
|
||||
CpuAffinity *VirtualMachineAffinityInfo `xml:"cpuAffinity,omitempty"`
|
||||
MemoryAffinity *VirtualMachineAffinityInfo `xml:"memoryAffinity,omitempty"`
|
||||
@@ -53154,8 +53154,8 @@ type WaitForUpdatesResponse struct {
|
||||
type WaitOptions struct {
|
||||
DynamicData
|
||||
|
||||
MaxWaitSeconds int32 `xml:"maxWaitSeconds,omitempty"`
|
||||
MaxObjectUpdates int32 `xml:"maxObjectUpdates,omitempty"`
|
||||
MaxWaitSeconds *int32 `xml:"maxWaitSeconds"`
|
||||
MaxObjectUpdates int32 `xml:"maxObjectUpdates,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user