Juan Hernandez has uploaded a new change for review.

Change subject: sdk: Regenerate against the latest API
......................................................................

sdk: Regenerate against the latest API

This patch regenerates the SDK using the latest API obtained from the
engine built from commit 0849d86, tag ovirt-engine-3.4.3_rc.

Change-Id: Ic4f4eab52466e9b6f9a95d0c7addebec14cb6f7b
Signed-off-by: Juan Hernandez <[email protected]>
---
M ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/DataCenterNetworkLabels.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICLabels.java
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/NetworkLabels.java
M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java
5 files changed, 481 insertions(+), 0 deletions(-)


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

diff --git a/ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl 
b/ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl
index 396b5af..c86653c 100644
--- a/ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl
+++ b/ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl
@@ -2540,10 +2540,31 @@
             </response>
         </link>
         <link 
href="/ovirt-engine/api/datacenters/{datacenter:id}/networks/{network:id}/labels"
 rel="add">
+            <description>add a new label to the network</description>
             <request>
                 <http_method>POST</http_method>
+                <headers>
+                    <header required="true">
+                        <name>Content-Type</name>
+                        <value>application/xml|json</value>
+                    </header>
+                    <header required="false">
+                        <name>Expect</name>
+                        <value>201-created</value>
+                    </header>
+                    <header required="false">
+                        <name>Correlation-Id</name>
+                        <value>any string</value>
+                    </header>
+                </headers>
                 <body>
                     <type>Label</type>
+                    <parameters_set>
+                        <description>add a new label to the 
network</description>
+                        <parameter required="true" type="xs:string">
+                            <name>label.id</name>
+                        </parameter>
+                    </parameters_set>
                 </body>
             </request>
             <response>
@@ -5332,10 +5353,31 @@
             </response>
         </link>
         <link href="/ovirt-engine/api/hosts/{host:id}/nics/{nic:id}/labels" 
rel="add">
+            <description>add a new label to the interface</description>
             <request>
                 <http_method>POST</http_method>
+                <headers>
+                    <header required="true">
+                        <name>Content-Type</name>
+                        <value>application/xml|json</value>
+                    </header>
+                    <header required="false">
+                        <name>Expect</name>
+                        <value>201-created</value>
+                    </header>
+                    <header required="false">
+                        <name>Correlation-Id</name>
+                        <value>any string</value>
+                    </header>
+                </headers>
                 <body>
                     <type>Label</type>
+                    <parameters_set>
+                        <description>add a new label to the 
interface</description>
+                        <parameter required="true" type="xs:string">
+                            <name>label.id</name>
+                        </parameter>
+                    </parameters_set>
                 </body>
             </request>
             <response>
@@ -6082,10 +6124,31 @@
             </response>
         </link>
         <link href="/ovirt-engine/api/networks/{network:id}/labels" rel="add">
+            <description>add a new label to the network</description>
             <request>
                 <http_method>POST</http_method>
+                <headers>
+                    <header required="true">
+                        <name>Content-Type</name>
+                        <value>application/xml|json</value>
+                    </header>
+                    <header required="false">
+                        <name>Expect</name>
+                        <value>201-created</value>
+                    </header>
+                    <header required="false">
+                        <name>Correlation-Id</name>
+                        <value>any string</value>
+                    </header>
+                </headers>
                 <body>
                     <type>Label</type>
+                    <parameters_set>
+                        <description>add a new label to the 
network</description>
+                        <parameter required="true" type="xs:string">
+                            <name>label.id</name>
+                        </parameter>
+                    </parameters_set>
                 </body>
             </request>
             <response>
@@ -10867,6 +10930,16 @@
         <link href="/ovirt-engine/api/vms/{vm:id}/commit_snapshot" 
rel="commit_snapshot">
             <request>
                 <http_method>POST</http_method>
+                <headers>
+                    <header required="true">
+                        <name>Content-Type</name>
+                        <value>application/xml|json</value>
+                    </header>
+                    <header required="false">
+                        <name>Correlation-Id</name>
+                        <value>any string</value>
+                    </header>
+                </headers>
                 <body>
                     <type>Action</type>
                 </body>
@@ -11902,8 +11975,23 @@
         <link href="/ovirt-engine/api/vms/{vm:id}/preview_snapshot" 
rel="preview_snapshot">
             <request>
                 <http_method>POST</http_method>
+                <headers>
+                    <header required="true">
+                        <name>Content-Type</name>
+                        <value>application/xml|json</value>
+                    </header>
+                    <header required="false">
+                        <name>Correlation-Id</name>
+                        <value>any string</value>
+                    </header>
+                </headers>
                 <body>
                     <type>Action</type>
+                    <parameters_set>
+                        <parameter required="true" type="xs:string">
+                            <name>action.snapshot.id</name>
+                        </parameter>
+                    </parameters_set>
                 </body>
             </request>
             <response>
