]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Helpers.pm
Add create and destroy subcommands to the lxc command
[pve-client.git] / PVE / APIClient / Helpers.pm
index fda9bf5812780d4e4d7f03d428a8469eb5e678eb..30b847533564d0240c15831173dee9d73c4f36fb 100644 (file)
@@ -218,6 +218,14 @@ sub complete_api_call_options {
     &$print_result(@option_list);
 }
 
+sub merge_api_definition_properties {
+    my ($path, $method, $properties) = @_;
+
+    my $info = PVE::APIClient::Helpers::find_method_info($path, $method);
+
+    return { %{$info->{parameters}->{properties}}, %$properties };
+}
+
 sub complete_api_path {
     my ($text) = @_;