summaryrefslogtreecommitdiff
path: root/heatclient/v1/events.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove sixTakashi Kajinami2022-05-091-1/+1
| | | | | | | This library no longer supports Python 2, thus usage of six can be removed. Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6
* Update stack_id clearify for heat client functionsricolin2019-08-031-2/+2
| | | | | | | | | | most of our client major function require stack_id. We should provide more specific information (at lest in function description) to clearify that it's allowed to feed in stack name to `stack_id` too. For example, both `heat.stacks.get($Stack_UUID)` and `heat.stacks.get($Stack_Name)` works. Change-Id: I4428097140e0391a77679f5c69e00966f249efd7
* Merge "Replace six.iteritems() with .items()"Jenkins2017-06-121-2/+1
|\
| * Replace six.iteritems() with .items()M V P Nitesh2017-03-311-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 1.As mentioned in [1], we should avoid using six.iteritems to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will more readable. 2.In py2, the performance about list should be negligible, see the link [2]. [1] https://wiki.openstack.org/wiki/Python3 [2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html Change-Id: I3913e8876b34e112140788d7a405da6eedfb5f29
* | Don't encode path separatorsrabi2017-05-091-4/+4
|/ | | | | | | | | | Encoding the path separators results in urls refused by by apache with 404 unless AllowEncodedSlashes is turned on, which is not the default. The existing encoding of path separators seems unnecessary. Change-Id: I3b77aafc6104119503363e5db36b0379964daba5
* Move required modules from oslo-incubatorrabi2016-11-121-1/+1
| | | | | | | | | | | | Move the required module to heatclient/common. - heatclient/openstack/common/apiclient/base.py It also moves some required functions and exceptions from heatclient/openstack/common/cliutils.py and heatclient/openstack/common/exceptions.py. Change-Id: I68704c7fab9417492d8390ad05a9797f78d46907
* Implement client side of event list --nested-depthSteve Baker2016-06-101-0/+3
| | | | | | | | | | | | | | | | | This change does the following: - cleans up the usage of get_events so that marker and limit are only specified in their dedicated arguments, not also in event_args (also, specifying only in event_args still works) - first attempts server-side nested_depth support - falls back to the old recursive approach if the response data lacks a link with the ref root_stack Since there is a fallback for old heat APIs, the client change can land before or after the heat change I27e1ffb770e00a7f929c081b2a505e2007f5d584 Change-Id: I43d12ec61ec359222184f07c170de3c97481f1ba Closes-Bug: #1588561
* Enable pep8 H405 testsricolin2015-11-161-0/+1
| | | | | | | Enabled H405 multi line docstring summary not separated with an empty line in tox testing. Change-Id: I89d063133154ae343315872b677fa06cc901cf3b
* Move usage methods *_request to get/post/etcPeter Razumovsky2015-06-091-2/+4
| | | | | | | | HTTPClient has methods get/post/put and others, which use json_request and raw_request, but other code uses requests method instead of them. Change-Id: I74ee34430afdae17f83ccdc877cc882f94651bce
* Migrate to new oslo_xxx namespacetengqm2015-03-231-2/+1
| | | | | | | | This patch migrates the namespace of oslo packages from oslo.foobar to oslo_foobar. The oslo_incubator code need to be resynced, which will be submitted in another patch. Change-Id: Id77207750556b71f20797a0ee6f2cafd62ea30e1
* Convert strutils to oslo.utils.encodeutilsSteven Hardy2014-11-121-3/+4
| | | | | | | | | | | | | | | Convert the encode/decode functions from oslo-incubator to use oslo.utils encodeutils, as the incubator functions are now deprecated. Also syncs oslo-incubator to 62394a3 to purge usage of strutils from the openstack/common modules. Note includes oslo fix https://review.openstack.org/#/c/133290/ which we need or the python3 tests won't pass. Change-Id: I630fe3f3ce14ae745a8417bfe6552acd31341c9c Partial-Bug: #1380629
* Implement events pagination, sorting and filteringhuangtianhua2014-07-231-4/+17
| | | | | | | | It supports pagination for events-list. Implements blueprint events-pagination-heatclient Change-Id: I11ca89b0a203435ba3793d061d7d06cb458d61eb
* Remove dependent module py3kcompatllg82122014-03-181-8/+7
| | | | | | | | | | | Module py3kcompat was removed from oslo-incubator, we can use six directly. * Sync commit of removing py3kcompat from oslo * use six replace usage of py3kcompat Change-Id: If0f9397588b2180fe198e804cbbb5b5c8420fe76 Closes-Bug: #1280033
* Update apiclient.base and reuse new functionalAndrey Kurilin2014-02-191-4/+0
| | | | | | | | | | | | | Module apiclient.base has several updates in oslo, so we need to sync latest code to have ability to reuse new functional. Updates in oslo which related to usage of apiclient.base in heatclient: - I491f9b54c7074546cf738c6150666bfcc3966a78 - I1db6c12a1f798de7f7fafd0c34fb0ef523610153 Related to bp common-client-library-2 Change-Id: I509d6efb0c8eef87ba2e4aa02ebb44ba149a9860
* Reuse BaseManager and Resource from osloAndrey Kurilin2013-12-161-2/+6
| | | | | | | | | In the process of unification of the clients code we should reuse common functionality from Oslo. Related to blueprint common-client-library-2 Change-Id: I44a1344e3eb40220d8b795fd05e44623195116a2
* Fix i18n error when resource-name is non-englishchenxiao2013-11-251-4/+11
| | | | | | | | | | | | | When executing commands about event and resource with non-english resource-name, error "'ascii' codec can't decode byte...." will occur. Root cause is that heatclient can not generate a correct encoded url. This Patch will use quote and safe_encode functions to implement a url-encode process. Closes-Bug: #1249234 Change-Id: I4261fdaf6ccc60aebdb9df236f4eedce0f9baa14
* Replace OpenStack LLC with OpenStack FoundationZhiQiang Fan2013-09-201-1/+1
| | | | | Change-Id: I8f2697ca99192078d5db2adb4db98287520d9895 Fixes-Bug: #1214176
* Fix all the pep8 E* and F* errors.Angus Salkeld2013-06-271-3/+4
| | | | Change-Id: I34bab949e4795073544c64c9796237c60ace4d65
* Cleaned up code in anticipation of flake8.Monty Taylor2013-05-181-2/+1
| | | | Change-Id: Id710edb1a82110653e783fed13cd589cab75f38a
* Support for events list and detailsSteve Baker2012-11-281-0/+64
This also replaces resource_id with resource_name in the resources API. Change-Id: Ia5ccec5d94fb8106be2dfe89976db0fceeb73b58