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
|
||||
|
||||
- volume_count: total_count
|
||||
- total_volume_gb: totalGigabytesUsed
|
||||
- total_snapshot_gb: totalSnapshotsUsed
|
||||
- volume_count: total_count_str
|
||||
- total_volume_gb: totalGigabytesUsedStr
|
||||
- total_snapshot_gb: totalSnapshotsUsedStr
|
||||
- project: project_id_2
|
||||
- host: host_name_1
|
||||
- snapshot_count: totalSnapshotsUsed
|
||||
|
@ -1649,6 +1649,12 @@ total_count:
|
||||
in: body
|
||||
required: true
|
||||
type: integer
|
||||
total_count_str:
|
||||
description: |
|
||||
Total number of volumes.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
totalBackupGigabytesUsed:
|
||||
description: |
|
||||
The total number of backups gibibytes (GiB) used.
|
||||
@ -1667,12 +1673,24 @@ totalGigabytesUsed:
|
||||
in: body
|
||||
required: true
|
||||
type: integer
|
||||
totalGigabytesUsedStr:
|
||||
description: |
|
||||
The total number of gibibytes (GiB) used.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
totalSnapshotsUsed:
|
||||
description: |
|
||||
The total number of snapshots used.
|
||||
in: body
|
||||
required: true
|
||||
type: integer
|
||||
totalSnapshotsUsedStr:
|
||||
description: |
|
||||
The total number of snapshots used.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
totalVolumesUsed:
|
||||
description: |
|
||||
The total number of volumes used.
|
||||
|
@ -95,7 +95,7 @@ Response
|
||||
|
||||
- host: host
|
||||
- volume_count: total_count
|
||||
- total_volume_gb: totalGigabytesUsed
|
||||
- total_volume_gb: totalGigabytesUsedStr
|
||||
- total_snapshot_gb: totalSnapGigabytesUsed
|
||||
- project: project_id_2
|
||||
- host: host_name_1
|
||||
|
@ -2823,6 +2823,12 @@ totalGigabytesUsed:
|
||||
in: body
|
||||
required: true
|
||||
type: integer
|
||||
totalGigabytesUsedStr:
|
||||
description: |
|
||||
The total number of gibibytes (GiB) used.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
totalSnapGigabytesUsed:
|
||||
description: |
|
||||
The total number of gibibytes (GiB) used by snapshots.
|
||||
|
Loading…
x
Reference in New Issue
Block a user