projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
memcached (openstack) is no longer in use
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
aviator
/
lib
/
puppet
/
feature
/
aviator
/
openstack
/
metering
/
requests
/
v1
/
admin
/
list_projects.rb
1
module Aviator
2
3
define_request :list_projects, :inherit => [:openstack, :common, :v2, :admin, :base] do
4
5
meta :service, :metering
6
meta :api_version, :v1
7
meta :endpoint_type, :admin
8
9
10
def headers
11
super
12
end
13
14
15
def http_method
16
:get
17
end
18
19
20
def url
21
uri = URI(base_url)
22
"#{ uri.scheme }://#{ uri.host }:#{ uri.port.to_s }/v1/projects"
23
end
24
25
end
26
27
end