Class: Crowbar::Client::Request::VirtualIP::Allocate
- Inherits:
-
Base
- Object
- Base
- Crowbar::Client::Request::VirtualIP::Allocate
show all
- Defined in:
- lib/crowbar/client/request/virtual_ip/allocate.rb
Instance Attribute Summary
Attributes inherited from Base
#attrs, #request
Instance Method Summary
collapse
Methods inherited from Base
#headers, #initialize, #params, #process
Instance Method Details
#content ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/crowbar/client/request/virtual_ip/allocate.rb', line 24
def content
super.easy_merge!(
name: attrs.service,
network: attrs.network,
range: attrs.range,
suggestion: attrs.suggest
)
end
|
#method ⇒ Object
33
34
35
|
# File 'lib/crowbar/client/request/virtual_ip/allocate.rb', line 33
def method
:post
end
|
#url ⇒ Object
37
38
39
40
41
42
43
44
45
|
# File 'lib/crowbar/client/request/virtual_ip/allocate.rb', line 37
def url
[
"crowbar",
"network",
"1.0",
"allocate_virtual_ip",
attrs.prop
].join("/")
end
|