Michael Pasternak has uploaded a new change for review.

Change subject: sdk: regenerate against the latest api
......................................................................

sdk: regenerate against the latest api

- added VMApplications sub-collection
- to cluster.update() added [cluster.data_center.id]
- to host.fence() added action.fence_type
- to storagedomain.delete() added [storagedomain.format]
- to nic added [nic.custom_properties.custom_property]
- to vm.add(), vm.update() added [vm.memory_policy.guaranteed]

Change-Id: I7edc3c993746abe532756b4214dc3f7ca8ff8c40
Signed-off-by: Michael pasternak <[email protected]>
---
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/Api.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Cluster.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Host.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Hosts.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomain.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNIC.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNICs.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java
A 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplication.java
A 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplications.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNIC.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNICs.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.java
A 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Application.java
A 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Applications.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResource.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResources.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/NIC.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/ObjectFactory.java
19 files changed, 476 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk-java 
refs/changes/18/15518/1

diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/Api.java 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/Api.java
index abf8d7e..49caae9 100644
--- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/Api.java
+++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/Api.java
@@ -579,6 +579,18 @@
         return getEntryPoint().getTime();
     }
     /**
+     * Gets the value of the SpecialObjects property.
+     *
+     * @return {@link org.ovirt.engine.sdk.entities.SpecialObjects }
+     *
+     */
+    public org.ovirt.engine.sdk.entities.SpecialObjects getSpecialObjects() {
+        if (this.entryPoint != null) {
+            return this.entryPoint.getSpecialObjects();
+        }
+        return null;
+    }
+    /**
      * Gets the value of the ProductInfo property.
      *
      * @return {@link org.ovirt.engine.sdk.entities.ProductInfo }
@@ -607,18 +619,6 @@
     public org.ovirt.engine.sdk.entities.ApiSummary getSummary() throws 
ClientProtocolException, ServerException,
             UnsecuredConnectionAttemptError, IOException {
         return getEntryPoint().getSummary();
-    }
-    /**
-     * Gets the value of the SpecialObjects property.
-     *
-     * @return {@link org.ovirt.engine.sdk.entities.SpecialObjects }
-     *
-     */
-    public org.ovirt.engine.sdk.entities.SpecialObjects getSpecialObjects() {
-        if (this.entryPoint != null) {
-            return this.entryPoint.getSpecialObjects();
-        }
-        return null;
     }
 
 }
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Cluster.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Cluster.java
index 2855cfc..49748d7 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Cluster.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Cluster.java
@@ -108,6 +108,7 @@
      *    <pre>
      *    [cluster.name]
      *    [cluster.description]
+     *    [cluster.data_center.id]
      *    [cluster.cpu.id]
      *    [cluster.version.major]
      *    [cluster.version.minor]
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Host.java 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Host.java
index 387cdd1..e4db471 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Host.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Host.java
@@ -268,7 +268,7 @@
      *    [host.power_management.type]
      *    [host.power_management.enabled]
      *    [host.power_management.address]
-     *    [host.power_management.user_name]
+     *    [host.power_management.username]
      *    [host.power_management.password]
      *    [host.power_management.options.option]
      *    [host.power_management.pm_proxy]
@@ -294,6 +294,10 @@
      * Performs fence action.
      *
      * @param action {@link org.ovirt.engine.sdk.entities.Action}
+     *    <pre>
+     *    action.fence_type
+     *    </pre>
+     *
      * @return
      *     {@link Action }
      *
@@ -320,6 +324,10 @@
      * Performs fence action.
      *
      * @param action {@link org.ovirt.engine.sdk.entities.Action}
+     *    <pre>
+     *    action.fence_type
+     *    </pre>
+     *
      * @param correlationId
      *    <pre>
      *    [any string]
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Hosts.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Hosts.java
index 4b0dbd1..4fde02b 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Hosts.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Hosts.java
@@ -150,7 +150,7 @@
      *    [host.power_management.type]
      *    [host.power_management.enabled]
      *    [host.power_management.address]
-     *    [host.power_management.user_name]
+     *    [host.power_management.username]
      *    [host.power_management.password]
      *    [host.power_management.options.option]
      *    [host.power_management.pm_proxy]
@@ -197,7 +197,7 @@
      *    [host.power_management.type]
      *    [host.power_management.enabled]
      *    [host.power_management.address]
