første xml update
[virt-orchestrator.git] / vFLOWER / content / Actions / com.vmware.library.vc.vm.spec.identity / getCustomizationPassword.action.xml
CommitLineData
d8fdd35b
SA
1<?xml version="1.0" encoding="UTF-8"?>
2<dunes-script-module name="getCustomizationPassword" result-type="Any" api-version="3.1.0" id="77fd7bab-20ff-45b9-a959-4a4e365df0eb" version="0.2.0" allowed-operations="fv">
3 <description>Contains a password string and a flag that specifies whether the string is in plain text or encrypted.</description>
4
5 <param n="plainText" t="boolean">Flag to specify whether or not the password is in plain text, rather than encrypted.</param>
6
7 <param n="value" t="string">The password string. It is encrypted if the associated plainText flag is false.</param>
8
9 <script encoded="false">
10try {
11 if (plainText == null) throw "plainText cannot be null";
12// if (value == null) throw "value cannot be null";
13if (value == null) value = "";
14// return new VcCustomizationPassword(plainText, value);
15 var password = new VcCustomizationPassword();
16 password.plainText = plainText;
17 password.value = value;
18 return password;
19}
20catch (ex) {
21 throw "Unable to create VcCustomizationPassword: " + ex;
22}
23 </script>
24</dunes-script-module>