Sha256: f4d65f40bcd8f00a3d799ccd78b9279a6d4944aacd78680c73bb693869841e5e
Contents?: true
Size: 1002 Bytes
Versions: 3
Compression:
Stored size: 1002 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Disassociates an ip address from the account. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/disassociateIpAddress.html] def disassociate_ip_address(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'disassociateIpAddress') else options.merge!('command' => 'disassociateIpAddress', 'id' => args[0]) end request(options) end end class Mock def disassociate_ip_address(*args) public_ip_address_id = options['id'] if self.data[:public_ip_addresses][public_ip_address_id] self.data[:public_ip_addresses].delete(public_ip_address_id) { "disassociateipaddressresponse" => { "success" => "true" }} end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems