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
2 changes: 1 addition & 1 deletion cli/compute/src/v2/flavor/create_2102.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct PathParameters {}
/// Flavor Body data
#[derive(Args, Clone)]
struct Flavor {
/// A free form description of the flavor. Limited to 65535 characters in
/// A free-form description of the flavor. Limited to 65535 characters in
/// length. Only printable characters are allowed.
///
/// **New in version 2.55**
Expand Down
2 changes: 1 addition & 1 deletion cli/compute/src/v2/flavor/create_255.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct PathParameters {}
/// Flavor Body data
#[derive(Args, Clone)]
struct Flavor {
/// A free form description of the flavor. Limited to 65535 characters in
/// A free-form description of the flavor. Limited to 65535 characters in
/// length. Only printable characters are allowed.
///
/// **New in version 2.55**
Expand Down
2 changes: 1 addition & 1 deletion cli/compute/src/v2/flavor/set_255.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct PathParameters {
/// Flavor Body data
#[derive(Args, Clone)]
struct Flavor {
/// A free form description of the flavor. Limited to 65535 characters in
/// A free-form description of the flavor. Limited to 65535 characters in
/// length. Only printable characters are allowed.
#[arg(help_heading = "Body parameters", long)]
description: String,
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_219.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_232.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_233.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_237.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_242.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_252.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_257.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_263.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_267.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_274.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_290.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/create_294.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ struct Server {
#[arg(action=clap::ArgAction::Set, help_heading = "Body parameters", long)]
config_drive: Option<bool>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/rebuild_219.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct Rebuild {
#[arg(help_heading = "Body parameters", long)]
admin_pass: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/rebuild_254.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct Rebuild {
#[arg(help_heading = "Body parameters", long)]
admin_pass: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/rebuild_257.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ struct Rebuild {
#[arg(help_heading = "Body parameters", long)]
admin_pass: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/rebuild_263.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ struct Rebuild {
#[arg(help_heading = "Body parameters", long)]
admin_pass: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/rebuild_290.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ struct Rebuild {
#[arg(help_heading = "Body parameters", long)]
admin_pass: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/rebuild_294.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ struct Rebuild {
#[arg(help_heading = "Body parameters", long)]
admin_pass: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/set_2104.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct Server {
#[arg(help_heading = "Body parameters", long)]
access_ipv6: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/set_219.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct Server {
#[arg(help_heading = "Body parameters", long)]
access_ipv6: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/set_290.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct Server {
#[arg(help_heading = "Body parameters", long)]
access_ipv6: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
5 changes: 3 additions & 2 deletions cli/compute/src/v2/server/set_294.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ struct Server {
#[arg(help_heading = "Body parameters", long)]
access_ipv6: Option<String>,

/// A free form description of the server. Limited to 255 characters in
/// length. Before microversion 2.19 this was set to the server name.
/// A free-form description of the server. Limited to 255 characters in
/// length and new lines is not allowed. Before microversion 2.19 this was
/// set to the server name.
///
/// **New in version 2.19**
#[arg(help_heading = "Body parameters", long)]
Expand Down
4 changes: 4 additions & 0 deletions cli/compute/src/v2/server/volume_attachment/list_20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ use openstack_types::compute::v2::server::volume_attachment::response;

/// List volume attachments for an instance.
///
/// The `limit` and `offset` parameters apply to the volume attachments in the
/// response, excluding local disks and any other block device mappings that
/// are not shown at the requested microversion.
///
/// Normal response codes: 200
///
/// Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Expand Down
5 changes: 3 additions & 2 deletions cli/dns/src/v2/zone/task/import/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ use openstack_sdk::api::QueryAsync;
use openstack_sdk::api::dns::v2::zone::task::import::create;
use serde_json::Value;

/// Import a zone.
/// Import a zone from a zone file in RFC 1035 format.
///
/// The API supports two content types for zone import:
/// The request body must contain the zone file data. The API supports two
/// content types for zone import:
#[derive(Args)]
#[command(about = "Create a Zone Import")]
pub struct ImportCommand {
Expand Down
2 changes: 1 addition & 1 deletion cli/dns/src/v2/zone/task/transfer_request/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use openstack_sdk::api::QueryAsync;
use openstack_sdk::api::dns::v2::zone::task::transfer_request::set;
use serde_json::Value;

/// Command without description in OpenAPI
/// This allows you to update a zone transfer request.
#[derive(Args)]
#[command(about = "Update a Zone Transfer Request")]
pub struct TransferRequestCommand {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct PathParameters {
#[derive(Args, Clone)]
struct Protocol {
#[arg(help_heading = "Body parameters", long)]
mapping_id: String,
mapping_id: Option<String>,

#[arg(help_heading = "Body parameters", long)]
remote_id_attribute: Option<String>,
Expand Down Expand Up @@ -110,8 +110,9 @@ impl ProtocolCommand {
// Set Request.protocol data
let args = &self.protocol;
let mut protocol_builder = set::ProtocolBuilder::default();

protocol_builder.mapping_id(&args.mapping_id);
if let Some(val) = &args.mapping_id {
protocol_builder.mapping_id(val);
}

if let Some(val) = &args.remote_id_attribute {
protocol_builder.remote_id_attribute(val);
Expand Down
19 changes: 8 additions & 11 deletions cli/network/src/v2/port/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,14 @@ struct Port {
/// back-end. This field is only meant for machine-machine communication
/// for compute services like Nova, Ironic or Zun to pass information to a
/// Neutron back-end. It should not be used by multiple services
/// concurrently or by cloud end users. The existing counterexamples
/// (`capabilities: [switchdev]` for Open vSwitch hardware offload and
/// `trusted=true` for Trusted Virtual Functions) are due to be cleaned up.
/// The networking API does not define a specific format of this field. The
/// default is an empty dictionary. If you update it with null then it is
/// treated like {} in the response. Since the port-mac-address-override
/// extension the `device_mac_address` field of the binding:profile can be
/// used to provide the MAC address of the physical device a
/// direct-physical port is being bound to. If provided, then the
/// `mac_address` field of the port resource will be updated to the MAC
/// from the active binding.
/// concurrently or by cloud end users. The networking API does not define
/// a specific format of this field. The default is an empty dictionary. If
/// you update it with null then it is treated like {} in the response.
/// Since the port-mac-address-override extension the `device_mac_address`
/// field of the binding:profile can be used to provide the MAC address of
/// the physical device a direct-physical port is being bound to. If
/// provided, then the `mac_address` field of the port resource will be
/// updated to the MAC from the active binding.
#[arg(help_heading = "Body parameters", long, value_name="key=value", value_parser=parse_key_val::<String, Value>)]
binding_profile: Option<Vec<(String, Value)>>,

Expand Down
19 changes: 8 additions & 11 deletions cli/network/src/v2/port/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,14 @@ struct Port {
/// back-end. This field is only meant for machine-machine communication
/// for compute services like Nova, Ironic or Zun to pass information to a
/// Neutron back-end. It should not be used by multiple services
/// concurrently or by cloud end users. The existing counterexamples
/// (`capabilities: [switchdev]` for Open vSwitch hardware offload and
/// `trusted=true` for Trusted Virtual Functions) are due to be cleaned up.
/// The networking API does not define a specific format of this field. The
/// default is an empty dictionary. If you update it with null then it is
/// treated like {} in the response. Since the port-mac-address-override
/// extension the `device_mac_address` field of the binding:profile can be
/// used to provide the MAC address of the physical device a
/// direct-physical port is being bound to. If provided, then the
/// `mac_address` field of the port resource will be updated to the MAC
/// from the active binding.
/// concurrently or by cloud end users. The networking API does not define
/// a specific format of this field. The default is an empty dictionary. If
/// you update it with null then it is treated like {} in the response.
/// Since the port-mac-address-override extension the `device_mac_address`
/// field of the binding:profile can be used to provide the MAC address of
/// the physical device a direct-physical port is being bound to. If
/// provided, then the `mac_address` field of the port resource will be
/// updated to the MAC from the active binding.
#[arg(help_heading = "Body parameters", long, value_name="key=value", value_parser=parse_key_val::<String, Value>)]
binding_profile: Option<Vec<(String, Value)>>,

Expand Down
Loading
Loading