github.com/vmware/govmomi@v0.37.1/internal/types.go (about) 1 /* 2 Copyright (c) 2014 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 */ 16 17 package internal 18 19 import ( 20 "reflect" 21 22 "github.com/vmware/govmomi/vim25/types" 23 ) 24 25 type DynamicTypeMgrQueryMoInstancesRequest struct { 26 This types.ManagedObjectReference `xml:"_this"` 27 FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"` 28 } 29 30 type DynamicTypeMgrQueryMoInstancesResponse struct { 31 Returnval []DynamicTypeMgrMoInstance `xml:"urn:vim25 returnval"` 32 } 33 34 type DynamicTypeEnumTypeInfo struct { 35 types.DynamicData 36 37 Name string `xml:"name"` 38 WsdlName string `xml:"wsdlName"` 39 Version string `xml:"version"` 40 Value []string `xml:"value,omitempty"` 41 Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` 42 } 43 44 func init() { 45 types.Add("DynamicTypeEnumTypeInfo", reflect.TypeOf((*DynamicTypeEnumTypeInfo)(nil)).Elem()) 46 } 47 48 type DynamicTypeMgrAllTypeInfoRequest struct { 49 types.DynamicData 50 51 ManagedTypeInfo []DynamicTypeMgrManagedTypeInfo `xml:"managedTypeInfo,omitempty"` 52 EnumTypeInfo []DynamicTypeEnumTypeInfo `xml:"enumTypeInfo,omitempty"` 53 DataTypeInfo []DynamicTypeMgrDataTypeInfo `xml:"dataTypeInfo,omitempty"` 54 } 55 56 func init() { 57 types.Add("DynamicTypeMgrAllTypeInfo", reflect.TypeOf((*DynamicTypeMgrAllTypeInfoRequest)(nil)).Elem()) 58 } 59 60 type DynamicTypeMgrAnnotation struct { 61 types.DynamicData 62 63 Name string `xml:"name"` 64 Parameter []string `xml:"parameter,omitempty"` 65 } 66 67 func init() { 68 types.Add("DynamicTypeMgrAnnotation", reflect.TypeOf((*DynamicTypeMgrAnnotation)(nil)).Elem()) 69 } 70 71 type DynamicTypeMgrDataTypeInfo struct { 72 types.DynamicData 73 74 Name string `xml:"name"` 75 WsdlName string `xml:"wsdlName"` 76 Version string `xml:"version"` 77 Base []string `xml:"base,omitempty"` 78 Property []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"` 79 Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` 80 } 81 82 func init() { 83 types.Add("DynamicTypeMgrDataTypeInfo", reflect.TypeOf((*DynamicTypeMgrDataTypeInfo)(nil)).Elem()) 84 } 85 86 func (b *DynamicTypeMgrFilterSpec) GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec { return b } 87 88 type BaseDynamicTypeMgrFilterSpec interface { 89 GetDynamicTypeMgrFilterSpec() *DynamicTypeMgrFilterSpec 90 } 91 92 type DynamicTypeMgrFilterSpec struct { 93 types.DynamicData 94 } 95 96 func init() { 97 types.Add("DynamicTypeMgrFilterSpec", reflect.TypeOf((*DynamicTypeMgrFilterSpec)(nil)).Elem()) 98 } 99 100 type DynamicTypeMgrManagedTypeInfo struct { 101 types.DynamicData 102 103 Name string `xml:"name"` 104 WsdlName string `xml:"wsdlName"` 105 Version string `xml:"version"` 106 Base []string `xml:"base,omitempty"` 107 Property []DynamicTypeMgrPropertyTypeInfo `xml:"property,omitempty"` 108 Method []DynamicTypeMgrMethodTypeInfo `xml:"method,omitempty"` 109 Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` 110 } 111 112 func init() { 113 types.Add("DynamicTypeMgrManagedTypeInfo", reflect.TypeOf((*DynamicTypeMgrManagedTypeInfo)(nil)).Elem()) 114 } 115 116 type DynamicTypeMgrMethodTypeInfo struct { 117 types.DynamicData 118 119 Name string `xml:"name"` 120 WsdlName string `xml:"wsdlName"` 121 Version string `xml:"version"` 122 ParamTypeInfo []DynamicTypeMgrParamTypeInfo `xml:"paramTypeInfo,omitempty"` 123 ReturnTypeInfo *DynamicTypeMgrParamTypeInfo `xml:"returnTypeInfo,omitempty"` 124 Fault []string `xml:"fault,omitempty"` 125 PrivId string `xml:"privId,omitempty"` 126 Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` 127 } 128 129 func init() { 130 types.Add("DynamicTypeMgrMethodTypeInfo", reflect.TypeOf((*DynamicTypeMgrMethodTypeInfo)(nil)).Elem()) 131 } 132 133 type DynamicTypeMgrMoFilterSpec struct { 134 DynamicTypeMgrFilterSpec 135 136 Id string `xml:"id,omitempty"` 137 TypeSubstr string `xml:"typeSubstr,omitempty"` 138 } 139 140 func init() { 141 types.Add("DynamicTypeMgrMoFilterSpec", reflect.TypeOf((*DynamicTypeMgrMoFilterSpec)(nil)).Elem()) 142 } 143 144 type DynamicTypeMgrMoInstance struct { 145 types.DynamicData 146 147 Id string `xml:"id"` 148 MoType string `xml:"moType"` 149 } 150 151 func init() { 152 types.Add("DynamicTypeMgrMoInstance", reflect.TypeOf((*DynamicTypeMgrMoInstance)(nil)).Elem()) 153 } 154 155 type DynamicTypeMgrParamTypeInfo struct { 156 types.DynamicData 157 158 Name string `xml:"name"` 159 Version string `xml:"version"` 160 Type string `xml:"type"` 161 PrivId string `xml:"privId,omitempty"` 162 Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` 163 } 164 165 func init() { 166 types.Add("DynamicTypeMgrParamTypeInfo", reflect.TypeOf((*DynamicTypeMgrParamTypeInfo)(nil)).Elem()) 167 } 168 169 type DynamicTypeMgrPropertyTypeInfo struct { 170 types.DynamicData 171 172 Name string `xml:"name"` 173 Version string `xml:"version"` 174 Type string `xml:"type"` 175 PrivId string `xml:"privId,omitempty"` 176 MsgIdFormat string `xml:"msgIdFormat,omitempty"` 177 Annotation []DynamicTypeMgrAnnotation `xml:"annotation,omitempty"` 178 } 179 180 type DynamicTypeMgrQueryTypeInfoRequest struct { 181 This types.ManagedObjectReference `xml:"_this"` 182 FilterSpec BaseDynamicTypeMgrFilterSpec `xml:"filterSpec,omitempty,typeattr"` 183 } 184 185 type DynamicTypeMgrQueryTypeInfoResponse struct { 186 Returnval DynamicTypeMgrAllTypeInfoRequest `xml:"urn:vim25 returnval"` 187 } 188 189 func init() { 190 types.Add("DynamicTypeMgrPropertyTypeInfo", reflect.TypeOf((*DynamicTypeMgrPropertyTypeInfo)(nil)).Elem()) 191 } 192 193 type DynamicTypeMgrTypeFilterSpec struct { 194 DynamicTypeMgrFilterSpec 195 196 TypeSubstr string `xml:"typeSubstr,omitempty"` 197 } 198 199 func init() { 200 types.Add("DynamicTypeMgrTypeFilterSpec", reflect.TypeOf((*DynamicTypeMgrTypeFilterSpec)(nil)).Elem()) 201 } 202 203 type ReflectManagedMethodExecuterSoapArgument struct { 204 types.DynamicData 205 206 Name string `xml:"name"` 207 Val string `xml:"val"` 208 } 209 210 func init() { 211 types.Add("ReflectManagedMethodExecuterSoapArgument", reflect.TypeOf((*ReflectManagedMethodExecuterSoapArgument)(nil)).Elem()) 212 } 213 214 type ReflectManagedMethodExecuterSoapFault struct { 215 types.DynamicData 216 217 FaultMsg string `xml:"faultMsg"` 218 FaultDetail string `xml:"faultDetail,omitempty"` 219 } 220 221 func init() { 222 types.Add("ReflectManagedMethodExecuterSoapFault", reflect.TypeOf((*ReflectManagedMethodExecuterSoapFault)(nil)).Elem()) 223 } 224 225 type ReflectManagedMethodExecuterSoapResult struct { 226 types.DynamicData 227 228 Response string `xml:"response,omitempty"` 229 Fault *ReflectManagedMethodExecuterSoapFault `xml:"fault,omitempty"` 230 } 231 232 type RetrieveDynamicTypeManagerRequest struct { 233 This types.ManagedObjectReference `xml:"_this"` 234 } 235 236 type RetrieveDynamicTypeManagerResponse struct { 237 Returnval *InternalDynamicTypeManager `xml:"urn:vim25 returnval"` 238 } 239 240 type RetrieveManagedMethodExecuterRequest struct { 241 This types.ManagedObjectReference `xml:"_this"` 242 } 243 244 func init() { 245 types.Add("RetrieveManagedMethodExecuter", reflect.TypeOf((*RetrieveManagedMethodExecuterRequest)(nil)).Elem()) 246 } 247 248 type RetrieveManagedMethodExecuterResponse struct { 249 Returnval *ReflectManagedMethodExecuter `xml:"urn:vim25 returnval"` 250 } 251 252 type InternalDynamicTypeManager struct { 253 types.ManagedObjectReference 254 } 255 256 type ReflectManagedMethodExecuter struct { 257 types.ManagedObjectReference 258 } 259 260 type ExecuteSoapRequest struct { 261 This types.ManagedObjectReference `xml:"_this"` 262 Moid string `xml:"moid"` 263 Version string `xml:"version"` 264 Method string `xml:"method"` 265 Argument []ReflectManagedMethodExecuterSoapArgument `xml:"argument,omitempty"` 266 } 267 268 type ExecuteSoapResponse struct { 269 Returnval *ReflectManagedMethodExecuterSoapResult `xml:"urn:vim25 returnval"` 270 }