cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahu...@apache.org
Subject [31/48] All Checkstyle problems corrected
Date Thu, 12 Dec 2013 21:01:31 GMT
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/be5e5cc6/deps/XenServerJava/src/com/xensource/xenapi/Types.java
----------------------------------------------------------------------
diff --git a/deps/XenServerJava/src/com/xensource/xenapi/Types.java b/deps/XenServerJava/src/com/xensource/xenapi/Types.java
index bde887a..c6451ff 100644
--- a/deps/XenServerJava/src/com/xensource/xenapi/Types.java
+++ b/deps/XenServerJava/src/com/xensource/xenapi/Types.java
@@ -28,7 +28,6 @@
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
 package com.xensource.xenapi;
 
 import java.util.Date;
@@ -69,7 +68,7 @@ public class Types
         String[] result = new String[objArray.length];
         for (int i = 0; i < objArray.length; i++)
         {
-            result[i] = (String) objArray[i];
+            result[i] = (String)objArray[i];
         }
         return result;
     }
@@ -119,6 +118,7 @@ public class Types
             return sb.toString();
         }
     }
+
     /**
      * Thrown if the response from the server contains an invalid status.
      */
@@ -126,7 +126,7 @@ public class Types
     {
         public BadServerResponse(Map response)
         {
-            super(ObjectArrayToStringArray((Object[]) response.get("ErrorDescription")));
+            super(ObjectArrayToStringArray((Object[])response.get("ErrorDescription")));
         }
     }
 
@@ -172,10 +172,11 @@ public class Types
 
         return matcher.group(1);
     }
-      /**
-     * Checks the provided server response was successful. If the call failed, throws a XenAPIException. If the server
-     * returned an invalid response, throws a BadServerResponse. Otherwise, returns the server response as passed in.
-     */
+
+    /**
+    * Checks the provided server response was successful. If the call failed, throws a XenAPIException. If the server
+    * returned an invalid response, throws a BadServerResponse. Otherwise, returns the server response as passed in.
+    */
     static Map checkResponse(Map response) throws XenAPIException, BadServerResponse
     {
         if (response.get("Status").equals("Success"))
@@ -185,7 +186,7 @@ public class Types
 
         if (response.get("Status").equals("Failure"))
         {
-            String[] ErrorDescription = ObjectArrayToStringArray((Object[]) response.get("ErrorDescription"));
+            String[] ErrorDescription = ObjectArrayToStringArray((Object[])response.get("ErrorDescription"));
 
             if (ErrorDescription[0].equals("RESTORE_TARGET_MISSING_DEVICE"))
             {
@@ -1993,21 +1994,34 @@ public class Types
          */
         BLOCKED;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == SCAN) return "scan";
-            if (this == CLONE) return "clone";
-            if (this == COPY) return "copy";
-            if (this == RESIZE) return "resize";
-            if (this == RESIZE_ONLINE) return "resize_online";
-            if (this == SNAPSHOT) return "snapshot";
-            if (this == DESTROY) return "destroy";
-            if (this == FORGET) return "forget";
-            if (this == UPDATE) return "update";
-            if (this == FORCE_UNLOCK) return "force_unlock";
-            if (this == GENERATE_CONFIG) return "generate_config";
-            if (this == BLOCKED) return "blocked";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == SCAN)
+                return "scan";
+            if (this == CLONE)
+                return "clone";
+            if (this == COPY)
+                return "copy";
+            if (this == RESIZE)
+                return "resize";
+            if (this == RESIZE_ONLINE)
+                return "resize_online";
+            if (this == SNAPSHOT)
+                return "snapshot";
+            if (this == DESTROY)
+                return "destroy";
+            if (this == FORGET)
+                return "forget";
+            if (this == UPDATE)
+                return "update";
+            if (this == FORCE_UNLOCK)
+                return "force_unlock";
+            if (this == GENERATE_CONFIG)
+                return "generate_config";
+            if (this == BLOCKED)
+                return "blocked";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2038,14 +2052,20 @@ public class Types
          */
         VMPP;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == VM) return "VM";
-            if (this == HOST) return "Host";
-            if (this == SR) return "SR";
-            if (this == POOL) return "Pool";
-            if (this == VMPP) return "VMPP";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == VM)
+                return "VM";
+            if (this == HOST)
+                return "Host";
+            if (this == SR)
+                return "SR";
+            if (this == POOL)
+                return "Pool";
+            if (this == VMPP)
+                return "VMPP";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2088,17 +2108,26 @@ public class Types
          */
         REDO_LOG;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == SYSTEM) return "system";
-            if (this == USER) return "user";
-            if (this == EPHEMERAL) return "ephemeral";
-            if (this == SUSPEND) return "suspend";
-            if (this == CRASHDUMP) return "crashdump";
-            if (this == HA_STATEFILE) return "ha_statefile";
-            if (this == METADATA) return "metadata";
-            if (this == REDO_LOG) return "redo_log";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == SYSTEM)
+                return "system";
+            if (this == USER)
+                return "user";
+            if (this == EPHEMERAL)
+                return "ephemeral";
+            if (this == SUSPEND)
+                return "suspend";
+            if (this == CRASHDUMP)
+                return "crashdump";
+            if (this == HA_STATEFILE)
+                return "ha_statefile";
+            if (this == METADATA)
+                return "metadata";
+            if (this == REDO_LOG)
+                return "redo_log";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2125,13 +2154,18 @@ public class Types
          */
         RESTARTXAPI;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == RESTARTHVM) return "restartHVM";
-            if (this == RESTARTPV) return "restartPV";
-            if (this == RESTARTHOST) return "restartHost";
-            if (this == RESTARTXAPI) return "restartXAPI";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == RESTARTHVM)
+                return "restartHVM";
+            if (this == RESTARTPV)
+                return "restartPV";
+            if (this == RESTARTHOST)
+                return "restartHost";
+            if (this == RESTARTXAPI)
+                return "restartXAPI";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2154,12 +2188,16 @@ public class Types
          */
         MOD;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == ADD) return "add";
-            if (this == DEL) return "del";
-            if (this == MOD) return "mod";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == ADD)
+                return "add";
+            if (this == DEL)
+                return "del";
+            if (this == MOD)
+                return "mod";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2178,11 +2216,14 @@ public class Types
          */
         IPV6;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == IPV4) return "IPv4";
-            if (this == IPV6) return "IPv6";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == IPV4)
+                return "IPv4";
+            if (this == IPV6)
+                return "IPv6";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2197,10 +2238,12 @@ public class Types
          */
         CANCEL;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == CANCEL) return "cancel";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == CANCEL)
+                return "cancel";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2231,14 +2274,20 @@ public class Types
          */
         CANCELLED;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == PENDING) return "pending";
