første xml update
[virt-orchestrator.git] / vFLOWER / content / Actions / com.vmware.library.vc.vm.spec.identity / getCustomizationSysprep.action.xml
CommitLineData
d8fdd35b
SA
1<?xml version="1.0" encoding="UTF-8"?>
2<dunes-script-module name="getCustomizationSysprep" result-type="Any" api-version="3.1.0" id="812f97c9-6d2f-4172-852f-fd7d5938be5d" version="0.2.0" allowed-operations="fv">
3 <description>An object representation of a Windows sysprep.inf answer file. The sysprep type encloses all the individual keys listed in a sysprep.inf file. For more detailed information, see the document Windows 2000 Unattended Setup Guide.</description>
4
5 <param n="guiRunOnce" t="Any">[Optional] VimCustomizationGuiRunOnce: An object representation of the sysprep GuiRunOnce key.</param>
6
7 <param n="guiUnattended" t="Any">VimCustomizationGuiUnattended: An object representation of the sysprep GuiUnattended key. VimCustomizationGuiUnattended:</param>
8
9 <param n="identification" t="Any">VimCustomizationIdentification: An object representation of the sysprep Identification key.</param>
10
11 <param n="licenseFilePrintData" t="Any">[Optional] VimCustomizationLicenseFilePrintData: An object representation of the sysprep LicenseFilePrintData key. Required only for Windows 2000 Server and Windows Server 2003.</param>
12
13 <param n="userData" t="Any">VimCustomizationUserData: An object representation of the sysprep UserData key.</param>
14
15 <script encoded="false">
16var sysprep;
17try {
18 checkParams();
19 sysprep = new VcCustomizationSysprep();
20 affectParams();
21 return sysprep;
22}
23catch (ex) {
24 throw "Unable to create VcCustomizationSysprep: " + ex;
25}
26
27function affectParams() {
28 sysprep.guiRunOnce = guiRunOnce;
29 sysprep.guiUnattended = guiUnattended;
30 sysprep.identification = identification;
31 sysprep.licenseFilePrintData = licenseFilePrintData;
32 sysprep.userData = userData;
33}
34
35function checkParams() {
36 if (guiRunOnce != null &amp;&amp; ((guiRunOnce instanceof VcCustomizationGuiRunOnce) == false)) throw "guiRunOnce must be of type VcCustomizationGuiRunOnce";
37 if (guiUnattended == null) throw "guiUnattended cannot be null";
38 if ((guiUnattended instanceof VcCustomizationGuiUnattended) == false) throw "guiUnattended must be of type VcCustomizationGuiUnattended";
39 if (identification == null) throw "identification cannot be null";
40 if ((identification instanceof VcCustomizationIdentification) == false) throw "identification must be of type VcCustomizationIdentification";
41 if (licenseFilePrintData != null &amp;&amp; ((licenseFilePrintData instanceof VcCustomizationLicenseFilePrintData) == false)) throw "licenseFilePrintData must be of type VcCustomizationLicenseFilePrintData";
42 if (userData == null) throw "userData cannot be null";
43 if ((userData instanceof VcCustomizationUserData) == false) throw "userData must be of type VcCustomizationUserData";
44}
45 </script>
46</dunes-script-module>