-     *    [host.power_management.user_name]
+     *    [host.power_management.username]
      *    [host.power_management.password]
      *    [host.power_management.options.option]
      *    [host.power_management.pm_proxy]
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomain.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomain.java
index 9cee87a..4630487 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomain.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomain.java
@@ -223,6 +223,7 @@
      * @param storagedomain {@link org.ovirt.engine.sdk.entities.StorageDomain}
      *    <pre>
      *    storagedomain.host.id|name
+     *    [storagedomain.format]
      *    </pre>
      *
      * @param correlationId
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNIC.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNIC.java
index 04b61ed..9dc71b4 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNIC.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNIC.java
@@ -73,6 +73,7 @@
      *    [nic.mac.address]
      *    [nic.interface]
      *    [nic.port_mirroring.networks.network]
+     *    [nic.custom_properties.custom_property]
      *    </pre>
      *
      * @return
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNICs.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNICs.java
index 421d93e..945e192 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNICs.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/TemplateNICs.java
@@ -141,6 +141,7 @@
      *    [nic.mac.address]
      *    [nic.interface]
      *    [nic.port_mirroring.networks.network]
+     *    [nic.custom_properties.custom_property]
      *    </pre>
      *
      * @return
@@ -178,6 +179,7 @@
      *    [nic.mac.address]
      *    [nic.interface]
      *    [nic.port_mirroring.networks.network]
+     *    [nic.custom_properties.custom_property]
      *    </pre>
      *
      * @param expect
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java
index 1db1be2..00836b8 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java
@@ -49,6 +49,7 @@
     private VMTags vMTags;
     private VMSnapshots vMSnapshots;
     private VMStatistics vMStatistics;
+    private VMApplications vMApplications;
     private VMDisks vMDisks;
     private VMNICs vMNICs;
     private VMCdRoms vMCdRoms;
