[pve-devel] r5145 - pve-manager/pve2/lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Sep 14 11:59:09 CEST 2010


Author: dietmar
Date: 2010-09-14 09:59:09 +0000 (Tue, 14 Sep 2010)
New Revision: 5145

Removed:
   pve-manager/pve2/lib/PVE/API2/AccessControl.pm
Modified:
   pve-manager/pve2/lib/PVE/API2/Makefile.am
   pve-manager/pve2/lib/PVE/API2/VM.pm
Log:
fix class names


Deleted: pve-manager/pve2/lib/PVE/API2/AccessControl.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/AccessControl.pm	2010-09-14 09:35:52 UTC (rev 5144)
+++ pve-manager/pve2/lib/PVE/API2/AccessControl.pm	2010-09-14 09:59:09 UTC (rev 5145)
@@ -1,74 +0,0 @@
-package PVE::API2::AccessControl;
-
-use strict;
-use warnings;
-
-use PVE::SafeSyslog;
-use Apache2::Const qw(:http);
-
-use PVE::RESTHandler;
-use PVE::API2::User;
-use PVE::API2::Group;
-use PVE::API2::Role;
-use PVE::API2::ACL;
-
-use base qw(PVE::RESTHandler);
-
-__PACKAGE__->register_method ({
-    subclass => "PVE::API2::User",  
-    path => 'users',
-});
-
-__PACKAGE__->register_method ({
-    subclass => "PVE::API2::Group",  
-    path => 'groups',
-});
-
-__PACKAGE__->register_method ({
-    subclass => "PVE::API2::Role",  
-    path => 'roles',
-});
-
-__PACKAGE__->register_method ({
-    subclass => "PVE::API2::ACL",  
-    path => 'acl',
-});
-
-__PACKAGE__->register_method ({
-    name => 'index', 
-    path => '', 
-    method => 'GET',
-    description => "Directory index.",
-    parameters => {
-    	additionalProperties => 0,
-	properties => {},
-    },
-    returns => {
-	type => 'array',
-	items => {
-	    type => "object",
-	    properties => {
-		subdir => { type => 'string' },
-	    },
-	},
-	links => [ { rel => 'child', href => "{subdir}" } ],
-    },
-    code => sub {
-	my ($param) = @_;
-    
-	my $res = [];
-
-	my $ma = __PACKAGE__->method_attributes();
-
-	foreach my $info (@$ma) {
-	    next if !$info->{subclass};
-
-	    my $subpath = $info->{match_re}->[0];
-
-	    push @$res, { subdir => $subpath };
-	}
-
-	return $res;
-    }});
-
-1;

Modified: pve-manager/pve2/lib/PVE/API2/Makefile.am
===================================================================
--- pve-manager/pve2/lib/PVE/API2/Makefile.am	2010-09-14 09:35:52 UTC (rev 5144)
+++ pve-manager/pve2/lib/PVE/API2/Makefile.am	2010-09-14 09:59:09 UTC (rev 5145)
@@ -3,7 +3,6 @@
 SUBDIRS=
 
 pvelib_DATA = 			\
-	AccessControl.pm	\
 	Cluster.pm		\
 	VM.pm
 

Modified: pve-manager/pve2/lib/PVE/API2/VM.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/VM.pm	2010-09-14 09:35:52 UTC (rev 5144)
+++ pve-manager/pve2/lib/PVE/API2/VM.pm	2010-09-14 09:59:09 UTC (rev 5145)
@@ -7,11 +7,11 @@
 
 use base qw(PVE::RESTHandler);
 
-use PVE::API2::QemuServer;
+use PVE::API2::Qemu;
 
 __PACKAGE__->register_method ({
-    subclass => "PVE::API2::QemuServer",  
-    path => 'qm',
+    subclass => "PVE::API2::Qemu",  
+    path => 'qemu',
 });
 
 __PACKAGE__->register_method ({



More information about the pve-devel mailing list