Michael Pasternak has uploaded a new change for review.

Change subject: restapi: make GlusterBricks inherit form BaseResources
......................................................................

restapi: make GlusterBricks inherit form BaseResources

GlusterBricks should inherit form BaseResources according to API collection 
pattern

Change-Id: I6eec579c3eb7079b1c5f4c43168f2a1bd9ac5d0e
Signed-off-by: Michael Pasternak <[email protected]>
---
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
1 file changed, 19 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/51/9351/1

diff --git 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
index d387da5..07cee6d 100644
--- 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
+++ 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
@@ -2750,19 +2750,25 @@
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
-
-  <xs:element name="bricks" type="GlusterBricks"/>
+  
+  <xs:element name="bricks" type="GlusterBricks" />
   <xs:complexType name="GlusterBricks">
-   <xs:sequence>
-      <xs:element name="replica_count" type="xs:unsignedShort" minOccurs="0" 
maxOccurs="1"/>
-      <xs:element name="stripe_count" type="xs:unsignedShort" minOccurs="0" 
maxOccurs="1"/>
-      <xs:element ref="brick" minOccurs="0" maxOccurs="unbounded">
-        <xs:annotation>
-          <xs:appinfo>
-              <jaxb:property name="GlusterBricks"/>
-          </xs:appinfo>
-        </xs:annotation>
-      </xs:element>
-    </xs:sequence>
+    <xs:complexContent>
+      <xs:extension base="BaseResources">
+        <xs:sequence>
+          <xs:element name="replica_count" type="xs:unsignedShort"
+            minOccurs="0" maxOccurs="1" />
+          <xs:element name="stripe_count" type="xs:unsignedShort"
+            minOccurs="0" maxOccurs="1" />
+          <xs:element ref="brick" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:appinfo>
+                <jaxb:property name="GlusterBricks" />
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:extension>
+    </xs:complexContent>
   </xs:complexType>
 </xs:schema>


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6eec579c3eb7079b1c5f4c43168f2a1bd9ac5d0e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to