Browse Source

scripting: updated codes to be more consistent

osy 2 years ago
parent
commit
fc5f04b66c
2 changed files with 82 additions and 86 deletions
  1. 74 74
      Scripting/UTM.sdef
  2. 8 12
      Scripting/UTMScripting.swift

+ 74 - 74
Scripting/UTM.sdef

@@ -78,10 +78,10 @@
           <property name="name" code="pnam" type="text" access="r"
           <property name="name" code="pnam" type="text" access="r"
             description="The name of the VM."/>
             description="The name of the VM."/>
             
             
-          <property name="backend" code="VmBa" type="backend" access="r"
+          <property name="backend" code="BaKe" type="backend" access="r"
             description="Emulation/virtualization engine used."/>
             description="Emulation/virtualization engine used."/>
             
             
-          <property name="status" code="VmSt" type="status" access="r"
+          <property name="status" code="StUs" type="status" access="r"
             description="Current running status."/>
             description="Current running status."/>
 
 
           <element type="serial port" access="r"
           <element type="serial port" access="r"
@@ -108,13 +108,13 @@
           <property name="id" code="ID  " type="integer" access="r"
           <property name="id" code="ID  " type="integer" access="r"
             description="The unique identifier of the tag."/>
             description="The unique identifier of the tag."/>
           
           
-          <property name="interface" code="SeRf" type="serial interface" access="r"
+          <property name="interface" code="InTf" type="serial interface" access="r"
             description="The type of serial interface on the host."/>
             description="The type of serial interface on the host."/>
             
             
-          <property name="address" code="SeRa" type="text" access="r"
+          <property name="address" code="AdDr" type="text" access="r"
             description="Host address of the serial port (determined by the interface type)."/>
             description="Host address of the serial port (determined by the interface type)."/>
             
             
-          <property name="port" code="SeRp" type="integer" access="r"
+          <property name="port" code="PoRt" type="integer" access="r"
             description="Port number of the serial port (not used in some interface types)."/>
             description="Port number of the serial port (not used in some interface types)."/>
         </class>
         </class>
     </suite>
     </suite>
@@ -302,27 +302,27 @@
         </class>
         </class>
         
         
         <record-type name="execute result" code="ExRs" description="Process results after execution.">
         <record-type name="execute result" code="ExRs" description="Process results after execution.">
-          <property name="exited" code="GuEx" type="boolean" access="r"
+          <property name="exited" code="ExTd" type="boolean" access="r"
             description="If true, the process has terminated.">
             description="If true, the process has terminated.">
             <cocoa key="hasExited" />
             <cocoa key="hasExited" />
           </property>
           </property>
             
             
-          <property name="exit code" code="GuEc" type="integer" access="r"
+          <property name="exit code" code="ExCd" type="integer" access="r"
             description="Exit code if it was normally terminated."/>
             description="Exit code if it was normally terminated."/>
             
             
-          <property name="signal code" code="GuSg" type="integer" access="r"
+          <property name="signal code" code="SiCd" type="integer" access="r"
             description="Signal number (Linux) or unhandled exception code (Windows) if the process was abnormally terminated."/>
             description="Signal number (Linux) or unhandled exception code (Windows) if the process was abnormally terminated."/>
             
             
-          <property name="output text" code="GuOt" type="text" access="r"
+          <property name="output text" code="OuTx" type="text" access="r"
             description="If capture is enabled, the stdout of the process as text."/>
             description="If capture is enabled, the stdout of the process as text."/>
             
             
-          <property name="error text" code="GuEr" type="text" access="r"
+          <property name="error text" code="ErTx" type="text" access="r"
             description="If capture is enabled, the stderr of the process as text."/>
             description="If capture is enabled, the stderr of the process as text."/>
             
             
-          <property name="output data" code="GuOd" type="text" access="r"
+          <property name="output data" code="OuDa" type="text" access="r"
             description="If capture is enabled, the stdout of the process as base64 encoded data."/>
             description="If capture is enabled, the stdout of the process as base64 encoded data."/>
             
             
