class Crowbar::Client::Request::VirtualIP::Allocate
Implementation for the virtual IP allocate request
Public Instance Methods
content()
click to toggle source
Override the request content
@return [Hash] the content for the request
Calls superclass method
Crowbar::Client::Request::Base#content
# File lib/crowbar/client/request/virtual_ip/allocate.rb, line 32 def content super.easy_merge!( name: attrs.service, network: attrs.network, range: attrs.range, suggestion: attrs.suggestion ) end
method()
click to toggle source
HTTP method that gets used by the request
@return [Symbol] the method for the request
# File lib/crowbar/client/request/virtual_ip/allocate.rb, line 46 def method :post end
url()
click to toggle source
Path to the API endpoint for the request
@return [String] path to the API endpoint
# File lib/crowbar/client/request/virtual_ip/allocate.rb, line 55 def url [ "crowbar", "network", "1.0", "allocate_virtual_ip", attrs.proposal ].join("/") end