class Fog::SharedFileSystem::OpenStack::Share
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/shared_file_system/openstack/models/share.rb, line 51 def destroy requires :id service.delete_share(id) true end
ready?()
click to toggle source
# File lib/fog/shared_file_system/openstack/models/share.rb, line 57 def ready? status == 'available' end
save()
click to toggle source
# File lib/fog/shared_file_system/openstack/models/share.rb, line 38 def save raise Fog::Errors::Error, 'Resaving an existing object may create a duplicate' if persisted? requires :size, :share_proto merge_attributes(service.create_share(share_proto, size, attributes).body['share']) true end
update(options = nil)
click to toggle source
# File lib/fog/shared_file_system/openstack/models/share.rb, line 45 def update(options = nil) requires :id merge_attributes(service.update_share(id, options || attributes).body['share']) self end