@@ -12554,6 +12642,16 @@
         <link href="/ovirt-engine/api/vms/{vm:id}/undo_snapshot" 
rel="undo_snapshot">
             <request>
                 <http_method>POST</http_method>
+                <headers>
+                    <header required="true">
+                        <name>Content-Type</name>
+                        <value>application/xml|json</value>
+                    </header>
+                    <header required="false">
+                        <name>Correlation-Id</name>
+                        <value>any string</value>
+                    </header>
+                </headers>
                 <body>
                     <type>Action</type>
                 </body>
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/DataCenterNetworkLabels.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/DataCenterNetworkLabels.java
index 614fab9..5f42ce0 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/DataCenterNetworkLabels.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/DataCenterNetworkLabels.java
@@ -123,6 +123,10 @@
      * Adds Label object.
      *
      * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
      * @return
      *     {@link DataCenterNetworkLabel }
      *
@@ -147,6 +151,93 @@
                 org.ovirt.engine.sdk.entities.Label.class,
                 DataCenterNetworkLabel.class, headers);
     }
+    /**
+     * Adds Label object.
+     *
+     * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
+     * @param expect
+     *    <pre>
+     *    [201-created]
+     *    </pre>
+     *
+     * @return
+     *     {@link DataCenterNetworkLabel }
+     *
+     * @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.
+     */
+    public DataCenterNetworkLabel add(org.ovirt.engine.sdk.entities.Label 
label, String expect) throws
+            ClientProtocolException, ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (expect != null) {
+            headersBuilder.add("Expect", expect);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().add(url, label,
+                org.ovirt.engine.sdk.entities.Label.class,
+                DataCenterNetworkLabel.class, headers);
+    }
+    /**
+     * Adds Label object.
+     *
+     * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
+     * @param expect
+     *    <pre>
+     *    [201-created]
+     *    </pre>
+     * @param correlationId
+     *    <pre>
+     *    [any string]
+     *    </pre>
+     *
+     * @return
+     *     {@link DataCenterNetworkLabel }
+     *
+     * @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.
+     */
+    public DataCenterNetworkLabel add(org.ovirt.engine.sdk.entities.Label 
label, String expect, String correlationId) throws
+            ClientProtocolException, ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (expect != null) {
+            headersBuilder.add("Expect", expect);
+        }
+        if (correlationId != null) {
+            headersBuilder.add("Correlation-Id", correlationId);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().add(url, label,
+                org.ovirt.engine.sdk.entities.Label.class,
+                DataCenterNetworkLabel.class, headers);
+    }
 
 }
 
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICLabels.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICLabels.java
index 7600414..eb30a17 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICLabels.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICLabels.java
@@ -123,6 +123,10 @@
      * Adds Label object.
      *
      * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
      * @return
      *     {@link HostNICLabel }
      *
@@ -147,6 +151,93 @@
                 org.ovirt.engine.sdk.entities.Label.class,
                 HostNICLabel.class, headers);
     }
+    /**
+     * Adds Label object.
+     *
+     * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
+     * @param expect
+     *    <pre>
+     *    [201-created]
+     *    </pre>
+     *
+     * @return
+     *     {@link HostNICLabel }
+     *
+     * @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.
+     */
+    public HostNICLabel add(org.ovirt.engine.sdk.entities.Label label, String 
expect) throws
+            ClientProtocolException, ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (expect != null) {
+            headersBuilder.add("Expect", expect);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().add(url, label,
+                org.ovirt.engine.sdk.entities.Label.class,
+                HostNICLabel.class, headers);
+    }
+    /**
+     * Adds Label object.
+     *
+     * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
+     * @param expect
+     *    <pre>
+     *    [201-created]
+     *    </pre>
+     * @param correlationId
+     *    <pre>
+     *    [any string]
+     *    </pre>
+     *
+     * @return
+     *     {@link HostNICLabel }
+     *
+     * @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.
+     */
+    public HostNICLabel add(org.ovirt.engine.sdk.entities.Label label, String 
expect, String correlationId) throws
+            ClientProtocolException, ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (expect != null) {
+            headersBuilder.add("Expect", expect);
+        }
+        if (correlationId != null) {
+            headersBuilder.add("Correlation-Id", correlationId);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().add(url, label,
+                org.ovirt.engine.sdk.entities.Label.class,
+                HostNICLabel.class, headers);
+    }
 
 }
 
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/NetworkLabels.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/NetworkLabels.java
index f4de445..2f91b4d 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/NetworkLabels.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/NetworkLabels.java
@@ -123,6 +123,10 @@
      * Adds Label object.
      *
      * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
      * @return
      *     {@link NetworkLabel }
      *
@@ -147,6 +151,93 @@
                 org.ovirt.engine.sdk.entities.Label.class,
                 NetworkLabel.class, headers);
     }
