Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed Mar 7, 2024
1 parent a15ec26 commit 8596a2a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
28 changes: 28 additions & 0 deletions cli/docs/cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,34 @@
}
]
},
{
"name": "update",
"about": "Update floating IP",
"args": [
{
"long": "description"
},
{
"long": "floating-ip",
"help": "Name or ID of the floating IP"
},
{
"long": "json-body",
"help": "Path to a file that contains the full json body."
},
{
"long": "json-body-template",
"help": "XXX"
},
{
"long": "name"
},
{
"long": "project",
"help": "Name or ID of the project"
}
]
},
{
"name": "view",
"about": "Fetch floating IP",
Expand Down
10 changes: 7 additions & 3 deletions cli/src/cli_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ fn xxx<'a>(command: CliCommand) -> Option<&'a str> {
CliCommand::DiskFinalizeImport => Some("disk import finalize"),

CliCommand::GroupList => Some("group list"),

// Subcommand: instance
CliCommand::InstanceDiskList => Some("instance disk list"),
CliCommand::InstanceDiskAttach => Some("instance disk attach"),
CliCommand::InstanceDiskDetach => Some("instance disk detach"),
Expand All @@ -436,6 +438,7 @@ fn xxx<'a>(command: CliCommand) -> Option<&'a str> {
CliCommand::InstanceNetworkInterfaceView => Some("instance nic view"),
CliCommand::InstanceNetworkInterfaceUpdate => Some("instance nic update"),
CliCommand::InstanceNetworkInterfaceDelete => Some("instance nic delete"),

CliCommand::PolicyView => Some("policy view"),
CliCommand::PolicyUpdate => Some("policy update"),
CliCommand::SnapshotList => Some("snapshot list"),
Expand Down Expand Up @@ -470,12 +473,13 @@ fn xxx<'a>(command: CliCommand) -> Option<&'a str> {
CliCommand::CurrentUserSshKeyView => Some("current-user ssh-key view"),
CliCommand::CurrentUserSshKeyDelete => Some("current-user ssh-key delete"),

CliCommand::FloatingIpView => Some("floating-ip view"),
CliCommand::FloatingIpList => Some("floating-ip list"),
CliCommand::FloatingIpAttach => Some("floating-ip attach"),
CliCommand::FloatingIpCreate => Some("floating-ip create"),
CliCommand::FloatingIpDelete => Some("floating-ip delete"),
CliCommand::FloatingIpAttach => Some("floating-ip attach"),
CliCommand::FloatingIpDetach => Some("floating-ip detach"),
CliCommand::FloatingIpList => Some("floating-ip list"),
CliCommand::FloatingIpUpdate => Some("floating-ip update"),
CliCommand::FloatingIpView => Some("floating-ip view"),

CliCommand::Ping => Some("ping"),

Expand Down

0 comments on commit 8596a2a

Please sign in to comment.