Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli-cmd/block-storage/src/v3/group_type/group_spec/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ impl GroupSpecsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::GroupSpecResponse>(data.clone())?;
op.output_list::<response::list::GroupSpecResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
5 changes: 2 additions & 3 deletions cli-cmd/block-storage/src/v3/host/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ impl HostCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;

op.output_single::<response::get::HostResponse>(data.clone())?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;
op.output_list::<response::get::HostResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/block-storage/src/v3/snapshot/metadata/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ impl MetadatasCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::MetadataResponse>(data.clone())?;
op.output_list::<response::list::MetadataResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/block-storage/src/v3/type/encryption/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ impl EncryptionsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::EncryptionResponse>(data.clone())?;
op.output_list::<response::list::EncryptionResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/block-storage/src/v3/type/extra_spec/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ impl ExtraSpecsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::ExtraSpecResponse>(data.clone())?;
op.output_list::<response::list::ExtraSpecResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/block-storage/src/v3/volume/metadata/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ impl MetadatasCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::MetadataResponse>(data.clone())?;
op.output_list::<response::list::MetadataResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/compute/src/v2/flavor/extra_spec/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ impl ExtraSpecsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::ExtraSpecResponse>(data.clone())?;
op.output_list::<response::list::ExtraSpecResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
5 changes: 3 additions & 2 deletions cli-cmd/compute/src/v2/hypervisor/server/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ impl ServerCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: Vec<serde_json::Value> = ep.query_async(client).await?;
op.output_list::<response::get_21::ServerResponse>(data.clone())?;
let data: serde_json::Value = ep.query_async(client).await?;

op.output_single::<response::get_21::ServerResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/compute/src/v2/instance_usage_audit_log/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ impl InstanceUsageAuditLogsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::InstanceUsageAuditLogResponse>(data.clone())?;
op.output_list::<response::list::InstanceUsageAuditLogResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/compute/src/v2/server/ip/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ impl IpsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::IpResponse>(data.clone())?;
op.output_list::<response::list::IpResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/compute/src/v2/server/metadata/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ impl MetadatasCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::MetadataResponse>(data.clone())?;
op.output_list::<response::list::MetadataResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ impl VersionCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: Vec<serde_json::Value> = ep.query_async(client).await?;
op.output_list::<response::get::VersionResponse>(data.clone())?;
let data: serde_json::Value = ep.query_async(client).await?;

op.output_single::<response::get::VersionResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
6 changes: 4 additions & 2 deletions cli-cmd/dns/src/v2/zone/share/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,11 @@ impl SharesCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = paged(ep, Pagination::Limit(self.max_items))
.query_async(client)
.await?;

op.output_single::<response::list::ShareResponse>(data.clone())?;
op.output_list::<response::list::ShareResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/identity/src/v3/domain/config/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ impl ConfigsCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::ConfigResponse>(data.clone())?;
op.output_list::<response::list::ConfigResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ impl IdentityProviderCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;

op.output_single::<response::get::IdentityProviderResponse>(data.clone())?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;
op.output_list::<response::get::IdentityProviderResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/identity/src/v3/role/imply/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ impl ImpliesCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::ImplyResponse>(data.clone())?;
op.output_list::<response::list::ImplyResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
5 changes: 2 additions & 3 deletions cli-cmd/placement/src/v1/resource_provider/aggregate/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ impl AggregateCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;

op.output_single::<response::list::AggregateResponse>(data.clone())?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;
op.output_list::<response::list::AggregateResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/placement/src/v1/resource_provider/inventory/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ impl InventoriesCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::InventoryResponse>(data.clone())?;
op.output_list::<response::list::InventoryResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
5 changes: 2 additions & 3 deletions cli-cmd/placement/src/v1/resource_provider/trait/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ impl TraitCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;

op.output_single::<response::list::TraitResponse>(data.clone())?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;
op.output_list::<response::list::TraitResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions cli-cmd/placement/src/v1/usage/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ impl UsagesCommand {
.build()
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;

let data: serde_json::Value = ep.query_async(client).await?;
let data: Vec<serde_json::Value> = ep.query_async(client).await?;

op.output_single::<response::list::UsageResponse>(data.clone())?;
op.output_list::<response::list::UsageResponse>(data.clone())?;
// Show command specific hints
op.show_command_hint()?;
Ok(())
Expand Down
88 changes: 54 additions & 34 deletions openstack_types/data/block-storage/v3.71.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14649,42 +14649,62 @@ components:
A OpenStack Block Storage host.
items:
additionalProperties: false
description: A host object.
properties:
resource:
additionalProperties: false
properties:
host:
description: The name of the host that hosts the storage
backend, may take the format of host@backend.
type: string
project:
description: The Project ID which the host resource belongs
to. In the summary resource, the value is (total).
type: string
snapshot_count:
description: The total number of snapshots used.
type: string
total_snapshot_gb:
description: The total number of gibibytes (GiB) used by
snapshots.
type: string
total_volume_gb:
description: The total number of gibibytes (GiB) used.
type: string
volume_count:
description: Total number of volumes.
type: string
required:
- host
- project
- snapshot_count
- total_snapshot_gb
- total_volume_gb
- volume_count
type: object
host_name:
description: |-
The name of the host that hosts the storage backend,
may take the format of `host@backend`.
type: string
last-update:
description: |-
The date and time when the resource was updated.

The date and time stamp format is [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601):

```
CCYY-MM-DDThh:mm:ss±hh:mm
```

For example, `2015-08-27T09:49:58-05:00`.

The `±hh:mm` value, if included, is the time zone as an offset
from UTC. In the previous example, the offset value is `-05:00`.

If the `updated_at` date and time stamp is not set, its value is
`null`.
format: date-time
type:
- 'null'
- string
service:
description: |-
The name of the service which is running on the host.
type: string
service-state:
description: |-
The state of the service. One of `enabled` or `disabled`.
enum:
- disabled
- enabled
type: string
service-status:
description: |-
The status of the service. One of `available` or `unavailable`.
enum:
- available
- unavailable
type: string
zone:
description: |-
The availability zone name.
type: string
required:
- resource
- host_name
- last-update
- service
- service-state
- service-status
- zone
type: object
type: array
type: object
Expand Down
Loading
Loading