+    /**
+     * Adds Label object.
+     *
+     * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
+     * @param expect
+     *    <pre>
+     *    [201-created]
+     *    </pre>
+     *
+     * @return
+     *     {@link NetworkLabel }
+     *
+     * @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.
+     */
+    public NetworkLabel add(org.ovirt.engine.sdk.entities.Label label, String 
expect) throws
+            ClientProtocolException, ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (expect != null) {
+            headersBuilder.add("Expect", expect);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().add(url, label,
+                org.ovirt.engine.sdk.entities.Label.class,
+                NetworkLabel.class, headers);
+    }
+    /**
+     * Adds Label object.
+     *
+     * @param label {@link org.ovirt.engine.sdk.entities.Label}
+     *    <pre>
+     *    label.id
+     *    </pre>
+     *
+     * @param expect
+     *    <pre>
+     *    [201-created]
+     *    </pre>
+     * @param correlationId
+     *    <pre>
+     *    [any string]
+     *    </pre>
+     *
+     * @return
+     *     {@link NetworkLabel }
+     *
+     * @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.
+     */
+    public NetworkLabel add(org.ovirt.engine.sdk.entities.Label label, String 
expect, String correlationId) throws
+            ClientProtocolException, ServerException, IOException {
+        String url = this.parent.getHref() + SLASH + getName();
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (expect != null) {
+            headersBuilder.add("Expect", expect);
+        }
+        if (correlationId != null) {
+            headersBuilder.add("Correlation-Id", correlationId);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().add(url, label,
+                org.ovirt.engine.sdk.entities.Label.class,
+                NetworkLabel.class, headers);
+    }
 
 }
 
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 5b90a1b..7d00cef 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
@@ -490,6 +490,40 @@
         return getProxy().action(url, action, Action.class, Action.class, 
headers);
     }
     /**
+     * Performs commit_snapshot action.
+     *
+     * @param action {@link org.ovirt.engine.sdk.entities.Action}
+     * @param correlationId
+     *    <pre>
+     *    [any string]
+     *    </pre>
+     *
+     * @return
+     *     {@link Action }
+     *
+     * @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.
+     */
+    public Action commit_snapshot(Action action, String correlationId) throws 
ClientProtocolException,
+            ServerException, IOException {
+        String url = this.getHref() + "/commit_snapshot";
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (correlationId != null) {
+            headersBuilder.add("Correlation-Id", correlationId);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().action(url, action, Action.class, Action.class, 
headers);
+    }
+    /**
      * Performs stop action.
      *
      * @param action {@link org.ovirt.engine.sdk.entities.Action}
@@ -881,6 +915,10 @@
      * Performs preview_snapshot action.
      *
      * @param action {@link org.ovirt.engine.sdk.entities.Action}
+     *    <pre>
+     *    action.snapshot.id
+     *    </pre>
+     *
      * @return
      *     {@link Action }
      *
@@ -896,6 +934,44 @@
         String url = this.getHref() + "/preview_snapshot";
 
         HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().action(url, action, Action.class, Action.class, 
headers);
+    }
+    /**
+     * Performs preview_snapshot action.
+     *
+     * @param action {@link org.ovirt.engine.sdk.entities.Action}
+     *    <pre>
+     *    action.snapshot.id
+     *    </pre>
+     *
+     * @param correlationId
+     *    <pre>
+     *    [any string]
+     *    </pre>
+     *
+     * @return
+     *     {@link Action }
+     *
+     * @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.
+     */
+    public Action preview_snapshot(Action action, String correlationId) throws 
ClientProtocolException,
+            ServerException, IOException {
+        String url = this.getHref() + "/preview_snapshot";
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (correlationId != null) {
+            headersBuilder.add("Correlation-Id", correlationId);
+        }
         List<Header> headers = headersBuilder.build();
 
         UrlBuilder urlBuilder = new UrlBuilder(url);
@@ -930,6 +1006,40 @@
         return getProxy().action(url, action, Action.class, Action.class, 
headers);
     }
     /**
+     * Performs undo_snapshot action.
+     *
+     * @param action {@link org.ovirt.engine.sdk.entities.Action}
+     * @param correlationId
+     *    <pre>
+     *    [any string]
+     *    </pre>
+     *
+     * @return
+     *     {@link Action }
+     *
+     * @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.
+     */
+    public Action undo_snapshot(Action action, String correlationId) throws 
ClientProtocolException,
+            ServerException, IOException {
+        String url = this.getHref() + "/undo_snapshot";
+
+        HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder();
+        if (correlationId != null) {
+            headersBuilder.add("Correlation-Id", correlationId);
+        }
+        List<Header> headers = headersBuilder.build();
+
+        UrlBuilder urlBuilder = new UrlBuilder(url);
+        url = urlBuilder.build();
+
+        return getProxy().action(url, action, Action.class, Action.class, 
headers);
+    }
+    /**
      * Performs ticket action.
      *
      * @param action {@link org.ovirt.engine.sdk.entities.Action}


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4f4eab52466e9b6f9a95d0c7addebec14cb6f7b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: sdk_3.4
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to