Michael Pasternak has uploaded a new change for review.

Change subject: sdk: cleanup
......................................................................

sdk: cleanup

Change-Id: I62a42b189f30505a5f68fe759b264c70c0094f11
Signed-off-by: Michael Pasternak <[email protected]>
---
M src/codegen/entrypoint/entrypoint.py
M src/codegen/subcollection/subresource.py
M src/ovirtsdk/api.py
M src/ovirtsdk/infrastructure/brokers.py
4 files changed, 37 insertions(+), 51 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/95/11095/1

diff --git a/src/codegen/entrypoint/entrypoint.py 
b/src/codegen/entrypoint/entrypoint.py
index 8716800..c4c401a 100644
--- a/src/codegen/entrypoint/entrypoint.py
+++ b/src/codegen/entrypoint/entrypoint.py
@@ -172,22 +172,15 @@
         [@param port: port to use (if not specified in url)]
         [@param timeout: request timeout]
         [@param persistent_auth: enable persistent authentication (format 
True|False)]
-        [@param insecure: signals to not demand site trustworthiness for ssl 
enabled 
-                connection (format True|False)]
-        [@param filter: signals if user permission based filtering should be 
turned
-                on/off (format True|False)]
+        [@param insecure: signals to not demand site trustworthiness for ssl 
enabled connection (format True|False)]
+        [@param filter: signals if user permission based filtering should be 
turned on/off (format True|False)]
         [@param debug: debug (format True|False)]
 
-        @raise NoCertificatesError: raised when CA certificate is not provided 
for SSL
-               site (can be disabled using 'insecure=True' argument).
-        @raise UnsecuredConnectionAttemptError: raised when HTTP protocol is 
used in 
-               url against server running HTTPS.
-        @raise ImmutableError: raised on sdk < 3.2 when sdk initiation attempt 
occurred 
-               while sdk instance already exist under the same domain.
-        @raise DisconnectedError: raised when sdk usage attempt occurred after 
it was
-               explicitly disconnected.
-        @raise MissingParametersError: raised when get() method invoked 
without id or
-               name been specified.
+        @raise NoCertificatesError: raised when CA certificate is not provided 
for SSL site (can be disabled using 'insecure=True' argument).
+        @raise UnsecuredConnectionAttemptError: raised when HTTP protocol is 
used in url against server running HTTPS.
+        @raise ImmutableError: raised on sdk < 3.2 when sdk initiation attempt 
occurred while sdk instance already exist under the same domain.
+        @raise DisconnectedError: raised when sdk usage attempt occurred after 
it was explicitly disconnected.
+        @raise MissingParametersError: raised when get() method invoked 
without id or name been specified.
         @raise ConnectionError: raised when any kind of communication error 
occurred.
         @raise RequestError: raised when any kind of oVirt server error 
occurred.
         \"""
diff --git a/src/codegen/subcollection/subresource.py 
b/src/codegen/subcollection/subresource.py
index e5c97dd..827bdd7 100644
--- a/src/codegen/subcollection/subresource.py
+++ b/src/codegen/subcollection/subresource.py
@@ -92,7 +92,7 @@
             "        url = '%(url)s'\n\n" + \
             "        result = 
self.__getProxy().request(method='%(method)s',\n" + \
             "                                           
url=UrlHelper.replace(url, {'{%(parent_resource_name_lc)s:id}' : 
self.parentclass.get_id()}),\n" + \
-#TODO: support action on sub-collection
+# TODO: support action on sub-collection
             "                                           
body=ParseHelper.toXml(%(body_type_lc)s),\n"
             "                                           headers=" + 
headers_map_params_str + ")\n\n"
             "        return result\n\n"
@@ -105,7 +105,7 @@
             "        result = 
self.__getProxy().request(method='%(method)s',\n" + \
                        "                                           
url=UrlHelper.replace(url, " + \
             UrlUtils.generate_url_identifiers_replacments(link,
-                                                           offset="            
                                                        ",
+                                                           offset="            
                                                          ",
                                                            continues=True) + \
             "),\n" + \
             "                                           
body=ParseHelper.toXml(%(body_type_lc)s),\n"
diff --git a/src/ovirtsdk/api.py b/src/ovirtsdk/api.py
index 9843d6b..f4de3bd 100644
--- a/src/ovirtsdk/api.py
+++ b/src/ovirtsdk/api.py
@@ -19,7 +19,7 @@
 ############ GENERATED CODE ############
 ########################################
 
-'''Generated at: 2013-01-16 14:33:14.989279'''
+'''Generated at: 2013-01-16 16:04:08.414277'''
 
 import types
 
@@ -64,22 +64,15 @@
         [@param port: port to use (if not specified in url)]
         [@param timeout: request timeout]
         [@param persistent_auth: enable persistent authentication (format 
True|False)]
-        [@param insecure: signals to not demand site trustworthiness for ssl 
enabled 
-                connection (format True|False)]
-        [@param filter: signals if user permission based filtering should be 
turned
-                on/off (format True|False)]
+        [@param insecure: signals to not demand site trustworthiness for ssl 
enabled connection (format True|False)]
+        [@param filter: signals if user permission based filtering should be 
turned on/off (format True|False)]
         [@param debug: debug (format True|False)]
 
-        @raise NoCertificatesError: raised when CA certificate is not provided 
for SSL
-               site (can be disabled using 'insecure=True' argument).
-        @raise UnsecuredConnectionAttemptError: raised when HTTP protocol is 
used in 
-               url against server running HTTPS.
-        @raise ImmutableError: raised on sdk < 3.2 when sdk initiation attempt 
occurred 
-               while sdk instance already exist under the same domain.
-        @raise DisconnectedError: raised when sdk usage attempt occurred after 
it was
-               explicitly disconnected.
-        @raise MissingParametersError: raised when get() method invoked 
without id or
-               name been specified.
+        @raise NoCertificatesError: raised when CA certificate is not provided 
for SSL site (can be disabled using 'insecure=True' argument).
+        @raise UnsecuredConnectionAttemptError: raised when HTTP protocol is 
used in url against server running HTTPS.
+        @raise ImmutableError: raised on sdk < 3.2 when sdk initiation attempt 
occurred while sdk instance already exist under the same domain.
+        @raise DisconnectedError: raised when sdk usage attempt occurred after 
it was explicitly disconnected.
+        @raise MissingParametersError: raised when get() method invoked 
without id or name been specified.
         @raise ConnectionError: raised when any kind of communication error 
occurred.
         @raise RequestError: raised when any kind of oVirt server error 
occurred.
         """