-          <property name="error data" code="GuEd" type="text" access="r"
+          <property name="error data" code="ErDa" type="text" access="r"
             description="If capture is enabled, the stderr of the process as base64 encoded data."/>
             description="If capture is enabled, the stderr of the process as base64 encoded data."/>
         </record-type>
         </record-type>
         
         
@@ -336,7 +336,7 @@
         <access-group identifier="com.utmapp.UTM.vm-access" />
         <access-group identifier="com.utmapp.UTM.vm-access" />
         
         
         <class-extension extends="virtual machine" description="Virtual machine configuration.">
         <class-extension extends="virtual machine" description="Virtual machine configuration.">
-            <property name="configuration" code="VmCg" access="r"
+            <property name="configuration" code="CoFg" access="r"
               description="The configuration of the virtual machine.">
               description="The configuration of the virtual machine.">
               <type type="qemu configuration"/>
               <type type="qemu configuration"/>
               <type type="apple configuration"/>
               <type type="apple configuration"/>
@@ -360,43 +360,43 @@
           <property name="name" code="pnam" type="text"
           <property name="name" code="pnam" type="text"
             description="Virtual machine name."/>
             description="Virtual machine name."/>
             
             
-          <property name="notes" code="QcNt" type="text"
+          <property name="notes" code="NoTe" type="text"
             description="User-specified notes."/>
             description="User-specified notes."/>
             
             
-          <property name="architecture" code="QcAr" type="text"
+          <property name="architecture" code="ArCh" type="text"
             description="QEMU system architecture."/>
             description="QEMU system architecture."/>
             
             
-          <property name="machine" code="QcMa" type="text"
+          <property name="machine" code="MaCh" type="text"
             description="QEMU target machine (if empty, the default will be used)."/>
             description="QEMU target machine (if empty, the default will be used)."/>
             
             
-          <property name="memory" code="QcMe" type="integer"
+          <property name="memory" code="MeMy" type="integer"
             description="RAM size (in mebibytes)."/>
             description="RAM size (in mebibytes)."/>
             
             
-          <property name="cpu cores" code="QcCc" type="integer"
+          <property name="cpu cores" code="CpUc" type="integer"
             description="Number of CPU cores (0 is the default for this host)."/>
             description="Number of CPU cores (0 is the default for this host)."/>
             
             
-          <property name="hypervisor" code="QcHv" type="boolean"
+          <property name="hypervisor" code="HyPr" type="boolean"
             description="Use the hypervisor (if supported)?"/>
             description="Use the hypervisor (if supported)?"/>
             
             
-          <property name="uefi" code="QcUe" type="boolean"
+          <property name="uefi" code="UeFi" type="boolean"
             description="Use UEFI boot?"/>
             description="Use UEFI boot?"/>
             
             
-          <property name="directory share mode" code="QcDs" type="qemu directory share mode"
+          <property name="directory share mode" code="DrSm" type="qemu directory share mode"
             description="Mode for directory sharing."/>
             description="Mode for directory sharing."/>
             
             
-          <property name="drives" code="QcDr"
+          <property name="drives" code="DrVs"
             description="List of drive configuration.">
             description="List of drive configuration.">
             <type type="qemu drive existing configuration" list="yes"/>
             <type type="qemu drive existing configuration" list="yes"/>
             <type type="qemu drive new configuration" list="yes"/>
             <type type="qemu drive new configuration" list="yes"/>
             <type type="qemu drive import configuration" list="yes"/>
             <type type="qemu drive import configuration" list="yes"/>
           </property>
           </property>
           
           
-          <property name="network interfaces" code="QcNi"
+          <property name="network interfaces" code="NtIf"
             description="List of network configuration.">
             description="List of network configuration.">
             <type type="qemu network configuration" list="yes"/>
             <type type="qemu network configuration" list="yes"/>
           </property>
           </property>
           
           
