Debian Codegraph @

types/v56/types.go

raw symbols SCIP
1 /*
2 * Copyright 2014 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
3 */
4
5 package types
6
7 import (
8 "encoding/xml"
9 )
10
11 // Maps status Attribute Values for VAppTemplate, VApp, Vm, and Media Objects
12 var VAppStatuses = map[int]string{
13 -1: "FAILED_CREATION",
14 0: "UNRESOLVED",
15 1: "RESOLVED",
16 2: "DEPLOYED",
17 3: "SUSPENDED",
18 4: "POWERED_ON",
19 5: "WAITING_FOR_INPUT",
20 6: "UNKNOWN",
21 7: "UNRECOGNIZED",
22 8: "POWERED_OFF",
23 9: "INCONSISTENT_STATE",
24 10: "MIXED",
25 11: "DESCRIPTOR_PENDING",
26 12: "COPYING_CONTENTS",
27 13: "DISK_CONTENTS_PENDING",
28 14: "QUARANTINED",
29 15: "QUARANTINE_EXPIRED",
30 16: "REJECTED",
31 17: "TRANSFER_TIMEOUT",
32 18: "VAPP_UNDEPLOYED",
33 19: "VAPP_PARTIALLY_DEPLOYED",
34 }
35
36 // Maps status Attribute Values for VDC Objects
37 var VDCStatuses = map[int]string{
38 -1: "FAILED_CREATION",
39 0: "NOT_READY",
40 1: "READY",
41 2: "UNKNOWN",
42 3: "UNRECOGNIZED",
43 }
44
45 // VCD API
46
47 // DefaultStorageProfileSection is the name of the storage profile that will be specified for this virtual machine. The named storage profile must exist in the organization vDC that contains the virtual machine. If not specified, the default storage profile for the vDC is used.
48 // Type: DefaultStorageProfileSection_Type
49 // Namespace: http://www.vmware.com/vcloud/v1.5
50 // Description: Name of the storage profile that will be specified for this virtual machine. The named storage profile must exist in the organization vDC that contains the virtual machine. If not specified, the default storage profile for the vDC is used.
51 // Since: 5.1
52 type DefaultStorageProfileSection struct {
53 StorageProfile string `xml:"StorageProfile,omitempty"`
54 }
55
56 // CustomizationSection represents a vApp template customization settings.
57 // Type: CustomizationSectionType
58 // Namespace: http://www.vmware.com/vcloud/v1.5
59 // Description: Represents a vApp template customization settings.
60 // Since: 1.0
61 type CustomizationSection struct {
62 // FIXME: OVF Section needs to be laid down correctly
63 Info string `xml:"ovf:Info"`
64 //
65 GoldMaster bool `xml:"goldMaster,attr,omitempty"`
66 HREF string `xml:"href,attr,omitempty"`
67 Type string `xml:"type,attr,omitempty"`
68 CustomizeOnInstantiate bool `xml:"CustomizeOnInstantiate"`
69 Link []*Link `xml:"Link,omitempty"`
70 }
71
72 // LeaseSettingsSection represents vApp lease settings.
73 // Type: LeaseSettingsSectionType
74 // Namespace: http://www.vmware.com/vcloud/v1.5
75 // Description: Represents vApp lease settings.
76 // Since: 0.9
77 type LeaseSettingsSection struct {
78 HREF string `xml:"href,attr,omitempty"`
79 Type string `xml:"type,attr,omitempty"`
80 DeploymentLeaseExpiration string `xml:"DeploymentLeaseExpiration,omitempty"`
81 DeploymentLeaseInSeconds int `xml:"DeploymentLeaseInSeconds,omitempty"`
82 Link *Link `xml:"Link,omitempty"`
83 StorageLeaseExpiration string `xml:"StorageLeaseExpiration,omitempty"`
84 StorageLeaseInSeconds int `xml:"StorageLeaseInSeconds,omitempty"`
85 }
86
87 // IPRange represents a range of IP addresses, start and end inclusive.
88 // Type: IpRangeType
89 // Namespace: http://www.vmware.com/vcloud/v1.5
90 // Description: Represents a range of IP addresses, start and end inclusive.
91 // Since: 0.9
92 type IPRange struct {
93 StartAddress string `xml:"StartAddress"` // Start address of the IP range.
94 EndAddress string `xml:"EndAddress"` // End address of the IP range.
95 }
96
97 // DhcpService represents a DHCP network service.
98 // Type: DhcpServiceType
99 // Namespace: http://www.vmware.com/vcloud/v1.5
100 // Description: Represents a DHCP network service.
101 // Since:
102 type DhcpService struct {
103 DefaultLeaseTime int `xml:"DefaultLeaseTime,omitempty"` // Default lease in seconds for DHCP addresses.
104 DomainName string `xml:"DomainName,omitempty"` // The domain name.
105 IPRange *IPRange `xml:"IpRange"` // IP range for DHCP addresses.
106 IsEnabled bool `xml:"IsEnabled"` // Enable or disable the service using this flag
107 MaxLeaseTime int `xml:"MaxLeaseTime"` // Max lease in seconds for DHCP addresses.
108 PrimaryNameServer string `xml:"PrimaryNameServer,omitempty"` // The primary name server.
109 RouterIP string `xml:"RouterIp,omitempty"` // Router IP.
110 SecondaryNameServer string `xml:"SecondaryNameServer,omitempty"` // The secondary name server.
111 SubMask string `xml:"SubMask,omitempty"` // The subnet mask.
112 }
113
114 // NetworkFeatures represents features of a network.
115 // Type: NetworkFeaturesType
116 // Namespace: http://www.vmware.com/vcloud/v1.5
117 // Description: Represents features of a network.
118 // Since:
119 type NetworkFeatures struct {
120 DhcpService *DhcpService `xml:"DhcpService,omitempty"` // Substitute for NetworkService. DHCP service settings
121 FirewallService *FirewallService `xml:"FirewallService,omitempty"` // Substitute for NetworkService. Firewall service settings
122 NatService *NatService `xml:"NatService,omitempty"` // Substitute for NetworkService. NAT service settings
123 LoadBalancerService *LoadBalancerService `xml:"LoadBalancerService,omitempty"` // Substitute for NetworkService. Load Balancer service settings
124 StaticRoutingService *StaticRoutingService `xml:"StaticRoutingService,omitempty"` // Substitute for NetworkService. Static Routing service settings
125 // TODO: Not Implemented
126 // IpsecVpnService IpsecVpnService `xml:"IpsecVpnService,omitempty"` // Substitute for NetworkService. Ipsec Vpn service settings
127 }
128
129 // IPAddresses a list of IP addresses
130 // Type: IpAddressesType
131 // Namespace: http://www.vmware.com/vcloud/v1.5
132 // Description: A list of IP addresses.
133 // Since: 0.9
134 type IPAddresses struct {
135 IPAddress string `xml:"IpAddress,omitempty"` // An IP address.
136 }
137
138 // IPRanges representsa list of IP ranges.
139 // Type: IpRangesType
140 // Namespace: http://www.vmware.com/vcloud/v1.5
141 // Description: Represents a list of IP ranges.
142 // Since: 0.9
143 type IPRanges struct {
144 IPRange []*IPRange `xml:"IpRange,omitempty"` // IP range.
145 }
146
147 // IPScope specifies network settings like gateway, network mask, DNS servers IP ranges etc
148 // Type: IpScopeType
149 // Namespace: http://www.vmware.com/vcloud/v1.5
150 // Description: Specify network settings like gateway, network mask, DNS servers, IP ranges, etc.
151 // Since: 0.9
152 type IPScope struct {
153 IsInherited bool `xml:"IsInherited"` // True if the IP scope is inherit from parent network.
154 Gateway string `xml:"Gateway,omitempty"` // Gateway of the network.
155 Netmask string `xml:"Netmask,omitempty"` // Network mask.
156 DNS1 string `xml:"Dns1,omitempty"` // Primary DNS server.
157 DNS2 string `xml:"Dns2,omitempty"` // Secondary DNS server.
158 DNSSuffix string `xml:"DnsSuffix,omitempty"` // DNS suffix.
159 IsEnabled bool `xml:"IsEnabled"` // Indicates if subnet is enabled or not. Default value is True.
160 IPRanges *IPRanges `xml:"IpRanges,omitempty"` // IP ranges used for static pool allocation in the network.
161 AllocatedIPAddresses *IPAddresses `xml:"AllocatedIpAddresses,omitempty"` // Read-only list of allocated IP addresses in the network.
162 SubAllocations *SubAllocations `xml:"SubAllocations,omitempty"` // Read-only list of IP addresses that are sub allocated to edge gateways.
163 }
164
165 // SubAllocations a list of IP addresses that are sub allocated to edge gateways.
166 // Type: SubAllocationsType
167 // Namespace: http://www.vmware.com/vcloud/v1.5
168 // Description: A list of IP addresses that are sub allocated to edge gateways.
169 // Since: 5.1
170 type SubAllocations struct {
171 // Attributes
172 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
173 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
174 // Elements
175 Link []*Link `xml:"Link,omitempty"` // A reference to an entity or operation associated with this object.
176 SubAllocation *SubAllocation `xml:"SubAllocation,omitempty"` // IP Range sub allocated to a edge gateway.
177 }
178
179 // SubAllocation IP range sub allocated to an edge gateway.
180 // Type: SubAllocationType
181 // Namespace: http://www.vmware.com/vcloud/v1.5
182 // Description: IP range sub allocated to an edge gateway.
183 // Since: 5.1
184 type SubAllocation struct {
185 EdgeGateway *Reference `xml:"EdgeGateway,omitempty"` // Edge gateway that uses this sub allocation.
186 IPRanges *IPRanges `xml:"IpRanges,omitempty"` // IP range sub allocated to the edge gateway.
187 }
188
189 // IPScopes represents a list of IP scopes.
190 // Type: IpScopesType
191 // Namespace: http://www.vmware.com/vcloud/v1.5
192 // Description: Represents a list of IP scopes.
193 // Since: 5.1
194 type IPScopes struct {
195 IPScope IPScope `xml:"IpScope"` // IP scope.
196 }
197
198 // NetworkConfiguration the configuration applied to a network. This is an abstract base type. The concrete types include thos for vApp and Organization wide networks.
199 // Type: NetworkConfigurationType
200 // Namespace: http://www.vmware.com/vcloud/v1.5
201 // Description: The configurations applied to a network. This is an abstract base type. The concrete types include those for vApp and Organization wide networks.
202 // Since: 0.9
203 type NetworkConfiguration struct {
204 BackwardCompatibilityMode bool `xml:"BackwardCompatibilityMode"`
205 Features *NetworkFeatures `xml:"Features,omitempty"`
206 ParentNetwork *Reference `xml:"ParentNetwork,omitempty"`
207 IPScopes *IPScopes `xml:"IpScopes,omitempty"`
208 FenceMode string `xml:"FenceMode"`
209 RetainNetInfoAcrossDeployments bool `xml:"RetainNetInfoAcrossDeployments"`
210 // TODO: Not Implemented
211 // RouterInfo RouterInfo `xml:"RouterInfo,omitempty"`
212 // SyslogServerSettings SyslogServerSettings `xml:"SyslogServerSettings,omitempty"`
213 }
214
215 // VAppNetworkConfiguration representa a vApp network configuration
216 // Type: VAppNetworkConfigurationType
217 // Namespace: http://www.vmware.com/vcloud/v1.5
218 // Description: Represents a vApp network configuration.
219 // Since: 0.9
220 type VAppNetworkConfiguration struct {
221 HREF string `xml:"href,attr,omitempty"`
222 Type string `xml:"type,attr,omitempty"`
223 NetworkName string `xml:"networkName,attr"`
224
225 Configuration *NetworkConfiguration `xml:"Configuration"`
226 Description string `xml:"Description,omitempty"`
227 IsDeployed bool `xml:"IsDeployed"`
228 Link *Link `xml:"Link,omitempty"`
229 }
230
231 // NetworkConfigSection is container for vApp networks.
232 // Type: NetworkConfigSectionType
233 // Namespace: http://www.vmware.com/vcloud/v1.5
234 // Description: Container for vApp networks.
235 // Since: 0.9
236 type NetworkConfigSection struct {
237 // Extends OVF Section_Type
238 // FIXME: Fix the OVF section
239 Info string `xml:"ovf:Info"`
240 //
241 HREF string `xml:"href,attr,omitempty"`
242 Type string `xml:"type,attr,omitempty"`
243 Link *Link `xml:"Link,omitempty"`
244 NetworkConfig *VAppNetworkConfiguration `xml:"NetworkConfig,omitempty"`
245 }
246
247 // NetworkConnection represents a network connection in the virtual machine.
248 // Type: NetworkConnectionType
249 // Namespace: http://www.vmware.com/vcloud/v1.5
250 // Description: Represents a network connection in the virtual machine.
251 // Since: 0.9
252 type NetworkConnection struct {
253 Network string `xml:"network,attr"` // Name of the network to which this NIC is connected.
254 NetworkConnectionIndex int `xml:"NetworkConnectionIndex"` // Virtual slot number associated with this NIC. First slot number is 0.
255 NeedsCustomization bool `xml:"needsCustomization,attr,omitempty"` // True if this NIC needs customization.
256 ExternalIPAddress string `xml:"ExternalIpAddress,omitempty"` // If the network to which this NIC connects provides NAT services, the external address assigned to this NIC appears here.
257 IPAddress string `xml:"IpAddress,omitempty"` // IP address assigned to this NIC.
258 IsConnected bool `xml:"IsConnected"` // If the virtual machine is undeployed, this value specifies whether the NIC should be connected upon deployment. If the virtual machine is deployed, this value reports the current status of this NIC's connection, and can be updated to change that connection status.
259 IPAddressAllocationMode string `xml:"IpAddressAllocationMode"` // IP address allocation mode for this connection. One of: POOL (A static IP address is allocated automatically from a pool of addresses.) DHCP (The IP address is obtained from a DHCP service.) MANUAL (The IP address is assigned manually in the IpAddress element.) NONE (No IP addressing mode specified.)
260 MACAddress string `xml:"MACAddress,omitempty"` // MAC address associated with the NIC.
261 }
262
263 // NetworkConnectionSection the container for the network connections of this virtual machine.
264 // Type: NetworkConnectionSectionType
265 // Namespace: http://www.vmware.com/vcloud/v1.5
266 // Description: Container for the network connections of this virtual machine.
267 // Since: 0.9
268 type NetworkConnectionSection struct {
269 // Extends OVF Section_Type
270 // FIXME: Fix the OVF section
271 XMLName xml.Name `xml:"NetworkConnectionSection"`
272 Xmlns string `xml:"xmlns,attr,omitempty"`
273 Ovf string `xml:"xmlns:ovf,attr,omitempty"`
274
275 Info string `xml:"ovf:Info"`
276 //
277 HREF string `xml:"href,attr,omitempty"`
278 Type string `xml:"type,attr,omitempty"`
279 Link *Link `xml:"Link,omitempty"`
280 PrimaryNetworkConnectionIndex int `xml:"PrimaryNetworkConnectionIndex"`
281 NetworkConnection *NetworkConnection `xml:"NetworkConnection,omitempty"`
282 }
283
284 // InstantiationParams is a container for ovf:Section_Type elements that specify vApp configuration on instantiate, compose, or recompose.
285 // Type: InstantiationParamsType
286 // Namespace: http://www.vmware.com/vcloud/v1.5
287 // Description: Container for ovf:Section_Type elements that specify vApp configuration on instantiate, compose, or recompose.
288 // Since: 0.9
289 type InstantiationParams struct {
290 CustomizationSection *CustomizationSection `xml:"CustomizationSection,omitempty"`
291 DefaultStorageProfileSection *DefaultStorageProfileSection `xml:"DefaultStorageProfileSection,omitempty"`
292 GuestCustomizationSection *GuestCustomizationSection `xml:"GuestCustomizationSection,omitempty"`
293 LeaseSettingsSection *LeaseSettingsSection `xml:"LeaseSettingsSection,omitempty"`
294 NetworkConfigSection *NetworkConfigSection `xml:"NetworkConfigSection,omitempty"`
295 NetworkConnectionSection *NetworkConnectionSection `xml:"NetworkConnectionSection,omitempty"`
296 ProductSection *ProductSection `xml:"ProductSection,omitempty"`
297 // TODO: Not Implemented
298 // SnapshotSection SnapshotSection `xml:"SnapshotSection,omitempty"`
299 }
300
301 // OrgVDCNetwork represents an Org vDC network in the vCloud model.
302 // Type: OrgVdcNetworkType
303 // Namespace: http://www.vmware.com/vcloud/v1.5
304 // Description: Represents an Org vDC network in the vCloud model.
305 // Since: 5.1
306 type OrgVDCNetwork struct {
307 XMLName xml.Name `xml:"OrgVdcNetwork"`
308 Xmlns string `xml:"xmlns,attr,imitempty"`
309 HREF string `xml:"href,attr,omitempty"`
310 Type string `xml:"type,attr,omitempty"`
311 ID string `xml:"id,attr,omitempty"`
312 OperationKey string `xml:"operationKey,attr,omitempty"`
313 Name string `xml:"name,attr"`
314 Status string `xml:"status,attr,omitempty"`
315 Configuration *NetworkConfiguration `xml:"Configuration,omitempty"`
316 Description string `xml:"Description,omitempty"`
317 EdgeGateway *Reference `xml:"EdgeGateway,omitempty"`
318 IsShared bool `xml:"IsShared"`
319 Link []Link `xml:"Link,omitempty"`
320 ServiceConfig *GatewayFeatures `xml:"ServiceConfig,omitempty"` // Specifies the service configuration for an isolated Org vDC networks
321 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
322 }
323
324 // SupportedHardwareVersions contains a list of VMware virtual hardware versions supported in this vDC.
325 // Type: SupportedHardwareVersionsType
326 // Namespace: http://www.vmware.com/vcloud/v1.5
327 // Description: Contains a list of VMware virtual hardware versions supported in this vDC.
328 // Since: 1.5
329 type SupportedHardwareVersions struct {
330 SupportedHardwareVersion []string `xml:"SupportedHardwareVersion,omitempty"` // A virtual hardware version supported in this vDC.
331 }
332
333 // Capabilities collection of supported hardware capabilities.
334 // Type: CapabilitiesType
335 // Namespace: http://www.vmware.com/vcloud/v1.5
336 // Description: Collection of supported hardware capabilities.
337 // Since: 1.5
338 type Capabilities struct {
339 SupportedHardwareVersions *SupportedHardwareVersions `xml:"SupportedHardwareVersions,omitempty"` // Read-only list of virtual hardware versions supported by this vDC.
340 }
341
342 // Vdc represents the user view of an organization vDC.
343 // Type: VdcType
344 // Namespace: http://www.vmware.com/vcloud/v1.5
345 // Description: Represents the user view of an organization vDC.
346 // Since: 0.9
347 type Vdc struct {
348 HREF string `xml:"href,attr,omitempty"`
349 Type string `xml:"type,attr,omitempty"`
350 ID string `xml:"id,attr,omitempty"`
351 OperationKey string `xml:"operationKey,attr,omitempty"`
352 Name string `xml:"name,attr"`
353 Status string `xml:"status,attr,omitempty"`
354
355 AllocationModel string `xml:"AllocationModel"`
356 AvailableNetworks []*AvailableNetworks `xml:"AvailableNetworks,omitempty"`
357 Capabilities []*Capabilities `xml:"Capabilities,omitempty"`
358 ComputeCapacity []*ComputeCapacity `xml:"ComputeCapacity"`
359 Description string `xml:"Description,omitempty"`
360 IsEnabled bool `xml:"IsEnabled"`
361 Link []*Link `xml:"Link,omitempty"`
362 NetworkQuota int `xml:"NetworkQuota"`
363 NicQuota int `xml:"NicQuota"`
364 ResourceEntities []*ResourceEntities `xml:"ResourceEntities,omitempty"`
365 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
366 UsedNetworkCount int `xml:"UsedNetworkCount,omitempty"`
367 VdcStorageProfiles []*VdcStorageProfiles `xml:"VdcStorageProfiles"`
368 VMQuota int `xml:"VmQuota"`
369 }
370
371 // Task represents an asynchronous operation in vCloud Director.
372 // Type: TaskType
373 // Namespace: http://www.vmware.com/vcloud/v1.5
374 // Description: Represents an asynchronous operation in vCloud Director.
375 // Since: 0.9
376 type Task struct {
377 HREF string `xml:"href,attr,omitempty"`
378 Type string `xml:"type,attr,omitempty"`
379 ID string `xml:"id,attr,omitempty"`
380 OperationKey string `xml:"operationKey,attr,omitempty"`
381 Name string `xml:"name,attr"`
382 Status string `xml:"status,attr"`
383 Operation string `xml:"operation,attr,omitempty"`
384 OperationName string `xml:"operationName,attr,omitempty"`
385 ServiceNamespace string `xml:"serviceNamespace,attr,omitempty"`
386 StartTime string `xml:"startTime,attr,omitempty"`
387 EndTime string `xml:"endTime,attr,omitempty"`
388 ExpiryTime string `xml:"expiryTime,attr,omitempty"`
389 CancelRequested bool `xml:"cancelRequested,attr,omitempty"`
390 Description string `xml:"Description,omitempty"`
391 Details string `xml:"Details,omitempty"`
392 Error *Error `xml:"Error,omitempty"`
393 Link *Link `xml:"Link,omitempty"`
394 Organization *Reference `xml:"Organization,omitempty"`
395 Owner *Reference `xml:"Owner,omitempty"`
396 Progress int `xml:"Progress,omitempty"`
397 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
398 User *Reference `xml:"User,omitempty"`
399 }
400
401 // CapacityWithUsage represents a capacity and usage of a given resource.
402 // Type: CapacityWithUsageType
403 // Namespace: http://www.vmware.com/vcloud/v1.5
404 // Description: Represents a capacity and usage of a given resource.
405 // Since: 0.9
406 type CapacityWithUsage struct {
407 Allocated int64 `xml:"Allocated,omitempty"`
408 Limit int64 `xml:"Limit,omitempty"`
409 Overhead int64 `xml:"Overhead,omitempty"`
410 Reserved int64 `xml:"Reserved,omitempty"`
411 Units string `xml:"Units"`
412 Used int64 `xml:"Used,omitempty"`
413 }
414
415 // ComputeCapacity represents vDC compute capacity.
416 // Type: ComputeCapacityType
417 // Namespace: http://www.vmware.com/vcloud/v1.5
418 // Description: Represents vDC compute capacity.
419 // Since: 0.9
420 type ComputeCapacity struct {
421 CPU *CapacityWithUsage `xml:"Cpu"`
422 Memory *CapacityWithUsage `xml:"Memory"`
423 }
424
425 // Reference is a reference to a resource. Contains an href attribute and optional name and type attributes.
426 // Type: ReferenceType
427 // Namespace: http://www.vmware.com/vcloud/v1.5
428 // Description: A reference to a resource. Contains an href attribute and optional name and type attributes.
429 // Since: 0.9
430 type Reference struct {
431 HREF string `xml:"href,attr"`
432 ID string `xml:"id,attr,omitempty"`
433 Type string `xml:"type,attr,omitempty"`
434 Name string `xml:"name,attr,omitempty"`
435 }
436
437 // ResourceReference represents a reference to a resource. Contains an href attribute, a resource status attribute, and optional name and type attributes.
438 // Type: ResourceReferenceType
439 // Namespace: http://www.vmware.com/vcloud/v1.5
440 // Description: Represents a reference to a resource. Contains an href attribute, a resource status attribute, and optional name and type attributes.
441 // Since: 0.9
442 type ResourceReference struct {
443 HREF string `xml:"href,attr"`
444 ID string `xml:"id,attr,omitempty"`
445 Type string `xml:"type,attr,omitempty"`
446 Name string `xml:"name,attr,omitempty"`
447 Status string `xml:"status,attr,omitempty"`
448 }
449
450 // VdcStorageProfiles is a container for references to storage profiles associated with a vDC.
451 // Element: VdcStorageProfiles
452 // Type: VdcStorageProfilesType
453 // Namespace: http://www.vmware.com/vcloud/v1.5
454 // Description: Container for references to storage profiles associated with a vDC.
455 // Since: 5.1
456 type VdcStorageProfiles struct {
457 VdcStorageProfile []*Reference `xml:"VdcStorageProfile,omitempty"`
458 }
459
460 // ResourceEntities is a container for references to ResourceEntity objects in this vDC.
461 // Type: ResourceEntitiesType
462 // Namespace: http://www.vmware.com/vcloud/v1.5
463 // Description: Container for references to ResourceEntity objects in this vDC.
464 // Since: 0.9
465 type ResourceEntities struct {
466 ResourceEntity []*ResourceReference `xml:"ResourceEntity,omitempty"`
467 }
468
469 // AvailableNetworks is a container for references to available organization vDC networks.
470 // Type: AvailableNetworksType
471 // Namespace: http://www.vmware.com/vcloud/v1.5
472 // Description: Container for references to available organization vDC networks.
473 // Since: 0.9
474 type AvailableNetworks struct {
475 Network []*Reference `xml:"Network,omitempty"`
476 }
477
478 // Link extends reference type by adding relation attribute. Defines a hyper-link with a relationship, hyper-link reference, and an optional MIME type.
479 // Type: LinkType
480 // Namespace: http://www.vmware.com/vcloud/v1.5
481 // Description: Extends reference type by adding relation attribute. Defines a hyper-link with a relationship, hyper-link reference, and an optional MIME type.
482 // Since: 0.9
483 type Link struct {
484 HREF string `xml:"href,attr"`
485 ID string `xml:"id,attr,omitempty"`
486 Type string `xml:"type,attr,omitempty"`
487 Name string `xml:"name,attr,omitempty"`
488 Rel string `xml:"rel,attr"`
489 }
490
491 // Org represents the user view of a vCloud Director organization.
492 // Type: OrgType
493 // Namespace: http://www.vmware.com/vcloud/v1.5
494 // Description: Represents the user view of a vCloud Director organization.
495 // Since: 0.9
496 type Org struct {
497 HREF string `xml:"href,attr,omitempty"`
498 Type string `xml:"type,attr,omitempty"`
499 ID string `xml:"id,attr,omitempty"`
500 OperationKey string `xml:"operationKey,attr,omitempty"`
501 Name string `xml:"name,attr"`
502 Description string `xml:"Description,omitempty"`
503 FullName string `xml:"FullName"`
504 IsEnabled bool `xml:"IsEnabled,omitempty"`
505 Link []*Link `xml:"Link,omitempty"`
506 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
507 }
508
509 // CatalogItem contains a reference to a VappTemplate or Media object and related metadata.
510 // Type: CatalogItemType
511 // Namespace: http://www.vmware.com/vcloud/v1.5
512 // Description: Contains a reference to a VappTemplate or Media object and related metadata.
513 // Since: 0.9
514 type CatalogItem struct {
515 HREF string `xml:"href,attr,omitempty"`
516 Type string `xml:"type,attr,omitempty"`
517 ID string `xml:"id,attr,omitempty"`
518 OperationKey string `xml:"operationKey,attr,omitempty"`
519 Name string `xml:"name,attr"`
520 Size int64 `xml:"size,attr,omitempty"`
521 DateCreated string `xml:"DateCreated,omitempty"`
522 Description string `xml:"Description,omitempty"`
523 Entity *Entity `xml:"Entity"`
524 Link []*Link `xml:"Link,omitempty"`
525 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
526 VersionNumber int64 `xml:"VersionNumber,omitempty"`
527 }
528
529 // Entity is a basic entity type in the vCloud object model. Includes a name, an optional description, and an optional list of links.
530 // Type: EntityType
531 // Namespace: http://www.vmware.com/vcloud/v1.5
532 // Description: Basic entity type in the vCloud object model. Includes a name, an optional description, and an optional list of links.
533 // Since: 0.9
534 type Entity struct {
535 HREF string `xml:"href,attr,omitempty"`
536 Type string `xml:"type,attr,omitempty"`
537 ID string `xml:"id,attr,omitempty"`
538 OperationKey string `xml:"operationKey,attr,omitempty"`
539 Name string `xml:"name,attr"`
540 Description string `xml:"Description,omitempty"`
541 Link []*Link `xml:"Link,omitempty"`
542 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
543 }
544
545 // CatalogItems is a container for references to catalog items.
546 // Type: CatalogItemsType
547 // Namespace: http://www.vmware.com/vcloud/v1.5
548 // Description: Container for references to catalog items.
549 // Since: 0.9
550 type CatalogItems struct {
551 CatalogItem []*Reference `xml:"CatalogItem"`
552 }
553
554 // Catalog represents the user view of a Catalog object.
555 // Type: CatalogType
556 // Namespace: http://www.vmware.com/vcloud/v1.5
557 // Description: Represents the user view of a Catalog object.
558 // Since: 0.9
559 type Catalog struct {
560 HREF string `xml:"href,attr,omitempty"`
561 Type string `xml:"type,attr,omitempty"`
562 ID string `xml:"id,attr,omitempty"`
563 OperationKey string `xml:"operationKey,attr,omitempty"`
564 Name string `xml:"name,attr"`
565 CatalogItems []*CatalogItems `xml:"CatalogItems"`
566 DateCreated string `xml:"DateCreated"`
567 Description string `xml:"Description"`
568 IsPublished bool `xml:"IsPublished"`
569 Link []*Link `xml:"Link"`
570 Owner *Owner `xml:"Owner,omitempty"`
571 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
572 VersionNumber int64 `xml:"VersionNumber"`
573 }
574
575 // Owner represents the owner of this entity.
576 // Type: OwnerType
577 // Namespace: http://www.vmware.com/vcloud/v1.5
578 // Description: Represents the owner of this entity.
579 // Since: 1.5
580 type Owner struct {
581 HREF string `xml:"href,attr,omitempty"`
582 Type string `xml:"type,attr,omitempty"`
583 Link []*Link `xml:"Link,omitempty"`
584 User *Reference `xml:"User"`
585 }
586
587 // Error is the standard error message type used in the vCloud REST API.
588 // Type: ErrorType
589 // Namespace: http://www.vmware.com/vcloud/v1.5
590 // Description: The standard error message type used in the vCloud REST API.
591 // Since: 0.9
592 type Error struct {
593 Message string `xml:"message,attr"`
594 MajorErrorCode int `xml:"majorErrorCode,attr"`
595 MinorErrorCode string `xml:"minorErrorCode,attr"`
596 VendorSpecificErrorCode string `xml:"vendorSpecificErrorCode,attr,omitempty"`
597 StackTrace string `xml:"stackTrace,attr,omitempty"`
598 }
599
600 // File represents a file to be transferred (uploaded or downloaded).
601 // Type: FileType
602 // Namespace: http://www.vmware.com/vcloud/v1.5
603 // Description: Represents a file to be transferred (uploaded or downloaded).
604 // Since: 0.9
605 type File struct {
606 HREF string `xml:"href,attr,omitempty"`
607 Type string `xml:"type,attr,omitempty"`
608 ID string `xml:"id,attr,omitempty"`
609 OperationKey string `xml:"operationKey,attr,omitempty"`
610 Name string `xml:"name,attr"`
611 Size int64 `xml:"size,attr,omitempty"`
612 BytesTransferred int64 `xml:"bytesTransferred,attr,omitempty"`
613 Checksum string `xml:"checksum,attr,omitempty"`
614 Description string `xml:"Description,omitempty"`
615 Link []*Link `xml:"Link,omitempty"`
616 Tasks *TasksInProgress `xml:"Tasks,omitempty"`
617 }
618
619 // FilesList represents a list of files to be transferred (uploaded or downloaded).
620 // Type: FilesListType
621 // Namespace: http://www.vmware.com/vcloud/v1.5
622 // Description: Represents a list of files to be transferred (uploaded or downloaded).
623 // Since: 0.9
624 type FilesList struct {
625 File []*File `xml:"File"`
626 }
627
628 // UndeployVAppParams parameters to an undeploy vApp request.
629 // Type: UndeployVAppParamsType
630 // Namespace: http://www.vmware.com/vcloud/v1.5
631 // Description: Parameters to an undeploy vApp request.
632 // Since: 0.9
633 type UndeployVAppParams struct {
634 Xmlns string `xml:"xmlns,attr"`
635 UndeployPowerAction string `xml:"UndeployPowerAction,omitempty"`
636 }
637
638 // VMCapabilities allows you to specify certain capabilities of this virtual machine.
639 // Type: VmCapabilitiesType
640 // Namespace: http://www.vmware.com/vcloud/v1.5
641 // Description: Allows you to specify certain capabilities of this virtual machine.
642 // Since: 5.1
643 type VMCapabilities struct {
644 HREF string `xml:"href,attr,omitempty"`
645 Type string `xml:"type,attr,omitempty"`
646 CPUHotAddEnabled bool `xml:"CpuHotAddEnabled,omitempty"`
647 Link []*Link `xml:"Link,omitempty"`
648 MemoryHotAddEnabled bool `xml:"MemoryHotAddEnabled,omitempty"`
649 }
650
651 // VMs represents a list of virtual machines.
652 // Type: VmsType
653 // Namespace: http://www.vmware.com/vcloud/v1.5
654 // Description: Represents a list of virtual machines.
655 // Since: 5.1
656 type VMs struct {
657 HREF string `xml:"href,attr,omitempty"`
658 Type string `xml:"type,attr,omitempty"`
659 Link []*Link `xml:"Link,omitempty"`
660 VMReference []*Reference `xml:"VmReference,omitempty"`
661 }
662
663 /*
664 * Types that are completely valid (position, comment, coverage complete)
665 */
666
667 // ComposeVAppParams represetns vApp composition parameters
668 // Type: ComposeVAppParamsType
669 // Namespace: http://www.vmware.com/vcloud/v1.5
670 // Description: Represents vApp composition parameters.
671 // Since: 0.9
672 type ComposeVAppParams struct {
673 XMLName xml.Name `xml:"ComposeVAppParams"`
674 Ovf string `xml:"xmlns:ovf,attr"`
675 Xsi string `xml:"xmlns:xsi,attr"`
676 Xmlns string `xml:"xmlns,attr"`
677 // Attributes
678 Name string `xml:"name,attr,omitempty"` // Typically used to name or identify the subject of the request. For example, the name of the object being created or modified.
679 Deploy bool `xml:"deploy,attr"` // True if the vApp should be deployed at instantiation. Defaults to true.
680 PowerOn bool `xml:"powerOn,attr"` // True if the vApp should be powered-on at instantiation. Defaults to true.
681 LinkedClone bool `xml:"linkedClone,attr,omitempty"` // Reserved. Unimplemented.
682 // Elements
683 Description string `xml:"Description,omitempty"` // Optional description.
684 VAppParent *Reference `xml:"VAppParent,omitempty"` // Reserved. Unimplemented.
685 InstantiationParams *InstantiationParams `xml:"InstantiationParams,omitempty"` // Instantiation parameters for the composed vApp.
686 SourcedItem *SourcedCompositionItemParam `xml:"SourcedItem,omitempty"` // Composition item. One of: vApp vAppTemplate Vm.
687 AllEULAsAccepted bool `xml:"AllEULAsAccepted,omitempty"` // True confirms acceptance of all EULAs in a vApp template. Instantiation fails if this element is missing, empty, or set to false and one or more EulaSection elements are present.
688 }
689
690 // SourcedCompositionItemParam represents a vApp, vApp template or Vm to include in a composed vApp.
691 // Type: SourcedCompositionItemParamType
692 // Namespace: http://www.vmware.com/vcloud/v1.5
693 // Description: Represents a vApp, vApp template or Vm to include in a composed vApp.
694 // Since: 0.9
695 type SourcedCompositionItemParam struct {
696 // Attributes
697 SourceDelete bool `xml:"sourceDelete,attr,omitempty"` // True if the source item should be deleted after composition is complete.
698 // Elements
699 Source *Reference `xml:"Source"` // Reference to a vApp, vApp template or virtual machine to include in the composition. Changing the name of the newly created VM by specifying name attribute is deprecated. Include VmGeneralParams element instead.
700 VMGeneralParams *VMGeneralParams `xml:"VmGeneralParams,omitempty"` // Specify name, description, and other properties of a VM during instantiation.
701 VAppScopedLocalID string `xml:"VAppScopedLocalId,omitempty"` // If Source references a Vm, this value provides a unique identifier for the Vm in the scope of the composed vApp.
702 InstantiationParams *InstantiationParams `xml:"InstantiationParams,omitempty"` // If Source references a Vm this can include any of the following OVF sections: VirtualHardwareSection OperatingSystemSection NetworkConnectionSection GuestCustomizationSection.
703 NetworkAssignment *NetworkAssignment `xml:"NetworkAssignment,omitempty"` // If Source references a Vm, this element maps a network name specified in the Vm to the network name of a vApp network defined in the composed vApp.
704 StorageProfile *Reference `xml:"StorageProfile,omitempty"` // If Source references a Vm, this element contains a reference to a storage profile to be used for the Vm. The specified storage profile must exist in the organization vDC that contains the composed vApp. If not specified, the default storage profile for the vDC is used.
705 LocalityParams *LocalityParams `xml:"LocalityParams,omitempty"` // Represents locality parameters. Locality parameters provide a hint that may help the placement engine optimize placement of a VM and an independent a Disk so that the VM can make efficient use of the disk.
706 }
707
708 // LocalityParams represents locality parameters. Locality parameters provide a hint that may help the placement engine optimize placement of a VM with respect to another VM or an independent disk.
709 // Type: LocalityParamsType
710 // Namespace: http://www.vmware.com/vcloud/v1.5
711 // Description: Represents locality parameters. Locality parameters provide a hint that may help the placement engine optimize placement of a VM with respect to another VM or an independent disk.
712 // Since: 5.1
713 type LocalityParams struct {
714 // Elements
715 ResourceEntity *Reference `xml:"ResourceEntity,omitempty"` // Reference to a Disk, or a VM.
716 }
717
718 // NetworkAssignment maps a network name specified in a Vm to the network name of a vApp network defined in the VApp that contains the Vm
719 // Type: NetworkAssignmentType
720 // Namespace: http://www.vmware.com/vcloud/v1.5
721 // Description: Maps a network name specified in a Vm to the network name of a vApp network defined in the VApp that contains the Vm
722 // Since: 0.9
723 type NetworkAssignment struct {
724 // Attributes
725 InnerNetwork string `xml:"innerNetwork,attr"` // Name of the network as specified in the Vm.
726 ContainerNetwork string `xml:"containerNetwork,attr"` // Name of the vApp network to map to.
727 }
728
729 // VMGeneralParams a set of overrides to source VM properties to apply to target VM during copying.
730 // Type: VmGeneralParamsType
731 // Namespace: http://www.vmware.com/vcloud/v1.5
732 // Description: A set of overrides to source VM properties to apply to target VM during copying.
733 // Since: 5.6
734 type VMGeneralParams struct {
735 // Elements
736 Name string `xml:"Name,omitempty"` // Name of VM
737 Description string `xml:"Description,omitempty"` // VM description
738 NeedsCustomization bool `xml:"NeedsCustomization,omitempty"` // True if this VM needs guest customization
739 }
740
741 // VApp representa a vApp
742 // Type: VAppType
743 // Namespace: http://www.vmware.com/vcloud/v1.5
744 // Description: Represents a vApp.
745 // Since: 0.9
746 type VApp struct {
747 // Attributes
748 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
749 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
750 ID string `xml:"id,attr,omitempty"` // The entity identifier, expressed in URN format. The value of this attribute uniquely identifies the entity, persists for the life of the entity, and is never reused.
751 OperationKey string `xml:"operationKey,attr,omitempty"` // Optional unique identifier to support idempotent semantics for create and delete operations.
752 Name string `xml:"name,attr"` // The name of the entity.
753 Status int `xml:"status,attr,omitempty"` // Creation status of the resource entity.
754 Deployed bool `xml:"deployed,attr,omitempty"` // True if the virtual machine is deployed.
755 OvfDescriptorUploaded bool `xml:"ovfDescriptorUploaded,attr,omitempty"` // Read-only indicator that the OVF descriptor for this vApp has been uploaded.
756 // Elements
757 Link []*Link `xml:"Link,omitempty"` // A reference to an entity or operation associated with this object.
758 Description string `xml:"Description,omitempty"` // Optional description.
759 Tasks *TasksInProgress `xml:"Tasks,omitempty"` // A list of queued, running, or recently completed tasks associated with this entity.
760 Files *FilesList `xml:"Files,omitempty"` // Represents a list of files to be transferred (uploaded or downloaded). Each File in the list is part of the ResourceEntity.
761 VAppParent *Reference `xml:"VAppParent,omitempty"` // Reserved. Unimplemented.
762 // TODO: OVF Sections to be implemented
763 // Section OVF_Section `xml:"Section"`
764 DateCreated string `xml:"DateCreated,omitempty"` // Creation date/time of the vApp.
765 Owner *Owner `xml:"Owner,omitempty"` // vApp owner.
766 InMaintenanceMode bool `xml:"InMaintenanceMode,omitempty"` // True if this vApp is in maintenance mode. Prevents users from changing vApp metadata.
767 Children *VAppChildren `xml:"Children,omitempty"` // Container for virtual machines included in this vApp.
768 ProductSection *ProductSection `xml:"ProductSection,omitempty"`
769 }
770
771 type ProductSectionList struct {
772 XMLName xml.Name `xml:"ProductSectionList"`
773 Ovf string `xml:"xmlns:ovf,attr,omitempty"`
774 Xmlns string `xml:"xmlns,attr"`
775 ProductSection *ProductSection `xml:"http://schemas.dmtf.org/ovf/envelope/1 ProductSection,omitempty"`
776 }
777
778 type ProductSection struct {
779 Info string `xml:"Info,omitempty"`
780 Property []*Property `xml:"http://schemas.dmtf.org/ovf/envelope/1 Property,omitempty"`
781 }
782
783 type Property struct {
784 Key string `xml:"http://schemas.dmtf.org/ovf/envelope/1 key,attr,omitempty"`
785 Label string `xml:"http://schemas.dmtf.org/ovf/envelope/1 Label,omitempty"`
786 Description string `xml:"http://schemas.dmtf.org/ovf/envelope/1 Description,omitempty"`
787 DefaultValue string `xml:"http://schemas.dmtf.org/ovf/envelope/1 value,attr"`
788 Value *Value `xml:"http://schemas.dmtf.org/ovf/envelope/1 Value,omitempty"`
789 Type string `xml:"http://schemas.dmtf.org/ovf/envelope/1 type,attr,omitempty"`
790 UserConfigurable bool `xml:"http://schemas.dmtf.org/ovf/envelope/1 userConfigurable,attr"`
791 }
792
793 type Value struct {
794 Value string `xml:"http://schemas.dmtf.org/ovf/envelope/1 value,attr,omitempty"`
795 }
796
797 type MetadataValue struct {
798 XMLName xml.Name `xml:"MetadataValue"`
799 Xsi string `xml:"xmlns:xsi,attr"`
800 Xmlns string `xml:"xmlns,attr"`
801 TypedValue *TypedValue `xml:"TypedValue"`
802 }
803
804 type TypedValue struct {
805 XsiType string `xml:"xsi:type,attr"`
806 Value string `xml:"Value"`
807 }
808
809 // VAppChildren is a container for virtual machines included in this vApp.
810 // Type: VAppChildrenType
811 // Namespace: http://www.vmware.com/vcloud/v1.5
812 // Description: Container for virtual machines included in this vApp.
813 // Since: 0.9
814 type VAppChildren struct {
815 VM []*VM `xml:"Vm,omitempty"` // Rerpresents a virtual machine.
816 }
817
818 // TasksInProgress is a list of queued, running, or recently completed tasks.
819 // Type: TasksInProgressType
820 // Namespace: http://www.vmware.com/vcloud/v1.5
821 // Description: A list of queued, running, or recently completed tasks.
822 // Since: 0.9
823 type TasksInProgress struct {
824 // Elements
825 Task []*Task `xml:"Task"` // A task.
826 }
827
828 // VAppTemplateChildren is a container for virtual machines included in this vApp template.
829 // Type: VAppTemplateChildrenType
830 // Namespace: http://www.vmware.com/vcloud/v1.5
831 // Description: Container for virtual machines included in this vApp template.
832 // Since: 0.9
833 type VAppTemplateChildren struct {
834 // Elements
835 VM []*VAppTemplate `xml:"Vm"` // Represents a virtual machine in this vApp template.
836 }
837
838 // VAppTemplate represents a vApp template.
839 // Type: VAppTemplateType
840 // Namespace: http://www.vmware.com/vcloud/v1.5
841 // Description: Represents a vApp template.
842 // Since: 0.9
843 type VAppTemplate struct {
844 // Attributes
845 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
846 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
847 ID string `xml:"id,attr,omitempty"` // The entity identifier, expressed in URN format. The value of this attribute uniquely identifies the entity, persists for the life of the entity, and is never reused.
848 OperationKey string `xml:"operationKey,attr,omitempty"` // Optional unique identifier to support idempotent semantics for create and delete operations.
849 Name string `xml:"name,attr"` // The name of the entity.
850 Status int `xml:"status,attr,omitempty"` // Creation status of the resource entity.
851 OvfDescriptorUploaded string `xml:"ovfDescriptorUploaded,attr,omitempty"` // True if the OVF descriptor for this template has been uploaded.
852 GoldMaster bool `xml:"goldMaster,attr,omitempty"` // True if this template is a gold master.
853 // Elements
854 Link []*Link `xml:"Link,omitempty"` // A reference to an entity or operation associated with this object.
855 Description string `xml:"Description,omitempty"` // Optional description.
856 Tasks *TasksInProgress `xml:"Tasks,omitempty"` // A list of queued, running, or recently completed tasks associated with this entity.
857 Files *FilesList `xml:"Files,omitempty"` // Represents a list of files to be transferred (uploaded or downloaded). Each File in the list is part of the ResourceEntity.
858 Owner *Owner `xml:"Owner,omitempty"` // vAppTemplate owner.
859 Children *VAppTemplateChildren `xml:"Children,omitempty"` // Container for virtual machines included in this vApp template.
860 VAppScopedLocalID string `xml:"VAppScopedLocalId"` // A unique identifier for the Vm in the scope of the vApp template.
861 DefaultStorageProfile string `xml:"DefaultStorageProfile,omitempty"` // The name of the storage profile to be used for this object. The named storage profile must exist in the organization vDC that contains the object. If not specified, the default storage profile for the vDC is used.
862 DateCreated string `xml:"DateCreated,omitempty"` // Creation date/time of the template.
863 // FIXME: Upstream bug? Missing NetworkConfigSection, LeaseSettingSection and
864 // CustomizationSection at least, NetworkConnectionSection is required when
865 // using ComposeVApp action in the context of a Children VM (still
866 // referenced by VAppTemplateType).
867 NetworkConfigSection *NetworkConfigSection `xml:"NetworkConfigSection,omitempty"`
868 NetworkConnectionSection *NetworkConnectionSection `xml:"NetworkConnectionSection,omitempty"`
869 LeaseSettingsSection *LeaseSettingsSection `xml:"LeaseSettingsSection,omitempty"`
870 CustomizationSection *CustomizationSection `xml:"CustomizationSection,omitempty"`
871 // OVF Section needs to be added
872 // Section Section `xml:"Section,omitempty"`
873 }
874
875 // VM represents a virtual machine
876 // Type: VmType
877 // Namespace: http://www.vmware.com/vcloud/v1.5
878 // Description: Represents a virtual machine.
879 // Since: 0.9
880 type VM struct {
881 // Attributes
882 XMLName xml.Name `xml:"Vm"`
883 Ovf string `xml:"xmlns:ovf,attr,omitempty"`
884 Xsi string `xml:"xmlns:xsi,attr,omitempty"`
885 Xmlns string `xml:"xmlns,attr,omitempty"`
886
887 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
888 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
889 ID string `xml:"id,attr,omitempty"` // The entity identifier, expressed in URN format. The value of this attribute uniquely identifies the entity, persists for the life of the entity, and is never reused
890 OperationKey string `xml:"operationKey,attr,omitempty"` // Optional unique identifier to support idempotent semantics for create and delete operations.
891 Name string `xml:"name,attr"` // The name of the entity.
892 Status int `xml:"status,attr,omitempty"` // Creation status of the resource entity.
893 Deployed bool `xml:"deployed,attr,omitempty"` // True if the virtual machine is deployed.
894 NeedsCustomization bool `xml:"needsCustomization,attr,omitempty"` // True if this virtual machine needs customization.
895 NestedHypervisorEnabled bool `xml:"nestedHypervisorEnabled,attr,omitempty"` // True if hardware-assisted CPU virtualization capabilities in the host should be exposed to the guest operating system.
896 // Elements
897 Link []*Link `xml:"Link,omitempty"` // A reference to an entity or operation associated with this object.
898 Description string `xml:"Description,omitempty"` // Optional description.
899 Tasks *TasksInProgress `xml:"Tasks,omitempty"` // A list of queued, running, or recently completed tasks associated with this entity.
900 Files *FilesList `xml:"FilesList,omitempty"` // Represents a list of files to be transferred (uploaded or downloaded). Each File in the list is part of the ResourceEntity.
901 VAppParent *Reference `xml:"VAppParent,omitempty"` // Reserved. Unimplemented.
902 // TODO: OVF Sections to be implemented
903 // Section OVF_Section `xml:"Section,omitempty"
904 DateCreated string `xml:"DateCreated,omitempty"` // Creation date/time of the vApp.
905
906 // Section ovf:VirtualHardwareSection
907 VirtualHardwareSection *VirtualHardwareSection `xml:"VirtualHardwareSection,omitempty"`
908
909 // FIXME: Upstream bug? Missing NetworkConnectionSection
910 NetworkConnectionSection *NetworkConnectionSection `xml:"NetworkConnectionSection,omitempty"`
911
912 VAppScopedLocalID string `xml:"VAppScopedLocalId,omitempty"` // A unique identifier for the virtual machine in the scope of the vApp.
913
914 Snapshots *SnapshotSection `xml:"SnapshotSection,omitempty"`
915
916 // TODO: OVF Sections to be implemented
917 // Environment OVF_Environment `xml:"Environment,omitempty"
918
919 VMCapabilities *VMCapabilities `xml:"VmCapabilities,omitempty"` // Allows you to specify certain capabilities of this virtual machine.
920 StorageProfile *Reference `xml:"StorageProfile,omitempty"` // A reference to a storage profile to be used for this object. The specified storage profile must exist in the organization vDC that contains the object. If not specified, the default storage profile for the vDC is used.
921 ProductSection *ProductSection `xml:"ProductSection,omitempty"`
922 }
923
924 // ovf:VirtualHardwareSection from VM struct
925 type VirtualHardwareSection struct {
926 // Extends OVF Section_Type
927 XMLName xml.Name `xml:"VirtualHardwareSection"`
928 Xmlns string `xml:"vcloud,attr,omitempty"`
929
930 Info string `xml:"Info"`
931 HREF string `xml:"href,attr,omitempty"`
932 Type string `xml:"type,attr,omitempty"`
933 Item []*VirtualHardwareItem `xml:"Item,omitempty"`
934 }
935
936 // Each ovf:Item parsed from the ovf:VirtualHardwareSection
937 type VirtualHardwareItem struct {
938 XMLName xml.Name `xml:"Item"`
939 ResourceType int `xml:"ResourceType,omitempty"`
940 ResourceSubType string `xml:"ResourceSubType,omitempty"`
941 ElementName string `xml:"ElementName,omitempty"`
942 Description string `xml:"Description,omitempty"`
943 InstanceID int `xml:"InstanceID,omitempty"`
944 AutomaticAllocation bool `xml:"AutomaticAllocation,omitempty"`
945 Address string `xml:"Address,omitempty"`
946 AddressOnParent int `xml:"AddressOnParent,omitempty"`
947 AllocationUnits string `xml:"AllocationUnits,omitempty"`
948 Reservation int `xml:"Reservation,omitempty"`
949 VirtualQuantity int `xml:"VirtualQuantity,omitempty"`
950 Weight int `xml:"Weight,omitempty"`
951 CoresPerSocket int `xml:"CoresPerSocket,omitempty"`
952 Connection []*VirtualHardwareConnection `xml:"Connection,omitempty"`
953 HostResource []*VirtualHardwareHostResource `xml:"HostResource,omitempty"`
954 Link []*Link `xml:"Link,omitempty"`
955 }
956
957 // Connection info from ResourceType=10 (Network Interface)
958 type VirtualHardwareConnection struct {
959 IPAddress string `xml:"ipAddress,attr,omitempty"`
960 PrimaryConnection bool `xml:"primaryNetworkConnection,attr,omitempty"`
961 IpAddressingMode string `xml:"ipAddressingMode,attr,omitempty"`
962 NetworkName string `xml:",chardata"`
963 }
964
965 // HostResource info from ResourceType=17 (Hard Disk)
966 type VirtualHardwareHostResource struct {
967 BusType int `xml:"busType,attr,omitempty"`
968 BusSubType string `xml:"busSubType,attr,omitempty"`
969 Capacity int `xml:"capacity,attr,omitempty"`
970 StorageProfile string `xml:"storageProfileHref,attr,omitempty"`
971 OverrideVmDefault bool `xml:"storageProfileOverrideVmDefault,attr,omitempty"`
972 }
973
974 // SnapshotSection from VM struct
975 type SnapshotSection struct {
976 // Extends OVF Section_Type
977 XMLName xml.Name `xml:"SnapshotSection"`
978 Info string `xml:"Info"`
979 HREF string `xml:"href,attr,omitempty"`
980 Type string `xml:"type,attr,omitempty"`
981 Snapshot []*SnapshotItem `xml:"Snapshot,omitempty"`
982 }
983
984 // Each snapshot listed in the SnapshotSection
985 type SnapshotItem struct {
986 Created string `xml:"created,attr,omitempty"`
987 PoweredOn bool `xml:"poweredOn,attr,omitempty"`
988 Size int `xml:"size,attr,omitempty"`
989 }
990
991 // OVFItem is a horrible kludge to process OVF, needs to be fixed with proper types.
992 type OVFItem struct {
993 XMLName xml.Name `xml:"vcloud:Item"`
994 XmlnsRasd string `xml:"xmlns:rasd,attr"`
995 XmlnsVCloud string `xml:"xmlns:vcloud,attr"`
996 XmlnsXsi string `xml:"xmlns:xsi,attr"`
997 VCloudHREF string `xml:"vcloud:href,attr"`
998 VCloudType string `xml:"vcloud:type,attr"`
999 AllocationUnits string `xml:"rasd:AllocationUnits"`
1000 Description string `xml:"rasd:Description"`
1001 ElementName string `xml:"rasd:ElementName"`
1002 InstanceID int `xml:"rasd:InstanceID"`
1003 Reservation int `xml:"rasd:Reservation"`
1004 ResourceType int `xml:"rasd:ResourceType"`
1005 VirtualQuantity int `xml:"rasd:VirtualQuantity"`
1006 Weight int `xml:"rasd:Weight"`
1007 Link *Link `xml:"vcloud:Link"`
1008 }
1009
1010 // DeployVAppParams are the parameters to a deploy vApp request
1011 // Type: DeployVAppParamsType
1012 // Namespace: http://www.vmware.com/vcloud/v1.5
1013 // Description: Parameters to a deploy vApp request.
1014 // Since: 0.9
1015 type DeployVAppParams struct {
1016 XMLName xml.Name `xml:"DeployVAppParams"`
1017 Xmlns string `xml:"xmlns,attr"`
1018 // Attributes
1019 PowerOn bool `xml:"powerOn,attr"` // Used to specify whether to power on vapp on deployment, if not set default value is true.
1020 DeploymentLeaseSeconds int `xml:"deploymentLeaseSeconds,attr,omitempty"` // Lease in seconds for deployment. A value of 0 is replaced by the organization default deploymentLeaseSeconds value.
1021 ForceCustomization bool `xml:"forceCustomization,attr,omitempty"` // Used to specify whether to force customization on deployment, if not set default value is false
1022 }
1023
1024 // GuestCustomizationSection represents guest customization settings
1025 // Type: GuestCustomizationSectionType
1026 // Namespace: http://www.vmware.com/vcloud/v1.5
1027 // Description: Represents a guest customization settings.
1028 // Since: 1.0
1029 type GuestCustomizationSection struct {
1030 // Extends OVF Section_Type
1031 // Attributes
1032 Ovf string `xml:"xmlns:ovf,attr,omitempty"`
1033 Xsi string `xml:"xmlns:xsi,attr,omitempty"`
1034 Xmlns string `xml:"xmlns,attr,omitempty"`
1035
1036 HREF string `xml:"href,attr,omitempty"` // A reference to the section in URL format.
1037 Type string `xml:"type,attr,omitempty"` // The MIME type of the section.
1038 // FIXME: Fix the OVF section
1039 Info string `xml:"ovf:Info"`
1040 // Elements
1041 Enabled bool `xml:"Enabled,omitempty"` // True if guest customization is enabled.
1042 ChangeSid bool `xml:"ChangeSid,omitempty"` // True if customization can change the Windows SID of this virtual machine.
1043 VirtualMachineID string `xml:"VirtualMachineId,omitempty"` // Virtual machine ID to apply.
1044 JoinDomainEnabled bool `xml:"JoinDomainEnabled,omitempty"` // True if this virtual machine can join a Windows Domain.
1045 UseOrgSettings bool `xml:"UseOrgSettings,omitempty"` // True if customization should use organization settings (OrgGuestPersonalizationSettings) when joining a Windows Domain.
1046 DomainName string `xml:"DomainName,omitempty"` // The name of the Windows Domain to join.
1047 DomainUserName string `xml:"DomainUserName,omitempty"` // User name to specify when joining a Windows Domain.
1048 DomainUserPassword string `xml:"DomainUserPassword,omitempty"` // Password to use with DomainUserName.
1049 MachineObjectOU string `xml:"MachineObjectOU,omitempty"` // The name of the Windows Domain Organizational Unit (OU) in which the computer account for this virtual machine will be created.
1050 AdminPasswordEnabled bool `xml:"AdminPasswordEnabled,omitempty"` // True if guest customization can modify administrator password settings for this virtual machine.
1051 AdminPasswordAuto bool `xml:"AdminPasswordAuto,omitempty"` // True if the administrator password for this virtual machine should be automatically generated.
1052 AdminPassword string `xml:"AdminPassword,omitempty"` // True if the administrator password for this virtual machine should be set to this string. (AdminPasswordAuto must be false.)
1053 AdminAutoLogonEnabled bool `xml:"AdminAutoLogonEnabled,omitempty"` // True if guest administrator should automatically log into this virtual machine.
1054 AdminAutoLogonCount int `xml:"AdminAutoLogonCount,omitempty"` // Number of times administrator can automatically log into this virtual machine. In case AdminAutoLogon is set to True, this value should be between 1 and 100. Otherwise, it should be 0.
1055 ResetPasswordRequired bool `xml:"ResetPasswordRequired,omitempty"` // True if the administrator password for this virtual machine must be reset after first use.
1056 CustomizationScript string `xml:"CustomizationScript,omitempty"` // Script to run on guest customization. The entire script must appear in this element. Use the XML entity 
 to represent a newline. Unicode characters can be represented in the form &#xxxx; where xxxx is the character number.
1057 ComputerName string `xml:"ComputerName,omitempty"` // Computer name to assign to this virtual machine.
1058 Link []*Link `xml:"Link,omitempty"` // A link to an operation on this section.
1059 }
1060
1061 // InstantiateVAppTemplateParams represents vApp template instantiation parameters.
1062 // Type: InstantiateVAppTemplateParamsType
1063 // Namespace: http://www.vmware.com/vcloud/v1.5
1064 // Description: Represents vApp template instantiation parameters.
1065 // Since: 0.9
1066 type InstantiateVAppTemplateParams struct {
1067 XMLName xml.Name `xml:"InstantiateVAppTemplateParams"`
1068 Ovf string `xml:"xmlns:ovf,attr"`
1069 Xsi string `xml:"xmlns:xsi,attr,omitempty"`
1070 Xmlns string `xml:"xmlns,attr"`
1071 // Attributes
1072 Name string `xml:"name,attr,omitempty"` // Typically used to name or identify the subject of the request. For example, the name of the object being created or modified.
1073 Deploy bool `xml:"deploy,attr"` // True if the vApp should be deployed at instantiation. Defaults to true.
1074 PowerOn bool `xml:"powerOn,attr"` // True if the vApp should be powered-on at instantiation. Defaults to true.
1075 LinkedClone bool `xml:"linkedClone,attr,omitempty"` // Reserved. Unimplemented.
1076 // Elements
1077 Description string `xml:"Description,omitempty"` // Optional description.
1078 VAppParent *Reference `xml:"VAppParent,omitempty"` // Reserved. Unimplemented.
1079 InstantiationParams *InstantiationParams `xml:"InstantiationParams,omitempty"` // Instantiation parameters for the composed vApp.
1080 Source *Reference `xml:"Source"` // A reference to a source object such as a vApp or vApp template.
1081 IsSourceDelete bool `xml:"IsSourceDelete,omitempty"` // Set to true to delete the source object after the operation completes.
1082 SourcedItem *SourcedCompositionItemParam `xml:"SourcedItem,omitempty"` // Composition item. One of: vApp vAppTemplate Vm.
1083 AllEULAsAccepted bool `xml:"AllEULAsAccepted,omitempty"` // True confirms acceptance of all EULAs in a vApp template. Instantiation fails if this element is missing, empty, or set to false and one or more EulaSection elements are present.
1084 }
1085
1086 // EdgeGateway represents a gateway.
1087 // Element: EdgeGateway
1088 // Type: GatewayType
1089 // Namespace: http://www.vmware.com/vcloud/v1.5
1090 // Description: Represents a gateway.
1091 // Since: 5.1
1092 type EdgeGateway struct {
1093 // Attributes
1094 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1095 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
1096 ID string `xml:"id,attr,omitempty"` // The entity identifier, expressed in URN format. The value of this attribute uniquely identifies the entity, persists for the life of the entity, and is never reused
1097 OperationKey string `xml:"operationKey,attr,omitempty"` // Optional unique identifier to support idempotent semantics for create and delete operations.
1098 Name string `xml:"name,attr"` // The name of the entity.
1099 Status int `xml:"status,attr,omitempty"` // Creation status of the gateway. One of: 0 (The gateway is still being created) 1 (The gateway is ready) -1 (There was an error while creating the gateway).
1100 // Elements
1101 Link []*Link `xml:"Link,omitempty"` // A link to an operation on this section.
1102 Description string `xml:"Description,omitempty"` // Optional description.
1103 Tasks *TasksInProgress `xml:"Tasks,omitempty"` // A list of queued, running, or recently completed tasks associated with this entity.
1104 Configuration *GatewayConfiguration `xml:"Configuration"` // Gateway configuration.
1105 }
1106
1107 // GatewayConfiguration is the gateway configuration
1108 // Type: GatewayConfigurationType
1109 // Namespace: http://www.vmware.com/vcloud/v1.5
1110 // Description: Gateway Configuration.
1111 // Since: 5.1
1112 type GatewayConfiguration struct {
1113 Xmlns string `xml:"xmlns,attr,omitempty"`
1114 // Elements
1115 BackwardCompatibilityMode bool `xml:"BackwardCompatibilityMode,omitempty"` // Compatibilty mode. Default is false. If set to true, will allow users to write firewall rules in the old 1.5 format. The new format does not require to use direction in firewall rules. Also, for firewall rules to allow NAT traffic the filter is applied on the original IP addresses. Once set to true cannot be reverted back to false.
1116 GatewayBackingConfig string `xml:"GatewayBackingConfig"` // Configuration of the vShield edge VM for this gateway. One of: compact, full.
1117 GatewayInterfaces *GatewayInterfaces `xml:"GatewayInterfaces"` // List of Gateway interfaces.
1118 EdgeGatewayServiceConfiguration *GatewayFeatures `xml:"EdgeGatewayServiceConfiguration,omitempty"` // Represents Gateway Features.
1119 HaEnabled bool `xml:"HaEnabled,omitempty"` // True if this gateway is highly available. (Requires two vShield edge VMs.)
1120 UseDefaultRouteForDNSRelay bool `xml:"UseDefaultRouteForDnsRelay,omitempty"` // True if the default gateway on the external network selected for default route should be used as the DNS relay.
1121 }
1122
1123 // GatewayInterfaces is a list of Gateway Interfaces.
1124 // Type: GatewayInterfacesType
1125 // Namespace: http://www.vmware.com/vcloud/v1.5
1126 // Description: A list of Gateway Interfaces.
1127 // Since: 5.1
1128 type GatewayInterfaces struct {
1129 GatewayInterface []*GatewayInterface `xml:"GatewayInterface"` // Gateway Interface.
1130 }
1131
1132 // GatewayInterface is a gateway interface configuration.
1133 // Type: GatewayInterfaceType
1134 // Namespace: http://www.vmware.com/vcloud/v1.5
1135 // Description: Gateway Interface configuration.
1136 // Since: 5.1
1137 type GatewayInterface struct {
1138 Name string `xml:"Name,omitempty"` // Internally generated name for the Gateway Interface.
1139 DisplayName string `xml:"DisplayName,omitempty"` // Gateway Interface display name.
1140 Network *Reference `xml:"Network"` // A reference to the network connected to the gateway interface.
1141 InterfaceType string `xml:"InterfaceType"` // The type of interface: One of: Uplink, Internal
1142 SubnetParticipation *SubnetParticipation `xml:"SubnetParticipation,omitempty"` // IP allocation per subnet.
1143 ApplyRateLimit bool `xml:"ApplyRateLimit,omitempty"` // True if rate limiting is applied on this interface.
1144 InRateLimit float64 `xml:"InRateLimit,omitempty"` // Incoming rate limit expressed as Gbps.
1145 OutRateLimit float64 `xml:"OutRateLimit,omitempty"` // Outgoing rate limit expressed as Gbps.
1146 UseForDefaultRoute bool `xml:"UseForDefaultRoute,omitempty"` // True if this network is default route for the gateway.
1147 }
1148
1149 // SubnetParticipation allows to chose which subnets a gateway can be a part of
1150 // Type: SubnetParticipationType
1151 // Namespace: http://www.vmware.com/vcloud/v1.5
1152 // Description: Allows to chose which subnets a gateway can be part of
1153 // Since: 5.1
1154 type SubnetParticipation struct {
1155 Gateway string `xml:"Gateway"` // Gateway for subnet
1156 IPAddress string `xml:"IpAddress,omitempty"` // Ip Address to be assigned. Keep empty or ommit element for auto assignment
1157 IPRanges *IPRanges `xml:"IpRanges,omitempty"` // Range of IP addresses available for external interfaces.
1158 Netmask string `xml:"Netmask"` // Nestmask for the subnet
1159 }
1160
1161 type EdgeGatewayServiceConfiguration struct {
1162 XMLName xml.Name `xml:"EdgeGatewayServiceConfiguration"`
1163 Xmlns string `xml:"xmlns,attr,omitempty"`
1164 GatewayDhcpService *GatewayDhcpService `xml:"GatewayDhcpService,omitempty"`
1165 FirewallService *FirewallService `xml:"FirewallService,omitempty"`
1166 NatService *NatService `xml:"NatService,omitempty"`
1167 }
1168
1169 // GatewayFeatures represents edge gateway services.
1170 // Element: EdgeGatewayServiceConfiguration
1171 // Type: GatewayFeaturesType
1172 // Namespace: http://www.vmware.com/vcloud/v1.5
1173 // Description: Represents edge gateway services.
1174 // Since: 5.1
1175 type GatewayFeatures struct {
1176 XMLName xml.Name
1177 Xmlns string `xml:"xmlns,attr,omitempty"`
1178 FirewallService *FirewallService `xml:"FirewallService,omitempty"` // Substitute for NetworkService. Firewall service settings
1179 NatService *NatService `xml:"NatService,omitempty"` // Substitute for NetworkService. NAT service settings
1180 GatewayDhcpService *GatewayDhcpService `xml:"GatewayDhcpService,omitempty"` // Substitute for NetworkService. Gateway DHCP service settings
1181 GatewayIpsecVpnService *GatewayIpsecVpnService `xml:"GatewayIpsecVpnService,omitempty"` // Substitute for NetworkService. Gateway Ipsec VPN service settings
1182 LoadBalancerService *LoadBalancerService `xml:"LoadBalancerService,omitempty"` // Substitute for NetworkService. Load Balancer service settings
1183 StaticRoutingService *StaticRoutingService `xml:"StaticRoutingService,omitempty"` // Substitute for NetworkService. Static Routing service settings
1184 }
1185
1186 // StaticRoutingService represents Static Routing network service.
1187 // Type: StaticRoutingServiceType
1188 // Namespace: http://www.vmware.com/vcloud/v1.5
1189 // Description: Represents Static Routing network service.
1190 // Since: 1.5
1191 type StaticRoutingService struct {
1192 IsEnabled bool `xml:"IsEnabled"` // Enable or disable the service using this flag
1193 StaticRoute *StaticRoute `xml:"StaticRoute,omitempty"` // Details of each Static Route.
1194 }
1195
1196 // StaticRoute represents a static route entry
1197 // Type: StaticRouteType
1198 // Namespace: http://www.vmware.com/vcloud/v1.5
1199 // Description:
1200 // Since:
1201 type StaticRoute struct {
1202 Name string `xml:"Name"` // Name for the static route.
1203 Network string `xml:"Network"` // Network specification in CIDR.
1204 NextHopIP string `xml:"NextHopIp"` // IP Address of Next Hop router/gateway.
1205 Interface string `xml:"Interface,omitempty"` // Interface to use for static routing. Internal and External are the supported values.
1206 GatewayInterface *Reference `xml:"GatewayInterface,omitempty"` // Gateway interface to which static route is bound.
1207 }
1208
1209 // LoadBalancerService represents gateway load balancer service.
1210 // Type: LoadBalancerServiceType
1211 // Namespace: http://www.vmware.com/vcloud/v1.5
1212 // Description: Represents gateway load balancer service.
1213 // Since: 5.1
1214 type LoadBalancerService struct {
1215 IsEnabled bool `xml:"IsEnabled"` // Enable or disable the service using this flag
1216 Pool *LoadBalancerPool `xml:"Pool,omitempty"` // List of load balancer pools.
1217 VirtualServer *LoadBalancerVirtualServer `xml:"VirtualServer,omitempty"` // List of load balancer virtual servers.
1218 }
1219
1220 // LoadBalancerPool represents a load balancer pool.
1221 // Type: LoadBalancerPoolType
1222 // Namespace: http://www.vmware.com/vcloud/v1.5
1223 // Description: Represents a load balancer pool.
1224 // Since: 5.1
1225 type LoadBalancerPool struct {
1226 ID string `xml:"Id,omitempty"` // Load balancer pool id.
1227 Name string `xml:"Name"` // Load balancer pool name.
1228 Description string `xml:"Description,omitempty"` // Load balancer pool description.
1229 ServicePort *LBPoolServicePort `xml:"ServicePort"` // Load balancer pool service port.
1230 Member *LBPoolMember `xml:"Member"` // Load balancer pool member.
1231 Operational bool `xml:"Operational,omitempty"` // True if the load balancer pool is operational.
1232 ErrorDetails string `xml:"ErrorDetails,omitempty"` // Error details for this pool.
1233 }
1234
1235 // LBPoolServicePort represents a service port in a load balancer pool.
1236 // Type: LBPoolServicePortType
1237 // Namespace: http://www.vmware.com/vcloud/v1.5
1238 // Description: Represents a service port in a load balancer pool.
1239 // Since: 5.1
1240 type LBPoolServicePort struct {
1241 IsEnabled bool `xml:"IsEnabled,omitempty"` // True if this service port is enabled.
1242 Protocol string `xml:"Protocol"` // Load balancer protocol type. One of: HTTP, HTTPS, TCP.
1243 Algorithm string `xml:"Algorithm"` // Load Balancer algorithm type. One of: IP_HASH, ROUND_ROBIN, URI, LEAST_CONN.
1244 Port string `xml:"Port"` // Port for this service profile.
1245 HealthCheckPort string `xml:"HealthCheckPort,omitempty"` // Health check port for this profile.
1246 HealthCheck *LBPoolHealthCheck `xml:"HealthCheck,omitempty"` // Health check list.
1247 }
1248
1249 // LBPoolHealthCheck represents a service port health check list.
1250 // Type: LBPoolHealthCheckType
1251 // Namespace: http://www.vmware.com/vcloud/v1.5
1252 // Description: Represents a service port health check list.
1253 // Since: 5.1
1254 type LBPoolHealthCheck struct {
1255 Mode string `xml:"Mode"` // Load balancer service port health check mode. One of: TCP, HTTP, SSL.
1256 URI string `xml:"Uri,omitempty"` // Load balancer service port health check URI.
1257 HealthThreshold string `xml:"HealthThreshold,omitempty"` // Health threshold for this service port.
1258 UnhealthThreshold string `xml:"UnhealthThreshold,omitempty"` // Unhealth check port for this profile.
1259 Interval string `xml:"Interval,omitempty"` // Interval between health checks.
1260 Timeout string `xml:"Timeout,omitempty"` // Health check timeout.
1261 }
1262
1263 // LBPoolMember represents a member in a load balancer pool.
1264 // Type: LBPoolMemberType
1265 // Namespace: http://www.vmware.com/vcloud/v1.5
1266 // Description: Represents a member in a load balancer pool.
1267 // Since: 5.1
1268 type LBPoolMember struct {
1269 IPAddress string `xml:"IpAddress"` // Ip Address for load balancer member.
1270 Weight string `xml:"Weight"` // Weight of this member.
1271 ServicePort *LBPoolServicePort `xml:"ServicePort,omitempty"` // Load balancer member service port.
1272 }
1273
1274 // LoadBalancerVirtualServer represents a load balancer virtual server.
1275 // Type: LoadBalancerVirtualServerType
1276 // Namespace: http://www.vmware.com/vcloud/v1.5
1277 // Description: Represents a load balancer virtual server.
1278 // Since: 5.1
1279 type LoadBalancerVirtualServer struct {
1280 IsEnabled bool `xml:"IsEnabled,omitempty"` // True if this virtual server is enabled.
1281 Name string `xml:"Name"` // Load balancer virtual server name.
1282 Description string `xml:"Description,omitempty"` // Load balancer virtual server description.
1283 Interface *Reference `xml:"Interface"` // Gateway Interface to which Load Balancer Virtual Server is bound.
1284 IPAddress string `xml:"IpAddress"` // Load balancer virtual server Ip Address.
1285 ServiceProfile *LBVirtualServerServiceProfile `xml:"ServiceProfile"` // Load balancer virtual server service profiles.
1286 Logging bool `xml:"Logging,omitempty"` // Enable logging for this virtual server.
1287 Pool string `xml:"Pool"` // Name of Load balancer pool associated with this virtual server.
1288 LoadBalancerTemplates *VendorTemplate `xml:"LoadBalancerTemplates,omitempty"` // Service template related attributes.
1289 }
1290
1291 // LBVirtualServerServiceProfile represents service profile for a load balancing virtual server.
1292 // Type: LBVirtualServerServiceProfileType
1293 // Namespace: http://www.vmware.com/vcloud/v1.5
1294 // Description: Represents service profile for a load balancing virtual server.
1295 // Since: 5.1
1296 type LBVirtualServerServiceProfile struct {
1297 IsEnabled bool `xml:"IsEnabled,omitempty"` // True if this service profile is enabled.
1298 Protocol string `xml:"Protocol"` // Load balancer Protocol type. One of: HTTP, HTTPS, TCP.
1299 Port string `xml:"Port"` // Port for this service profile.
1300 Persistence *LBPersistence `xml:"Persistence,omitempty"` // Persistence type for service profile.
1301 }
1302
1303 // LBPersistence represents persistence type for a load balancer service profile.
1304 // Type: LBPersistenceType
1305 // Namespace: http://www.vmware.com/vcloud/v1.5
1306 // Description: Represents persistence type for a load balancer service profile.
1307 // Since: 5.1
1308 type LBPersistence struct {
1309 Method string `xml:"Method"` // Persistence method. One of: COOKIE, SSL_SESSION_ID.
1310 CookieName string `xml:"CookieName,omitempty"` // Cookie name when persistence method is COOKIE.
1311 CookieMode string `xml:"CookieMode,omitempty"` // Cookie Mode. One of: INSERT, PREFIX, APP.
1312 }
1313
1314 // VendorTemplate is information about a vendor service template. This is optional.
1315 // Type: VendorTemplateType
1316 // Namespace: http://www.vmware.com/vcloud/v1.5
1317 // Description: Information about a vendor service template. This is optional.
1318 // Since: 5.1
1319 type VendorTemplate struct {
1320 Name string `xml:"Name"` // Name of the vendor template. This is required.
1321 ID string `xml:"Id"` // ID of the vendor template. This is required.
1322 }
1323
1324 // GatewayIpsecVpnService represents gateway IPsec VPN service.
1325 // Type: GatewayIpsecVpnServiceType
1326 // Namespace: http://www.vmware.com/vcloud/v1.5
1327 // Description: Represents gateway IPsec VPN service.
1328 // Since: 5.1
1329 type GatewayIpsecVpnService struct {
1330 IsEnabled bool `xml:"IsEnabled"` // Enable or disable the service using this flag
1331 Endpoint *GatewayIpsecVpnEndpoint `xml:"Endpoint,omitempty"` // List of IPSec VPN Service Endpoints.
1332 Tunnel []*GatewayIpsecVpnTunnel `xml:"Tunnel"` // List of IPSec VPN tunnels.
1333 }
1334
1335 // GatewayIpsecVpnEndpoint represents an IPSec VPN endpoint.
1336 // Type: GatewayIpsecVpnEndpointType
1337 // Namespace: http://www.vmware.com/vcloud/v1.5
1338 // Description: Represents an IPSec VPN endpoint.
1339 // Since: 5.1
1340 type GatewayIpsecVpnEndpoint struct {
1341 Network *Reference `xml:"Network"` // External network reference.
1342 PublicIP string `xml:"PublicIp,omitempty"` // Public IP for IPSec endpoint.
1343 }
1344
1345 // GatewayIpsecVpnTunnel represents an IPSec VPN tunnel.
1346 // Type: GatewayIpsecVpnTunnelType
1347 // Namespace: http://www.vmware.com/vcloud/v1.5
1348 // Description: Represents an IPSec VPN tunnel.
1349 // Since: 5.1
1350 type GatewayIpsecVpnTunnel struct {
1351 Name string `xml:"Name"` // The name of the tunnel.
1352 Description string `xml:"Description,omitempty"` // A description of the tunnel.
1353 // TODO: Fix this in a better way
1354 IpsecVpnThirdPartyPeer *IpsecVpnThirdPartyPeer `xml:"IpsecVpnThirdPartyPeer,omitempty"` // Details about the peer network.
1355 PeerIPAddress string `xml:"PeerIpAddress"` // IP address of the peer endpoint.
1356 PeerID string `xml:"PeerId"` // Id for the peer end point
1357 LocalIPAddress string `xml:"LocalIpAddress"` // Address of the local network.
1358 LocalID string `xml:"LocalId"` // Id for local end point
1359 LocalSubnet *IpsecVpnSubnet `xml:"LocalSubnet"` // List of local subnets in the tunnel.
1360 PeerSubnet *IpsecVpnSubnet `xml:"PeerSubnet"` // List of peer subnets in the tunnel.
1361 SharedSecret string `xml:"SharedSecret"` // Shared secret used for authentication.
1362 SharedSecretEncrypted bool `xml:"SharedSecretEncrypted,omitempty"` // True if shared secret is encrypted.
1363 EncryptionProtocol string `xml:"EncryptionProtocol"` // Encryption protocol to be used. One of: AES, AES256, TRIPLEDES
1364 Mtu int `xml:"Mtu"` // MTU for the tunnel.
1365 IsEnabled bool `xml:"IsEnabled,omitempty"` // True if the tunnel is enabled.
1366 IsOperational bool `xml:"IsOperational,omitempty"` // True if the tunnel is operational.
1367 ErrorDetails string `xml:"ErrorDetails,omitempty"` // Error details of the tunnel.
1368 }
1369
1370 // IpsecVpnThirdPartyPeer represents details about a peer network
1371 type IpsecVpnThirdPartyPeer struct {
1372 PeerID string `xml:"PeerId,omitempty"` // Id for the peer end point
1373 }
1374
1375 // IpsecVpnSubnet represents subnet details.
1376 // Type: IpsecVpnSubnetType
1377 // Namespace: http://www.vmware.com/vcloud/v1.5
1378 // Description: Represents subnet details.
1379 // Since: 5.1
1380 type IpsecVpnSubnet struct {
1381 Name string `xml:"Name"` // Gateway Name.
1382 Gateway string `xml:"Gateway"` // Subnet Gateway.
1383 Netmask string `xml:"Netmask"` // Subnet Netmask.
1384 }
1385
1386 // GatewayDhcpService represents Gateway DHCP service.
1387 // Type: GatewayDhcpServiceType
1388 // Namespace: http://www.vmware.com/vcloud/v1.5
1389 // Description: Represents Gateway DHCP service.
1390 // Since: 5.1
1391 type GatewayDhcpService struct {
1392 IsEnabled bool `xml:"IsEnabled,omitempty"` // Enable or disable the service using this flag
1393 Pool []*DhcpPoolService `xml:"Pool,omitempty"` // A DHCP pool.
1394 }
1395
1396 // DhcpPoolService represents DHCP pool service.
1397 // Type: DhcpPoolServiceType
1398 // Namespace: http://www.vmware.com/vcloud/v1.5
1399 // Description: Represents DHCP pool service.
1400 // Since: 5.1
1401 type DhcpPoolService struct {
1402 IsEnabled bool `xml:"IsEnabled,omitempty"` // True if this DHCP Pool is enabled.
1403 Network *Reference `xml:"Network"` // Org vDC network to which the DHCP range is applicable.
1404 DefaultLeaseTime int `xml:"DefaultLeaseTime,omitempty"` // Default lease period for DHCP range.
1405 MaxLeaseTime int `xml:"MaxLeaseTime"` // Maximum lease period for DHCP range.
1406 LowIPAddress string `xml:"LowIpAddress"` // Low IP address in DHCP range.
1407 HighIPAddress string `xml:"HighIpAddress"` // High IP address in DHCP range.
1408 }
1409
1410 // VMSelection represents details of an vm+nic+iptype selection.
1411 // Type: VmSelectionType
1412 // Namespace: http://www.vmware.com/vcloud/v1.5
1413 // Description: Represents details of an vm+nic+iptype selection.
1414 // Since: 5.1
1415 type VMSelection struct {
1416 VAppScopedVMID string `xml:"VAppScopedVmId"` // VAppScopedVmId of VM to which this rule applies.
1417 VMNicID int `xml:"VmNicId"` // VM NIC ID to which this rule applies.
1418 IPType string `xml:"IpType"` // The value can be one of:- assigned: assigned internal IP be automatically choosen. NAT: NATed external IP will be automatically choosen.
1419 }
1420
1421 // FirewallRuleProtocols flags for a network protocol in a firewall rule
1422 // Type: FirewallRuleType/Protocols
1423 // Namespace: http://www.vmware.com/vcloud/v1.5
1424 // Description:
1425 // Since:
1426 type FirewallRuleProtocols struct {
1427 ICMP bool `xml:"Icmp,omitempty"` // True if the rule applies to the ICMP protocol.
1428 Any bool `xml:"Any,omitempty"` // True if the rule applies to any protocol.
1429 TCP bool `xml:"Tcp,omitempty"` // True if the rule applies to the TCP protocol.
1430 UDP bool `xml:"Udp,omitempty"` // True if the rule applies to the UDP protocol.
1431 // FIXME: this is supposed to extend protocol support to all the VSM supported protocols
1432 // Other string `xml:"Other,omitempty"` // Any other protocol supported by vShield Manager
1433 }
1434
1435 // FirewallRule represents a firewall rule
1436 // Type: FirewallRuleType
1437 // Namespace: http://www.vmware.com/vcloud/v1.5
1438 // Description: Represents a firewall rule.
1439 // Since: 0.9
1440 type FirewallRule struct {
1441 ID string `xml:"Id,omitempty"` // Firewall rule identifier.
1442 IsEnabled bool `xml:"IsEnabled"` // Used to enable or disable the firewall rule. Default value is true.
1443 MatchOnTranslate bool `xml:"MatchOnTranslate"` // For DNATed traffic, match the firewall rules only after the destination IP is translated.
1444 Description string `xml:"Description,omitempty"` // A description of the rule.
1445 Policy string `xml:"Policy,omitempty"` // One of: drop (drop packets that match the rule), allow (allow packets that match the rule to pass through the firewall)
1446 Protocols *FirewallRuleProtocols `xml:"Protocols,omitempty"` // Specify the protocols to which the rule should be applied.
1447 IcmpSubType string `xml:"IcmpSubType,omitempty"` // ICMP subtype. One of: address-mask-request, address-mask-reply, destination-unreachable, echo-request, echo-reply, parameter-problem, redirect, router-advertisement, router-solicitation, source-quench, time-exceeded, timestamp-request, timestamp-reply, any.
1448 Port int `xml:"Port,omitempty"` // The port to which this rule applies. A value of -1 matches any port.
1449 DestinationPortRange string `xml:"DestinationPortRange,omitempty"` // Destination port range to which this rule applies.
1450 DestinationIP string `xml:"DestinationIp,omitempty"` // Destination IP address to which the rule applies. A value of Any matches any IP address.
1451 DestinationVM *VMSelection `xml:"DestinationVm,omitempty"` // Details of the destination VM
1452 SourcePort int `xml:"SourcePort,omitempty"` // Destination port to which this rule applies. A value of -1 matches any port.
1453 SourcePortRange string `xml:"SourcePortRange,omitempty"` // Source port range to which this rule applies.
1454 SourceIP string `xml:"SourceIp,omitempty"` // Source IP address to which the rule applies. A value of Any matches any IP address.
1455 SourceVM *VMSelection `xml:"SourceVm,omitempty"` // Details of the source Vm
1456 Direction string `xml:"Direction,omitempty"` // Direction of traffic to which rule applies. One of: in (rule applies to incoming traffic. This is the default value), out (rule applies to outgoing traffic).
1457 EnableLogging bool `xml:"EnableLogging"` // Used to enable or disable firewall rule logging. Default value is false.
1458 }
1459
1460 // FirewallService represent a network firewall service.
1461 // Type: FirewallServiceType
1462 // Namespace: http://www.vmware.com/vcloud/v1.5
1463 // Description: Represents a network firewall service.
1464 // Since:
1465 type FirewallService struct {
1466 IsEnabled bool `xml:"IsEnabled"` // Enable or disable the service using this flag
1467 DefaultAction string `xml:"DefaultAction,omitempty"` // Default action of the firewall. One of: drop (Default. Drop packets that match the rule.), allow (Allow packets that match the rule to pass through the firewall)
1468 LogDefaultAction bool `xml:"LogDefaultAction"` // Flag to enable logging for default action. Default value is false.
1469 FirewallRule []*FirewallRule `xml:"FirewallRule,omitempty"` // A firewall rule.
1470 }
1471
1472 // NatService represents a NAT network service.
1473 // Type: NatServiceType
1474 // Namespace: http://www.vmware.com/vcloud/v1.5
1475 // Description: Represents a NAT network service.
1476 // Since:
1477 type NatService struct {
1478 Xmlns string `xml:"xmlns,attr,omitempty"`
1479 // Elements
1480 IsEnabled bool `xml:"IsEnabled"` // Enable or disable the service using this flag
1481 NatType string `xml:"NatType,omitempty"` // One of: ipTranslation (use IP translation), portForwarding (use port forwarding)
1482 Policy string `xml:"Policy,omitempty"` // One of: allowTraffic (Allow all traffic), allowTrafficIn (Allow inbound traffic only)
1483 NatRule []*NatRule `xml:"NatRule,omitempty"` // A NAT rule.
1484 ExternalIP string `xml:"ExternalIp,omitempty"` // External IP address for rule.
1485 }
1486
1487 // NatRule represents a NAT rule.
1488 // Type: NatRuleType
1489 // Namespace: http://www.vmware.com/vcloud/v1.5
1490 // Description: Represents a NAT rule.
1491 // Since: 0.9
1492 type NatRule struct {
1493 Xmlns string `xml:"xmlns,attr,omitempty"`
1494 // Elements
1495 Description string `xml:"Description,omitempty"` // A description of the rule.
1496 RuleType string `xml:"RuleType,omitempty"` // Type of NAT rule. One of: SNAT (source NAT), DNAT (destination NAT)
1497 IsEnabled bool `xml:"IsEnabled"` // Used to enable or disable the firewall rule. Default value is true.
1498 ID string `xml:"Id,omitempty"` // Firewall rule identifier.
1499 GatewayNatRule *GatewayNatRule `xml:"GatewayNatRule,omitempty"` // Defines SNAT and DNAT types.
1500 OneToOneBasicRule *NatOneToOneBasicRule `xml:"OneToOneBasicRule,omitempty"` // Maps one internal IP address to one external IP address.
1501 OneToOneVMRule *NatOneToOneVMRule `xml:"OneToOneVmRule,omitempty"` // Maps one VM NIC to one external IP addresses.
1502 PortForwardingRule *NatPortForwardingRule `xml:"PortForwardingRule,omitempty"` // Port forwarding internal to external IP addresses.
1503 VMRule *NatVMRule `xml:"VmRule,omitempty"` // Port forwarding VM NIC to external IP addresses.
1504 }
1505
1506 // GatewayNatRule represents the SNAT and DNAT rules.
1507 // Type: GatewayNatRuleType represents the SNAT and DNAT rules.
1508 // Namespace: http://www.vmware.com/vcloud/v1.5
1509 // Description: Represents the SNAT and DNAT rules.
1510 // Since: 5.1
1511 type GatewayNatRule struct {
1512 Xmlns string `xml:"xmlns,attr,omitempty"`
1513 // Elements
1514 Interface *Reference `xml:"Interface,omitempty"` // Interface to which rule is applied.
1515 OriginalIP string `xml:"OriginalIp"` // Original IP for rule.
1516 OriginalPort string `xml:"OriginalPort,omitempty"` // Original port for rule.
1517 TranslatedIP string `xml:"TranslatedIp"` // Translated IP for rule.
1518 TranslatedPort string `xml:"TranslatedPort,omitempty"` // Translated port for rule.
1519 Protocol string `xml:"Protocol,omitempty"` // Protocol for rule.
1520 IcmpSubType string `xml:"IcmpSubType,omitempty"` // ICMP subtype. One of: address-mask-request, address-mask-reply, destination-unreachable, echo-request, echo-reply, parameter-problem, redirect, router-advertisement, router-solicitation, source-quench, time-exceeded, timestamp-request, timestamp-reply, any.
1521 }
1522
1523 // NatOneToOneBasicRule represents the NAT basic rule for one to one mapping of internal and external IP addresses from a network.
1524 // Type: NatOneToOneBasicRuleType
1525 // Namespace: http://www.vmware.com/vcloud/v1.5
1526 // Description: Represents the NAT basic rule for one to one mapping of internal and external IP addresses from a network.
1527 // Since: 0.9
1528 type NatOneToOneBasicRule struct {
1529 Xmlns string `xml:"xmlns,attr,omitempty"`
1530 // Elements
1531 MappingMode string `xml:"MappingMode"` // One of: automatic (map IP addresses automatically), manual (map IP addresses manually using ExternalIpAddress and InternalIpAddress)
1532 ExternalIPAddress string `xml:"ExternalIpAddress"` // External IP address to map.
1533 InternalIPAddress string `xml:"InternalIpAddress"` // Internal IP address to map.
1534 }
1535
1536 // NatOneToOneVMRule represents the NAT rule for one to one mapping of VM NIC and external IP addresses from a network.
1537 // Type: NatOneToOneVmRuleType
1538 // Namespace: http://www.vmware.com/vcloud/v1.5
1539 // Description: Represents the NAT rule for one to one mapping of VM NIC and external IP addresses from a network.
1540 // Since: 0.9
1541 type NatOneToOneVMRule struct {
1542 Xmlns string `xml:"xmlns,attr,omitempty"`
1543 // Elements
1544 MappingMode string `xml:"MappingMode"` // Mapping mode.
1545 ExternalIPAddress string `xml:"ExternalIpAddress"` // External IP address to map.
1546 VAppScopedVMID string `xml:"VAppScopedVmId"` // VAppScopedVmId of VM to which this rule applies.
1547 VMNicID int `xml:"VmNicId"` // VM NIC ID to which this rule applies.
1548 }
1549
1550 // NatPortForwardingRule represents the NAT rule for port forwarding between internal IP/port and external IP/port.
1551 // Type: NatPortForwardingRuleType
1552 // Namespace: http://www.vmware.com/vcloud/v1.5
1553 // Description: Represents the NAT rule for port forwarding between internal IP/port and external IP/port.
1554 // Since: 0.9
1555 type NatPortForwardingRule struct {
1556 ExternalIPAddress string `xml:"ExternalIpAddress"` // External IP address to map.
1557 ExternalPort int `xml:"ExternalPort"` // External port to forward to.
1558 InternalIPAddress string `xml:"InternalIpAddress"` // Internal IP address to map.
1559 InternalPort int `xml:"InternalPort"` // Internal port to forward to.
1560 Protocol string `xml:"Protocol,omitempty"` // Protocol to forward. One of: TCP (forward TCP packets), UDP (forward UDP packets), TCP_UDP (forward TCP and UDP packets).
1561 }
1562
1563 // NatVMRule represents the NAT rule for port forwarding between VM NIC/port and external IP/port.
1564 // Type: NatVmRuleType
1565 // Namespace: http://www.vmware.com/vcloud/v1.5
1566 // Description: Represents the NAT rule for port forwarding between VM NIC/port and external IP/port.
1567 // Since: 0.9
1568 type NatVMRule struct {
1569 ExternalIPAddress string `xml:"ExternalIpAddress,omitempty"` // External IP address to map.
1570 ExternalPort int `xml:"ExternalPort"` // External port to forward to.
1571 VAppScopedVMID string `xml:"VAppScopedVmId"` // VAppScopedVmId of VM to which this rule applies.
1572 VMNicID int `xml:"VmNicId"` // VM NIC ID to which this rule applies.
1573 InternalPort int `xml:"InternalPort"` // Internal port to forward to.
1574 Protocol string `xml:"Protocol,omitempty"` // Protocol to forward. One of: TCP (forward TCP packets), UDP (forward UDP packets), TCP_UDP (forward TCP and UDP packets).
1575 }
1576
1577 // QueryResultEdgeGatewayRecordsType is a container for query results in records format.
1578 // Type: QueryResultRecordsType
1579 // Namespace: http://www.vmware.com/vcloud/v1.5
1580 // Description: Container for query results in records format.
1581 // Since: 1.5
1582 type QueryResultEdgeGatewayRecordsType struct {
1583 // Attributes
1584 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1585 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
1586 Name string `xml:"name,attr,omitempty"` // The name of the entity.
1587 Page int `xml:"page,attr,omitempty"` // Page of the result set that this container holds. The first page is page number 1.
1588 PageSize int `xml:"pageSize,attr,omitempty"` // Page size, as a number of records or references.
1589 Total float64 `xml:"total,attr,omitempty"` // Total number of records or references in the container.
1590 // Elements
1591 Link []*Link `xml:"Link,omitempty"` // A reference to an entity or operation associated with this object.
1592 EdgeGatewayRecord *QueryResultEdgeGatewayRecordType `xml:"EdgeGatewayRecord"` // A record representing a query result.
1593 }
1594
1595 type QueryResultRecordsType struct {
1596 // Attributes
1597 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1598 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
1599 Name string `xml:"name,attr,omitempty"` // The name of the entity.
1600 Page int `xml:"page,attr,omitempty"` // Page of the result set that this container holds. The first page is page number 1.
1601 PageSize int `xml:"pageSize,attr,omitempty"` // Page size, as a number of records or references.
1602 Total float64 `xml:"total,attr,omitempty"` // Total number of records or references in the container.
1603 // Elements
1604 Link []*Link `xml:"Link,omitempty"` // A reference to an entity or operation associated with this object.
1605 EdgeGatewayRecord *QueryResultEdgeGatewayRecordType `xml:"EdgeGatewayRecord"` // A record representing a query result.
1606 VMRecord []*QueryResultVMRecordType `xml:"VMRecord"` // A record representing a VM result.
1607 VAppRecord []*QueryResultVAppRecordType `xml:"VAppRecord"` // A record representing a VApp result.
1608 OrgVdcStorageProfileRecord []*QueryResultOrgVdcStorageProfileRecordType `xml:"OrgVdcStorageProfileRecord"` // A record representing storage profiles
1609 }
1610
1611 // QueryResultEdgeGatewayRecordType represents an edge gateway record as query result.
1612 type QueryResultEdgeGatewayRecordType struct {
1613 // Attributes
1614 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1615 Type string `xml:"type,attr,omitempty"` // The MIME type of the entity.
1616 Name string `xml:"name,attr,omitempty"` // EdgeGateway name.
1617 Vdc string `xml:"vdc,attr,omitempty"` // VDC Reference or ID
1618 NumberOfExtNetworks int `xml:"numberOfExtNetworks,attr,omitempty"` // Number of external networks connected to the edgeGateway. Yes Yes
1619 NumberOfOrgNetworks int `xml:"numberOfOrgNetworks,attr,omitempty"` // Number of org VDC networks connected to the edgeGateway Yes Yes
1620 IsBusy bool `xml:"isBusy,attr"` // True if this Edge Gateway is busy. Yes Yes
1621 GatewayStatus string `xml:"gatewayStatus,attr,omitempty"` //
1622 HaStatus string `xml:"haStatus,attr,omitempty"` // High Availability Status of the edgeGateway Yes Yes
1623 }
1624
1625 // QueryResultVMRecordType represents a VM record as query result.
1626 type QueryResultVMRecordType struct {
1627 // Attributes
1628 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1629 Name string `xml:"name,attr,omitempty"` // VM name.
1630 Deployed bool `xml:"isDeployed,attr,omitempty"` // True if the virtual machine is deployed.
1631 Status string `xml:"status,attr,omitempty"`
1632 Busy bool `xml:"isBusy,attr,omitempty"`
1633 Deleted bool `xml:"isDeleted,attr,omitempty"`
1634 MaintenanceMode bool `xml:"isInMaintenanceMode,attr,omitempty"`
1635 Published bool `xml:"isPublished,attr,omitempty"`
1636 VAppTemplate bool `xml:"isVAppTemplate,attr,omitempty"`
1637 VdcEnabled bool `xml:"isVdcEnabled,attr,omitempty"`
1638 VdcHREF string `xml:"vdc,attr,omitempty"`
1639 VAppParentHREF string `xml:"container,attr,omitempty"`
1640 VAppParentName string `xml:"containerName,attr,omitempty"`
1641 HardwareVersion int `xml:"hardwareVersion,attr,omitempty"`
1642 HighestSupportedVersion int `xml:"pvdcHighestSupportedHardwareVersion,attr,omitempty"`
1643 VmToolsVersion string `xml:"vmToolsVersion,attr,omitempty"`
1644 GuestOS string `xml:"guestOs,attr,omitempty"`
1645 MemoryMB int `xml:"memoryMB,attr,omitempty"`
1646 Cpus int `xml:"numberOfCpus,attr,omitempty"`
1647 StorageProfileName string `xml:"storageProfileName,attr,omitempty"`
1648 NetworkName string `xml:"networkName,attr,omitempty"`
1649 TaskHREF string `xml:"task,attr,omitempty"`
1650 TaskStatusName string `xml:"taskStatusName,attr,omitempty"`
1651 TaskDetails string `xml:"taskDetails,attr,omitempty"`
1652 TaskStatus string `xml:"TaskStatus,attr,omitempty"`
1653 }
1654
1655 // QueryResultVAppRecordType represents a VM record as query result.
1656 type QueryResultVAppRecordType struct {
1657 // Attributes
1658 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1659 Name string `xml:"name,attr"` // The name of the entity.
1660 CreationDate string `xml:"creationDate,attr,omitempty"` // Creation date/time of the vApp.
1661 Busy bool `xml:"isBusy,attr,omitempty"`
1662 Deployed bool `xml:"isDeployed,attr,omitempty"` // True if the vApp is deployed.
1663 Enabled bool `xml:"isEnabled,attr,omitempty"`
1664 Expired bool `xml:"isExpired,attr,omitempty"`
1665 MaintenanceMode bool `xml:"isInMaintenanceMode,attr,omitempty"`
1666 Public bool `xml:"isPublic,attr,omitempty"`
1667 OwnerName string `xml:"ownerName,attr,omitempty"`
1668 Status string `xml:"status,attr,omitempty"`
1669 VdcHREF string `xml:"vdc,attr,omitempty"`
1670 VdcName string `xml:"vdcName,attr,omitempty"`
1671 NumberOfVMs int `xml:"numberOfVMs,attr,omitempty"`
1672 NumberOfCPUs int `xml:"numberOfCpus,attr,omitempty"`
1673 CpuAllocationMhz int `xml:"cpuAllocationMhz,attr,omitempty"`
1674 CpuAllocationInMhz int `xml:"cpuAllocationInMhz,attr,omitempty"`
1675 StorageKB int `xml:"storageKB,attr,omitempty"`
1676 MemoryAllocationMB int `xml:"memoryAllocationMB,attr,omitempty"`
1677 AutoDeleteNotified bool `xml:"isAutoDeleteNotified,attr,omitempty"`
1678 AutoUndeployNotified bool `xml:"isAutoUndeployNotified,attr,omitempty"`
1679 VdcEnabled bool `xml:"isVdcEnabled, attr,omitempty"`
1680 HonorBootOrder bool `xml:"honorBookOrder,attr,omitempty"`
1681 HighestSupportedVersion int `xml:"pvdcHighestSupportedHardwareVersion,attr,omitempty"`
1682 LowestHardwareVersion int `xml:"lowestHardwareVersionInVApp,attr,omitempty"`
1683 TaskHREF string `xml:"task,attr,omitempty"`
1684 TaskStatusName string `xml:"taskStatusName,attr,omitempty"`
1685 TaskStatus string `xml:"TaskStatus,attr,omitempty"`
1686 TaskDetails string `xml:"taskDetails,attr,omitempty"`
1687 }
1688
1689 // QueryResultOrgVdcStorageProfileRecordType represents a storage
1690 // profile as query result.
1691 type QueryResultOrgVdcStorageProfileRecordType struct {
1692 // Attributes
1693 HREF string `xml:"href,attr,omitempty"` // The URI of the entity.
1694 Name string `xml:"name,attr,omitempty"` // Storage Profile name.
1695 VdcHREF string `xml:"vdc,attr,omitempty"`
1696 VdcName string `xml:"vdcName,attr,omitempty"`
1697 IsDefaultStorageProfile bool `xml:"isDefaultStorageProfile,attr,omitempty"`
1698 IsEnabled bool `xml:"isEnabled,attr,omitempty"`
1699 IsVdcBusy bool `xml:"isVdcBusy,attr,omitempty"`
1700 NumberOfConditions int `xml:"numberOfConditions,attr,omitempty"`
1701 StorageUsedMB int `xml:"storageUsedMB,attr,omitempty"`
1702 StorageLimitMB int `xml:"storageLimitMB,attr,omitempty"`
1703 }