github.com/vmware/govmomi@v0.51.0/internal/types.go (about)

     1  // © Broadcom. All Rights Reserved.
     2  // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
     3  // SPDX-License-Identifier: Apache-2.0
     4  
     5  package internal
     6  
     7  import (
     8  	"reflect"
     9  
    10  	"github.com/vmware/govmomi/vim25/types"
    11  )
    12  
    13  type VimEsxCLICLIFault struct {
    14  	types.MethodFault
    15  
    16  	ErrMsg []string `xml:"errMsg"`
    17  }
    18  
    19  func init() {
    20  	types.Add("VimEsxCLICLIFault", reflect.TypeOf((*VimEsxCLICLIFault)(nil)).Elem())
    21  }
    22  
    23  type DynamicTypeMgrQueryMoInstancesRequest struct {
    24  	This       types.ManagedObjectReference `xml:"_this"`
    25  	FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"`
    26  }
    27  
    28  func init() {
    29  	types.Add("DynamicTypeMgrQueryMoInstances", reflect.TypeOf((*DynamicTypeMgrQueryMoInstancesRequest)(nil)).Elem())
    30  }
    31  
    32  type DynamicTypeMgrQueryMoInstancesResponse struct {
    33  	Returnval []DynamicTypeMgrMoInstance `xml:"urn:vim25 returnval"`
    34  }
    35  
    36  type DynamicTypeEnumTypeInfo struct {
    37  	types.DynamicData
    38  
    39  	Name       string                     `xml:"name"`
    40  	WsdlName   string                     `xml:"wsdlName"`
    41  	Version    string                     `xml:"version"`
    42  	Value      []string                   `xml:"value,omitempty"`
    43  	Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
    44  }
    45  
    46  func init() {
    47  	types.Add("DynamicTypeEnumTypeInfo", reflect.TypeOf((*DynamicTypeEnumTypeInfo)(nil)).Elem())
    48  }
    49  
    50  type DynamicTypeMgrAllTypeInfo struct {
    51  	types.DynamicData
    52  
    53  	ManagedTypeInfo []DynamicTypeMgrManagedTypeInfo `xml:"managedTypeInfo,omitempty"`
    54  	EnumTypeInfo    []DynamicTypeEnumTypeInfo       `xml:"enumTypeInfo,omitempty"`
    55  	DataTypeInfo    []DynamicTypeMgrDataTypeInfo    `xml:"dataTypeInfo,omitempty"`
    56  }
    57  
    58  func init() {
    59  	types.Add("DynamicTypeMgrAllTypeInfo", reflect.TypeOf((*DynamicTypeMgrAllTypeInfo)(nil)).Elem())
    60  }
    61  
    62  type DynamicTypeMgrAnnotation struct {
    63  	types.DynamicData
    64  
    65  	Name      string   `xml:"name"`
    66  	Parameter []string `xml:"parameter,omitempty"`
    67  }
    68  
    69  func init() {
    70  	types.Add("DynamicTypeMgrAnnotation", reflect.TypeOf((*DynamicTypeMgrAnnotation)(nil)).Elem())
    71  }
    72  
    73  type DynamicTypeMgrDataTypeInfo struct {
    74  	types.DynamicData
    75  
    76  	Name       string                           `xml:"name"`
    77  	WsdlName   string                           `xml:"wsdlName"`
    78  	Version    string                           `xml:"version"`
    79  	Base       []string                         `xml:"base,omitempty"`
    80  	Property   []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"`
    81  	Annotation []DynamicTypeMgrAnnotation       `xml:"annotation,omitempty"`
    82  }
    83  
    84  func init() {
    85  	types.Add("DynamicTypeMgrDataTypeInfo", reflect.TypeOf((*DynamicTypeMgrDataTypeInfo)(nil)).Elem())
    86  }
    87  
    88  func (b *DynamicTypeMgrFilterSpec) GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec { return b }
    89  
    90  type BaseDynamicTypeMgrFilterSpec interface {
    91  	GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec
    92  }
    93  
    94  type DynamicTypeMgrFilterSpec struct {
    95  	types.DynamicData
    96  }
    97  
    98  func init() {
    99  	types.Add("DynamicTypeMgrFilterSpec", reflect.TypeOf((*DynamicTypeMgrFilterSpec)(nil)).Elem())
   100  }
   101  
   102  type DynamicTypeMgrManagedTypeInfo struct {
   103  	types.DynamicData
   104  
   105  	Name       string                           `xml:"name"`
   106  	WsdlName   string                           `xml:"wsdlName"`
   107  	Version    string                           `xml:"version"`
   108  	Base       []string                         `xml:"base,omitempty"`
   109  	Property   []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"`
   110  	Method     []DynamicTypeMgrMethodTypeInfo   `xml:"method,omitempty"`
   111  	Annotation []DynamicTypeMgrAnnotation       `xml:"annotation,omitempty"`
   112  }
   113  
   114  func init() {
   115  	types.Add("DynamicTypeMgrManagedTypeInfo", reflect.TypeOf((*DynamicTypeMgrManagedTypeInfo)(nil)).Elem())
   116  }
   117  
   118  type DynamicTypeMgrMethodTypeInfo struct {
   119  	types.DynamicData
   120  
   121  	Name           string                        `xml:"name"`
   122  	WsdlName       string                        `xml:"wsdlName"`
   123  	Version        string                        `xml:"version"`
   124  	ParamTypeInfo  []DynamicTypeMgrParamTypeInfo `xml:"paramTypeInfo,omitempty"`
   125  	ReturnTypeInfo *DynamicTypeMgrParamTypeInfo  `xml:"returnTypeInfo,omitempty"`
   126  	Fault          []string                      `xml:"fault,omitempty"`
   127  	PrivId         string                        `xml:"privId,omitempty"`
   128  	Annotation     []DynamicTypeMgrAnnotation    `xml:"annotation,omitempty"`
   129  }
   130  
   131  func init() {
   132  	types.Add("DynamicTypeMgrMethodTypeInfo", reflect.TypeOf((*DynamicTypeMgrMethodTypeInfo)(nil)).Elem())
   133  }
   134  
   135  type DynamicTypeMgrMoFilterSpec struct {
   136  	DynamicTypeMgrFilterSpec
   137  
   138  	Id         string `xml:"id,omitempty"`
   139  	TypeSubstr string `xml:"typeSubstr,omitempty"`
   140  }
   141  
   142  func init() {
   143  	types.Add("DynamicTypeMgrMoFilterSpec", reflect.TypeOf((*DynamicTypeMgrMoFilterSpec)(nil)).Elem())
   144  }
   145  
   146  type DynamicTypeMgrMoInstance struct {
   147  	types.DynamicData
   148  
   149  	Id     string `xml:"id"`
   150  	MoType string `xml:"moType"`
   151  }
   152  
   153  func init() {
   154  	types.Add("DynamicTypeMgrMoInstance", reflect.TypeOf((*DynamicTypeMgrMoInstance)(nil)).Elem())
   155  }
   156  
   157  type DynamicTypeMgrParamTypeInfo struct {
   158  	types.DynamicData
   159  
   160  	Name       string                     `xml:"name"`
   161  	Version    string                     `xml:"version"`
   162  	Type       string                     `xml:"type"`
   163  	PrivId     string                     `xml:"privId,omitempty"`
   164  	Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
   165  }
   166  
   167  func init() {
   168  	types.Add("DynamicTypeMgrParamTypeInfo", reflect.TypeOf((*DynamicTypeMgrParamTypeInfo)(nil)).Elem())
   169  }
   170  
   171  type DynamicTypeMgrPropertyTypeInfo struct {
   172  	types.DynamicData
   173  
   174  	Name        string                     `xml:"name"`
   175  	Version     string                     `xml:"version"`
   176  	Type        string                     `xml:"type"`
   177  	PrivId      string                     `xml:"privId,omitempty"`
   178  	MsgIdFormat string                     `xml:"msgIdFormat,omitempty"`
   179  	Annotation  []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"`
   180  }
   181  
   182  type DynamicTypeMgrQueryTypeInfoRequest struct {
   183  	This       types.ManagedObjectReference `xml:"_this"`
   184  	FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"`
   185  }
   186  
   187  func init() {
   188  	types.Add("DynamicTypeMgrQueryTypeInfo", reflect.TypeOf((*DynamicTypeMgrQueryTypeInfoRequest)(nil)).Elem())
   189  }
   190  
   191  type DynamicTypeMgrQueryTypeInfoResponse struct {
   192  	Returnval DynamicTypeMgrAllTypeInfo `xml:"urn:vim25 returnval"`
   193  }
   194  
   195  func init() {
   196  	types.Add("DynamicTypeMgrPropertyTypeInfo", reflect.TypeOf((*DynamicTypeMgrPropertyTypeInfo)(nil)).Elem())
   197  }
   198  
   199  type DynamicTypeMgrTypeFilterSpec struct {
   200  	DynamicTypeMgrFilterSpec
   201  
   202  	TypeSubstr string `xml:"typeSubstr,omitempty"`
   203  }
   204  
   205  func init() {
   206  	types.Add("DynamicTypeMgrTypeFilterSpec", reflect.TypeOf((*DynamicTypeMgrTypeFilterSpec)(nil)).Elem())
   207  }
   208  
   209  type ReflectManagedMethodExecuterSoapArgument struct {
   210  	types.DynamicData
   211  
   212  	Name string `xml:"name"`
   213  	Val  string `xml:"val"`
   214  }
   215  
   216  func init() {
   217  	types.Add("ReflectManagedMethodExecuterSoapArgument", reflect.TypeOf((*ReflectManagedMethodExecuterSoapArgument)(nil)).Elem())
   218  }
   219  
   220  type ReflectManagedMethodExecuterSoapFault struct {
   221  	types.DynamicData
   222  
   223  	FaultMsg    string `xml:"faultMsg"`
   224  	FaultDetail string `xml:"faultDetail,omitempty"`
   225  }
   226  
   227  func init() {
   228  	types.Add("ReflectManagedMethodExecuterSoapFault", reflect.TypeOf((*ReflectManagedMethodExecuterSoapFault)(nil)).Elem())
   229  }
   230  
   231  type ReflectManagedMethodExecuterSoapResult struct {
   232  	types.DynamicData
   233  
   234  	Response string                                 `xml:"response,omitempty"`
   235  	Fault    *ReflectManagedMethodExecuterSoapFault `xml:"fault,omitempty"`
   236  }
   237  
   238  type RetrieveDynamicTypeManagerRequest struct {
   239  	This types.ManagedObjectReference `xml:"_this"`
   240  }
   241  
   242  type RetrieveDynamicTypeManagerResponse struct {
   243  	Returnval *InternalDynamicTypeManager `xml:"urn:vim25 returnval"`
   244  }
   245  
   246  func init() {
   247  	types.Add("RetrieveDynamicTypeManager", reflect.TypeOf((*RetrieveDynamicTypeManagerRequest)(nil)).Elem())
   248  }
   249  
   250  type RetrieveManagedMethodExecuterRequest struct {
   251  	This types.ManagedObjectReference `xml:"_this"`
   252  }
   253  
   254  func init() {
   255  	types.Add("RetrieveManagedMethodExecuter", reflect.TypeOf((*RetrieveManagedMethodExecuterRequest)(nil)).Elem())
   256  }
   257  
   258  type RetrieveManagedMethodExecuterResponse struct {
   259  	Returnval *ReflectManagedMethodExecuter `xml:"urn:vim25 returnval"`
   260  }
   261  
   262  type InternalDynamicTypeManager struct {
   263  	types.ManagedObjectReference
   264  }
   265  
   266  type ReflectManagedMethodExecuter struct {
   267  	types.ManagedObjectReference
   268  }
   269  
   270  type ExecuteSoapRequest struct {
   271  	This     types.ManagedObjectReference               `xml:"_this"`
   272  	Moid     string                                     `xml:"moid"`
   273  	Version  string                                     `xml:"version"`
   274  	Method   string                                     `xml:"method"`
   275  	Argument []ReflectManagedMethodExecuterSoapArgument `xml:"argument,omitempty"`
   276  }
   277  
   278  type ExecuteSoapResponse struct {
   279  	Returnval *ReflectManagedMethodExecuterSoapResult `xml:"urn:vim25 returnval"`
   280  }
   281  
   282  func init() {
   283  	types.Add("ExecuteSoap", reflect.TypeOf((*ExecuteSoapRequest)(nil)).Elem())
   284  
   285  	types.Add("ArrayOfVirtualDiskInfo", reflect.TypeOf((*ArrayOfVirtualDiskInfo)(nil)).Elem())
   286  
   287  	types.Add("VirtualDiskInfo", reflect.TypeOf((*VirtualDiskInfo)(nil)).Elem())
   288  
   289  	types.Add("QueryVirtualDiskInfo_Task", reflect.TypeOf((*QueryVirtualDiskInfoTaskRequest)(nil)).Elem())
   290  }
   291  
   292  type VirtualDiskInfo struct {
   293  	Name     string `xml:"unit>name"`
   294  	DiskType string `xml:"diskType"`
   295  	Parent   string `xml:"parent,omitempty"`
   296  }
   297  
   298  type ArrayOfVirtualDiskInfo struct {
   299  	VirtualDiskInfo []VirtualDiskInfo `xml:"VirtualDiskInfo,omitempty"`
   300  }
   301  
   302  type QueryVirtualDiskInfoTaskRequest struct {
   303  	This           types.ManagedObjectReference  `xml:"_this"`
   304  	Name           string                        `xml:"name"`
   305  	Datacenter     *types.ManagedObjectReference `xml:"datacenter,omitempty"`
   306  	IncludeParents bool                          `xml:"includeParents"`
   307  }
   308  
   309  type QueryVirtualDiskInfo_TaskResponse struct {
   310  	Returnval types.ManagedObjectReference `xml:"returnval"`
   311  }