Sha256: 12f7f837e18d210104973f90394f279f51f1484de54e751e8279253149b3a73f
Contents?: true
Size: 946 Bytes
Versions: 24
Compression:
Stored size: 946 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Deletes a network offering. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/deleteNetworkOffering.html] def delete_network_offering(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'deleteNetworkOffering') else options.merge!('command' => 'deleteNetworkOffering', 'id' => args[0]) end request(options) end end class Mock def delete_network_offering(options={}) network_offering_id = options['id'] data[:network_offerings].delete(network_offering_id) if data[:network_offerings][network_offering_id] { 'deletenetworkofferingresponse' => { 'success' => 'true' } } end end end end end
Version data entries
24 entries across 22 versions & 3 rubygems