Latest commits for file openstackclient/api/api.py https://opendev.org/openstack/python-openstackclient/branch/master/openstackclient/api/api.py Client for OpenStack services Thu, 01 Jan 2026 07:11:41 +0000 pre-commit: Migrate pyupgrade to ruff https://opendev.org/openstack/python-openstackclient/commit/f98006ca9d15ea2a8816887bed26d5d0e28180dc pre-commit: Migrate pyupgrade to ruff Change-Id: Ic50d2a5e0bc9dcdfe29f382607135cab510cd396 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> ]]> Stephen Finucane f98006ca9d15ea2a8816887bed26d5d0e28180dc Thu, 12 Sep 2024 18:08:23 +0100 pre-commit: Migrate from black to ruff format https://opendev.org/openstack/python-openstackclient/commit/519fa7aabc10d4c2383ba6fe7801358078ce46fc pre-commit: Migrate from black to ruff format Change-Id: I28ca7d31d30272002799f3e2832105dc67c60538 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> ]]> Stephen Finucane 519fa7aabc10d4c2383ba6fe7801358078ce46fc Thu, 29 Aug 2024 15:55:39 +0100 Drop direct dependency on simplejson https://opendev.org/openstack/python-openstackclient/commit/cf6dd62dd14bb3e234b6e9f6ed716db1154e187f Drop direct dependency on simplejson The simplejson library is not included by the requirements but it was directly imported. Drop the direct inclusion and use the alias in the requests library to avoid ImportError caused by missing simplejson in the environment. Also fix the missing requests library in requirements. Change-Id: I8713f45c5f2717cc53ba043aaeb479e72f641f78 Takashi Kajinami cf6dd62dd14bb3e234b6e9f6ed716db1154e187f Mon, 20 May 2024 09:59:32 +0900 trivial: Prepare for pyupgrade pre-commit hook https://opendev.org/openstack/python-openstackclient/commit/c5b772db76c071e493a81105c7d8c0def08b2264 trivial: Prepare for pyupgrade pre-commit hook This change is entirely automated save for the update of some mocks from 'io.open' to '__builtins__.open'). We are keeping this change separate from addition of the actual hook so that we can ignore the commit later. Change-Id: I0a9d8736632084473b57b57b693322447d7be519 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> ]]> Stephen Finucane c5b772db76c071e493a81105c7d8c0def08b2264 Tue, 23 Apr 2024 12:24:23 +0100 Blacken openstackclient.api https://opendev.org/openstack/python-openstackclient/commit/a6f81a736c503e45e1fca9fe49f9f46b9ced7cb8 Blacken openstackclient.api Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I1df5bc4c35f02147fe5ac5b4073f0e01e7d51c2f Signed-off-by: Stephen Finucane <sfinucan@redhat.com> ]]> Stephen Finucane a6f81a736c503e45e1fca9fe49f9f46b9ced7cb8 Wed, 10 May 2023 10:51:30 +0100 Raise flake8-import-order version to latest https://opendev.org/openstack/python-openstackclient/commit/69db9fe73c81bc6341c37948365163902b6437ee Raise flake8-import-order version to latest We had this library capped at a release that is a few years old. Now that we have dropped py2 testing, we can pick up the latest version. This uncovered a few things to clean up. Mostly the fact that mock is now a part of the StdLib unittest since Python 3.3. Change-Id: I27484dd4c25378413ff16e97a35a1a46062357bc Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com> ]]> Sean McGinnis 69db9fe73c81bc6341c37948365163902b6437ee Fri, 10 Jan 2020 14:21:47 -0600 trivial: remove commented-out code https://opendev.org/openstack/python-openstackclient/commit/a4fcae2ac2375191daea14fe524f0175d4c3300d trivial: remove commented-out code These comments have existed from the beginning. But they seem to be meaningless. Change-Id: Ic38272ecfb321d77219d477634e9e29b968e7f00 Chen a4fcae2ac2375191daea14fe524f0175d4c3300d Fri, 28 Sep 2018 19:20:07 +0800 Fix missing i18n supports in api/ and shell.py https://opendev.org/openstack/python-openstackclient/commit/f25a3519c525cd8f3ff04c841b63c10f640c27f6 Fix missing i18n supports in api/ and shell.py Change-Id: I28d79d7f44b27d2b600dedad2a3601180650ad83 Partial-bug: #1574965 Huanxuan Ao f25a3519c525cd8f3ff04c841b63c10f640c27f6 Tue, 14 Jun 2016 11:03:56 -0500 osc-lib: exceptions https://opendev.org/openstack/python-openstackclient/commit/d20c863ebc11cecaaefe043e615b2fb4f5f26063 osc-lib: exceptions Use osc-lib directly for exceptions. Leave openstackclient.common.exceptions for deprecation period. Change-Id: Iea3e862302372e1b31ccd27f69db59b4953ca828 Dean Troyer d20c863ebc11cecaaefe043e615b2fb4f5f26063 Mon, 13 Jun 2016 10:50:01 -0500 Fix typos in docstrings and comments https://opendev.org/openstack/python-openstackclient/commit/67a8947ea233584b41ee5dfb874a88fc43bcf4e9 Fix typos in docstrings and comments Change-Id: Ic2dc057dca87212f715970f8325956c42f62ea9f Dao Cong Tien 67a8947ea233584b41ee5dfb874a88fc43bcf4e9 Wed, 06 Apr 2016 10:30:39 +0700 Use instanceof instead of type https://opendev.org/openstack/python-openstackclient/commit/11a8f911affe10bacce41ad3474a28aff3417ec3 Use instanceof instead of type Adjusted conditional statements to use instanceof when comparing variables. Instanceof supports inheritance type checking better than type. Change-Id: I4ee0004934dc2322d43ef07e797a6811e39a812c Closes-Bug: 1548530 Brandon Palm 11a8f911affe10bacce41ad3474a28aff3417ec3 Mon, 22 Feb 2016 16:23:23 -0600 Switch to ksa Session https://opendev.org/openstack/python-openstackclient/commit/bf090c69c2e055285fc4fe45af0a5f66d6dc7759 Switch to ksa Session * Change session imports to keystoneauth1 * Change keystoneclient.exception imports to keystoneauth1 * Change exceptions raised from internal API from keystoneclient to openstack.common Change-Id: I046d89f561d6fe04baae53726f9749d2e7fe2056 Dean Troyer bf090c69c2e055285fc4fe45af0a5f66d6dc7759 Wed, 02 Dec 2015 01:55:14 +0000 Begin low-level API for Image v1 and v2 https://opendev.org/openstack/python-openstackclient/commit/1ecf1bee2d5c1566533cdd8fad99733ea8336aa8 Begin low-level API for Image v1 and v2 image list for v1 and v2: * Add --public|--private to command parsers * Implement local public/private filtering for v1 image_list() * Pass public/private filter to server for v2 image_list() Change-Id: Ie7c24ea2d1bf2b3b1b7fa342eb45fee45894634d Dean Troyer 1ecf1bee2d5c1566533cdd8fad99733ea8336aa8 Tue, 20 Jan 2015 17:01:23 -0600 Don't import form keystoneclient.openstack.common https://opendev.org/openstack/python-openstackclient/commit/25a7c1f27f1ec83edfe1e33e83116ca3eda3ba94 Don't import form keystoneclient.openstack.common The keystoneclient.openstack.common directory is where we sync files from oslo incubator. It is not a public directory and should not be being consumed by openstackclient. Change-Id: I011bb95c2c824e2dbc4b822ca922ae77b8d9b955 Jamie Lennox 25a7c1f27f1ec83edfe1e33e83116ca3eda3ba94 Wed, 17 Dec 2014 18:17:56 +1000 Enhance the theming for modules page https://opendev.org/openstack/python-openstackclient/commit/6dc128636e6161851272d534d47dfbd422f65161 Enhance the theming for modules page Also fixes a few small docstring syntax errors Change-Id: I85eb968e32c1191cf5d60d02deff2ab7f3291074 Steve Martinelli 6dc128636e6161851272d534d47dfbd422f65161 Tue, 18 Nov 2014 22:07:57 -0500 Add low-level API base class https://opendev.org/openstack/python-openstackclient/commit/e3b9b9658805f274283a498ed82014dce3833fe3 Add low-level API base class Adds the foundation of a low-level REST API client. This is the final prep stage in the conversion of the object-store commands from the old restapi interface to the keystoneclient.session-based API. * api.api.BaseAPI holds the common operations Change-Id: I8fba980e3eb2d787344f766507a9d0dae49dcadf Dean Troyer e3b9b9658805f274283a498ed82014dce3833fe3 Mon, 29 Sep 2014 12:32:45 -0500