Class: Fog::Storage::StormOnDemand::Real
- Inherits:
-
Object
- Object
- Fog::Storage::StormOnDemand::Real
show all
- Includes:
- Fog::StormOnDemand::Shared
- Defined in:
- lib/fog/storage/storm_on_demand.rb,
lib/fog/storage/storm_on_demand/requests/get_volume.rb,
lib/fog/storage/storm_on_demand/requests/list_volumes.rb,
lib/fog/storage/storm_on_demand/requests/create_volume.rb,
lib/fog/storage/storm_on_demand/requests/delete_volume.rb,
lib/fog/storage/storm_on_demand/requests/list_clusters.rb,
lib/fog/storage/storm_on_demand/requests/resize_volume.rb,
lib/fog/storage/storm_on_demand/requests/update_volume.rb,
lib/fog/storage/storm_on_demand/requests/attach_volume_to_server.rb,
lib/fog/storage/storm_on_demand/requests/detach_volume_from_server.rb
Constant Summary
Fog::StormOnDemand::Shared::API_URL, Fog::StormOnDemand::Shared::API_VERSION
Instance Method Summary
collapse
#initialize, #reload, #request
Instance Method Details
#attach_volume_to_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/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/storage/storm_on_demand/requests/update_volume.rb', line 5
def update_volume(options = {})
request(
:path => "/Storage/Block/Volume/update",
:body => Fog::JSON.encode(:params => options)
)
end
|