lib/fog/digitalocean/models/compute/server.rb in fog-1.18.0 vs lib/fog/digitalocean/models/compute/server.rb in fog-1.19.0
- old
+ new
@@ -15,10 +15,11 @@
attribute :region_id
attribute :flavor_id, :aliases => 'size_id'
# Not documented in their API, but
# available nevertheless
attribute :public_ip_address, :aliases => 'ip_address'
+ attribute :private_ip_address
attribute :backups_active
attr_writer :ssh_keys
# Deprecated: Use public_ip_address instead.
@@ -122,9 +123,12 @@
if attributes[:ssh_key_ids]
options[:ssh_key_ids] = attributes[:ssh_key_ids]
elsif @ssh_keys
options[:ssh_key_ids] = @ssh_keys.map(&:id)
end
+
+ options[:private_networking] = !!attributes[:private_networking]
+
data = service.create_server name,
flavor_id,
image_id,
region_id,
options