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
3 files changed, 17 insertions(+), 31 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/81/12481/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.
         """


--
To view, visit http://gerrit.ovirt.org/12481
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: sdk_3.2
Gerrit-Owner: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to