vmpooler 2.5.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vmpooler/api/helpers.rb +1 -2
- data/lib/vmpooler/api/v3.rb +1761 -0
- data/lib/vmpooler/api.rb +2 -4
- data/lib/vmpooler/dns/base.rb +81 -0
- data/lib/vmpooler/dns.rb +91 -0
- data/lib/vmpooler/pool_manager.rb +99 -21
- data/lib/vmpooler/providers/base.rb +8 -0
- data/lib/vmpooler/public/lib/dashboard.js +3 -3
- data/lib/vmpooler/util/parsing.rb +0 -20
- data/lib/vmpooler/version.rb +1 -1
- data/lib/vmpooler.rb +4 -1
- metadata +5 -5
- data/lib/vmpooler/api/reroute.rb +0 -89
- data/lib/vmpooler/api/v1.rb +0 -1757
- data/lib/vmpooler/api/v2.rb +0 -505
data/lib/vmpooler/api/reroute.rb
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Vmpooler
|
4
|
-
class API
|
5
|
-
class Reroute < Sinatra::Base
|
6
|
-
api_version = '1'
|
7
|
-
|
8
|
-
get '/status/?' do
|
9
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /status/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
10
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/status")
|
11
|
-
end
|
12
|
-
|
13
|
-
get '/summary/?' do
|
14
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /summary/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
15
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/summary")
|
16
|
-
end
|
17
|
-
|
18
|
-
get '/summary/:route/?:key?/?' do
|
19
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /summary/:route/?:key?/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
20
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/summary/#{params[:route]}/#{params[:key]}")
|
21
|
-
end
|
22
|
-
|
23
|
-
get '/token/?' do
|
24
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
25
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/token")
|
26
|
-
end
|
27
|
-
|
28
|
-
post '/token/?' do
|
29
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
30
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/token")
|
31
|
-
end
|
32
|
-
|
33
|
-
get '/token/:token/?' do
|
34
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /token/:token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
35
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/token/#{params[:token]}")
|
36
|
-
end
|
37
|
-
|
38
|
-
delete '/token/:token/?' do
|
39
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called delete /token/:token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
40
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/token/#{params[:token]}")
|
41
|
-
end
|
42
|
-
|
43
|
-
get '/vm/?' do
|
44
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /vm? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
45
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm")
|
46
|
-
end
|
47
|
-
|
48
|
-
post '/vm/?' do
|
49
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
50
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm")
|
51
|
-
end
|
52
|
-
|
53
|
-
post '/vm/:template/?' do
|
54
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm/:template/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
55
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:template]}")
|
56
|
-
end
|
57
|
-
|
58
|
-
get '/vm/:hostname/?' do
|
59
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called /vm/:hostname/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
60
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}")
|
61
|
-
end
|
62
|
-
|
63
|
-
delete '/vm/:hostname/?' do
|
64
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called delete /vm/:hostname/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
65
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}")
|
66
|
-
end
|
67
|
-
|
68
|
-
put '/vm/:hostname/?' do
|
69
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called put /vm/:hostname/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
70
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}")
|
71
|
-
end
|
72
|
-
|
73
|
-
post '/vm/:hostname/snapshot/?' do
|
74
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm/:hostname/snapshot/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
75
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}/snapshot")
|
76
|
-
end
|
77
|
-
|
78
|
-
post '/vm/:hostname/snapshot/:snapshot/?' do
|
79
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm/:hostname/snapshot/:snapshot/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
80
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}/snapshot/#{params[:snapshot]}")
|
81
|
-
end
|
82
|
-
|
83
|
-
put '/vm/:hostname/disk/:size/?' do
|
84
|
-
puts "DEPRECATION WARNING a client (#{request.user_agent}) called put /vm/:hostname/disk/:size/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
|
85
|
-
call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}/disk/#{params[:size]}")
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|