Class: Fog::Storage::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
Fog::StormOnDemand::RealShared
Defined in:
lib/fog/storm_on_demand/storage.rb,
lib/fog/storm_on_demand/requests/storage/get_volume.rb,
lib/fog/storm_on_demand/requests/storage/list_volumes.rb,
lib/fog/storm_on_demand/requests/storage/create_volume.rb,
lib/fog/storm_on_demand/requests/storage/delete_volume.rb,
lib/fog/storm_on_demand/requests/storage/list_clusters.rb,
lib/fog/storm_on_demand/requests/storage/resize_volume.rb,
lib/fog/storm_on_demand/requests/storage/update_volume.rb,
lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb,
lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb

Constant Summary

Constants included from Fog::StormOnDemand::RealShared

Fog::StormOnDemand::RealShared::API_URL, Fog::StormOnDemand::RealShared::API_VERSION

Instance Method Summary collapse

Methods included from Fog::StormOnDemand::RealShared

#initialize, #reload, #request

Instance Method Details

#attach_volume_to_server(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb', line 5

def attach_volume_to_server(options={})
  request(
    :path => '/Storage/Block/Volume/attach',
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_volume(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/create_volume.rb', line 5

def create_volume(options={})
  request(
    :path => '/Storage/Block/Volume/create',
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_volume(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/delete_volume.rb', line 5

def delete_volume(options={})
  request(
    :path => '/Storage/Block/Volume/delete',
    :body => Fog::JSON.encode(:params => options)
  )
end

#detach_volume_from_server(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb', line 5

def detach_volume_from_server(options={})
  request(
    :path => '/Storage/Block/Volume/detach',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_volume(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/get_volume.rb', line 5

def get_volume(options={})
  request(
    :path => '/Storage/Block/Volume/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_clusters(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/list_clusters.rb', line 5

def list_clusters(options={})
  request(
    :path => '/Storage/Block/Cluster/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_volumes(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/list_volumes.rb', line 5

def list_volumes(options={})
  request(
    :path => '/Storage/Block/Volume/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#resize_volume(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/resize_volume.rb', line 5

def resize_volume(options={})
  request(
    :path => '/Storage/Block/Volume/resize',
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_volume(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/storage/update_volume.rb', line 5

def update_volume(options={})
  request(
    :path => '/Storage/Block/Volume/update',
    :body => Fog::JSON.encode(:params => options)
  )
end