-            if (this == SUCCESS) return "success";
-            if (this == FAILURE) return "failure";
-            if (this == CANCELLING) return "cancelling";
-            if (this == CANCELLED) return "cancelled";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == PENDING)
+                return "pending";
+            if (this == SUCCESS)
+                return "success";
+            if (this == FAILURE)
+                return "failure";
+            if (this == CANCELLING)
+                return "cancelling";
+            if (this == CANCELLED)
+                return "cancelled";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2253,10 +2302,12 @@ public class Types
          */
         ATTACHING;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == ATTACHING) return "attaching";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == ATTACHING)
+                return "attaching";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2279,12 +2330,16 @@ public class Types
          */
         RDP;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == VT100) return "vt100";
-            if (this == RFB) return "rfb";
-            if (this == RDP) return "rdp";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == VT100)
+                return "vt100";
+            if (this == RFB)
+                return "rfb";
+            if (this == RDP)
+                return "rdp";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2319,15 +2374,22 @@ public class Types
          */
         RENAME_RESTART;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == DESTROY) return "destroy";
-            if (this == COREDUMP_AND_DESTROY) return "coredump_and_destroy";
-            if (this == RESTART) return "restart";
-            if (this == COREDUMP_AND_RESTART) return "coredump_and_restart";
-            if (this == PRESERVE) return "preserve";
-            if (this == RENAME_RESTART) return "rename_restart";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == DESTROY)
+                return "destroy";
+            if (this == COREDUMP_AND_DESTROY)
+                return "coredump_and_destroy";
+            if (this == RESTART)
+                return "restart";
+            if (this == COREDUMP_AND_RESTART)
+                return "coredump_and_restart";
+            if (this == PRESERVE)
+                return "preserve";
+            if (this == RENAME_RESTART)
+                return "rename_restart";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2346,11 +2408,14 @@ public class Types
          */
         CHECKPOINT;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == SNAPSHOT) return "snapshot";
-            if (this == CHECKPOINT) return "checkpoint";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == SNAPSHOT)
+                return "snapshot";
+            if (this == CHECKPOINT)
+                return "checkpoint";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2369,11 +2434,14 @@ public class Types
          */
         RESTART;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == DESTROY) return "destroy";
-            if (this == RESTART) return "restart";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == DESTROY)
+                return "destroy";
+            if (this == RESTART)
+                return "restart";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2396,12 +2464,16 @@ public class Types
          */
         UNPLUG;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == ATTACH) return "attach";
-            if (this == PLUG) return "plug";
-            if (this == UNPLUG) return "unplug";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == ATTACH)
+                return "attach";
+            if (this == PLUG)
+                return "plug";
+            if (this == UNPLUG)
+                return "unplug";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2592,54 +2664,100 @@ public class Types
          */
         VGPU;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == SESSION) return "session";
-            if (this == AUTH) return "auth";
-            if (this == SUBJECT) return "subject";
-            if (this == ROLE) return "role";
-            if (this == TASK) return "task";
-            if (this == EVENT) return "event";
-            if (this == POOL) return "pool";
-            if (this == POOL_PATCH) return "pool_patch";
-            if (this == VM) return "VM";
-            if (this == VM_METRICS) return "VM_metrics";
-            if (this == VM_GUEST_METRICS) return "VM_guest_metrics";
-            if (this == VMPP) return "VMPP";
-            if (this == VM_APPLIANCE) return "VM_appliance";
-            if (this == DR_TASK) return "DR_task";
-            if (this == HOST) return "host";
-            if (this == HOST_CRASHDUMP) return "host_crashdump";
-            if (this == HOST_PATCH) return "host_patch";
-            if (this == HOST_METRICS) return "host_metrics";
-            if (this == HOST_CPU) return "host_cpu";
-            if (this == NETWORK) return "network";
-            if (this == VIF) return "VIF";
-            if (this == VIF_METRICS) return "VIF_metrics";
-            if (this == PIF) return "PIF";
-            if (this == PIF_METRICS) return "PIF_metrics";
-            if (this == BOND) return "Bond";
-            if (this == VLAN) return "VLAN";
-            if (this == SM) return "SM";
-            if (this == SR) return "SR";
-            if (this == VDI) return "VDI";
-            if (this == VBD) return "VBD";
-            if (this == VBD_METRICS) return "VBD_metrics";
-            if (this == PBD) return "PBD";
-            if (this == CRASHDUMP) return "crashdump";
-            if (this == VTPM) return "VTPM";
-            if (this == CONSOLE) return "console";
-            if (this == USER) return "user";
-            if (this == DATA_SOURCE) return "data_source";
-            if (this == BLOB) return "blob";
-            if (this == MESSAGE) return "message";
-            if (this == SECRET) return "secret";
-            if (this == TUNNEL) return "tunnel";
-            if (this == PCI) return "PCI";
-            if (this == PGPU) return "PGPU";
-            if (this == GPU_GROUP) return "GPU_group";
-            if (this == VGPU) return "VGPU";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == SESSION)
+                return "session";
+            if (this == AUTH)
+                return "auth";
+            if (this == SUBJECT)
+                return "subject";
+            if (this == ROLE)
+                return "role";
+            if (this == TASK)
+                return "task";
+            if (this == EVENT)
+                return "event";
+            if (this == POOL)
+                return "pool";
+            if (this == POOL_PATCH)
+                return "pool_patch";
+            if (this == VM)
+                return "VM";
+            if (this == VM_METRICS)
+                return "VM_metrics";
+            if (this == VM_GUEST_METRICS)
+                return "VM_guest_metrics";
+            if (this == VMPP)
+                return "VMPP";
+            if (this == VM_APPLIANCE)
+                return "VM_appliance";
+            if (this == DR_TASK)
+                return "DR_task";
+            if (this == HOST)
+                return "host";
+            if (this == HOST_CRASHDUMP)
+                return "host_crashdump";
+            if (this == HOST_PATCH)
+                return "host_patch";
+            if (this == HOST_METRICS)
+                return "host_metrics";
+            if (this == HOST_CPU)
+                return "host_cpu";
+            if (this == NETWORK)
+                return "network";
+            if (this == VIF)
+                return "VIF";
+            if (this == VIF_METRICS)
+                return "VIF_metrics";
+            if (this == PIF)
+                return "PIF";
+            if (this == PIF_METRICS)
+                return "PIF_metrics";
+            if (this == BOND)
+                return "Bond";
+            if (this == VLAN)
+                return "VLAN";
+            if (this == SM)
+                return "SM";
+            if (this == SR)
+                return "SR";
+            if (this == VDI)
+                return "VDI";
+            if (this == VBD)
+                return "VBD";
+            if (this == VBD_METRICS)
+                return "VBD_metrics";
+            if (this == PBD)
+                return "PBD";
+            if (this == CRASHDUMP)
+                return "crashdump";
+            if (this == VTPM)
+                return "VTPM";
+            if (this == CONSOLE)
+                return "console";
+            if (this == USER)
+                return "user";
+            if (this == DATA_SOURCE)
+                return "data_source";
+            if (this == BLOB)
+                return "blob";
+            if (this == MESSAGE)
+                return "message";
+            if (this == SECRET)
+                return "secret";
+            if (this == TUNNEL)
+                return "tunnel";
+            if (this == PCI)
+                return "PCI";
+            if (this == PGPU)
+                return "PGPU";
+            if (this == GPU_GROUP)
+                return "GPU_group";
+            if (this == VGPU)
+                return "VGPU";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2682,17 +2800,26 @@ public class Types
          */
         VM_MIGRATE;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == PROVISION) return "provision";
