api-ref: Correct response body type for show host details
Currently [0] claims that "total_volume_gb" in the response body
is of type int -- but it is actually a string, going off the example
response body as well as the API code, which clearly casts the
value to a str() [1].
[0] https://developer.openstack.org/api-ref/block-storage/v3/index.html?expanded=show-host-details-for-a-project-detail#show-host-details-for-a-project
[1] 95d6d49b01/cinder/api/contrib/hosts.py (L169)
Change-Id: I36486724cc30389d371ec0b18b9b7f96883d193c
This commit is contained in:
parent
95d6d49b01
commit
cf80d437a8
@ -92,9 +92,9 @@ Response
|
|||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- volume_count: total_count
|
- volume_count: total_count_str
|
||||||
- total_volume_gb: totalGigabytesUsed
|
- total_volume_gb: totalGigabytesUsedStr
|
||||||
- total_snapshot_gb: totalSnapshotsUsed
|
- total_snapshot_gb: totalSnapshotsUsedStr
|
||||||
- project: project_id_2
|
- project: project_id_2
|
||||||
- host: host_name_1
|
- host: host_name_1
|
||||||
- snapshot_count: totalSnapshotsUsed
|
- snapshot_count: totalSnapshotsUsed
|
||||||
|
@ -1649,6 +1649,12 @@ total_count:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: integer
|
||||||
|
total_count_str:
|
||||||
|
description: |
|
||||||
|
Total number of volumes.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
totalBackupGigabytesUsed:
|
totalBackupGigabytesUsed:
|
||||||
description: |
|
description: |
|
||||||
The total number of backups gibibytes (GiB) used.
|
The total number of backups gibibytes (GiB) used.
|
||||||
@ -1667,12 +1673,24 @@ totalGigabytesUsed:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: integer
|
||||||
|
totalGigabytesUsedStr:
|
||||||
|
description: |
|
||||||
|
The total number of gibibytes (GiB) used.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
totalSnapshotsUsed:
|
totalSnapshotsUsed:
|
||||||
description: |
|
description: |
|
||||||
The total number of snapshots used.
|
The total number of snapshots used.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: integer
|
||||||
|
totalSnapshotsUsedStr:
|
||||||
|
description: |
|
||||||
|
The total number of snapshots used.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
totalVolumesUsed:
|
totalVolumesUsed:
|
||||||
description: |
|
description: |
|
||||||
The total number of volumes used.
|
The total number of volumes used.
|
||||||
|
@ -95,7 +95,7 @@ Response
|
|||||||
|
|
||||||
- host: host
|
- host: host
|
||||||
- volume_count: total_count
|
- volume_count: total_count
|
||||||
- total_volume_gb: totalGigabytesUsed
|
- total_volume_gb: totalGigabytesUsedStr
|
||||||
- total_snapshot_gb: totalSnapGigabytesUsed
|
- total_snapshot_gb: totalSnapGigabytesUsed
|
||||||
- project: project_id_2
|
- project: project_id_2
|
||||||
- host: host_name_1
|
- host: host_name_1
|
||||||
|
@ -2823,6 +2823,12 @@ totalGigabytesUsed:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: integer
|
||||||
|
totalGigabytesUsedStr:
|
||||||
|
description: |
|
||||||
|
The total number of gibibytes (GiB) used.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
totalSnapGigabytesUsed:
|
totalSnapGigabytesUsed:
|
||||||
description: |
|
description: |
|
||||||
The total number of gibibytes (GiB) used by snapshots.
|
The total number of gibibytes (GiB) used by snapshots.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user