@@ -129,6 +130,18 @@
         return vMStatistics;
     }
     /**
+     * Gets the value of the VMApplications property.
+     *
+     * @return
+     *     {@link VMApplications }
+     */
+    public synchronized VMApplications getApplications() {
+        if (this.vMApplications == null) {
+            this.vMApplications = new VMApplications(proxy, this);
+        }
+        return vMApplications;
+    }
+    /**
      * Gets the value of the VMDisks property.
      *
      * @return
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplication.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplication.java
new file mode 100644
index 0000000..6a410bd
--- /dev/null
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplication.java
@@ -0,0 +1,67 @@
+//
+// Copyright (c) 2012 Red Hat, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//           http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// *********************************************************************
+// ********************* GENERATED CODE - DO NOT MODIFY ****************
+// *********************************************************************
+
+package org.ovirt.engine.sdk.decorators;
+
+import java.io.IOException;
+import java.util.List;
+
+import org.apache.http.Header;
+import org.apache.http.client.ClientProtocolException;
+import org.ovirt.engine.sdk.entities.Action;
+import org.ovirt.engine.sdk.entities.Response;
+import org.ovirt.engine.sdk.exceptions.ServerException;
+import org.ovirt.engine.sdk.utils.HttpHeaderBuilder;
+import org.ovirt.engine.sdk.utils.HttpHeaderUtils;
+import org.ovirt.engine.sdk.utils.UrlBuilder;
+import org.ovirt.engine.sdk.web.HttpProxyBroker;
+import org.ovirt.engine.sdk.web.UrlParameterType;
+
+/**
+ * <p>VMApplication providing relation and functional services
+ * <p>to {@link org.ovirt.engine.sdk.entities.Application }. 
+ */
+@SuppressWarnings("unused")
+public class VMApplication extends
+        org.ovirt.engine.sdk.entities.Application {
+
+    private HttpProxyBroker proxy;
+
+
+
+    /**
+     * @param proxy HttpProxyBroker
+     */
+    public VMApplication(HttpProxyBroker proxy) {
+        this.proxy = proxy;
+    }
+
+    /**
+     * @return HttpProxyBroker
+     */
+    private HttpProxyBroker getProxy() {
+        return proxy;
+    }
+
+
+
+
+}
+
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplications.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplications.java
new file mode 100644
index 0000000..b45b20d
--- /dev/null
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMApplications.java
@@ -0,0 +1,104 @@
+//
+// Copyright (c) 2012 Red Hat, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//           http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// *********************************************************************
+// ********************* GENERATED CODE - DO NOT MODIFY ****************
+// *********************************************************************
+
+package org.ovirt.engine.sdk.decorators;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.UUID;
+
+import org.apache.http.Header;
+import org.apache.http.client.ClientProtocolException;
+import org.ovirt.engine.sdk.common.CollectionDecorator;
+import org.ovirt.engine.sdk.exceptions.ServerException;
+import org.ovirt.engine.sdk.utils.CollectionUtils;
+import org.ovirt.engine.sdk.utils.HttpHeaderBuilder;
+import org.ovirt.engine.sdk.utils.HttpHeaderUtils;
+import org.ovirt.engine.sdk.utils.UrlBuilder;
+import org.ovirt.engine.sdk.utils.UrlBuilder;
+import org.ovirt.engine.sdk.utils.UrlHelper;
+import org.ovirt.engine.sdk.web.HttpProxyBroker;
+import org.ovirt.engine.sdk.web.UrlParameterType;
+import org.ovirt.engine.sdk.entities.Action;
+
+/**
+ * <p>VMApplications providing relation and functional services
+ * <p>to {@link org.ovirt.engine.sdk.entities.Applications }.
+ */
+@SuppressWarnings("unused")
+public class VMApplications extends
+        CollectionDecorator<org.ovirt.engine.sdk.entities.Application,
+                            org.ovirt.engine.sdk.entities.Applications,
+                            VMApplication> {
+
+    private VM parent;
+
+    /**
+     * @param proxy HttpProxyBroker
+     * @param parent VM
+     */
+    public VMApplications(HttpProxyBroker proxy, VM parent) {
+        super(proxy, "applications");
+        this.parent = parent;
+    }
+
+    /**
+     * Lists VMApplication objects.
+     *
+     * @return
+     *     List of {@link VMApplication }
+     *
+     * @throws ClientProtocolException
+     *             Signals that HTTP/S protocol error has occurred.
+     * @throws ServerException
+     *             Signals that an oVirt api error has occurred.
+     * @throws IOException
+     *             Signals that an I/O exception of some sort has occurred.
+     */
+    @Override
+    public List<VMApplication> list() throws ClientProtocolException,
+            ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+        return list(url, org.ovirt.engine.sdk.entities.Applications.class, 
VMApplication.class);
+    }
+
+    /**
+     * Fetches VMApplication object by id.
+     * 
+     * @return
+     *     {@link VMApplication }
+     *
+     * @throws ClientProtocolException
+     *             Signals that HTTP/S protocol error has occurred.
+     * @throws ServerException
+     *             Signals that an oVirt api error has occurred.
+     * @throws IOException
+     *             Signals that an I/O exception of some sort has occurred.
+     */
+    @Override
+    public VMApplication get(UUID id) throws ClientProtocolException,
+            ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName() + SLASH + 
id.toString();
+        return getProxy().get(url, 
org.ovirt.engine.sdk.entities.Application.class, VMApplication.class);
+    }
+
+
+}
+
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNIC.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNIC.java
index fe13265..1cd2b60 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNIC.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNIC.java
@@ -158,6 +158,7 @@
      *    [nic.interface]
      *    [nic.port_mirroring.networks.network]
      *    [nic.plugged]
+     *    [nic.custom_properties.custom_property]
      *    </pre>
      *
      * @return
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNICs.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNICs.java
index cb8b1cb..8f2240f 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNICs.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMNICs.java
@@ -142,6 +142,7 @@
      *    [nic.interface]
      *    [nic.port_mirroring.networks.network]
      *    [nic.plugged]
+     *    [nic.custom_properties.custom_property]
      *    </pre>
      *
      * @return
@@ -180,6 +181,7 @@
      *    [nic.interface]
      *    [nic.port_mirroring.networks.network]
      *    [nic.plugged]
+     *    [nic.custom_properties.custom_property]
      *    </pre>
      *
      * @param expect
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.java 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.java
index a2bcac7..9220dfb 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.java
@@ -161,6 +161,7 @@
      *      [vm.os.cmdline]
      *      [vm.cpu.topology.cores]
      *      [vm.memory]
+     *      [vm.memory_policy.guaranteed]
      *      [vm.high_availability.priority]
      *      [vm.high_availability.enabled]
      *      [vm.domain.name]