-            if (this == EVACUATE) return "evacuate";
-            if (this == SHUTDOWN) return "shutdown";
-            if (this == REBOOT) return "reboot";
-            if (this == POWER_ON) return "power_on";
-            if (this == VM_START) return "vm_start";
-            if (this == VM_RESUME) return "vm_resume";
-            if (this == VM_MIGRATE) return "vm_migrate";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == PROVISION)
+                return "provision";
+            if (this == EVACUATE)
+                return "evacuate";
+            if (this == SHUTDOWN)
+                return "shutdown";
+            if (this == REBOOT)
+                return "reboot";
+            if (this == POWER_ON)
+                return "power_on";
+            if (this == VM_START)
+                return "vm_start";
+            if (this == VM_RESUME)
+                return "vm_resume";
+            if (this == VM_MIGRATE)
+                return "vm_migrate";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2719,13 +2846,18 @@ public class Types
          */
         WEEKLY;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == NEVER) return "never";
-            if (this == ALWAYS_AFTER_BACKUP) return "always_after_backup";
-            if (this == DAILY) return "daily";
-            if (this == WEEKLY) return "weekly";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == NEVER)
+                return "never";
+            if (this == ALWAYS_AFTER_BACKUP)
+                return "always_after_backup";
+            if (this == DAILY)
+                return "daily";
+            if (this == WEEKLY)
+                return "weekly";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2748,12 +2880,16 @@ public class Types
          */
         NFS;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == NONE) return "none";
-            if (this == CIFS) return "cifs";
-            if (this == NFS) return "nfs";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == NONE)
+                return "none";
+            if (this == CIFS)
+                return "cifs";
+            if (this == NFS)
+                return "nfs";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2772,11 +2908,14 @@ public class Types
          */
         RW;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == RO) return "RO";
-            if (this == RW) return "RW";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == RO)
+                return "RO";
+            if (this == RW)
+                return "RW";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2803,13 +2942,18 @@ public class Types
          */
         AUTOCONF;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == NONE) return "None";
-            if (this == DHCP) return "DHCP";
-            if (this == STATIC) return "Static";
-            if (this == AUTOCONF) return "Autoconf";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == NONE)
+                return "None";
+            if (this == DHCP)
+                return "DHCP";
+            if (this == STATIC)
+                return "Static";
+            if (this == AUTOCONF)
+                return "Autoconf";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2828,11 +2972,14 @@ public class Types
          */
         DISK;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == CD) return "CD";
-            if (this == DISK) return "Disk";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == CD)
+                return "CD";
+            if (this == DISK)
+                return "Disk";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2851,11 +2998,14 @@ public class Types
          */
         PERSIST;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == RESET) return "reset";
-            if (this == PERSIST) return "persist";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == RESET)
+                return "reset";
+            if (this == PERSIST)
+                return "persist";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2882,13 +3032,18 @@ public class Types
          */
         SHUTDOWN;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == START) return "start";
-            if (this == CLEAN_SHUTDOWN) return "clean_shutdown";
-            if (this == HARD_SHUTDOWN) return "hard_shutdown";
-            if (this == SHUTDOWN) return "shutdown";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == START)
+                return "start";
+            if (this == CLEAN_SHUTDOWN)
+                return "clean_shutdown";
+            if (this == HARD_SHUTDOWN)
+                return "hard_shutdown";
+            if (this == SHUTDOWN)
+                return "shutdown";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2931,17 +3086,26 @@ public class Types
          */
         UNPAUSE;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == ATTACH) return "attach";
-            if (this == EJECT) return "eject";
-            if (this == INSERT) return "insert";
-            if (this == PLUG) return "plug";
-            if (this == UNPLUG) return "unplug";
-            if (this == UNPLUG_FORCE) return "unplug_force";
-            if (this == PAUSE) return "pause";
-            if (this == UNPAUSE) return "unpause";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == ATTACH)
+                return "attach";
+            if (this == EJECT)
+                return "eject";
+            if (this == INSERT)
+                return "insert";
+            if (this == PLUG)
+                return "plug";
+            if (this == UNPLUG)
+                return "unplug";
+            if (this == UNPLUG_FORCE)
+                return "unplug_force";
+            if (this == PAUSE)
+                return "pause";
+            if (this == UNPAUSE)
+                return "unpause";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2964,12 +3128,16 @@ public class Types
          */
         WEEKLY;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == HOURLY) return "hourly";
-            if (this == DAILY) return "daily";
-            if (this == WEEKLY) return "weekly";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == HOURLY)
+                return "hourly";
+            if (this == DAILY)
+                return "daily";
+            if (this == WEEKLY)
+                return "weekly";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -2988,11 +3156,14 @@ public class Types
          */
         DISABLED;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == UNLOCKED) return "unlocked";
-            if (this == DISABLED) return "disabled";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == UNLOCKED)
+                return "unlocked";
+            if (this == DISABLED)
+                return "disabled";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -3019,13 +3190,18 @@ public class Types
          */
         SUSPENDED;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == HALTED) return "Halted";
-            if (this == PAUSED) return "Paused";
-            if (this == RUNNING) return "Running";
-            if (this == SUSPENDED) return "Suspended";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == HALTED)
+                return "Halted";
+            if (this == PAUSED)
+                return "Paused";
+            if (this == RUNNING)
+                return "Running";
+            if (this == SUSPENDED)
+                return "Suspended";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -3216,54 +3392,100 @@ public class Types
          */
         DESTROY;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == SNAPSHOT) return "snapshot";