-          <property name="serial ports" code="QcSr"
+          <property name="serial ports" code="SrPt"
             description="List of serial configuration.">
             description="List of serial configuration.">
             <type type="qemu serial configuration" list="yes"/>
             <type type="qemu serial configuration" list="yes"/>
           </property>
           </property>
@@ -412,41 +412,41 @@
           <property name="id" code="ID  " type="text" access="r"
           <property name="id" code="ID  " type="text" access="r"
             description="The unique identifier for this drive."/>
             description="The unique identifier for this drive."/>
             
             
-          <property name="removable" code="QdRm" type="boolean" access="r"
+          <property name="removable" code="ReMv" type="boolean" access="r"
             description="Is this drive removable?"/>
             description="Is this drive removable?"/>
             
             
-          <property name="interface" code="QdIf" type="qemu drive interface"
+          <property name="interface" code="InTf" type="qemu drive interface"
             description="The hardware interface this drive is attached to (if empty, the default will be used)."/>
             description="The hardware interface this drive is attached to (if empty, the default will be used)."/>
             
             
-          <property name="host size" code="QdHs" type="integer" access="r"
+          <property name="host size" code="HoSz" type="integer" access="r"
             description="The size of this drive as seen by the host (in MiB)."/>
             description="The size of this drive as seen by the host (in MiB)."/>
         </record-type>
         </record-type>
         
         
         <record-type name="qemu drive new configuration" code="QdNc" description="QEMU virtual new drive configuration.">
         <record-type name="qemu drive new configuration" code="QdNc" description="QEMU virtual new drive configuration.">
-          <property name="interface" code="QdIf" type="qemu drive interface"
+          <property name="interface" code="InTf" type="qemu drive interface"
             description="The hardware interface this drive is attached to (if empty, the default will be used)."/>
             description="The hardware interface this drive is attached to (if empty, the default will be used)."/>
             
             
-          <property name="removable" code="QdRm" type="boolean"
+          <property name="removable" code="ReMv" type="boolean"
             description="Is this drive removable?"/>
             description="Is this drive removable?"/>
             
             
-          <property name="guest size" code="QdHs" type="integer"
+          <property name="guest size" code="GuSz" type="integer"
             description="The size of this drive as seen by the guest (in MiB)."/>
             description="The size of this drive as seen by the guest (in MiB)."/>
             
             
-          <property name="raw" code="QdRw" type="boolean"
+          <property name="raw" code="RaAw" type="boolean"
             description="Is this disk image raw format?"/>
             description="Is this disk image raw format?"/>
         </record-type>
         </record-type>
         
         
         <record-type name="qemu drive import configuration" code="QdIc" description="QEMU virtual import drive configuration.">
         <record-type name="qemu drive import configuration" code="QdIc" description="QEMU virtual import drive configuration.">
-          <property name="interface" code="QdIf" type="qemu drive interface"
+          <property name="interface" code="InTf" type="qemu drive interface"
             description="The hardware interface this drive is attached to (if empty, the default will be used)."/>
             description="The hardware interface this drive is attached to (if empty, the default will be used)."/>
             
             
-          <property name="removable" code="QdRm" type="boolean"
+          <property name="removable" code="ReMv" type="boolean"
             description="Is this drive removable?"/>
             description="Is this drive removable?"/>
             
             
-          <property name="source" code="QdSs" type="file"
+          <property name="source" code="SrCe" type="file"
             description="The drive image to import into the virtual machine."/>
             description="The drive image to import into the virtual machine."/>
             
             
-          <property name="raw" code="QdRw" type="boolean"
+          <property name="raw" code="RaAw" type="boolean"
             description="Is this disk image raw format?"/>
             description="Is this disk image raw format?"/>
         </record-type>
         </record-type>
         
         
@@ -467,64 +467,64 @@
           <property name="index" code="pidx" type="integer"
           <property name="index" code="pidx" type="integer"
             description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
             description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
             
             
