lib/fog/sakuracloud/models/volume/disk.rb in fog-sakuracloud-0.1.0 vs lib/fog/sakuracloud/models/volume/disk.rb in fog-sakuracloud-0.1.1

- old
+ new

@@ -29,9 +29,20 @@ def configure(sshkey_id) requires :id service.configure_disk(@attributes[:id], sshkey_id ) true end + + def associate_ip(ipaddress, networkmasklen, defaultroute) + subnet ={ + :ipaddress => ipaddress, + :networkmasklen => networkmasklen, + :defaultroute => defaultroute + } + requires :id + service.associate_ip_to_disk(@attributes[:id], subnet ) + true + end end end end end