]> git.proxmox.com Git - pve-client.git/commitdiff
adopt code for changes in pve-common
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Jul 2018 06:54:16 +0000 (08:54 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Jul 2018 06:54:16 +0000 (08:54 +0200)
PVE/APIClient/Commands/list.pm
PVE/APIClient/Commands/remote.pm
PVE/APIClient/Config.pm
pve-api-definition.dat
pveclient

index f5388f1214001282a9b477f8ecb4ccec45435aa9..10a8f7c5afd0831b994d17c2966aefc8e4693dea 100644 (file)
@@ -30,7 +30,7 @@ __PACKAGE__->register_method ({
        additionalProperties => 0,
        properties => {
            remote => get_standard_option('pveclient-remote-name'),
        additionalProperties => 0,
        properties => {
            remote => get_standard_option('pveclient-remote-name'),
-           'format' => get_standard_option('pveclient-output-format'),
+           'format' => get_standard_option('pve-output-format'),
        },
     },
     returns => {
        },
     },
     returns => {
index 6124bbe6489f867b959dd213b3a6aad3a9f8690f..2e5337aa2c9be3a2837b5019ac7a18d93f09ca79 100644 (file)
@@ -36,7 +36,7 @@ __PACKAGE__->register_method ({
     parameters => {
        additionalProperties => 0,
        properties => {
     parameters => {
        additionalProperties => 0,
        properties => {
-           'format' => get_standard_option('pveclient-output-format'),
+           'format' => get_standard_option('pve-output-format'),
        },
     },
     returns => {
        },
     },
     returns => {
index 9ab68fc2c2dc835ac694018fe61961293d5dbd42..5437be656ea1e2588f3d5528b434a0404f4f731e 100644 (file)
@@ -28,14 +28,6 @@ my $complete_remote_name = sub {
     return $list;
 };
 
     return $list;
 };
 
-PVE::APIClient::JSONSchema::register_standard_option('pveclient-output-format', {
-    type => 'string',
-    description => 'Output format.',
-    enum => [ 'text', 'plain', 'json' ],
-    optional => 1,
-    default => 'text',
-});
-
 PVE::APIClient::JSONSchema::register_standard_option('pveclient-remote-name', {
     description => "The name of the remote.",
     type => 'string',
 PVE::APIClient::JSONSchema::register_standard_option('pveclient-remote-name', {
     description => "The name of the remote.",
     type => 'string',
index f21a6dbd4a0417c98d1946fff065e730f83528a0..67fb81609e99ed771cd4fbc205c3cd6c40082191 100644 (file)
Binary files a/pve-api-definition.dat and b/pve-api-definition.dat differ
index c87b2cc8eabb7b220d8c392eb43dae96fca5dfe6..09e308657e4494bf4501a1bc8c286ea033d60559 100755 (executable)
--- a/pveclient
+++ b/pveclient
@@ -94,7 +94,7 @@ if (my $info = PVE::APIClient::Helpers::extract_path_info($uri_param)) {
     $path_returns = $info->{returns};
 }
 
     $path_returns = $info->{returns};
 }
 
-$path_properties->{format} = get_standard_option('pveclient-output-format'),
+$path_properties->{format} = get_standard_option('pve-output-format'),
 $path_properties->{remote} = get_standard_option('pveclient-remote-name');
 $path_properties->{api_path} = {
     description => "API path.",
 $path_properties->{remote} = get_standard_option('pveclient-remote-name');
 $path_properties->{api_path} = {
     description => "API path.",
@@ -151,8 +151,8 @@ __PACKAGE__->register_method ({
 __PACKAGE__->register_method ({
     name => 'pveclient_create',
     path => 'pveclient_create',
 __PACKAGE__->register_method ({
     name => 'pveclient_create',
     path => 'pveclient_create',
-    method => 'PUSH',
-    description => "Call API PUSH on <api_path>.",
+    method => 'POST',
+    description => "Call API POST on <api_path>.",
     parameters => {
        additionalProperties => 0,
        properties => $path_properties,
     parameters => {
        additionalProperties => 0,
        properties => $path_properties,