-            if (this == CLONE) return "clone";
-            if (this == COPY) return "copy";
-            if (this == CREATE_TEMPLATE) return "create_template";
-            if (this == REVERT) return "revert";
-            if (this == CHECKPOINT) return "checkpoint";
-            if (this == SNAPSHOT_WITH_QUIESCE) return "snapshot_with_quiesce";
-            if (this == PROVISION) return "provision";
-            if (this == START) return "start";
-            if (this == START_ON) return "start_on";
-            if (this == PAUSE) return "pause";
-            if (this == UNPAUSE) return "unpause";
-            if (this == CLEAN_SHUTDOWN) return "clean_shutdown";
-            if (this == CLEAN_REBOOT) return "clean_reboot";
-            if (this == HARD_SHUTDOWN) return "hard_shutdown";
-            if (this == POWER_STATE_RESET) return "power_state_reset";
-            if (this == HARD_REBOOT) return "hard_reboot";
-            if (this == SUSPEND) return "suspend";
-            if (this == CSVM) return "csvm";
-            if (this == RESUME) return "resume";
-            if (this == RESUME_ON) return "resume_on";
-            if (this == POOL_MIGRATE) return "pool_migrate";
-            if (this == MIGRATE_SEND) return "migrate_send";
-            if (this == GET_BOOT_RECORD) return "get_boot_record";
-            if (this == SEND_SYSRQ) return "send_sysrq";
-            if (this == SEND_TRIGGER) return "send_trigger";
-            if (this == QUERY_SERVICES) return "query_services";
-            if (this == CHANGING_MEMORY_LIVE) return "changing_memory_live";
-            if (this == AWAITING_MEMORY_LIVE) return "awaiting_memory_live";
-            if (this == CHANGING_DYNAMIC_RANGE) return "changing_dynamic_range";
-            if (this == CHANGING_STATIC_RANGE) return "changing_static_range";
-            if (this == CHANGING_MEMORY_LIMITS) return "changing_memory_limits";
-            if (this == CHANGING_SHADOW_MEMORY) return "changing_shadow_memory";
-            if (this == CHANGING_SHADOW_MEMORY_LIVE) return "changing_shadow_memory_live";
-            if (this == CHANGING_VCPUS) return "changing_VCPUs";
-            if (this == CHANGING_VCPUS_LIVE) return "changing_VCPUs_live";
-            if (this == ASSERT_OPERATION_VALID) return "assert_operation_valid";
-            if (this == DATA_SOURCE_OP) return "data_source_op";
-            if (this == UPDATE_ALLOWED_OPERATIONS) return "update_allowed_operations";
-            if (this == MAKE_INTO_TEMPLATE) return "make_into_template";
-            if (this == IMPORT) return "import";
-            if (this == EXPORT) return "export";
-            if (this == METADATA_EXPORT) return "metadata_export";
-            if (this == REVERTING) return "reverting";
-            if (this == DESTROY) return "destroy";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == SNAPSHOT)
+                return "snapshot";
+            if (this == CLONE)
+                return "clone";
+            if (this == COPY)
+                return "copy";
+            if (this == CREATE_TEMPLATE)
+                return "create_template";
+            if (this == REVERT)
+                return "revert";
+            if (this == CHECKPOINT)
+                return "checkpoint";
+            if (this == SNAPSHOT_WITH_QUIESCE)
+                return "snapshot_with_quiesce";
+            if (this == PROVISION)
+                return "provision";
+            if (this == START)
+                return "start";
+            if (this == START_ON)
+                return "start_on";
+            if (this == PAUSE)
+                return "pause";
+            if (this == UNPAUSE)
+                return "unpause";
+            if (this == CLEAN_SHUTDOWN)
+                return "clean_shutdown";
+            if (this == CLEAN_REBOOT)
+                return "clean_reboot";
+            if (this == HARD_SHUTDOWN)
+                return "hard_shutdown";
+            if (this == POWER_STATE_RESET)
+                return "power_state_reset";
+            if (this == HARD_REBOOT)
+                return "hard_reboot";
+            if (this == SUSPEND)
+                return "suspend";
+            if (this == CSVM)
+                return "csvm";
+            if (this == RESUME)
+                return "resume";
+            if (this == RESUME_ON)
+                return "resume_on";
+            if (this == POOL_MIGRATE)
+                return "pool_migrate";
+            if (this == MIGRATE_SEND)
+                return "migrate_send";
+            if (this == GET_BOOT_RECORD)
+                return "get_boot_record";
+            if (this == SEND_SYSRQ)
+                return "send_sysrq";
+            if (this == SEND_TRIGGER)
+                return "send_trigger";
+            if (this == QUERY_SERVICES)
+                return "query_services";
+            if (this == CHANGING_MEMORY_LIVE)
+                return "changing_memory_live";
+            if (this == AWAITING_MEMORY_LIVE)
+                return "awaiting_memory_live";
+            if (this == CHANGING_DYNAMIC_RANGE)
+                return "changing_dynamic_range";
+            if (this == CHANGING_STATIC_RANGE)
+                return "changing_static_range";
+            if (this == CHANGING_MEMORY_LIMITS)
+                return "changing_memory_limits";
+            if (this == CHANGING_SHADOW_MEMORY)
+                return "changing_shadow_memory";
+            if (this == CHANGING_SHADOW_MEMORY_LIVE)
+                return "changing_shadow_memory_live";
+            if (this == CHANGING_VCPUS)
+                return "changing_VCPUs";
+            if (this == CHANGING_VCPUS_LIVE)
+                return "changing_VCPUs_live";
+            if (this == ASSERT_OPERATION_VALID)
+                return "assert_operation_valid";
+            if (this == DATA_SOURCE_OP)
+                return "data_source_op";
+            if (this == UPDATE_ALLOWED_OPERATIONS)
+                return "update_allowed_operations";
+            if (this == MAKE_INTO_TEMPLATE)
+                return "make_into_template";
+            if (this == IMPORT)
+                return "import";
+            if (this == EXPORT)
+                return "export";
+            if (this == METADATA_EXPORT)
+                return "metadata_export";
+            if (this == REVERTING)
+                return "reverting";
+            if (this == DESTROY)
+                return "destroy";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -3286,12 +3508,16 @@ public class Types
          */
         LACP;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == BALANCE_SLB) return "balance-slb";
-            if (this == ACTIVE_BACKUP) return "active-backup";
-            if (this == LACP) return "lacp";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == BALANCE_SLB)
+                return "balance-slb";
+            if (this == ACTIVE_BACKUP)
+                return "active-backup";
+            if (this == LACP)
+                return "lacp";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -3314,12 +3540,16 @@ public class Types
          */
         STATIC;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == NONE) return "None";
-            if (this == DHCP) return "DHCP";
-            if (this == STATIC) return "Static";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == NONE)
+                return "None";
+            if (this == DHCP)
+                return "DHCP";
+            if (this == STATIC)
+                return "Static";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -3386,23 +3616,38 @@ public class Types
          */
         PBD_DESTROY;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == SCAN) return "scan";
