class Fog::Compute::Cloudstack::DiskOffering
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/cloudstack/models/compute/disk_offering.rb, line 33 def destroy requires :id response = service.delete_disk_offering('id' => id ) success_status = response['deletediskofferingresponse']['success'] success_status == 'true' end
save()
click to toggle source
# File lib/fog/cloudstack/models/compute/disk_offering.rb, line 16 def save requires :display_text, :name options = { 'displaytext' => display_text, 'name' => name, 'customized' => is_customized, 'disksize' => disk_size, 'domain_id' => domain_id, 'storagetype' => storage_type, 'tags' => tags } response = service.create_disk_offering(options) merge_attributes(response['creatediskofferingresponse']) end