@@ -200,6 +201,7 @@
      *      [vm.os.cmdline]
      *      [vm.cpu.topology.cores]
      *      [vm.memory]
+     *      [vm.memory_policy.guaranteed]
      *      [vm.high_availability.priority]
      *      [vm.high_availability.enabled]
      *      [vm.domain.name]
@@ -266,6 +268,7 @@
      *      [vm.os.cmdline]
      *      [vm.cpu.topology.cores]
      *      [vm.memory]
+     *      [vm.memory_policy.guaranteed]
      *      [vm.high_availability.priority]
      *      [vm.high_availability.enabled]
      *      [vm.domain.name]
@@ -305,6 +308,7 @@
      *      [vm.os.cmdline]
      *      [vm.cpu.topology.cores]
      *      [vm.memory]
+     *      [vm.memory_policy.guaranteed]
      *      [vm.high_availability.priority]
      *      [vm.high_availability.enabled]
      *      [vm.domain.name]
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Application.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Application.java
new file mode 100644
index 0000000..fc6ef07
--- /dev/null
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Application.java
@@ -0,0 +1,86 @@
+//
+// Copyright (c) 2012 Red Hat, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//           http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// *********************************************************************
+// ********************* GENERATED CODE - DO NOT MODIFY ****************
+// *********************************************************************
+
+
+package org.ovirt.engine.sdk.entities;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for Application complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained 
within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="Application">
+ *   &lt;complexContent>
+ *     &lt;extension base="{}BaseResource">
+ *       &lt;sequence>
+ *         &lt;element ref="{}vm" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Application", propOrder = {
+    "vm"
+})
+public class Application
+    extends BaseResource
+{
+
+    protected VM vm;
+
+    /**
+     * Gets the value of the vm property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link VM }
+     *     
+     */
+    public VM getVm() {
+        return vm;
+    }
+
+    /**
+     * Sets the value of the vm property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link VM }
+     *     
+     */
+    public void setVm(VM value) {
+        this.vm = value;
+    }
+
+    public boolean isSetVm() {
+        return (this.vm!= null);
+    }
+
+}
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Applications.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Applications.java
new file mode 100644
index 0000000..79cd789
--- /dev/null
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Applications.java
@@ -0,0 +1,100 @@
+//
+// Copyright (c) 2012 Red Hat, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//           http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// *********************************************************************
+// ********************* GENERATED CODE - DO NOT MODIFY ****************
+// *********************************************************************
+
+
+package org.ovirt.engine.sdk.entities;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for Applications complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained 
within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="Applications">
+ *   &lt;complexContent>
+ *     &lt;extension base="{}BaseResources">
+ *       &lt;sequence>
+ *         &lt;element ref="{}application" maxOccurs="unbounded" 
minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "Applications", propOrder = {
+    "applications"
+})
+public class Applications
+    extends BaseResources
+{
+
+    @XmlElement(name = "application")
+    protected List<Application> applications;
+
+    /**
+     * Gets the value of the applications property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the applications 
property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getApplications().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link Application }
+     * 
+     * 
+     */
+    public List<Application> getApplications() {
+        if (applications == null) {
+            applications = new ArrayList<Application>();
+        }
+        return this.applications;
+    }
+
+    public boolean isSetApplications() {
+        return ((this.applications!= null)&&(!this.applications.isEmpty()));
+    }
+
+    public void unsetApplications() {
+        this.applications = null;
+    }
+
+}
+
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResource.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResource.java
index 9a70f5a..0a89dc8 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResource.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResource.java
@@ -92,6 +92,7 @@
     Quota.class,
     Parameter.class,
     Version.class,
+    Application.class,
     ReportedDevice.class,
     Cluster.class,
     Group.class,
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResources.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResources.java
index f9168c4..33c2623 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResources.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResources.java
@@ -75,6 +75,7 @@
     Hosts.class,
     Permissions.class,
     VMs.class,
+    Applications.class,
     Networks.class,
     PreviewVMs.class,
     Templates.class,
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/NIC.java 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/NIC.java
index f997321..c2cdd8a 100644
--- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/NIC.java
+++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/NIC.java
@@ -46,6 +46,7 @@
  *         &lt;element name="plugged" 