-            if (this == DESTROY) return "destroy";
-            if (this == FORGET) return "forget";
-            if (this == PLUG) return "plug";
-            if (this == UNPLUG) return "unplug";
-            if (this == UPDATE) return "update";
-            if (this == VDI_CREATE) return "vdi_create";
-            if (this == VDI_INTRODUCE) return "vdi_introduce";
-            if (this == VDI_DESTROY) return "vdi_destroy";
-            if (this == VDI_RESIZE) return "vdi_resize";
-            if (this == VDI_CLONE) return "vdi_clone";
-            if (this == VDI_SNAPSHOT) return "vdi_snapshot";
-            if (this == PBD_CREATE) return "pbd_create";
-            if (this == PBD_DESTROY) return "pbd_destroy";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == SCAN)
+                return "scan";
+            if (this == DESTROY)
+                return "destroy";
+            if (this == FORGET)
+                return "forget";
+            if (this == PLUG)
+                return "plug";
+            if (this == UNPLUG)
+                return "unplug";
+            if (this == UPDATE)
+                return "update";
+            if (this == VDI_CREATE)
+                return "vdi_create";
+            if (this == VDI_INTRODUCE)
+                return "vdi_introduce";
+            if (this == VDI_DESTROY)
+                return "vdi_destroy";
+            if (this == VDI_RESIZE)
+                return "vdi_resize";
+            if (this == VDI_CLONE)
+                return "vdi_clone";
+            if (this == VDI_SNAPSHOT)
+                return "vdi_snapshot";
+            if (this == PBD_CREATE)
+                return "pbd_create";
+            if (this == PBD_DESTROY)
+                return "pbd_destroy";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
@@ -3429,18 +3674,22 @@ public class Types
          */
         DISABLED;
         public String toString() {
-            if (this == UNRECOGNIZED) return "UNRECOGNIZED";
-            if (this == NETWORK_DEFAULT) return "network_default";
-            if (this == LOCKED) return "locked";
-            if (this == UNLOCKED) return "unlocked";
-            if (this == DISABLED) return "disabled";
-        /* This can never be reached */
-        return "illegal enum";
+            if (this == UNRECOGNIZED)
+                return "UNRECOGNIZED";
+            if (this == NETWORK_DEFAULT)
+                return "network_default";
+            if (this == LOCKED)
+                return "locked";
+            if (this == UNLOCKED)
+                return "unlocked";
+            if (this == DISABLED)
+                return "disabled";
+            /* This can never be reached */
+            return "illegal enum";
         }
 
     };
 
-
     /**
      * The restore could not be performed because a network interface is missing
      */
@@ -9614,33 +9863,32 @@ public class Types
 
     }
 
-
     public static String toString(Object object) {
         if (object == null) {
             return null;
         }
-        return (String) object;
+        return (String)object;
     }
 
     public static Long toLong(Object object) {
         if (object == null) {
             return null;
         }
-        return Long.valueOf((String) object);
+        return Long.valueOf((String)object);
     }
 
     public static Double toDouble(Object object) {
         if (object == null) {
             return null;
         }
-        return (Double) object;
+        return (Double)object;
     }
 
     public static Boolean toBoolean(Object object) {
         if (object == null) {
             return null;
         }
-        return (Boolean) object;
+        return (Boolean)object;
     }
 
     public static Date toDate(Object object) {
@@ -9648,11 +9896,11 @@ public class Types
             return null;
         }
         try {
-            return (Date) object;
-        } catch (ClassCastException e){
+            return (Date)object;
+        } catch (ClassCastException e) {
             //Occasionally the date comes back as an ocaml float rather than
             //in the xmlrpc format! Catch this and convert.
-            return (new Date((long) (1000*Double.parseDouble((String) object))));
+            return (new Date((long)(1000 * Double.parseDouble((String)object))));
         }
     }
 
@@ -9661,7 +9909,7 @@ public class Types
             return null;
         }
         try {
-            return XenAPIObjects.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return XenAPIObjects.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return XenAPIObjects.UNRECOGNIZED;
         }
@@ -9672,7 +9920,7 @@ public class Types
             return null;
         }
         try {
-            return AfterApplyGuidance.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return AfterApplyGuidance.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return AfterApplyGuidance.UNRECOGNIZED;
         }
@@ -9683,7 +9931,7 @@ public class Types
             return null;
         }
         try {
-            return BondMode.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return BondMode.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return BondMode.UNRECOGNIZED;
         }
@@ -9694,7 +9942,7 @@ public class Types
             return null;
         }
         try {
-            return Cls.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return Cls.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return Cls.UNRECOGNIZED;
         }
@@ -9705,7 +9953,7 @@ public class Types
             return null;
         }
         try {
-            return ConsoleProtocol.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return ConsoleProtocol.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return ConsoleProtocol.UNRECOGNIZED;
         }
@@ -9716,7 +9964,7 @@ public class Types
             return null;
         }
         try {
-            return EventOperation.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return EventOperation.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return EventOperation.UNRECOGNIZED;
         }
@@ -9727,7 +9975,7 @@ public class Types
             return null;
         }
         try {
-            return HostAllowedOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return HostAllowedOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return HostAllowedOperations.UNRECOGNIZED;
         }
@@ -9738,7 +9986,7 @@ public class Types
             return null;
         }
         try {
-            return IpConfigurationMode.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return IpConfigurationMode.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return IpConfigurationMode.UNRECOGNIZED;
         }
@@ -9749,7 +9997,7 @@ public class Types
             return null;
         }
         try {
-            return Ipv6ConfigurationMode.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return Ipv6ConfigurationMode.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return Ipv6ConfigurationMode.UNRECOGNIZED;
         }
@@ -9760,7 +10008,7 @@ public class Types
             return null;
         }
         try {
-            return NetworkDefaultLockingMode.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return NetworkDefaultLockingMode.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return NetworkDefaultLockingMode.UNRECOGNIZED;
         }
@@ -9771,7 +10019,7 @@ public class Types
             return null;
         }
         try {
-            return NetworkOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return NetworkOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return NetworkOperations.UNRECOGNIZED;
         }
@@ -9782,7 +10030,7 @@ public class Types
             return null;
         }
         try {
-            return OnBoot.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return OnBoot.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return OnBoot.UNRECOGNIZED;
         }
@@ -9793,7 +10041,7 @@ public class Types
             return null;
         }
         try {
-            return OnCrashBehaviour.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return OnCrashBehaviour.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return OnCrashBehaviour.UNRECOGNIZED;
         }
@@ -9804,7 +10052,7 @@ public class Types
             return null;
         }
         try {
-            return OnNormalExit.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return OnNormalExit.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return OnNormalExit.UNRECOGNIZED;
         }
@@ -9815,7 +10063,7 @@ public class Types
             return null;
         }
         try {
-            return PrimaryAddressType.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return PrimaryAddressType.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return PrimaryAddressType.UNRECOGNIZED;
         }