diff --git a/src/ovirtsdk/infrastructure/brokers.py 
b/src/ovirtsdk/infrastructure/brokers.py
index 94a8b6b..344b544 100644
--- a/src/ovirtsdk/infrastructure/brokers.py
+++ b/src/ovirtsdk/infrastructure/brokers.py
@@ -19,7 +19,7 @@
 ############ GENERATED CODE ############
 ########################################
 
-'''Generated at: 2013-01-13 19:52:39.094040'''
+'''Generated at: 2013-01-16 16:03:56.865198'''
 
 from ovirtsdk.xml import params
 from ovirtsdk.utils.urlhelper import UrlHelper
@@ -201,7 +201,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{cluster:id}' : self.parentclass.get_id(),
-                                                                     
'{glustervolume:id}': self.get_id()}),
+                                                                       
'{glustervolume:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -220,7 +220,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{cluster:id}' : self.parentclass.get_id(),
-                                                                     
'{glustervolume:id}': self.get_id()}),
+                                                                       
'{glustervolume:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -241,7 +241,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{cluster:id}' : self.parentclass.get_id(),
-                                                                     
'{glustervolume:id}': self.get_id()}),
+                                                                       
'{glustervolume:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -262,7 +262,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{cluster:id}' : self.parentclass.get_id(),
-                                                                     
'{glustervolume:id}': self.get_id()}),
+                                                                       
'{glustervolume:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -282,7 +282,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{cluster:id}' : self.parentclass.get_id(),
-                                                                     
'{glustervolume:id}': self.get_id()}),
+                                                                       
'{glustervolume:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -302,7 +302,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{cluster:id}' : self.parentclass.get_id(),
-                                                                     
'{glustervolume:id}': self.get_id()}),
+                                                                       
'{glustervolume:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -1250,7 +1250,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{datacenter:id}' : self.parentclass.get_id(),
-                                                                     
'{storagedomain:id}': self.get_id()}),
+                                                                       
'{storagedomain:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -1269,7 +1269,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{datacenter:id}' : self.parentclass.get_id(),
-                                                                     
'{storagedomain:id}': self.get_id()}),
+                                                                       
'{storagedomain:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -3197,7 +3197,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{host:id}' : self.parentclass.get_id(),
-                                                                     
'{nic:id}': self.get_id()}),
+                                                                       
'{nic:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -3217,7 +3217,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{host:id}' : self.parentclass.get_id(),
-                                                                     
'{nic:id}': self.get_id()}),
+                                                                       
'{nic:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -4840,7 +4840,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{storagedomain:id}' : self.parentclass.get_id(),
-                                                                     
'{template:id}': self.get_id()}),
+                                                                       
'{template:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -4971,7 +4971,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{storagedomain:id}' : self.parentclass.get_id(),
-                                                                     
'{vm:id}': self.get_id()}),
+                                                                       
'{vm:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -5544,7 +5544,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{template:id}' : self.parentclass.get_id(),
-                                                                     
'{disk:id}': self.get_id()}),
+                                                                       
'{disk:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -7179,7 +7179,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{vm:id}' : self.parentclass.get_id(),
-                                                                     
'{disk:id}': self.get_id()}),
+                                                                       
'{disk:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -7198,7 +7198,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{vm:id}' : self.parentclass.get_id(),
-                                                                     
'{disk:id}': self.get_id()}),
+                                                                       
'{disk:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -7220,7 +7220,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{vm:id}' : self.parentclass.get_id(),
-                                                                     
'{disk:id}': self.get_id()}),
+                                                                       
'{disk:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -7633,7 +7633,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{vm:id}' : self.parentclass.get_id(),
-                                                                     
'{nic:id}': self.get_id()}),
+                                                                       
'{nic:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -7652,7 +7652,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{vm:id}' : self.parentclass.get_id(),
-                                                                     
'{nic:id}': self.get_id()}),
+                                                                       
'{nic:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 
@@ -8190,7 +8190,7 @@
 
         result = self.__getProxy().request(method='POST',
                                            url=UrlHelper.replace(url, 
{'{vm:id}' : self.parentclass.get_id(),
-                                                                     
'{snapshot:id}': self.get_id()}),
+                                                                       
'{snapshot:id}': self.get_id()}),
                                            body=ParseHelper.toXml(action),
                                            
headers={"Correlation-Id":correlation_id})
 


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

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