type="{http://www.w3.org/2001/XMLSchema}boolean"; minOccurs="0"/>
  *         &lt;element ref="{}port_mirroring" minOccurs="0"/>
  *         &lt;element ref="{}reported_devices" minOccurs="0"/>
+ *         &lt;element ref="{}custom_properties" minOccurs="0"/>
  *       &lt;/sequence>
  *     &lt;/extension>
  *   &lt;/complexContent>
@@ -64,7 +65,8 @@
     "active",
     "plugged",
     "portMirroring",
-    "reportedDevices"
+    "reportedDevices",
+    "customProperties"
 })
 public class NIC
     extends BaseDevice
@@ -82,6 +84,8 @@
     protected PortMirroring portMirroring;
     @XmlElement(name = "reported_devices")
     protected ReportedDevices reportedDevices;
+    @XmlElement(name = "custom_properties")
+    protected CustomProperties customProperties;
 
     /**
      * Gets the value of the network property.
@@ -335,4 +339,32 @@
         return (this.reportedDevices!= null);
     }
 
+    /**
+     * Gets the value of the customProperties property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link CustomProperties }
+     *     
+     */
+    public CustomProperties getCustomProperties() {
+        return customProperties;
+    }
+
+    /**
+     * Sets the value of the customProperties property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link CustomProperties }
+     *     
+     */
+    public void setCustomProperties(CustomProperties value) {
+        this.customProperties = value;
+    }
+
+    public boolean isSetCustomProperties() {
+        return (this.customProperties!= null);
+    }
+
 }
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/ObjectFactory.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/ObjectFactory.java
index 1e4ad9e..0c72ad9 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/ObjectFactory.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/ObjectFactory.java
@@ -144,6 +144,7 @@
     private final static QName _Value_QNAME = new QName("", "value");
     private final static QName _Action_QNAME = new QName("", "action");
     private final static QName _Vms_QNAME = new QName("", "vms");
+    private final static QName _Applications_QNAME = new QName("", 
"applications");
     private final static QName _DataCenter_QNAME = new QName("", 
"data_center");
     private final static QName _SchedulingPolicies_QNAME = new QName("", 
"scheduling_policies");
     private final static QName _TransportTypes_QNAME = new QName("", 
"transport_types");
@@ -197,6 +198,7 @@
     private final static QName _BrickStates_QNAME = new QName("", 
"brick_states");
     private final static QName _SystemVersion_QNAME = new QName("", 
"system_version");
     private final static QName _CpuTune_QNAME = new QName("", "cpu_tune");
+    private final static QName _Application_QNAME = new QName("", 
"application");
     private final static QName _Nic_QNAME = new QName("", "nic");
     private final static QName _ReportedDevice_QNAME = new QName("", 
"reported_device");
     private final static QName _Ip_QNAME = new QName("", "ip");
@@ -1020,6 +1022,14 @@
     }
 
     /**
+     * Create an instance of {@link Applications }
+     * 
+     */
+    public Applications createApplications() {
+        return new Applications();
+    }
+
+    /**
      * Create an instance of {@link DataCenter }
      * 
      */
@@ -1433,6 +1443,14 @@
      */
     public Version createVersion() {
         return new Version();
+    }
+
+    /**
+     * Create an instance of {@link Application }
+     * 
+     */
+    public Application createApplication() {
+        return new Application();
     }
 
     /**
@@ -2648,6 +2666,15 @@
     }
 
     /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link Applications 
}{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "", name = "applications")
+    public JAXBElement<Applications> createApplications(Applications value) {
+        return new JAXBElement<Applications>(_Applications_QNAME, 
Applications.class, null, value);
+    }
+
+    /**
      * Create an instance of {@link JAXBElement }{@code <}{@link DataCenter 
}{@code >}}
      * 
      */
@@ -3125,6 +3152,15 @@
     }
 
     /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link Application 
}{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "", name = "application")
+    public JAXBElement<Application> createApplication(Application value) {
+        return new JAXBElement<Application>(_Application_QNAME, 
Application.class, null, value);
+    }
+
+    /**
      * Create an instance of {@link JAXBElement }{@code <}{@link NIC }{@code 
>}}
      * 
      */


-- 
To view, visit http://gerrit.ovirt.org/15518
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7edc3c993746abe532756b4214dc3f7ca8ff8c40
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to