@@ -9826,7 +10074,7 @@ public class Types
             return null;
         }
         try {
-            return StorageOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return StorageOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return StorageOperations.UNRECOGNIZED;
         }
@@ -9837,7 +10085,7 @@ public class Types
             return null;
         }
         try {
-            return TaskAllowedOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return TaskAllowedOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return TaskAllowedOperations.UNRECOGNIZED;
         }
@@ -9848,7 +10096,7 @@ public class Types
             return null;
         }
         try {
-            return TaskStatusType.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return TaskStatusType.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return TaskStatusType.UNRECOGNIZED;
         }
@@ -9859,7 +10107,7 @@ public class Types
             return null;
         }
         try {
-            return VbdMode.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VbdMode.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VbdMode.UNRECOGNIZED;
         }
@@ -9870,7 +10118,7 @@ public class Types
             return null;
         }
         try {
-            return VbdOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VbdOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VbdOperations.UNRECOGNIZED;
         }
@@ -9881,7 +10129,7 @@ public class Types
             return null;
         }
         try {
-            return VbdType.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VbdType.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VbdType.UNRECOGNIZED;
         }
@@ -9892,7 +10140,7 @@ public class Types
             return null;
         }
         try {
-            return VdiOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VdiOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VdiOperations.UNRECOGNIZED;
         }
@@ -9903,7 +10151,7 @@ public class Types
             return null;
         }
         try {
-            return VdiType.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VdiType.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VdiType.UNRECOGNIZED;
         }
@@ -9914,7 +10162,7 @@ public class Types
             return null;
         }
         try {
-            return VifLockingMode.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VifLockingMode.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VifLockingMode.UNRECOGNIZED;
         }
@@ -9925,7 +10173,7 @@ public class Types
             return null;
         }
         try {
-            return VifOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VifOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VifOperations.UNRECOGNIZED;
         }
@@ -9936,7 +10184,7 @@ public class Types
             return null;
         }
         try {
-            return VmApplianceOperation.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmApplianceOperation.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmApplianceOperation.UNRECOGNIZED;
         }
@@ -9947,7 +10195,7 @@ public class Types
             return null;
         }
         try {
-            return VmOperations.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmOperations.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmOperations.UNRECOGNIZED;
         }
@@ -9958,7 +10206,7 @@ public class Types
             return null;
         }
         try {
-            return VmPowerState.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmPowerState.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmPowerState.UNRECOGNIZED;
         }
@@ -9969,7 +10217,7 @@ public class Types
             return null;
         }
         try {
-            return VmppArchiveFrequency.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmppArchiveFrequency.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmppArchiveFrequency.UNRECOGNIZED;
         }
@@ -9980,7 +10228,7 @@ public class Types
             return null;
         }
         try {
-            return VmppArchiveTargetType.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmppArchiveTargetType.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmppArchiveTargetType.UNRECOGNIZED;
         }
@@ -9991,7 +10239,7 @@ public class Types
             return null;
         }
         try {
-            return VmppBackupFrequency.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmppBackupFrequency.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmppBackupFrequency.UNRECOGNIZED;
         }
@@ -10002,7 +10250,7 @@ public class Types
             return null;
         }
         try {
-            return VmppBackupType.valueOf(((String) object).toUpperCase().replace('-','_'));
+            return VmppBackupType.valueOf(((String)object).toUpperCase().replace('-', '_'));
         } catch (IllegalArgumentException ex) {
             return VmppBackupType.UNRECOGNIZED;
         }
@@ -10012,9 +10260,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<String> result = new LinkedHashSet<String>();
-        for(Object item: items) {
+        for (Object item : items) {
             String typed = toString(item);
             result.add(typed);
         }
@@ -10025,9 +10273,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.AfterApplyGuidance> result = new LinkedHashSet<Types.AfterApplyGuidance>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.AfterApplyGuidance typed = toAfterApplyGuidance(item);
             result.add(typed);
         }
@@ -10038,9 +10286,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.HostAllowedOperations> result = new LinkedHashSet<Types.HostAllowedOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.HostAllowedOperations typed = toHostAllowedOperations(item);
             result.add(typed);
         }
@@ -10051,9 +10299,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.NetworkOperations> result = new LinkedHashSet<Types.NetworkOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.NetworkOperations typed = toNetworkOperations(item);
             result.add(typed);
         }
@@ -10064,9 +10312,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.StorageOperations> result = new LinkedHashSet<Types.StorageOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.StorageOperations typed = toStorageOperations(item);
             result.add(typed);
         }
@@ -10077,9 +10325,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.TaskAllowedOperations> result = new LinkedHashSet<Types.TaskAllowedOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.TaskAllowedOperations typed = toTaskAllowedOperations(item);
             result.add(typed);
         }
@@ -10090,9 +10338,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.VbdOperations> result = new LinkedHashSet<Types.VbdOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.VbdOperations typed = toVbdOperations(item);
             result.add(typed);
         }
@@ -10103,9 +10351,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.VdiOperations> result = new LinkedHashSet<Types.VdiOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.VdiOperations typed = toVdiOperations(item);
             result.add(typed);
         }
@@ -10116,9 +10364,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.VifOperations> result = new LinkedHashSet<Types.VifOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.VifOperations typed = toVifOperations(item);
             result.add(typed);
         }
@@ -10129,9 +10377,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.VmApplianceOperation> result = new LinkedHashSet<Types.VmApplianceOperation>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.VmApplianceOperation typed = toVmApplianceOperation(item);
             result.add(typed);
         }
