Class: Infoblox::Network
Instance Attribute Summary collapse
-
#network_view ⇒ Object
Returns the value of attribute network_view.
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
all, connection, connection=, #create, #delete, find, #get, #initialize, remote_attr_accessor, #remote_attribute_hash, remote_attrs, resource_uri, #resource_uri, wapi_object
Constructor Details
This class inherits a constructor from Infoblox::Resource
Instance Attribute Details
#network_view ⇒ Object
Returns the value of attribute network_view.
4 5 6 |
# File 'lib/infoblox/network.rb', line 4 def network_view @network_view end |
Instance Method Details
#next_available_ip(num = 1) ⇒ Object
8 9 10 |
# File 'lib/infoblox/network.rb', line 8 def next_available_ip(num=1) JSON.parse(connection.post(resource_uri + "?_function=next_available_ip&num=#{num}", {}).body)["ips"] end |