-          <property name="hardware" code="QnHw" type="text"
+          <property name="hardware" code="HaWe" type="text"
             description="Name of the emulated network card (if empty, the default will be used)."/>
             description="Name of the emulated network card (if empty, the default will be used)."/>
             
             
-          <property name="mode" code="QnMd" type="qemu network mode"
+          <property name="mode" code="MoDe" type="qemu network mode"
             description="This determines how the network device is attached to the host."/>
             description="This determines how the network device is attached to the host."/>
             
             
-          <property name="address" code="QnAd" type="text"
+          <property name="address" code="AdDr" type="text"
             description="MAC address (formatted as XX:XX:XX:XX:XX:XX, if empty a random address will be genertaed)"/>
             description="MAC address (formatted as XX:XX:XX:XX:XX:XX, if empty a random address will be genertaed)"/>
             
             
-          <property name="host interface" code="QnHi" type="text"
+          <property name="host interface" code="HoIf" type="text"
             description="Only used in bridged mode. Specify the interface name to bridge to."/>
             description="Only used in bridged mode. Specify the interface name to bridge to."/>
             
             
-          <property name="port forwards" code="QnPf"
+          <property name="port forwards" code="PtFw"
             description="Only used in emulated mode. Allows port forwarding from guest to host.">
             description="Only used in emulated mode. Allows port forwarding from guest to host.">
             <type type="qemu port forward" list="yes"/>
             <type type="qemu port forward" list="yes"/>
           </property>
           </property>
         </record-type>
         </record-type>
         
         
         <enumeration name="qemu network mode" code="QeNm" description="Mode for networking device.">
         <enumeration name="qemu network mode" code="QeNm" description="Mode for networking device.">
-            <enumerator name="emulated" code="QnEm" description="Emulate a VLAN."/>
-            <enumerator name="shared" code="QnSh" description="NAT based sharing with the host."/>
-            <enumerator name="host" code="QnHs" description="NAT based sharing with no WAN routing."/>
-            <enumerator name="bridged" code="QnBr" description="Bridged to a host interface."/>
+            <enumerator name="emulated" code="EmUd" description="Emulate a VLAN."/>
+            <enumerator name="shared" code="ShRd" description="NAT based sharing with the host."/>
+            <enumerator name="host" code="HoSt" description="NAT based sharing with no WAN routing."/>
+            <enumerator name="bridged" code="BrGd" description="Bridged to a host interface."/>
         </enumeration>
         </enumeration>
         
         
         <record-type name="qemu port forward" code="QePf" description="QEMU port forward configuration.">
         <record-type name="qemu port forward" code="QePf" description="QEMU port forward configuration.">
-          <property name="protocol" code="QpPr" type="network protocol"
+          <property name="protocol" code="PrTl" type="network protocol"
             description="Protocol of the port that will be forwarded."/>
             description="Protocol of the port that will be forwarded."/>
             
             
-          <property name="host address" code="QpHa" type="text"
+          <property name="host address" code="HoAd" type="text"
             description="The host interface IP address to forward to (if empty, it will forward to any interface)."/>
             description="The host interface IP address to forward to (if empty, it will forward to any interface)."/>
             
             
-          <property name="host port" code="QpHp" type="integer"
+          <property name="host port" code="HoPo" type="integer"
             description="Port number on the host."/>
             description="Port number on the host."/>
             
             
-          <property name="guest address" code="QpGa" type="text"
+          <property name="guest address" code="GuAd" type="text"
             description="The IP address on the guest subnet to forward from (if empty, any guest IP will be accepted)."/>
             description="The IP address on the guest subnet to forward from (if empty, any guest IP will be accepted)."/>
             
             
-          <property name="guest port" code="QpGp" type="integer"
+          <property name="guest port" code="GuPo" type="integer"
             description="Port number on the guest."/>
             description="Port number on the guest."/>
         </record-type>
         </record-type>
         
         
         <enumeration name="network protocol" code="NtPr" description="Supported network protocols.">
         <enumeration name="network protocol" code="NtPr" description="Supported network protocols.">