@@ -10142,9 +10390,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Types.VmOperations> result = new LinkedHashSet<Types.VmOperations>();
-        for(Object item: items) {
+        for (Object item : items) {
             Types.VmOperations typed = toVmOperations(item);
             result.add(typed);
         }
@@ -10155,9 +10403,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Bond> result = new LinkedHashSet<Bond>();
-        for(Object item: items) {
+        for (Object item : items) {
             Bond typed = toBond(item);
             result.add(typed);
         }
@@ -10168,9 +10416,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<DRTask> result = new LinkedHashSet<DRTask>();
-        for(Object item: items) {
+        for (Object item : items) {
             DRTask typed = toDRTask(item);
             result.add(typed);
         }
@@ -10181,9 +10429,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<GPUGroup> result = new LinkedHashSet<GPUGroup>();
-        for(Object item: items) {
+        for (Object item : items) {
             GPUGroup typed = toGPUGroup(item);
             result.add(typed);
         }
@@ -10194,9 +10442,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<PBD> result = new LinkedHashSet<PBD>();
-        for(Object item: items) {
+        for (Object item : items) {
             PBD typed = toPBD(item);
             result.add(typed);
         }
@@ -10207,9 +10455,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<PCI> result = new LinkedHashSet<PCI>();
-        for(Object item: items) {
+        for (Object item : items) {
             PCI typed = toPCI(item);
             result.add(typed);
         }
@@ -10220,9 +10468,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<PGPU> result = new LinkedHashSet<PGPU>();
-        for(Object item: items) {
+        for (Object item : items) {
             PGPU typed = toPGPU(item);
             result.add(typed);
         }
@@ -10233,9 +10481,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<PIF> result = new LinkedHashSet<PIF>();
-        for(Object item: items) {
+        for (Object item : items) {
             PIF typed = toPIF(item);
             result.add(typed);
         }
@@ -10246,9 +10494,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<PIFMetrics> result = new LinkedHashSet<PIFMetrics>();
-        for(Object item: items) {
+        for (Object item : items) {
             PIFMetrics typed = toPIFMetrics(item);
             result.add(typed);
         }
@@ -10259,9 +10507,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<SM> result = new LinkedHashSet<SM>();
-        for(Object item: items) {
+        for (Object item : items) {
             SM typed = toSM(item);
             result.add(typed);
         }
@@ -10272,9 +10520,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<SR> result = new LinkedHashSet<SR>();
-        for(Object item: items) {
+        for (Object item : items) {
             SR typed = toSR(item);
             result.add(typed);
         }
@@ -10285,9 +10533,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VBD> result = new LinkedHashSet<VBD>();
-        for(Object item: items) {
+        for (Object item : items) {
             VBD typed = toVBD(item);
             result.add(typed);
         }
@@ -10298,9 +10546,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VBDMetrics> result = new LinkedHashSet<VBDMetrics>();
-        for(Object item: items) {
+        for (Object item : items) {
             VBDMetrics typed = toVBDMetrics(item);
             result.add(typed);
         }
@@ -10311,9 +10559,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VDI> result = new LinkedHashSet<VDI>();
-        for(Object item: items) {
+        for (Object item : items) {
             VDI typed = toVDI(item);
             result.add(typed);
         }
@@ -10324,9 +10572,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VGPU> result = new LinkedHashSet<VGPU>();
-        for(Object item: items) {
+        for (Object item : items) {
             VGPU typed = toVGPU(item);
             result.add(typed);
         }
@@ -10337,9 +10585,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VIF> result = new LinkedHashSet<VIF>();
-        for(Object item: items) {
+        for (Object item : items) {
             VIF typed = toVIF(item);
             result.add(typed);
         }
@@ -10350,9 +10598,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VIFMetrics> result = new LinkedHashSet<VIFMetrics>();
-        for(Object item: items) {
+        for (Object item : items) {
             VIFMetrics typed = toVIFMetrics(item);
             result.add(typed);
         }
@@ -10363,9 +10611,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VLAN> result = new LinkedHashSet<VLAN>();
-        for(Object item: items) {
+        for (Object item : items) {
             VLAN typed = toVLAN(item);
             result.add(typed);
         }
@@ -10376,9 +10624,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VM> result = new LinkedHashSet<VM>();
-        for(Object item: items) {
+        for (Object item : items) {
             VM typed = toVM(item);
             result.add(typed);
         }
@@ -10389,9 +10637,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VMPP> result = new LinkedHashSet<VMPP>();
-        for(Object item: items) {
+        for (Object item : items) {
             VMPP typed = toVMPP(item);
             result.add(typed);
         }
@@ -10402,9 +10650,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VMAppliance> result = new LinkedHashSet<VMAppliance>();
-        for(Object item: items) {
+        for (Object item : items) {
             VMAppliance typed = toVMAppliance(item);
             result.add(typed);
         }
@@ -10415,9 +10663,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VMGuestMetrics> result = new LinkedHashSet<VMGuestMetrics>();
-        for(Object item: items) {
+        for (Object item : items) {
             VMGuestMetrics typed = toVMGuestMetrics(item);
             result.add(typed);
         }
@@ -10428,9 +10676,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VMMetrics> result = new LinkedHashSet<VMMetrics>();
-        for(Object item: items) {
+        for (Object item : items) {
             VMMetrics typed = toVMMetrics(item);
             result.add(typed);
         }
@@ -10441,9 +10689,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<VTPM> result = new LinkedHashSet<VTPM>();
-        for(Object item: items) {
+        for (Object item : items) {
             VTPM typed = toVTPM(item);
             result.add(typed);
         }
@@ -10454,9 +10702,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Blob> result = new LinkedHashSet<Blob>();
-        for(Object item: items) {
+        for (Object item : items) {
             Blob typed = toBlob(item);
             result.add(typed);
         }
@@ -10467,9 +10715,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Console> result = new LinkedHashSet<Console>();
-        for(Object item: items) {
+        for (Object item : items) {
             Console typed = toConsole(item);
             result.add(typed);
         }
@@ -10480,9 +10728,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Crashdump> result = new LinkedHashSet<Crashdump>();
-        for(Object item: items) {
+        for (Object item : items) {
             Crashdump typed = toCrashdump(item);
             result.add(typed);
         }
@@ -10493,9 +10741,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Host> result = new LinkedHashSet<Host>();
-        for(Object item: items) {
+        for (Object item : items) {
             Host typed = toHost(item);
             result.add(typed);
         }
@@ -10506,9 +10754,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<HostCpu> result = new LinkedHashSet<HostCpu>();
-        for(Object item: items) {
+        for (Object item : items) {
             HostCpu typed = toHostCpu(item);
             result.add(typed);
         }
@@ -10519,9 +10767,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<HostCrashdump> result = new LinkedHashSet<HostCrashdump>();
-        for(Object item: items) {
+        for (Object item : items) {
             HostCrashdump typed = toHostCrashdump(item);
             result.add(typed);
         }
@@ -10532,9 +10780,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<HostMetrics> result = new LinkedHashSet<HostMetrics>();
-        for(Object item: items) {
+        for (Object item : items) {
             HostMetrics typed = toHostMetrics(item);
             result.add(typed);
         }
@@ -10545,9 +10793,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<HostPatch> result = new LinkedHashSet<HostPatch>();
-        for(Object item: items) {
+        for (Object item : items) {
             HostPatch typed = toHostPatch(item);
             result.add(typed);
         }
@@ -10558,9 +10806,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Message> result = new LinkedHashSet<Message>();
-        for(Object item: items) {
+        for (Object item : items) {
             Message typed = toMessage(item);
             result.add(typed);
         }
@@ -10571,9 +10819,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Network> result = new LinkedHashSet<Network>();
-        for(Object item: items) {
+        for (Object item : items) {
             Network typed = toNetwork(item);
             result.add(typed);
         }
@@ -10584,9 +10832,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Pool> result = new LinkedHashSet<Pool>();
-        for(Object item: items) {
+        for (Object item : items) {
             Pool typed = toPool(item);
             result.add(typed);
         }
@@ -10597,9 +10845,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<PoolPatch> result = new LinkedHashSet<PoolPatch>();
-        for(Object item: items) {
+        for (Object item : items) {
             PoolPatch typed = toPoolPatch(item);
             result.add(typed);
         }
@@ -10610,9 +10858,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Role> result = new LinkedHashSet<Role>();
-        for(Object item: items) {
+        for (Object item : items) {
             Role typed = toRole(item);
             result.add(typed);
         }
@@ -10623,9 +10871,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Secret> result = new LinkedHashSet<Secret>();
-        for(Object item: items) {
+        for (Object item : items) {
             Secret typed = toSecret(item);
             result.add(typed);
         }
@@ -10636,9 +10884,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Subject> result = new LinkedHashSet<Subject>();
-        for(Object item: items) {
+        for (Object item : items) {
             Subject typed = toSubject(item);
             result.add(typed);
         }
@@ -10649,9 +10897,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Task> result = new LinkedHashSet<Task>();
-        for(Object item: items) {
+        for (Object item : items) {
             Task typed = toTask(item);
             result.add(typed);
         }
@@ -10662,9 +10910,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Tunnel> result = new LinkedHashSet<Tunnel>();
-        for(Object item: items) {
+        for (Object item : items) {
             Tunnel typed = toTunnel(item);
             result.add(typed);
         }
@@ -10675,9 +10923,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<DataSource.Record> result = new LinkedHashSet<DataSource.Record>();
-        for(Object item: items) {
+        for (Object item : items) {
             DataSource.Record typed = toDataSourceRecord(item);
             result.add(typed);
         }
@@ -10688,9 +10936,9 @@ public class Types
         if (object == null) {
             return null;
         }
-        Object[] items = (Object[]) object;
+        Object[] items = (Object[])object;
         Set<Event.Record> result = new LinkedHashSet<Event.Record>();
-        for(Object item: items) {
+        for (Object item : items) {
             Event.Record typed = toEventRecord(item);
             result.add(typed);
         }
@@ -10701,10 +10949,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,String> result = new HashMap<String,String>();
+        Map map = (Map)object;
+        Map<String, String> result = new HashMap<String, String>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             String value = toString(entry.getValue());
             result.put(key, value);
@@ -10716,10 +10964,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.HostAllowedOperations> result = new HashMap<String,Types.HostAllowedOperations>();
+        Map map = (Map)object;
+        Map<String, Types.HostAllowedOperations> result = new HashMap<String, Types.HostAllowedOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.HostAllowedOperations value = toHostAllowedOperations(entry.getValue());
             result.put(key, value);
@@ -10731,10 +10979,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.NetworkOperations> result = new HashMap<String,Types.NetworkOperations>();
+        Map map = (Map)object;
+        Map<String, Types.NetworkOperations> result = new HashMap<String, Types.NetworkOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.NetworkOperations value = toNetworkOperations(entry.getValue());
             result.put(key, value);
@@ -10746,10 +10994,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.StorageOperations> result = new HashMap<String,Types.StorageOperations>();
+        Map map = (Map)object;
+        Map<String, Types.StorageOperations> result = new HashMap<String, Types.StorageOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.StorageOperations value = toStorageOperations(entry.getValue());
             result.put(key, value);
@@ -10761,10 +11009,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.TaskAllowedOperations> result = new HashMap<String,Types.TaskAllowedOperations>();
+        Map map = (Map)object;
+        Map<String, Types.TaskAllowedOperations> result = new HashMap<String, Types.TaskAllowedOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.TaskAllowedOperations value = toTaskAllowedOperations(entry.getValue());
             result.put(key, value);
@@ -10776,10 +11024,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.VbdOperations> result = new HashMap<String,Types.VbdOperations>();
+        Map map = (Map)object;
+        Map<String, Types.VbdOperations> result = new HashMap<String, Types.VbdOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.VbdOperations value = toVbdOperations(entry.getValue());
             result.put(key, value);
@@ -10791,10 +11039,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.VdiOperations> result = new HashMap<String,Types.VdiOperations>();
+        Map map = (Map)object;
+        Map<String, Types.VdiOperations> result = new HashMap<String, Types.VdiOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.VdiOperations value = toVdiOperations(entry.getValue());
             result.put(key, value);
@@ -10806,10 +11054,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.VifOperations> result = new HashMap<String,Types.VifOperations>();
+        Map map = (Map)object;
+        Map<String, Types.VifOperations> result = new HashMap<String, Types.VifOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.VifOperations value = toVifOperations(entry.getValue());
             result.put(key, value);
@@ -10821,10 +11069,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.VmApplianceOperation> result = new HashMap<String,Types.VmApplianceOperation>();
+        Map map = (Map)object;
+        Map<String, Types.VmApplianceOperation> result = new HashMap<String, Types.VmApplianceOperation>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.VmApplianceOperation value = toVmApplianceOperation(entry.getValue());
             result.put(key, value);
@@ -10836,10 +11084,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Types.VmOperations> result = new HashMap<String,Types.VmOperations>();
+        Map map = (Map)object;
+        Map<String, Types.VmOperations> result = new HashMap<String, Types.VmOperations>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Types.VmOperations value = toVmOperations(entry.getValue());
             result.put(key, value);
@@ -10851,10 +11099,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<String,Blob> result = new HashMap<String,Blob>();
+        Map map = (Map)object;
+        Map<String, Blob> result = new HashMap<String, Blob>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             String key = toString(entry.getKey());
             Blob value = toBlob(entry.getValue());
             result.put(key, value);
@@ -10866,10 +11114,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<Long,Long> result = new HashMap<Long,Long>();
+        Map map = (Map)object;
+        Map<Long, Long> result = new HashMap<Long, Long>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             Long key = toLong(entry.getKey());
             Long value = toLong(entry.getValue());
             result.put(key, value);
@@ -10881,10 +11129,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<Long,Double> result = new HashMap<Long,Double>();
+        Map map = (Map)object;
+        Map<Long, Double> result = new HashMap<Long, Double>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             Long key = toLong(entry.getKey());
             Double value = toDouble(entry.getValue());
             result.put(key, value);
@@ -10896,10 +11144,10 @@ public class Types
         if (object == null) {
             return null;
         }
-        Map map = (Map) object;
-        Map<Long,Set<String>> result = new HashMap<Long,Set<String>>();
+        Map map = (Map)object;
+        Map<Long, Set<String>> result = new HashMap<Long, Set<String>>();
         Set<Map.Entry> entries = map.entrySet();
-        for(Map.Entry entry: entries) {
+        for (Map.Entry entry : entries) {
             L

<TRUNCATED>

Mime
View raw message