Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Use metamodel
......................................................................
restapi: Use metamodel
This patch replaces the XML schema used to define the data model with
the equivalent definition using the metamodel.
All business logic entities have been replaced, but infrastructure
entities (like "Action" and "Capabilities", for example) haven't
been
replaced, they will be replaced later.
Change-Id: I739d7fa1c07eea37858f12704ed1a7cf1d18266c
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/schema/api.xsd
M
backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/SchemaGenerator.java
C backend/manager/modules/restapi/model/src/main/java/types/AffinityGroup.java
C backend/manager/modules/restapi/model/src/main/java/types/Agent.java
C backend/manager/modules/restapi/model/src/main/java/types/AgentConfiguration.java
C backend/manager/modules/restapi/model/src/main/java/types/Application.java
C backend/manager/modules/restapi/model/src/main/java/types/AuthorizedKey.java
C backend/manager/modules/restapi/model/src/main/java/types/Balance.java
C backend/manager/modules/restapi/model/src/main/java/types/Bios.java
C backend/manager/modules/restapi/model/src/main/java/types/BlockStatistic.java
C backend/manager/modules/restapi/model/src/main/java/types/Bonding.java
C backend/manager/modules/restapi/model/src/main/java/types/Bookmark.java
C backend/manager/modules/restapi/model/src/main/java/types/Boot.java
C backend/manager/modules/restapi/model/src/main/java/types/BootMenu.java
C backend/manager/modules/restapi/model/src/main/java/types/BrickProfileDetail.java
C backend/manager/modules/restapi/model/src/main/java/types/Cdrom.java
C backend/manager/modules/restapi/model/src/main/java/types/Certificate.java
C backend/manager/modules/restapi/model/src/main/java/types/CloudInit.java
A backend/manager/modules/restapi/model/src/main/java/types/Cluster.java
C backend/manager/modules/restapi/model/src/main/java/types/Configuration.java
C backend/manager/modules/restapi/model/src/main/java/types/Console.java
C backend/manager/modules/restapi/model/src/main/java/types/Core.java
C backend/manager/modules/restapi/model/src/main/java/types/Cpu.java
C backend/manager/modules/restapi/model/src/main/java/types/CpuProfile.java
C backend/manager/modules/restapi/model/src/main/java/types/CpuTopology.java
C backend/manager/modules/restapi/model/src/main/java/types/CpuTune.java
C backend/manager/modules/restapi/model/src/main/java/types/CustomProperty.java
C backend/manager/modules/restapi/model/src/main/java/types/DataCenter.java
A backend/manager/modules/restapi/model/src/main/java/types/Device.java
A backend/manager/modules/restapi/model/src/main/java/types/Disk.java
C backend/manager/modules/restapi/model/src/main/java/types/DiskProfile.java
C backend/manager/modules/restapi/model/src/main/java/types/DiskSnapshot.java
A backend/manager/modules/restapi/model/src/main/java/types/Display.java
C backend/manager/modules/restapi/model/src/main/java/types/Dns.java
C backend/manager/modules/restapi/model/src/main/java/types/Domain.java
C backend/manager/modules/restapi/model/src/main/java/types/EntityProfileDetail.java
C backend/manager/modules/restapi/model/src/main/java/types/ErrorHandling.java
A backend/manager/modules/restapi/model/src/main/java/types/Event.java
C backend/manager/modules/restapi/model/src/main/java/types/ExternalComputeResource.java
C backend/manager/modules/restapi/model/src/main/java/types/ExternalDiscoveredHost.java
C backend/manager/modules/restapi/model/src/main/java/types/ExternalHost.java
C backend/manager/modules/restapi/model/src/main/java/types/ExternalHostGroup.java
C backend/manager/modules/restapi/model/src/main/java/types/ExternalHostProvider.java
C backend/manager/modules/restapi/model/src/main/java/types/ExternalProvider.java
C backend/manager/modules/restapi/model/src/main/java/types/FencingPolicy.java
C backend/manager/modules/restapi/model/src/main/java/types/File.java
C backend/manager/modules/restapi/model/src/main/java/types/Filter.java
C backend/manager/modules/restapi/model/src/main/java/types/Floppy.java
C backend/manager/modules/restapi/model/src/main/java/types/FopStatistic.java
C backend/manager/modules/restapi/model/src/main/java/types/GlusterBrick.java
C
backend/manager/modules/restapi/model/src/main/java/types/GlusterBrickAdvancedDetails.java
C backend/manager/modules/restapi/model/src/main/java/types/GlusterBrickMemoryInfo.java
C backend/manager/modules/restapi/model/src/main/java/types/GlusterClient.java
A backend/manager/modules/restapi/model/src/main/java/types/GlusterHook.java
C backend/manager/modules/restapi/model/src/main/java/types/GlusterMemoryPool.java
C backend/manager/modules/restapi/model/src/main/java/types/GlusterServerHook.java
A backend/manager/modules/restapi/model/src/main/java/types/GlusterVolume.java
C
backend/manager/modules/restapi/model/src/main/java/types/GlusterVolumeProfileDetails.java
C backend/manager/modules/restapi/model/src/main/java/types/GraphicsConsole.java
A backend/manager/modules/restapi/model/src/main/java/types/Group.java
C backend/manager/modules/restapi/model/src/main/java/types/GuestOperatingSystem.java
C backend/manager/modules/restapi/model/src/main/java/types/HardwareInformation.java
C backend/manager/modules/restapi/model/src/main/java/types/HighAvailability.java
C backend/manager/modules/restapi/model/src/main/java/types/Hook.java
A backend/manager/modules/restapi/model/src/main/java/types/Host.java
A backend/manager/modules/restapi/model/src/main/java/types/HostDevice.java
C backend/manager/modules/restapi/model/src/main/java/types/HostDevicePassthrough.java
A backend/manager/modules/restapi/model/src/main/java/types/HostNic.java
A backend/manager/modules/restapi/model/src/main/java/types/HostStorage.java
C backend/manager/modules/restapi/model/src/main/java/types/HostedEngine.java
C backend/manager/modules/restapi/model/src/main/java/types/Icon.java
C backend/manager/modules/restapi/model/src/main/java/types/Image.java
A backend/manager/modules/restapi/model/src/main/java/types/Initialization.java
C backend/manager/modules/restapi/model/src/main/java/types/InstanceType.java
C backend/manager/modules/restapi/model/src/main/java/types/Io.java
C backend/manager/modules/restapi/model/src/main/java/types/Ip.java
C backend/manager/modules/restapi/model/src/main/java/types/IpAddressAssignment.java
C backend/manager/modules/restapi/model/src/main/java/types/IscsiBond.java
A backend/manager/modules/restapi/model/src/main/java/types/IscsiDetails.java
C backend/manager/modules/restapi/model/src/main/java/types/Job.java
C backend/manager/modules/restapi/model/src/main/java/types/KatelloErratum.java
C backend/manager/modules/restapi/model/src/main/java/types/Kernel.java
C backend/manager/modules/restapi/model/src/main/java/types/Ksm.java
C backend/manager/modules/restapi/model/src/main/java/types/Label.java
A backend/manager/modules/restapi/model/src/main/java/types/LogicalUnit.java
C backend/manager/modules/restapi/model/src/main/java/types/Mac.java
C backend/manager/modules/restapi/model/src/main/java/types/MacPool.java
C backend/manager/modules/restapi/model/src/main/java/types/MemoryOverCommit.java
C backend/manager/modules/restapi/model/src/main/java/types/MemoryPolicy.java
C backend/manager/modules/restapi/model/src/main/java/types/Method.java
C backend/manager/modules/restapi/model/src/main/java/types/MigrationOptions.java
A backend/manager/modules/restapi/model/src/main/java/types/Network.java
A backend/manager/modules/restapi/model/src/main/java/types/NetworkAttachment.java
C backend/manager/modules/restapi/model/src/main/java/types/NetworkConfiguration.java
C backend/manager/modules/restapi/model/src/main/java/types/NfsProfileDetail.java
A backend/manager/modules/restapi/model/src/main/java/types/Nic.java
C backend/manager/modules/restapi/model/src/main/java/types/NicConfiguration.java
C backend/manager/modules/restapi/model/src/main/java/types/NumaNode.java
C backend/manager/modules/restapi/model/src/main/java/types/NumaNodePin.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackImage.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackImageProvider.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackNetwork.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackNetworkProvider.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackProvider.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackSubnet.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackVolumeProvider.java
C backend/manager/modules/restapi/model/src/main/java/types/OpenStackVolumeType.java
C
backend/manager/modules/restapi/model/src/main/java/types/OpenstackVolumeAuthenticationKey.java
C backend/manager/modules/restapi/model/src/main/java/types/OperatingSystem.java
C backend/manager/modules/restapi/model/src/main/java/types/OperatingSystemInfo.java
C backend/manager/modules/restapi/model/src/main/java/types/Option.java
C backend/manager/modules/restapi/model/src/main/java/types/Package.java
C backend/manager/modules/restapi/model/src/main/java/types/Payload.java
A backend/manager/modules/restapi/model/src/main/java/types/Permission.java
C backend/manager/modules/restapi/model/src/main/java/types/Permit.java
C backend/manager/modules/restapi/model/src/main/java/types/PmProxy.java
C backend/manager/modules/restapi/model/src/main/java/types/PortMirroring.java
A backend/manager/modules/restapi/model/src/main/java/types/PowerManagement.java
C backend/manager/modules/restapi/model/src/main/java/types/Product.java
C backend/manager/modules/restapi/model/src/main/java/types/ProfileDetail.java
C backend/manager/modules/restapi/model/src/main/java/types/Property.java
C backend/manager/modules/restapi/model/src/main/java/types/ProxyTicket.java
A backend/manager/modules/restapi/model/src/main/java/types/Qos.java
C backend/manager/modules/restapi/model/src/main/java/types/Quota.java
C backend/manager/modules/restapi/model/src/main/java/types/QuotaClusterLimit.java
C backend/manager/modules/restapi/model/src/main/java/types/QuotaStorageLimit.java
C backend/manager/modules/restapi/model/src/main/java/types/Range.java
C backend/manager/modules/restapi/model/src/main/java/types/Rate.java
C backend/manager/modules/restapi/model/src/main/java/types/ReportedConfiguration.java
C backend/manager/modules/restapi/model/src/main/java/types/ReportedDevice.java
C backend/manager/modules/restapi/model/src/main/java/types/RngDevice.java
C backend/manager/modules/restapi/model/src/main/java/types/Role.java
C backend/manager/modules/restapi/model/src/main/java/types/SchedulingPolicy.java
C backend/manager/modules/restapi/model/src/main/java/types/SchedulingPolicyUnit.java
C backend/manager/modules/restapi/model/src/main/java/types/SeLinux.java
C backend/manager/modules/restapi/model/src/main/java/types/SerialNumber.java
C backend/manager/modules/restapi/model/src/main/java/types/Session.java
C backend/manager/modules/restapi/model/src/main/java/types/SkipIfConnectivityBroken.java
C backend/manager/modules/restapi/model/src/main/java/types/SkipIfSdActive.java
C backend/manager/modules/restapi/model/src/main/java/types/Snapshot.java
C backend/manager/modules/restapi/model/src/main/java/types/Spm.java
C backend/manager/modules/restapi/model/src/main/java/types/Ssh.java
C backend/manager/modules/restapi/model/src/main/java/types/SshPublicKey.java
C backend/manager/modules/restapi/model/src/main/java/types/Sso.java
A backend/manager/modules/restapi/model/src/main/java/types/Statistic.java
C backend/manager/modules/restapi/model/src/main/java/types/StatisticKind.java
C backend/manager/modules/restapi/model/src/main/java/types/StatisticUnit.java
C backend/manager/modules/restapi/model/src/main/java/types/Status.java
C backend/manager/modules/restapi/model/src/main/java/types/Step.java
A backend/manager/modules/restapi/model/src/main/java/types/StorageConnection.java
C
backend/manager/modules/restapi/model/src/main/java/types/StorageConnectionExtension.java
A backend/manager/modules/restapi/model/src/main/java/types/StorageDomain.java
C backend/manager/modules/restapi/model/src/main/java/types/Tag.java
C backend/manager/modules/restapi/model/src/main/java/types/Template.java
C backend/manager/modules/restapi/model/src/main/java/types/TemplateVersion.java
C backend/manager/modules/restapi/model/src/main/java/types/Ticket.java
C backend/manager/modules/restapi/model/src/main/java/types/TimeZone.java
C backend/manager/modules/restapi/model/src/main/java/types/TransparentHugePages.java
C backend/manager/modules/restapi/model/src/main/java/types/UnmanagedNetwork.java
C backend/manager/modules/restapi/model/src/main/java/types/Usb.java
A backend/manager/modules/restapi/model/src/main/java/types/User.java
C backend/manager/modules/restapi/model/src/main/java/types/Value.java
C backend/manager/modules/restapi/model/src/main/java/types/ValueType.java
C backend/manager/modules/restapi/model/src/main/java/types/VcpuPin.java
R backend/manager/modules/restapi/model/src/main/java/types/Vendor.java
C backend/manager/modules/restapi/model/src/main/java/types/Version.java
C backend/manager/modules/restapi/model/src/main/java/types/VirtioScsi.java
C backend/manager/modules/restapi/model/src/main/java/types/VirtualNumaNode.java
C backend/manager/modules/restapi/model/src/main/java/types/Vlan.java
A backend/manager/modules/restapi/model/src/main/java/types/Vm.java
A backend/manager/modules/restapi/model/src/main/java/types/VmBase.java
C backend/manager/modules/restapi/model/src/main/java/types/VmPlacementPolicy.java
A backend/manager/modules/restapi/model/src/main/java/types/VmPool.java
C backend/manager/modules/restapi/model/src/main/java/types/VmSummary.java
C backend/manager/modules/restapi/model/src/main/java/types/VnicProfile.java
C backend/manager/modules/restapi/model/src/main/java/types/VolumeGroup.java
C backend/manager/modules/restapi/model/src/main/java/types/Watchdog.java
C backend/manager/modules/restapi/model/src/main/java/types/Weight.java
178 files changed, 2,925 insertions(+), 5,124 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/46478
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I739d7fa1c07eea37858f12704ed1a7cf1d18266c
Gerrit-PatchSet: 20
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Ori Liel <oliel(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org