api: Remove dead fields from flavors response

Change-Id: I65be4f2e522c9f73a28b8837d7937a371d3e73d3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-06-20 15:10:19 +01:00
parent e73a0bc84b
commit b95a2c5219
27 changed files with 831 additions and 35 deletions
+10 -11
View File
@@ -46,9 +46,9 @@ Response
- description: flavor_description_resp
- links: links
**Example List Flavors (v2.55)**
**Example List Flavors (v2.102)**
.. literalinclude:: ../../doc/api_samples/flavors/v2.55/flavors-list-resp.json
.. literalinclude:: ../../doc/api_samples/flavors/v2.102/flavors-list-resp.json
:language: javascript
Create Flavor
@@ -92,9 +92,9 @@ Request
- rxtx_factor: flavor_rxtx_factor_in
- os-flavor-access:is_public: flavor_is_public_in
**Example Create Flavor (v2.55)**
**Example Create Flavor (v2.102)**
.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.55/flavor-create-post-req.json
.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.102/flavor-create-post-req.json
:language: javascript
Response
@@ -117,10 +117,9 @@ Response
- os-flavor-access:is_public: flavor_is_public
- extra_specs: extra_specs_2_61
**Example Create Flavor (v2.102)**
**Example Create Flavor (v2.75)**
.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.75/flavor-create-post-resp.json
.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.102/flavor-create-post-resp.json
:language: javascript
List Flavors With Details
@@ -168,9 +167,9 @@ Response
- os-flavor-access:is_public: flavor_is_public
- extra_specs: extra_specs_2_61
**Example List Flavors With Details (v2.75)**
**Example List Flavors With Details (v2.102)**
.. literalinclude:: ../../doc/api_samples/flavors/v2.75/flavors-detail-resp.json
.. literalinclude:: ../../doc/api_samples/flavors/v2.102/flavors-detail-resp.json
:language: javascript
Show Flavor Details
@@ -211,9 +210,9 @@ Response
- os-flavor-access:is_public: flavor_is_public
- extra_specs: extra_specs_2_61
**Example Show Flavor Details (v2.75)**
**Example Show Flavor Details (v2.102)**
.. literalinclude:: ../../doc/api_samples/flavors/v2.75/flavor-get-resp.json
.. literalinclude:: ../../doc/api_samples/flavors/v2.102/flavor-get-resp.json
:language: javascript
Update Flavor Description
+3
View File
@@ -3059,6 +3059,7 @@ flavor_disabled:
This is an artifact of the legacy v2 API and will always be set to
``false``. There is currently no way to disable a flavor and set this to
``true``.
max_version: 2.101
flavor_disk:
in: body
required: true
@@ -3221,6 +3222,7 @@ flavor_rxtx_factor:
in: body
required: true
type: float
max_version: 2.101
flavor_rxtx_factor_in:
description: |
The receive / transmit factor (as a float) that will be set on
@@ -3229,6 +3231,7 @@ flavor_rxtx_factor_in:
in: body
required: false
type: float
max_version: 2.101
flavor_server:
description: |
Before microversion 2.47 this contains the ID and links for the flavor