-            <enumerator name="TCP" code="NtTp"/>
-            <enumerator name="UDP" code="NtUp"/>
+            <enumerator name="TCP" code="TcPp"/>
+            <enumerator name="UDP" code="UdPp"/>
         </enumeration>
         </enumeration>
         
         
         <record-type name="qemu serial configuration" code="QeSn" description="QEMU virtual serial configuration.">
         <record-type name="qemu serial configuration" code="QeSn" description="QEMU virtual serial configuration.">
             <property name="index" code="pidx" type="integer"
             <property name="index" code="pidx" type="integer"
               description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
               description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
               
               
-            <property name="hardware" code="QsHw" type="text"
+            <property name="hardware" code="HaWe" type="text"
               description="Name of the emulated serial device (if empty, the default will be used)."/>
               description="Name of the emulated serial device (if empty, the default will be used)."/>
               
               
-            <property name="interface" code="QsIf" type="serial interface"
+            <property name="interface" code="InTf" type="serial interface"
               description="The type of serial interface on the host."/>
               description="The type of serial interface on the host."/>
               
               
-            <property name="port" code="QsPt" type="integer"
+            <property name="port" code="PoRt" type="integer"
               description="The port number to listen on when the interface is a TCP server."/>
               description="The port number to listen on when the interface is a TCP server."/>
         </record-type>
         </record-type>
         
         
@@ -532,33 +532,33 @@
           <property name="name" code="pnam" type="text"
           <property name="name" code="pnam" type="text"
             description="Virtual machine name."/>
             description="Virtual machine name."/>
             
             
-          <property name="notes" code="ApAr" type="text"
+          <property name="notes" code="NoTe" type="text"
             description="User-specified notes."/>
             description="User-specified notes."/>
             
             
-          <property name="memory" code="ApMe" type="integer"
+          <property name="memory" code="MeMy" type="integer"
             description="RAM size (in mebibytes)."/>
             description="RAM size (in mebibytes)."/>
             
             
-          <property name="cpu cores" code="ApCc" type="integer"
+          <property name="cpu cores" code="CpUc" type="integer"
             description="Number of CPU cores (0 is the default for this host)."/>
             description="Number of CPU cores (0 is the default for this host)."/>
             
             
-          <property name="directory shares" code="ApDs"
+          <property name="directory shares" code="DiRs"
             description="List of directory share configuration.">
             description="List of directory share configuration.">
             <type type="apple directory share configuration" list="yes"/>
             <type type="apple directory share configuration" list="yes"/>
           </property>
           </property>
             
             
-          <property name="drives" code="ApDr"
+          <property name="drives" code="DrVs"
             description="List of drive configuration.">
             description="List of drive configuration.">
             <type type="apple drive existing configuration" list="yes"/>
             <type type="apple drive existing configuration" list="yes"/>
             <type type="apple drive new configuration" list="yes"/>
             <type type="apple drive new configuration" list="yes"/>
             <type type="apple drive import configuration" list="yes"/>
             <type type="apple drive import configuration" list="yes"/>
           </property>
           </property>
           
           
-          <property name="network interfaces" code="ApNi"
+          <property name="network interfaces" code="NtIf"
             description="List of network configuration.">
             description="List of network configuration.">
             <type type="apple network configuration" list="yes"/>
             <type type="apple network configuration" list="yes"/>
           </property>
           </property>
           
           
-          <property name="serial ports" code="ApSr"
+          <property name="serial ports" code="SrPt"
             description="List of serial configuration.">
             description="List of serial configuration.">
             <type type="apple serial configuration" list="yes"/>
             <type type="apple serial configuration" list="yes"/>
           </property>
           </property>
@@ -568,7 +568,7 @@
           <property name="index" code="pidx" type="integer"
           <property name="index" code="pidx" type="integer"
             description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
             description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
             
             
-          <property name="read only" code="AdRo" type="boolean" access="r"
+          <property name="read only" code="RdOy" type="boolean" access="r"
             description="Is this directory read-only?"/>
             description="Is this directory read-only?"/>
         </record-type>
         </record-type>
         
         
