Juan Hernandez has uploaded a new change for review.

Change subject: restapi: Split lines in cluster update metadata
......................................................................

restapi: Split lines in cluster update metadata

The RSDL metadata for the cluster update uses very long lines with
multiple elements per name, making it hard to read and add new elements.
This patch reformats it to use multiple lines and one element per line.

Change-Id: If48ff0b3455118d0105aec590840a769fbf048cb
Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com>
---
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
1 file changed, 33 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/98/42098/1

diff --git 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
index 3047857..8f78e5d 100644
--- 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
+++ 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
@@ -1249,14 +1249,39 @@
       parameterType: Cluster
       signatures:
       - mandatoryArguments: {}
-        optionalArguments: {cluster.name: 'xs:string', cluster.description: 
'xs:string', cluster.comment: 'xs:string', cluster.data_center.id: 'xs:string', 
cluster.cpu.id: 'xs:string', cluster.version.major: 'xs:int', 
cluster.version.minor: 'xs:int',
-        cluster.memory_policy.overcommit.percent: 'xs:double', 
cluster.memory_policy.transparent_hugepages.enabled: 'xs:boolean', 
cluster.scheduling_policy.policy--DEPRECATED: 'xs:string',
-        cluster.scheduling_policy.thresholds.low--DEPRECATED: 'xs:int', 
cluster.scheduling_policy.thresholds.high--DEPRECATED: 'xs:int', 
cluster.scheduling_policy.thresholds.duration--DEPRECATED: 'xs:int',
-        cluster.scheduling_policy.id: 'xs:string', 
cluster.scheduling_policy.properties.property--COLLECTION: {property.name: 
'xs:string', property.value: 'xs:string'},
-        cluster.error_handling.on_error: 'xs:string', cluster.virt_service: 
'xs:boolean', cluster.gluster_service: 'xs:boolean', cluster.threads_as_cores: 
'xs:boolean', cluster.tunnel_migration: 'xs:boolean', 
cluster.ballooning_enabled: 'xs:boolean',
-        cluster.cpu.architecture: 'xs:string', cluster.display.proxy: 
'xs:string', cluster.ksm.enabled: 'xs:boolean',
-        cluster.fencing_policy.enabled: 'xs:boolean', 
cluster.fencing_policy.skip_if_sd_active.enabled: 'xs:boolean', 
cluster.fencing_policy.skip_if_connectivity_broken.enabled: 'xs:boolean', 
cluster.fencing_policy.skip_if_connectivity_broken.threshold: 'xs:int', 
cluster.maintenance_reason_required: 'xs:boolean',
-        cluster.management_network.id|name: 'xs:string'}
+        optionalArguments:
+          cluster.name: xs:string
+          cluster.description: xs:string
+          cluster.comment: xs:string
+          cluster.data_center.id: xs:string
+          cluster.cpu.id: xs:string
+          cluster.version.major: xs:int
+          cluster.version.minor: xs:int,
+          cluster.memory_policy.overcommit.percent: xs:double
+          cluster.memory_policy.transparent_hugepages.enabled: xs:boolean
+          cluster.scheduling_policy.policy--DEPRECATED: xs:string
+          cluster.scheduling_policy.thresholds.low--DEPRECATED: xs:int
+          cluster.scheduling_policy.thresholds.high--DEPRECATED: xs:int
+          cluster.scheduling_policy.thresholds.duration--DEPRECATED: xs:int
+          cluster.scheduling_policy.id: xs:string
+          cluster.scheduling_policy.properties.property--COLLECTION:
+            property.name: xs:string
+            property.value: xs:string
+          cluster.error_handling.on_error: xs:string
+          cluster.virt_service: xs:boolean
+          cluster.gluster_service: xs:boolean
+          cluster.threads_as_cores: xs:boolean
+          cluster.tunnel_migration: xs:boolean
+          cluster.ballooning_enabled: xs:boolean
+          cluster.cpu.architecture: xs:string
+          cluster.display.proxy: xs:string
+          cluster.ksm.enabled: xs:boolean
+          cluster.fencing_policy.enabled: xs:boolean
+          cluster.fencing_policy.skip_if_sd_active.enabled: xs:boolean
+          cluster.fencing_policy.skip_if_connectivity_broken.enabled: 
xs:boolean
+          cluster.fencing_policy.skip_if_connectivity_broken.threshold: xs:int
+          cluster.maintenance_reason_required: xs:boolean
+          cluster.management_network.id|name: xs:string
         description: update the specified cluster in the system. The 
capabilities like virt service, cluster service, tarnsparent huge pages etc can 
be changed.
 - name: /clusters|rel=add
   description: add a new cluster to the system


-- 
To view, visit https://gerrit.ovirt.org/42098
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If48ff0b3455118d0105aec590840a769fbf048cb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
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

Reply via email to