Juan Hernandez has uploaded a new change for review. Change subject: sdk: Regenerate against the latest API ......................................................................
sdk: Regenerate against the latest API This patch regenerates the SDK using the latest API obtained from the engine built from commit 410f40b. Change-Id: I2405dbcf6f06c9256a30a7e9fa3d7a4c98d8a39e Signed-off-by: Juan Hernandez <[email protected]> --- M Makefile M generator/src/main/resources/rsdl.xml M setup.py M src/ovirtsdk/infrastructure/brokers.py 4 files changed, 62 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/08/38308/1 diff --git a/Makefile b/Makefile index fc48e35..2911107 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: rpm -rpmrelease:=0.9$(rpmsuffix) +rpmrelease:=0.10$(rpmsuffix) rpmversion=3.6.0.0 RPMTOP=$(shell bash -c "pwd -P")/rpmtop SPEC=ovirt-engine-sdk-python.spec diff --git a/generator/src/main/resources/rsdl.xml b/generator/src/main/resources/rsdl.xml index ae776ef..a106a00 100644 --- a/generator/src/main/resources/rsdl.xml +++ b/generator/src/main/resources/rsdl.xml @@ -6359,6 +6359,7 @@ <parameter required="false" type="xs:boolean" context="matrix"> <name>force</name> <value>true|false</value> + <deprecated>true</deprecated> </parameter> </parameters_set> </url> @@ -7753,6 +7754,37 @@ <type>Permission</type> </response> </link> + <link href="hosts/{host:id}/refreshcapabilities" rel="refreshcapabilities"> + <description>refresh the capabilities of the host</description> + <request> + <http_method>POST</http_method> + <headers> + <header required="true"> + <name>Content-Type</name> + <value>application/xml|json</value> + </header> + <header required="false"> + <name>Correlation-Id</name> + <value>any string</value> + </header> + </headers> + <body> + <type>Action</type> + <parameters_set> + <description>refresh the capabilities of the host</description> + <parameter required="false" type="xs:boolean"> + <name>action.async</name> + </parameter> + <parameter required="false" type="xs:long"> + <name>action.grace_period.expiry</name> + </parameter> + </parameters_set> + </body> + </request> + <response> + <type>Action</type> + </response> + </link> <link href="hosts/{host:id}/statistics" rel="get"> <description>get the statistics for the host</description> <request> diff --git a/setup.py b/setup.py index 4930664..b169fdb 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ version_info = { 'name': 'ovirt-engine-sdk-python', - 'version': '3.6.0.0preview9', + 'version': '3.6.0.0preview10', 'description': 'A SDK interface to oVirt Virtualization', 'author': 'Michael Pasternak', 'author_email': '[email protected]', diff --git a/src/ovirtsdk/infrastructure/brokers.py b/src/ovirtsdk/infrastructure/brokers.py index 79462bb..f677047 100644 --- a/src/ovirtsdk/infrastructure/brokers.py +++ b/src/ovirtsdk/infrastructure/brokers.py @@ -19,7 +19,7 @@ ############ GENERATED CODE ############ ######################################## -'''Generated at: 2015-02-27 16:20:53.000749''' +'''Generated at: 2015-03-03 09:43:58.000461''' from ovirtsdk.xml import params @@ -13058,6 +13058,33 @@ return result + def refreshcapabilities(self, action=params.Action(), correlation_id=None): + ''' + @type Action: + + [@param action.async: boolean] + [@param action.grace_period.expiry: long] + [@param correlation_id: any string] + + @return Action: + ''' + + url = '/hosts/{host:id}/refreshcapabilities' + + result = self.__getProxy().request( + method='POST', + url=UrlHelper.replace( + url, + { + '{host:id}': self.get_id(), + } + ), + body=ParseHelper.toXml(action), + headers={"Correlation-Id":correlation_id} + ) + + return result + def unregisteredstoragedomainsdiscover(self, action=params.Action(), correlation_id=None): ''' @type Action: -- To view, visit https://gerrit.ovirt.org/38308 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2405dbcf6f06c9256a30a7e9fa3d7a4c98d8a39e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