@@ -576,26 +576,26 @@
           <property name="id" code="ID  " type="text" access="r"
           <property name="id" code="ID  " type="text" access="r"
             description="The unique identifier for this drive."/>
             description="The unique identifier for this drive."/>
             
             
-          <property name="removable" code="ApRm" type="boolean" access="r"
+          <property name="removable" code="ReMv" type="boolean" access="r"
             description="Is this drive removable?"/>
             description="Is this drive removable?"/>
             
             
-          <property name="host size" code="ApHs" type="integer" access="r"
+          <property name="host size" code="HoSz" type="integer" access="r"
             description="The size of this drive as seen by the host (in MiB)."/>
             description="The size of this drive as seen by the host (in MiB)."/>
         </record-type>
         </record-type>
         
         
         <record-type name="apple drive new configuration" code="ApNc" description="Apple virtual new drive configuration.">
         <record-type name="apple drive new configuration" code="ApNc" description="Apple virtual new drive configuration.">
-          <property name="guest size" code="ApGs" type="integer"
+          <property name="guest size" code="GuSz" type="integer"
             description="The size of this drive (in MiB)."/>
             description="The size of this drive (in MiB)."/>
             
             
-          <property name="removable" code="ApRm" type="boolean"
+          <property name="removable" code="ReMv" type="boolean"
             description="Is this drive removable?"/>
             description="Is this drive removable?"/>
         </record-type>
         </record-type>
         
         
         <record-type name="apple drive import configuration" code="ApIc" description="Apple virtual import drive configuration.">
         <record-type name="apple drive import configuration" code="ApIc" description="Apple virtual import drive configuration.">
-          <property name="source" code="ApSs" type="file"
+          <property name="source" code="SrCe" type="file"
             description="The drive image to import into the virtual machine."/>
             description="The drive image to import into the virtual machine."/>
             
             
-          <property name="removable" code="ApRm" type="boolean"
+          <property name="removable" code="ReMv" type="boolean"
             description="Is this drive removable?"/>
             description="Is this drive removable?"/>
         </record-type>
         </record-type>
         
         
@@ -603,26 +603,26 @@
           <property name="index" code="pidx" type="integer"
           <property name="index" code="pidx" type="integer"
             description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
             description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
             
             
-          <property name="mode" code="ApMd" type="apple network mode"
+          <property name="mode" code="MoDe" type="apple network mode"
             description="This determines how the network device is attached to the host."/>
             description="This determines how the network device is attached to the host."/>
             
             
-          <property name="address" code="AnAd" type="text"
+          <property name="address" code="AdDr" type="text"
             description="MAC address (formatted as XX:XX:XX:XX:XX:XX, if empty a random address will be genertaed)"/>
             description="MAC address (formatted as XX:XX:XX:XX:XX:XX, if empty a random address will be genertaed)"/>
             
             
-          <property name="host interface" code="AnHi" type="text"
+          <property name="host interface" code="HoIf" type="text"
             description="Only used in bridged mode. Specify the interface name to bridge to."/>
             description="Only used in bridged mode. Specify the interface name to bridge to."/>
         </record-type>
         </record-type>
         
         
         <enumeration name="apple network mode" code="ApNm" description="Mode for networking device.">
         <enumeration name="apple network mode" code="ApNm" description="Mode for networking device.">
-            <enumerator name="shared" code="AnSh" description="NAT based sharing with the host."/>
-            <enumerator name="bridged" code="AnBr" description="Bridged to a host interface."/>
+            <enumerator name="shared" code="ShRd" description="NAT based sharing with the host."/>
+            <enumerator name="bridged" code="BrGd" description="Bridged to a host interface."/>
         </enumeration>
         </enumeration>
         
         
         <record-type name="apple serial configuration" code="ApSn" description="Apple virtual serial configuration.">
         <record-type name="apple serial configuration" code="ApSn" description="Apple virtual serial configuration.">
             <property name="index" code="pidx" type="integer"
             <property name="index" code="pidx" type="integer"
               description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
               description="The position of the configuration to update. It can be empty to create a new device. Index is invalid after updating the configuration and must be reset to the current position."/>
               
               
