@@ -1604,6 +1604,45 @@ type VAppTemplateForUpdate struct {
1604
1604
Description string `xml:"Description,omitempty"` // Optional description.
1605
1605
}
1606
1606
1607
+ // CaptureVAppParams is a configuration that can be supplied for capturing a vApp template from
1608
+ // existing vApp
1609
+ type CaptureVAppParams struct {
1610
+ XMLName xml.Name `xml:"CaptureVAppParams"`
1611
+
1612
+ Xmlns string `xml:"xmlns,attr"`
1613
+ XmlnsNs0 string `xml:"xmlns:ns0,attr,omitempty"`
1614
+
1615
+ // Name of vApp template
1616
+ Name string `xml:"name,attr"`
1617
+ // Description of vApp template
1618
+ Description string `xml:"Description,omitempty"`
1619
+
1620
+ // Source vApp reference. At least HREF field must be set
1621
+ Source * Reference `xml:"Source"`
1622
+
1623
+ // CustomizationSection section
1624
+ CustomizationSection CaptureVAppParamsCustomizationSection `xml:"CustomizationSection"`
1625
+
1626
+ // TargetCatalogItem can be used to overwrite existing item. To overwrite an existing vApp
1627
+ // template with the one created by this capture, place a reference to the existing template
1628
+ // here. Otherwise, the operation creates a new vApp template.
1629
+ TargetCatalogItem * Reference `xml:"TargetCatalogItem,omitempty"`
1630
+ // CopyTpmOnInstantiate defines if TPM device is copied (`true`) to instantiated vApp from this
1631
+ // template or `false` if a new TPM device is created for instantiated vApp.
1632
+ // Note. Supported on VCD 10.4.2+
1633
+ CopyTpmOnInstantiate * bool `xml:"CopyTpmOnInstantiate"`
1634
+ }
1635
+
1636
+ // CaptureVAppParamsCustomizationSection settings for CaptureVAppParams type
1637
+ type CaptureVAppParamsCustomizationSection struct {
1638
+ // This field must contain value "CustomizeOnInstantiate Settings" so that API does not reject
1639
+ // the request
1640
+ Info string `xml:"ns0:Info,omitempty"`
1641
+ // CustomizeOnInstantiate marks if instantiating this template applies customization settings
1642
+ // (`true`). `false` creates an identical copy.
1643
+ CustomizeOnInstantiate bool `xml:"CustomizeOnInstantiate"`
1644
+ }
1645
+
1607
1646
// VMDiskChange represents a virtual machine only with Disk setting update part
1608
1647
type VMDiskChange struct {
1609
1648
XMLName xml.Name `xml:"Vm"`
0 commit comments