Class: Fog::Compute::StormOnDemand::Real
- Inherits:
-
Object
- Object
- Fog::Compute::StormOnDemand::Real
show all
- Includes:
- StormOnDemand::RealShared
- Defined in:
- lib/fog/storm_on_demand/compute.rb,
lib/fog/storm_on_demand/requests/compute/get_server.rb,
lib/fog/storm_on_demand/requests/compute/get_product.rb,
lib/fog/storm_on_demand/requests/compute/list_images.rb,
lib/fog/storm_on_demand/requests/compute/clone_server.rb,
lib/fog/storm_on_demand/requests/compute/create_image.rb,
lib/fog/storm_on_demand/requests/compute/delete_image.rb,
lib/fog/storm_on_demand/requests/compute/list_configs.rb,
lib/fog/storm_on_demand/requests/compute/list_servers.rb,
lib/fog/storm_on_demand/requests/compute/start_server.rb,
lib/fog/storm_on_demand/requests/compute/update_image.rb,
lib/fog/storm_on_demand/requests/compute/create_server.rb,
lib/fog/storm_on_demand/requests/compute/delete_server.rb,
lib/fog/storm_on_demand/requests/compute/list_products.rb,
lib/fog/storm_on_demand/requests/compute/reboot_server.rb,
lib/fog/storm_on_demand/requests/compute/resize_server.rb,
lib/fog/storm_on_demand/requests/compute/restore_image.rb,
lib/fog/storm_on_demand/requests/compute/server_status.rb,
lib/fog/storm_on_demand/requests/compute/update_server.rb,
lib/fog/storm_on_demand/requests/compute/list_templates.rb,
lib/fog/storm_on_demand/requests/compute/server_history.rb,
lib/fog/storm_on_demand/requests/compute/shutdown_server.rb,
lib/fog/storm_on_demand/requests/compute/get_notification.rb,
lib/fog/storm_on_demand/requests/compute/get_product_code.rb,
lib/fog/storm_on_demand/requests/compute/restore_template.rb,
lib/fog/storm_on_demand/requests/compute/get_image_details.rb,
lib/fog/storm_on_demand/requests/compute/get_product_price.rb,
lib/fog/storm_on_demand/requests/compute/get_config_details.rb,
lib/fog/storm_on_demand/requests/compute/list_notifications.rb,
lib/fog/storm_on_demand/requests/compute/get_template_details.rb,
lib/fog/storm_on_demand/requests/compute/resolve_notification.rb,
lib/fog/storm_on_demand/requests/compute/current_notifications.rb,
lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb
Constant Summary
StormOnDemand::RealShared::API_URL, StormOnDemand::RealShared::API_VERSION
Instance Method Summary
collapse
#initialize, #reload, #request
Instance Method Details
#clone_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/clone_server.rb', line 5
def clone_server(options = {})
request(
:path => "/Storm/Server/clone",
:body => Fog::JSON.encode({:params => options})
)
end
|
#create_image(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/create_image.rb', line 5
def create_image(options={})
request(
:path => '/Storm/Image/create',
:body => Fog::JSON.encode(:params => options)
)
end
|
#create_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/create_server.rb', line 5
def create_server(options = {})
request(
:path => "/Storm/Server/create",
:body => Fog::JSON.encode({:params => options})
)
end
|
#current_notifications(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/current_notifications.rb', line 5
def current_notifications(options={})
request(
:path => '/Notifications/current',
:body => Fog::JSON.encode(:params => options)
)
end
|
#delete_image(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/delete_image.rb', line 5
def delete_image(options={})
request(
:path => '/Storm/Image/delete',
:body => Fog::JSON.encode(:params => options)
)
end
|
#delete_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/delete_server.rb', line 5
def delete_server(options = {})
request(
:path => "/Storm/Server/destroy",
:body => Fog::JSON.encode({:params => options})
)
end
|
#get_config_details(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_config_details.rb', line 5
def get_config_details(options={})
request(
:path => '/Storm/Config/details',
:body => Fog::JSON.encode({ :params => options })
)
end
|
#get_image_details(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_image_details.rb', line 5
def get_image_details(options={})
request(
:path => '/Storm/Image/details',
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_notification(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_notification.rb', line 5
def get_notification(options={})
request(
:path => '/Notifications/details',
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_product(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_product.rb', line 5
def get_product(options={})
request(
:path => '/Product/details',
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_product_code(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_product_code.rb', line 5
def get_product_code(options={})
request(
:path => '/Product/getProductCodeFromPath',
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_product_price(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_product_price.rb', line 5
def get_product_price(options={})
request(
:path => '/Product/price',
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_product_starting_price(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb', line 5
def get_product_starting_price(options={})
request(
:path => '/Product/startingPrice',
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_server.rb', line 5
def get_server(options = {})
request(
:path => "/Storm/Server/details",
:body => Fog::JSON.encode({:params => options})
)
end
|
#get_template_details(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/get_template_details.rb', line 5
def get_template_details(options={})
request(
:path => '/Storm/Template/details',
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_configs(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/list_configs.rb', line 5
def list_configs(options = {})
request(
:path => "/storm/config/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_images(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/list_images.rb', line 5
def list_images(options = {})
request(
:path => "/Storm/Image/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_notifications(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/list_notifications.rb', line 5
def list_notifications(options={})
request(
:path => '/Notifications/all',
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_products(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/list_products.rb', line 5
def list_products(options={})
request(
:path => '/Product/list',
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_servers(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/list_servers.rb', line 5
def list_servers(options = {})
request(
:path => "/Storm/Server/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_templates(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/list_templates.rb', line 5
def list_templates(options = {})
request(
:path => "/Storm/Template/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#reboot_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/reboot_server.rb', line 5
def reboot_server(options = {})
request(
:path => "/Storm/Server/reboot",
:body => Fog::JSON.encode({:params => options})
)
end
|
#resize_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/resize_server.rb', line 5
def resize_server(options = {})
request(
:path => "/Storm/Server/resize",
:body => Fog::JSON.encode({:params => options})
)
end
|
#resolve_notification(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/resolve_notification.rb', line 5
def resolve_notification(options={})
request(
:path => '/Notifications/resolve',
:body => Fog::JSON.encode(:params => options)
)
end
|
#restore_image(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/restore_image.rb', line 5
def restore_image(options={})
request(
:path => '/Storm/Image/restore',
:body => Fog::JSON.encode(params => options)
)
end
|
#restore_template(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/restore_template.rb', line 5
def restore_template(options={})
request(
:path => '/Storm/Template/restore',
:body => Fog::JSON.encode(:params => options)
)
end
|
#server_history(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/server_history.rb', line 5
def server_history(options={})
request(
:path => '/Storm/Server/history',
:body => Fog::JSON.encode(:params => options)
)
end
|
#server_status(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/server_status.rb', line 5
def server_status(options={})
request(
:path => '/Storm/Server/status',
:body => Fog::JSON.encode(:params => options)
)
end
|
#shutdown_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/shutdown_server.rb', line 5
def shutdown_server(options={})
request(
:path => '/Storm/Server/shutdown',
:body => Fog::JSON.encode(:params => options)
)
end
|
#start_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/start_server.rb', line 5
def start_server(options={})
request(
:path => '/Storm/Server/start',
:body => Fog::JSON.encode(:params => options)
)
end
|
#update_image(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/update_image.rb', line 5
def update_image(options={})
request(
:path => '/Storm/Image/update',
:body => Fog::JSON.encode(:params => options)
)
end
|
#update_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/storm_on_demand/requests/compute/update_server.rb', line 5
def update_server(options={})
request(
:path => '/Storm/Server/update',
:body => Fog::JSON.encode(:params => options)
)
end
|