-            <property name="interface" code="AsIf" type="serial interface"
+            <property name="interface" code="InTf" type="serial interface"
               description="The type of serial interface on the host (only PTTY is supported)."/>
               description="The type of serial interface on the host (only PTTY is supported)."/>
         </record-type>
         </record-type>
     </suite>
     </suite>

+ 8 - 12
Scripting/UTMScripting.swift

@@ -119,22 +119,22 @@ import ScriptingBridge
 
 
 // MARK: UTMScriptingQemuNetworkMode
 // MARK: UTMScriptingQemuNetworkMode
 @objc public enum UTMScriptingQemuNetworkMode : AEKeyword {
 @objc public enum UTMScriptingQemuNetworkMode : AEKeyword {
-    case emulated = 0x516e456d /* 'QnEm' */
-    case shared = 0x516e5368 /* 'QnSh' */
-    case host = 0x516e4873 /* 'QnHs' */
-    case bridged = 0x516e4272 /* 'QnBr' */
+    case emulated = 0x456d5564 /* 'EmUd' */
+    case shared = 0x53685264 /* 'ShRd' */
+    case host = 0x486f5374 /* 'HoSt' */
+    case bridged = 0x42724764 /* 'BrGd' */
 }
 }
 
 
 // MARK: UTMScriptingNetworkProtocol
 // MARK: UTMScriptingNetworkProtocol
 @objc public enum UTMScriptingNetworkProtocol : AEKeyword {
 @objc public enum UTMScriptingNetworkProtocol : AEKeyword {
-    case tcp = 0x4e745470 /* 'NtTp' */
-    case udp = 0x4e745570 /* 'NtUp' */
+    case tcp = 0x54635070 /* 'TcPp' */
+    case udp = 0x55645070 /* 'UdPp' */
 }
 }
 
 
 // MARK: UTMScriptingAppleNetworkMode
 // MARK: UTMScriptingAppleNetworkMode
 @objc public enum UTMScriptingAppleNetworkMode : AEKeyword {
 @objc public enum UTMScriptingAppleNetworkMode : AEKeyword {
-    case shared = 0x416e5368 /* 'AnSh' */
-    case bridged = 0x416e4272 /* 'AnBr' */
+    case shared = 0x53685264 /* 'ShRd' */
+    case bridged = 0x42724764 /* 'BrGd' */
 }
 }
 
 
 // MARK: UTMScriptingGenericMethods
 // MARK: UTMScriptingGenericMethods
@@ -199,10 +199,6 @@ extension SBObject: UTMScriptingWindow {}
     @objc optional func serialPorts() -> SBElementArray
     @objc optional func serialPorts() -> SBElementArray
     @objc optional func id() -> String // The unique identifier of the VM.
     @objc optional func id() -> String // The unique identifier of the VM.
     @objc optional var name: String { get } // The name of the VM.
     @objc optional var name: String { get } // The name of the VM.
-    @objc optional var notes: String { get } // User specified notes.
-    @objc optional var machine: String { get } // Target machine name.
-    @objc optional var architecture: String { get } // Target architecture name.
-    @objc optional var memory: String { get } // RAM size.
     @objc optional var backend: UTMScriptingBackend { get } // Emulation/virtualization engine used.
     @objc optional var backend: UTMScriptingBackend { get } // Emulation/virtualization engine used.
     @objc optional var status: UTMScriptingStatus { get } // Current running status.
     @objc optional var status: UTMScriptingStatus { get } // Current running status.
     @objc optional func startSaving(_ saving: Bool) // Start a virtual machine or resume a suspended virtual machine.
     @objc optional func startSaving(_ saving: Bool) // Start a virtual machine or resume a suspended virtual machine.