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 410f40b. Change-Id: I3d7b46de09dbc1ced34eca1a7f1157c0f62b6355 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M generator/src/main/resources/rsdl.xml M sdk/src/main/java/org/ovirt/engine/sdk/decorators/Host.java 2 files changed, 102 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk-java refs/changes/09/38309/1 diff --git a/generator/src/main/resources/rsdl.xml b/generator/src/main/resources/rsdl.xml index ae776ef..a106a00 100644 --- a/generator/src/main/resources/rsdl.xml +++ b/generator/src/main/resources/rsdl.xml @@ -6359,6 +6359,7 @@ <parameter required="false" type="xs:boolean" context="matrix"> <name>force</name> <value>true|false</value> + <deprecated>true</deprecated> </parameter> </parameters_set> </url> @@ -7753,6 +7754,37 @@ <type>Permission</type> </response> </link> + <link href="hosts/{host:id}/refreshcapabilities" rel="refreshcapabilities"> + <description>refresh the capabilities of the host</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>Correlation-Id</name> + <value>any string</value> + </header> + </headers> + <body> + <type>Action</type> + <parameters_set> + <description>refresh the capabilities of the host</description> + <parameter required="false" type="xs:boolean"> + <name>action.async</name> + </parameter> + <parameter required="false" type="xs:long"> + <name>action.grace_period.expiry</name> + </parameter> + </parameters_set> + </body> + </request> + <response> + <type>Action</type> + </response> + </link> <link href="hosts/{host:id}/statistics" rel="get"> <description>get the statistics for the host</description> <request> diff --git a/sdk/src/main/java/org/ovirt/engine/sdk/decorators/Host.java b/sdk/src/main/java/org/ovirt/engine/sdk/decorators/Host.java index 35a8fc0..91b732f 100644 --- a/sdk/src/main/java/org/ovirt/engine/sdk/decorators/Host.java +++ b/sdk/src/main/java/org/ovirt/engine/sdk/decorators/Host.java @@ -1156,6 +1156,76 @@ return getProxy().action(url, action, Action.class, Action.class, headers); } /** + * Performs refreshcapabilities action. + * + * @param action {@link org.ovirt.engine.sdk.entities.Action} + * <pre> + * [action.async] + * [action.grace_period.expiry] + * </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 refreshcapabilities(Action action) throws ClientProtocolException, + ServerException, IOException { + String url = this.getHref() + "/refreshcapabilities"; + + 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 refreshcapabilities action. + * + * @param action {@link org.ovirt.engine.sdk.entities.Action} + * <pre> + * [action.async] + * [action.grace_period.expiry] + * </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 refreshcapabilities(Action action, String correlationId) throws ClientProtocolException, + ServerException, IOException { + String url = this.getHref() + "/refreshcapabilities"; + + 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 unregisteredstoragedomainsdiscover action. * * @param action {@link org.ovirt.engine.sdk.entities.Action} -- To view, visit https://gerrit.ovirt.org/38309 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3d7b46de09dbc1ced34eca1a7f1157c0f62b6355 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk-java Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches