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 76da3d7. Change-Id: I0cc6fb93698a3236fb4ea22efd2d3eeeb747f913 Signed-off-by: Juan Hernandez <[email protected]> --- M ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/RsdlCodegen.java M ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl M ovirt-engine-sdk-java-codegen/src/main/resources/api.xsd M ovirt-engine-sdk-java/Makefile M ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in 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/Clusters.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfo.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfos.java M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainTemplates.java M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainVMs.java M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VM.java M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.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/Cluster.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/FencingPolicy.java M ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/ObjectFactory.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfo.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfos.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfConnectivityBroken.java A ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfSDActive.java 23 files changed, 1,062 insertions(+), 49 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk-java refs/changes/49/34549/1 diff --git a/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/RsdlCodegen.java b/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/RsdlCodegen.java index 7bd2eab..424bea3 100644 --- a/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/RsdlCodegen.java +++ b/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/RsdlCodegen.java @@ -158,6 +158,9 @@ ENTITY_NAME_EXCEPTIONS.put( new String[] { "vms", "{vm:id}", "numanodes", "{numanode:id}" }, "VirtualNumaNode" ); + ENTITY_NAME_EXCEPTIONS.put( + new String[] { "operatingsystems", "{operatingsystem:id}" }, "OperatingSystemInfo" + ); } /** @@ -169,6 +172,9 @@ COLLECTION_NAME_EXCEPTIONS.put( new String[] { "vms", "{vm:id}", "numanodes", }, "VirtualNumaNodes" ); + COLLECTION_NAME_EXCEPTIONS.put( + new String[] { "operatingsystems" }, "OperatingSystemInfos" + ); } /** 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 13850a1..532f4ca 100644 --- a/ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl +++ b/ovirt-engine-sdk-java-codegen/src/main/resources/api.rsdl @@ -215,6 +215,18 @@ <parameter required="false" type="xs:boolean"> <name>cluster.ksm.enabled</name> </parameter> + <parameter required="false" type="xs:boolean"> + <name>cluster.fencing_policy.enabled</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>cluster.fencing_policy.skip_if_sd_active.enabled</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>cluster.fencing_policy.skip_if_connectivity_broken.enabled</name> + </parameter> + <parameter required="false" type="xs:int"> + <name>cluster.fencing_policy.skip_if_connectivity_broken.threshold</name> + </parameter> </parameters_set> </body> </request> @@ -392,6 +404,18 @@ </parameter> <parameter required="false" type="xs:boolean"> <name>cluster.ksm.enabled</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>cluster.fencing_policy.enabled</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>cluster.fencing_policy.skip_if_sd_active.enabled</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>cluster.fencing_policy.skip_if_connectivity_broken.enabled</name> + </parameter> + <parameter required="false" type="xs:int"> + <name>cluster.fencing_policy.skip_if_connectivity_broken.threshold</name> </parameter> </parameters_set> </body> @@ -8483,6 +8507,26 @@ <type>Permission</type> </response> </link> + <link href="/ovirt-engine/api/operatingsystems" rel="get"> + <description>get the list of all Operating Systems</description> + <request> + <http_method>GET</http_method> + <body/> + </request> + <response> + <type>OperatingSystemInfos</type> + </response> + </link> + <link href="/ovirt-engine/api/operatingsystems/{operatingsystem:id}" rel="get"> + <description>get the details of the specified Operating System</description> + <request> + <http_method>GET</http_method> + <body/> + </request> + <response> + <type>OperatingSystemInfo</type> + </response> + </link> <link href="/ovirt-engine/api/permissions" rel="add"> <description>add a new permission on the system</description> <request> @@ -9932,14 +9976,6 @@ <description>get the details of the specified disk in the storage domain</description> <request> <http_method>GET</http_method> - <url> - <parameters_set> - <parameter required="false" type="xs:boolean" context="matrix"> - <name>unregistered</name> - <value>true|false</value> - </parameter> - </parameters_set> - </url> <body/> </request> <response> @@ -10354,6 +10390,10 @@ <name>max</name> <value>max results</value> </parameter> + <parameter required="false" type="xs:boolean" context="matrix"> + <name>unregistered</name> + <value>true|false</value> + </parameter> </parameters_set> </url> <body/> @@ -10513,6 +10553,10 @@ <parameter required="false" type="xs:int" context="matrix"> <name>max</name> <value>max results</value> + </parameter> + <parameter required="false" type="xs:boolean" context="matrix"> + <name>unregistered</name> + <value>true|false</value> </parameter> </parameters_set> </url> @@ -12797,6 +12841,9 @@ <parameter required="false" type="xs:long"> <name>vm.memory_policy.guaranteed</name> </parameter> + <parameter required="false" type="xs:boolean"> + <name>vm.memory_policy.ballooning</name> + </parameter> <parameter required="false" type="xs:int"> <name>vm.high_availability.priority</name> </parameter> @@ -13055,6 +13102,9 @@ <parameter required="false" type="xs:long"> <name>vm.memory_policy.guaranteed</name> </parameter> + <parameter required="false" type="xs:boolean"> + <name>vm.memory_policy.ballooning</name> + </parameter> <parameter required="false" type="xs:int"> <name>vm.high_availability.priority</name> </parameter> @@ -13258,6 +13308,9 @@ </parameter> <parameter required="false" type="xs:long"> <name>vm.memory_policy.guaranteed</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>vm.memory_policy.ballooning</name> </parameter> <parameter required="false" type="xs:int"> <name>vm.high_availability.priority</name> @@ -13619,6 +13672,9 @@ </parameter> <parameter required="false" type="xs:long"> <name>vm.memory_policy.guaranteed</name> + </parameter> + <parameter required="false" type="xs:boolean"> + <name>vm.memory_policy.ballooning</name> </parameter> <parameter required="false" type="xs:int"> <name>vm.high_availability.priority</name> @@ -15210,6 +15266,9 @@ <parameter required="false" type="xs:string"> <name>disk.image_id</name> </parameter> +<parameter required="false" type="xs:string"> + <name>disk.snapshot.id</name> +</parameter> </parameters_set> </parameter> </parameters_set> diff --git a/ovirt-engine-sdk-java-codegen/src/main/resources/api.xsd b/ovirt-engine-sdk-java-codegen/src/main/resources/api.xsd index a6705da..e04b44d 100644 --- a/ovirt-engine-sdk-java-codegen/src/main/resources/api.xsd +++ b/ovirt-engine-sdk-java-codegen/src/main/resources/api.xsd @@ -1347,6 +1347,35 @@ </xs:sequence> </xs:complexType> + <!-- Fencing Policy --> + + <xs:element name="fencing_policy" type="FencingPolicy"/> + + <xs:element name="skip_if_sd_active" type="SkipIfSDActive"/> + + <xs:element name="skip_if_connectivity_broken" type="SkipIfConnectivityBroken"/> + + <xs:complexType name="SkipIfConnectivityBroken"> + <xs:sequence> + <xs:element name="enabled" type="xs:boolean" minOccurs="0" maxOccurs="1"/> + <xs:element name="threshold" type="xs:int" minOccurs="0" maxOccurs="1"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="SkipIfSDActive"> + <xs:sequence> + <xs:element name="enabled" type="xs:boolean" minOccurs="0" maxOccurs="1"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="FencingPolicy"> + <xs:sequence> + <xs:element name="enabled" type="xs:boolean" minOccurs="0" maxOccurs="1"/> + <xs:element ref="skip_if_sd_active" minOccurs="0" maxOccurs="1"/> + <xs:element ref="skip_if_connectivity_broken" minOccurs="0" maxOccurs="1"/> + </xs:sequence> + </xs:complexType> + <!-- Clusters --> <xs:element name="cluster" type="Cluster"/> @@ -1622,6 +1651,7 @@ <xs:element ref="ksm" minOccurs="0" maxOccurs="1"/> <xs:element ref="serial_number" minOccurs="0" maxOccurs="1" /> <xs:element name="required_rng_sources" type="RngSources" minOccurs="0" maxOccurs="1" /> + <xs:element ref="fencing_policy" minOccurs="0" maxOccurs="1"/> <!-- Also a rel="networks" link --> </xs:sequence> </xs:extension> @@ -4812,7 +4842,7 @@ <xs:element name="iscsi_bond" type="IscsiBond"/> <xs:element name="iscsi_bonds" type="IscsiBonds"/> - + <!-- Disk Profiles --> <xs:element name="disk_profile" type="DiskProfile"/> @@ -4874,4 +4904,32 @@ </xs:extension> </xs:complexContent> </xs:complexType> + + <!-- Operating systems: --> + <xs:element name="operating_system" type="OperatingSystemInfo"/> + + <xs:element name="operating_systems" type="OperatingSystemInfos"/> + + <xs:complexType name="OperatingSystemInfo"> + <xs:complexContent> + <xs:extension base="BaseResource"/> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="OperatingSystemInfos"> + <xs:complexContent> + <xs:extension base="BaseResources"> + <xs:sequence> + <xs:element ref="operating_system" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:appinfo> + <jaxb:property name="OperatingSystemInfos"/> + </xs:appinfo> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:schema> diff --git a/ovirt-engine-sdk-java/Makefile b/ovirt-engine-sdk-java/Makefile index 7da2796..3b58b64 100644 --- a/ovirt-engine-sdk-java/Makefile +++ b/ovirt-engine-sdk-java/Makefile @@ -1,6 +1,6 @@ all: rpm -rpmrelease:=0.3$(rpmsuffix) +rpmrelease:=0.4$(rpmsuffix) rpmversion=3.6.0.0 RPMTOP=$(shell bash -c "pwd -P")/rpmtop NAME=ovirt-engine-sdk-java diff --git a/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in b/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in index af8204c..0480bc3 100644 --- a/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in +++ b/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in @@ -117,6 +117,20 @@ %{_javadocdir}/%{name} %changelog +* Tue Oct 28 2014 Juan Hernandez <[email protected]> - 3.6.0.0-0 +- Add empty export method to decorator base #1024696. +- Add snapshot id parameter to preview action #1150071. +- Add support for Kerberos authentication #1145237. +- Add support for cluster fencing policy #1127592. +- Add support for memory ballooning #1149188. +- Add support for operating systems details #1050243. +- Add support for unregisterd VMs #1148715. +- Allow listing unregistered VMs #1148715. +- Allow setting VM memory ballooning #1149188. +- Introduce API builder #1145237. +- Replace httplib with pycurl #1145234. +- Replace storage_manager with spm #1146457. + * Wed Sep 10 2014 Juan Hernandez <[email protected]> - 3.5.0.5-1 - Added support for watchdog action and model #1129840. 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 cff00b0..001e618 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 @@ -47,8 +47,8 @@ private volatile API entryPoint = null; private final Object LOCK = new Object(); - private volatile Jobs jobs; private volatile Users users; + private volatile Jobs jobs; private volatile Events events; private volatile Domains domains; private volatile VnicProfiles vnicProfiles; @@ -65,6 +65,7 @@ private volatile Templates templates; private volatile SchedulingPolicyUnits schedulingPolicyUnits; private volatile SchedulingPolicies schedulingPolicies; + private volatile OperatingSystemInfos operatingSystemInfos; private volatile Disks disks; private volatile Clusters clusters; private volatile Roles roles; @@ -737,23 +738,6 @@ } /** - * Gets the value of the Jobs property. - * - * @return - * {@link Jobs } - * - */ - public Jobs getJobs() { - if (this.jobs == null) { - synchronized (this.LOCK) { - if (this.jobs == null) { - this.jobs = new Jobs(proxy); - } - } - } - return jobs; - } - /** * Gets the value of the Users property. * * @return @@ -769,6 +753,23 @@ } } return users; + } + /** + * Gets the value of the Jobs property. + * + * @return + * {@link Jobs } + * + */ + public Jobs getJobs() { + if (this.jobs == null) { + synchronized (this.LOCK) { + if (this.jobs == null) { + this.jobs = new Jobs(proxy); + } + } + } + return jobs; } /** * Gets the value of the Events property. @@ -1043,6 +1044,23 @@ return schedulingPolicies; } /** + * Gets the value of the OperatingSystemInfos property. + * + * @return + * {@link OperatingSystemInfos } + * + */ + public OperatingSystemInfos getOperatingSystemInfos() { + if (this.operatingSystemInfos == null) { + synchronized (this.LOCK) { + if (this.operatingSystemInfos == null) { + this.operatingSystemInfos = new OperatingSystemInfos(proxy); + } + } + } + return operatingSystemInfos; + } + /** * Gets the value of the Disks property. * * @return 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 6e686a2..37c22b4 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 @@ -194,6 +194,10 @@ * [cluster.cpu.architecture] * [cluster.display.proxy] * [cluster.ksm.enabled] + * [cluster.fencing_policy.enabled] + * [cluster.fencing_policy.skip_if_sd_active.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.threshold] * </pre> * * @return @@ -252,6 +256,10 @@ * [cluster.cpu.architecture] * [cluster.display.proxy] * [cluster.ksm.enabled] + * [cluster.fencing_policy.enabled] + * [cluster.fencing_policy.skip_if_sd_active.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.threshold] * </pre> * * @param correlationId diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Clusters.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Clusters.java index 6323236..ec3873a 100644 --- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Clusters.java +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Clusters.java @@ -191,6 +191,10 @@ * [cluster.cpu.architecture] * [cluster.display.proxy] * [cluster.ksm.enabled] + * [cluster.fencing_policy.enabled] + * [cluster.fencing_policy.skip_if_sd_active.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.threshold] * </pre> * * @return @@ -248,6 +252,10 @@ * [cluster.cpu.architecture] * [cluster.display.proxy] * [cluster.ksm.enabled] + * [cluster.fencing_policy.enabled] + * [cluster.fencing_policy.skip_if_sd_active.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.threshold] * </pre> * * @param expect @@ -313,6 +321,10 @@ * [cluster.cpu.architecture] * [cluster.display.proxy] * [cluster.ksm.enabled] + * [cluster.fencing_policy.enabled] + * [cluster.fencing_policy.skip_if_sd_active.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.enabled] + * [cluster.fencing_policy.skip_if_connectivity_broken.threshold] * </pre> * * @param expect diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfo.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfo.java new file mode 100644 index 0000000..16b51ce --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfo.java @@ -0,0 +1,68 @@ +// +// 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>OperatingSystemInfo providing relation and functional services + * <p>to {@link org.ovirt.engine.sdk.entities.OperatingSystemInfo }. + */ +@SuppressWarnings("unused") +public class OperatingSystemInfo extends + org.ovirt.engine.sdk.entities.OperatingSystemInfo { + + private HttpProxyBroker proxy; + private final Object LOCK = new Object(); + + + + /** + * @param proxy HttpProxyBroker + */ + public OperatingSystemInfo(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/OperatingSystemInfos.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfos.java new file mode 100644 index 0000000..f54f19b --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/OperatingSystemInfos.java @@ -0,0 +1,118 @@ +// +// 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>OperatingSystemInfos providing relation and functional services + * <p>to {@link org.ovirt.engine.sdk.entities.OperatingSystemInfos }. + */ +@SuppressWarnings("unused") +public class OperatingSystemInfos extends + CollectionDecorator<org.ovirt.engine.sdk.entities.OperatingSystemInfo, + org.ovirt.engine.sdk.entities.OperatingSystemInfos, + OperatingSystemInfo> { + + /** + * @param proxy HttpProxyBroker + */ + public OperatingSystemInfos(HttpProxyBroker proxy) { + super(proxy, "operatingsystems"); + } + + /** + * Lists OperatingSystemInfo objects. + * + * @return + * List of {@link OperatingSystemInfo } + * + * @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<OperatingSystemInfo> list() throws ClientProtocolException, + ServerException, IOException { + String url = SLASH + getName(); + return list(url, org.ovirt.engine.sdk.entities.OperatingSystemInfos.class, OperatingSystemInfo.class); + } + + /** + * Fetches OperatingSystemInfo object by id. + * + * @return {@link OperatingSystemInfo } + * + * @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 OperatingSystemInfo get(UUID id) throws ClientProtocolException, + ServerException, IOException { + String url = SLASH + getName() + SLASH + id.toString(); + return getProxy().get(url, org.ovirt.engine.sdk.entities.OperatingSystemInfo.class, OperatingSystemInfo.class); + } + + /** + * Fetches OperatingSystemInfo object by id. + * + * @return {@link OperatingSystemInfo } + * + * @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 OperatingSystemInfo getById(String id) throws ClientProtocolException, + ServerException, IOException { + String url = SLASH + getName() + SLASH + id; + return getProxy().get(url, org.ovirt.engine.sdk.entities.OperatingSystemInfo.class, OperatingSystemInfo.class); + } + + +} + diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainTemplates.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainTemplates.java index 85befdf..3866e44 100644 --- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainTemplates.java +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainTemplates.java @@ -126,6 +126,10 @@ * <pre> * [max results] * </pre> + * @param unregistered + * <pre> + * [true|false] + * </pre> * * * @return List of {@link StorageDomainTemplate } @@ -137,7 +141,7 @@ * @throws IOException * Signals that an I/O exception of some sort has occurred. */ - public List<StorageDomainTemplate> list(Integer max) throws ClientProtocolException, + public List<StorageDomainTemplate> list(Integer max, Boolean unregistered) throws ClientProtocolException, ServerException, IOException { HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder(); @@ -147,6 +151,9 @@ if (max != null) { urlBuilder.add("max", max, UrlParameterType.MATRIX); } + if (unregistered != null) { + urlBuilder.add("unregistered", unregistered, UrlParameterType.MATRIX); + } String url = urlBuilder.build(); return list(url, org.ovirt.engine.sdk.entities.Templates.class, diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainVMs.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainVMs.java index be6154a..603798c 100644 --- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainVMs.java +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/StorageDomainVMs.java @@ -126,6 +126,10 @@ * <pre> * [max results] * </pre> + * @param unregistered + * <pre> + * [true|false] + * </pre> * * * @return List of {@link StorageDomainVM } @@ -137,7 +141,7 @@ * @throws IOException * Signals that an I/O exception of some sort has occurred. */ - public List<StorageDomainVM> list(Integer max) throws ClientProtocolException, + public List<StorageDomainVM> list(Integer max, Boolean unregistered) throws ClientProtocolException, ServerException, IOException { HttpHeaderBuilder headersBuilder = new HttpHeaderBuilder(); @@ -147,6 +151,9 @@ if (max != null) { urlBuilder.add("max", max, UrlParameterType.MATRIX); } + if (unregistered != null) { + urlBuilder.add("unregistered", unregistered, UrlParameterType.MATRIX); + } String url = urlBuilder.build(); return list(url, org.ovirt.engine.sdk.entities.VMs.class, 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 2b57c7a..21ea053 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 @@ -368,6 +368,7 @@ * [vm.cpu_shares] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -458,6 +459,7 @@ * [vm.cpu_shares] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [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/decorators/VMs.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/VMs.java index 1ba9e02..8f8a400 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 @@ -251,6 +251,7 @@ * [vm.cpu.architecture] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -322,6 +323,7 @@ * [vm.cpu.architecture] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -383,6 +385,7 @@ * [vm.cpu.topology.cores] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -479,6 +482,7 @@ * [vm.cpu.architecture] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -550,6 +554,7 @@ * [vm.cpu.architecture] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -611,6 +616,7 @@ * [vm.cpu.topology.cores] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -715,6 +721,7 @@ * [vm.cpu.architecture] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -786,6 +793,7 @@ * [vm.cpu.architecture] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [vm.high_availability.priority] * [vm.high_availability.enabled] * [vm.domain.name] @@ -847,6 +855,7 @@ * [vm.cpu.topology.cores] * [vm.memory] * [vm.memory_policy.guaranteed] + * [vm.memory_policy.ballooning] * [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/BaseResource.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/BaseResource.java index d13cb99..9012f0d 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 @@ -115,6 +115,7 @@ Network.class, Quota.class, Parameter.class, + OperatingSystemInfo.class, Version.class, Application.class, GlusterServerHook.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 1071705..20ebab2 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 @@ -71,6 +71,7 @@ Hosts.class, Permissions.class, Networks.class, + OperatingSystemInfos.class, Templates.class, Labels.class, GlusterClients.class, diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Cluster.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Cluster.java index ec3beb5..89d0bfb 100644 --- a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Cluster.java +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/Cluster.java @@ -56,6 +56,7 @@ * <element ref="{}ksm" minOccurs="0"/> * <element ref="{}serial_number" minOccurs="0"/> * <element name="required_rng_sources" type="{}RngSources" minOccurs="0"/> + * <element ref="{}fencing_policy" minOccurs="0"/> * </sequence> * </extension> * </complexContent> @@ -84,7 +85,8 @@ "display", "ksm", "serialNumber", - "requiredRngSources" + "requiredRngSources", + "fencingPolicy" }) public class Cluster extends BaseResource @@ -124,6 +126,8 @@ protected SerialNumber serialNumber; @XmlElement(name = "required_rng_sources") protected RngSources requiredRngSources; + @XmlElement(name = "fencing_policy") + protected FencingPolicy fencingPolicy; /** * Gets the value of the cpu property. @@ -657,4 +661,32 @@ return (this.requiredRngSources!= null); } + /** + * Gets the value of the fencingPolicy property. + * + * @return + * possible object is + * {@link FencingPolicy } + * + */ + public FencingPolicy getFencingPolicy() { + return fencingPolicy; + } + + /** + * Sets the value of the fencingPolicy property. + * + * @param value + * allowed object is + * {@link FencingPolicy } + * + */ + public void setFencingPolicy(FencingPolicy value) { + this.fencingPolicy = value; + } + + public boolean isSetFencingPolicy() { + return (this.fencingPolicy!= null); + } + } diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/FencingPolicy.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/FencingPolicy.java new file mode 100644 index 0000000..a741e6f --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/FencingPolicy.java @@ -0,0 +1,150 @@ +// +// 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.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * <p>Java class for FencingPolicy complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="FencingPolicy"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element ref="{}skip_if_sd_active" minOccurs="0"/> + * <element ref="{}skip_if_connectivity_broken" minOccurs="0"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "FencingPolicy", propOrder = { + "enabled", + "skipIfSdActive", + "skipIfConnectivityBroken" +}) +public class FencingPolicy { + + protected Boolean enabled; + @XmlElement(name = "skip_if_sd_active") + protected SkipIfSDActive skipIfSdActive; + @XmlElement(name = "skip_if_connectivity_broken") + protected SkipIfConnectivityBroken skipIfConnectivityBroken; + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + public boolean isSetEnabled() { + return (this.enabled!= null); + } + + /** + * Gets the value of the skipIfSdActive property. + * + * @return + * possible object is + * {@link SkipIfSDActive } + * + */ + public SkipIfSDActive getSkipIfSdActive() { + return skipIfSdActive; + } + + /** + * Sets the value of the skipIfSdActive property. + * + * @param value + * allowed object is + * {@link SkipIfSDActive } + * + */ + public void setSkipIfSdActive(SkipIfSDActive value) { + this.skipIfSdActive = value; + } + + public boolean isSetSkipIfSdActive() { + return (this.skipIfSdActive!= null); + } + + /** + * Gets the value of the skipIfConnectivityBroken property. + * + * @return + * possible object is + * {@link SkipIfConnectivityBroken } + * + */ + public SkipIfConnectivityBroken getSkipIfConnectivityBroken() { + return skipIfConnectivityBroken; + } + + /** + * Sets the value of the skipIfConnectivityBroken property. + * + * @param value + * allowed object is + * {@link SkipIfConnectivityBroken } + * + */ + public void setSkipIfConnectivityBroken(SkipIfConnectivityBroken value) { + this.skipIfConnectivityBroken = value; + } + + public boolean isSetSkipIfConnectivityBroken() { + return (this.skipIfConnectivityBroken!= 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 178ce94..12b9dd0 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 @@ -80,6 +80,7 @@ private final static QName _VirtioScsi_QNAME = new QName("", "virtio_scsi"); private final static QName _AuthorizedKey_QNAME = new QName("", "authorized_key"); private final static QName _Nics_QNAME = new QName("", "nics"); + private final static QName _SkipIfSdActive_QNAME = new QName("", "skip_if_sd_active"); private final static QName _AffinityGroups_QNAME = new QName("", "affinity_groups"); private final static QName _TemplateStates_QNAME = new QName("", "template_states"); private final static QName _OsTypes_QNAME = new QName("", "os_types"); @@ -137,15 +138,16 @@ private final static QName _DataCenter_QNAME = new QName("", "data_center"); private final static QName _Networks_QNAME = new QName("", "networks"); private final static QName _Hook_QNAME = new QName("", "hook"); + private final static QName _OperatingSystems_QNAME = new QName("", "operating_systems"); private final static QName _PortMirroring_QNAME = new QName("", "port_mirroring"); private final static QName _Templates_QNAME = new QName("", "templates"); private final static QName _Labels_QNAME = new QName("", "labels"); private final static QName _VolumeProfileDetails_QNAME = new QName("", "volume_profile_details"); private final static QName _Cpu_QNAME = new QName("", "cpu"); private final static QName _QosTypes_QNAME = new QName("", "qos_types"); + private final static QName _DiskSnapshots_QNAME = new QName("", "disk_snapshots"); private final static QName _Label_QNAME = new QName("", "label"); private final static QName _Display_QNAME = new QName("", "display"); - private final static QName _DiskSnapshots_QNAME = new QName("", "disk_snapshots"); private final static QName _Agent_QNAME = new QName("", "agent"); private final static QName _CpuProfile_QNAME = new QName("", "cpu_profile"); private final static QName _Url_QNAME = new QName("", "url"); @@ -162,6 +164,7 @@ private final static QName _Brick_QNAME = new QName("", "brick"); private final static QName _GlusterVolume_QNAME = new QName("", "gluster_volume"); private final static QName _LogicalUnit_QNAME = new QName("", "logical_unit"); + private final static QName _SkipIfConnectivityBroken_QNAME = new QName("", "skip_if_connectivity_broken"); private final static QName _Statistics_QNAME = new QName("", "statistics"); private final static QName _Response_QNAME = new QName("", "response"); private final static QName _IscsiBonds_QNAME = new QName("", "iscsi_bonds"); @@ -268,6 +271,7 @@ private final static QName _PreviewVms_QNAME = new QName("", "preview_vms"); private final static QName _Status_QNAME = new QName("", "status"); private final static QName _NfsProfileDetails_QNAME = new QName("", "nfs_profile_details"); + private final static QName _FencingPolicy_QNAME = new QName("", "fencing_policy"); private final static QName _Property_QNAME = new QName("", "property"); private final static QName _Permission_QNAME = new QName("", "permission"); private final static QName _FenceTypes_QNAME = new QName("", "fence_types"); @@ -305,6 +309,7 @@ private final static QName _BrickStates_QNAME = new QName("", "brick_states"); private final static QName _NumaNodePin_QNAME = new QName("", "numa_node_pin"); private final static QName _MacPools_QNAME = new QName("", "mac_pools"); + private final static QName _OperatingSystem_QNAME = new QName("", "operating_system"); private final static QName _SystemVersion_QNAME = new QName("", "system_version"); private final static QName _Application_QNAME = new QName("", "application"); private final static QName _Nic_QNAME = new QName("", "nic"); @@ -619,6 +624,14 @@ */ public Nics createNics() { return new Nics(); + } + + /** + * Create an instance of {@link SkipIfSDActive } + * + */ + public SkipIfSDActive createSkipIfSDActive() { + return new SkipIfSDActive(); } /** @@ -1070,6 +1083,14 @@ } /** + * Create an instance of {@link OperatingSystemInfos } + * + */ + public OperatingSystemInfos createOperatingSystemInfos() { + return new OperatingSystemInfos(); + } + + /** * Create an instance of {@link PortMirroring } * */ @@ -1118,6 +1139,14 @@ } /** + * Create an instance of {@link DiskSnapshots } + * + */ + public DiskSnapshots createDiskSnapshots() { + return new DiskSnapshots(); + } + + /** * Create an instance of {@link Label } * */ @@ -1131,14 +1160,6 @@ */ public Display createDisplay() { return new Display(); - } - - /** - * Create an instance of {@link DiskSnapshots } - * - */ - public DiskSnapshots createDiskSnapshots() { - return new DiskSnapshots(); } /** @@ -1267,6 +1288,14 @@ */ public LogicalUnit createLogicalUnit() { return new LogicalUnit(); + } + + /** + * Create an instance of {@link SkipIfConnectivityBroken } + * + */ + public SkipIfConnectivityBroken createSkipIfConnectivityBroken() { + return new SkipIfConnectivityBroken(); } /** @@ -2110,6 +2139,14 @@ } /** + * Create an instance of {@link FencingPolicy } + * + */ + public FencingPolicy createFencingPolicy() { + return new FencingPolicy(); + } + + /** * Create an instance of {@link FenceTypes } * */ @@ -2387,6 +2424,14 @@ */ public NumaNodePin createNumaNodePin() { return new NumaNodePin(); + } + + /** + * Create an instance of {@link OperatingSystemInfo } + * + */ + public OperatingSystemInfo createOperatingSystemInfo() { + return new OperatingSystemInfo(); } /** @@ -3106,6 +3151,15 @@ } /** + * Create an instance of {@link JAXBElement }{@code <}{@link SkipIfSDActive }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "skip_if_sd_active") + public JAXBElement<SkipIfSDActive> createSkipIfSdActive(SkipIfSDActive value) { + return new JAXBElement<SkipIfSDActive>(_SkipIfSdActive_QNAME, SkipIfSDActive.class, null, value); + } + + /** * Create an instance of {@link JAXBElement }{@code <}{@link AffinityGroups }{@code >}} * */ @@ -3619,6 +3673,15 @@ } /** + * Create an instance of {@link JAXBElement }{@code <}{@link OperatingSystemInfos }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "operating_systems") + public JAXBElement<OperatingSystemInfos> createOperatingSystems(OperatingSystemInfos value) { + return new JAXBElement<OperatingSystemInfos>(_OperatingSystems_QNAME, OperatingSystemInfos.class, null, value); + } + + /** * Create an instance of {@link JAXBElement }{@code <}{@link PortMirroring }{@code >}} * */ @@ -3673,6 +3736,15 @@ } /** + * Create an instance of {@link JAXBElement }{@code <}{@link DiskSnapshots }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "disk_snapshots") + public JAXBElement<DiskSnapshots> createDiskSnapshots(DiskSnapshots value) { + return new JAXBElement<DiskSnapshots>(_DiskSnapshots_QNAME, DiskSnapshots.class, null, value); + } + + /** * Create an instance of {@link JAXBElement }{@code <}{@link Label }{@code >}} * */ @@ -3688,15 +3760,6 @@ @XmlElementDecl(namespace = "", name = "display") public JAXBElement<Display> createDisplay(Display value) { return new JAXBElement<Display>(_Display_QNAME, Display.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DiskSnapshots }{@code >}} - * - */ - @XmlElementDecl(namespace = "", name = "disk_snapshots") - public JAXBElement<DiskSnapshots> createDiskSnapshots(DiskSnapshots value) { - return new JAXBElement<DiskSnapshots>(_DiskSnapshots_QNAME, DiskSnapshots.class, null, value); } /** @@ -3841,6 +3904,15 @@ @XmlElementDecl(namespace = "", name = "logical_unit") public JAXBElement<LogicalUnit> createLogicalUnit(LogicalUnit value) { return new JAXBElement<LogicalUnit>(_LogicalUnit_QNAME, LogicalUnit.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SkipIfConnectivityBroken }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "skip_if_connectivity_broken") + public JAXBElement<SkipIfConnectivityBroken> createSkipIfConnectivityBroken(SkipIfConnectivityBroken value) { + return new JAXBElement<SkipIfConnectivityBroken>(_SkipIfConnectivityBroken_QNAME, SkipIfConnectivityBroken.class, null, value); } /** @@ -4798,6 +4870,15 @@ } /** + * Create an instance of {@link JAXBElement }{@code <}{@link FencingPolicy }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "fencing_policy") + public JAXBElement<FencingPolicy> createFencingPolicy(FencingPolicy value) { + return new JAXBElement<FencingPolicy>(_FencingPolicy_QNAME, FencingPolicy.class, null, value); + } + + /** * Create an instance of {@link JAXBElement }{@code <}{@link Property }{@code >}} * */ @@ -5131,6 +5212,15 @@ } /** + * Create an instance of {@link JAXBElement }{@code <}{@link OperatingSystemInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "operating_system") + public JAXBElement<OperatingSystemInfo> createOperatingSystem(OperatingSystemInfo value) { + return new JAXBElement<OperatingSystemInfo>(_OperatingSystem_QNAME, OperatingSystemInfo.class, null, value); + } + + /** * Create an instance of {@link JAXBElement }{@code <}{@link Version }{@code >}} * */ diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfo.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfo.java new file mode 100644 index 0000000..f3d57cd --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfo.java @@ -0,0 +1,52 @@ +// +// 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 OperatingSystemInfo complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="OperatingSystemInfo"> + * <complexContent> + * <extension base="{}BaseResource"> + * </extension> + * </complexContent> + * </complexType> + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "OperatingSystemInfo") +public class OperatingSystemInfo + extends BaseResource +{ + + +} diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfos.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfos.java new file mode 100644 index 0000000..5ba36c1 --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/OperatingSystemInfos.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 OperatingSystemInfos complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="OperatingSystemInfos"> + * <complexContent> + * <extension base="{}BaseResources"> + * <sequence> + * <element ref="{}operating_system" maxOccurs="unbounded" minOccurs="0"/> + * </sequence> + * </extension> + * </complexContent> + * </complexType> + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "OperatingSystemInfos", propOrder = { + "operatingSystemInfos" +}) +public class OperatingSystemInfos + extends BaseResources +{ + + @XmlElement(name = "operating_system") + protected List<OperatingSystemInfo> operatingSystemInfos; + + /** + * Gets the value of the operatingSystemInfos 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 operatingSystemInfos property. + * + * <p> + * For example, to add a new item, do as follows: + * <pre> + * getOperatingSystemInfos().add(newItem); + * </pre> + * + * + * <p> + * Objects of the following type(s) are allowed in the list + * {@link OperatingSystemInfo } + * + * + */ + public List<OperatingSystemInfo> getOperatingSystemInfos() { + if (operatingSystemInfos == null) { + operatingSystemInfos = new ArrayList<OperatingSystemInfo>(); + } + return this.operatingSystemInfos; + } + + public boolean isSetOperatingSystemInfos() { + return ((this.operatingSystemInfos!= null)&&(!this.operatingSystemInfos.isEmpty())); + } + + public void unsetOperatingSystemInfos() { + this.operatingSystemInfos = null; + } + +} + diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfConnectivityBroken.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfConnectivityBroken.java new file mode 100644 index 0000000..2c163e3 --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfConnectivityBroken.java @@ -0,0 +1,116 @@ +// +// 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 SkipIfConnectivityBroken complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="SkipIfConnectivityBroken"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * <element name="threshold" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SkipIfConnectivityBroken", propOrder = { + "enabled", + "threshold" +}) +public class SkipIfConnectivityBroken { + + protected Boolean enabled; + protected Integer threshold; + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + public boolean isSetEnabled() { + return (this.enabled!= null); + } + + /** + * Gets the value of the threshold property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getThreshold() { + return threshold; + } + + /** + * Sets the value of the threshold property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setThreshold(Integer value) { + this.threshold = value; + } + + public boolean isSetThreshold() { + return (this.threshold!= null); + } + +} + diff --git a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfSDActive.java b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfSDActive.java new file mode 100644 index 0000000..518c3e0 --- /dev/null +++ b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/entities/SkipIfSDActive.java @@ -0,0 +1,85 @@ +// +// 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 SkipIfSDActive complex type. + * + * <p>The following schema fragment specifies the expected content contained within this class. + * + * <pre> + * <complexType name="SkipIfSDActive"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SkipIfSDActive", propOrder = { + "enabled" +}) +public class SkipIfSDActive { + + protected Boolean enabled; + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + public boolean isSetEnabled() { + return (this.enabled!= null); + } + +} + -- To view, visit http://gerrit.ovirt.org/34549 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0cc6fb93698a3236fb4ea22efd2d3eeeb747f913 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk-java Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
