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
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pub struct AttachmentCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_complete: Value,
}

Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/block_storage/v3/backup/os_force_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pub struct BackupCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_force_delete: Value,
}

Expand Down
2 changes: 2 additions & 0 deletions openstack_cli/src/block_storage/v3/consistencygroup/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct PathParameters {}
/// Consistencygroup Body data
#[derive(Args, Clone)]
struct Consistencygroup {
/// OpenAPI specifies the field as '{}'.
#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
availability_zone: Option<Value>,

Expand All @@ -84,6 +85,7 @@ struct Consistencygroup {
#[arg(help_heading = "Body parameters", long, action = clap::ArgAction::SetTrue, conflicts_with = "name")]
no_name: bool,

/// OpenAPI specifies the field as '{}'.
#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
volume_types: Value,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pub struct SnapshotCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_force_delete: Value,
}

Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/block_storage/v3/snapshot/os_unmanage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pub struct SnapshotCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_unmanage: Value,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_begin_detaching: Value,
}

Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/block_storage/v3/volume/os_force_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_force_delete: Value,
}

Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/block_storage/v3/volume/os_reserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_reserve: Value,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_roll_detaching: Value,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_show_image_metadata: Value,
}

Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/block_storage/v3/volume/os_unmanage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_unmanage: Value,
}

Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/block_storage/v3/volume/os_unreserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub struct VolumeCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
os_unreserve: Value,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use openstack_types::compute::v2::availability_zone::response::list_detail::Avai

/// Gets detailed availability zone information. Policy defaults enable only
/// users with the administrative role to perform this operation. Cloud
/// providers can change these permissions through the `policy.json` file.
/// providers can change these permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/flavor/set_255.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use openstack_types::compute::v2::flavor::response::set::FlavorResponse;
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/floating_ip/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use openstack_types::compute::v2::floating_ip::response::create::FloatingIpRespo
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/floating_ip/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use openstack_sdk::api::compute::v2::floating_ip::delete;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 202
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/floating_ip/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use openstack_types::compute::v2::floating_ip::response::list::FloatingIpRespons
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/floating_ip/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use openstack_types::compute::v2::floating_ip::response::get::FloatingIpResponse
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/hypervisor/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use openstack_types::compute::v2::hypervisor::response::list_detailed::Hyperviso
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/hypervisor/search/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use openstack_types::compute::v2::hypervisor::search::response::get::SearchRespo
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response code: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/hypervisor/server/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use openstack_types::compute::v2::hypervisor::server::response::get::ServerRespo
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response code: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/hypervisor/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use openstack_types::compute::v2::hypervisor::response::get::HypervisorResponse;
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/hypervisor/statistic/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use openstack_types::compute::v2::hypervisor::statistic::response::get::Statisti
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/hypervisor/uptime/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use openstack_types::compute::v2::hypervisor::uptime::response::get::UptimeRespo
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/migration/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use tracing::warn;
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Starting from microversion 2.59, the response is sorted by `created_at` and
/// `id` in descending order.
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/add_fixed_ip_21.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use openstack_sdk::api::compute::v2::server::add_fixed_ip_21;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 202
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/change_password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use openstack_sdk::api::compute::v2::server::change_password;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 202
///
Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/compute/v2/server/confirm_resize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ pub struct ServerCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
confirm_resize: Value,
}

Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/diagnostic/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use openstack_types::compute::v2::server::diagnostic::response::get::DiagnosticR
/// Shows basic usage data for a server.
///
/// Policy defaults enable only users with the administrative role. Cloud
/// providers can change these permissions through the `policy.json` file.
/// providers can change these permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
5 changes: 3 additions & 2 deletions openstack_cli/src/compute/v2/server/force_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use serde_json::Value;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 202
///
Expand All @@ -55,7 +55,8 @@ pub struct ServerCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
force_delete: Value,
}

Expand Down
5 changes: 3 additions & 2 deletions openstack_cli/src/compute/v2/server/inject_network_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use serde_json::Value;
///
/// Policy defaults enable only users with the administrative role to perform
/// this operation. Cloud providers can change these permissions through the
/// `policy.json` file.
/// `policy.yaml` file.
///
/// Normal response codes: 202
///
Expand All @@ -55,7 +55,8 @@ pub struct ServerCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
inject_network_info: Value,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use openstack_types::compute::v2::server::instance_action::response::list::Insta
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use openstack_types::compute::v2::server::instance_action::response::get::Instan
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/ip/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use openstack_types::compute::v2::server::ip::response::list::IpResponse;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/ip/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use openstack_types::compute::v2::server::ip::response::get::IpResponse;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
3 changes: 2 additions & 1 deletion openstack_cli/src/compute/v2/server/lock_21.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ pub struct ServerCommand {
#[command(flatten)]
path: PathParameters,

#[arg(help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
/// OpenAPI specifies the field as '{}'.
#[arg(default_value_t=Value::Null, help_heading = "Body parameters", long, value_name="JSON", value_parser=crate::common::parse_json)]
lock: Value,
}

Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/metadata/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use openstack_types::compute::v2::server::metadata::response::create::MetadataRe
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/metadata/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use openstack_sdk::api::compute::v2::server::metadata::delete;
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 204
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/metadata/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use openstack_types::compute::v2::server::metadata::response::list::MetadataResp
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
2 changes: 1 addition & 1 deletion openstack_cli/src/compute/v2/server/metadata/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use openstack_types::compute::v2::server::metadata::response::replace::MetadataR
///
/// Policy defaults enable only users with the administrative role or the owner
/// of the server to perform this operation. Cloud providers can change these
/// permissions through the `policy.json` file.
/// permissions through the `policy.yaml` file.
///
/// Normal response codes: 200
///
Expand Down
Loading