Class: Fog::Network::StormOnDemand::Real
- Inherits:
-
Object
- Object
- Fog::Network::StormOnDemand::Real
show all
- Includes:
- StormOnDemand::Shared
- Defined in:
- lib/fog/network/storm_on_demand.rb,
lib/fog/network/storm_on_demand/requests/get_pool.rb,
lib/fog/network/storm_on_demand/requests/get_zone.rb,
lib/fog/network/storm_on_demand/requests/list_zones.rb,
lib/fog/network/storm_on_demand/requests/create_pool.rb,
lib/fog/network/storm_on_demand/requests/delete_pool.rb,
lib/fog/network/storm_on_demand/requests/get_ruleset.rb,
lib/fog/network/storm_on_demand/requests/update_pool.rb,
lib/fog/network/storm_on_demand/requests/get_firewall.rb,
lib/fog/network/storm_on_demand/requests/list_rulesets.rb,
lib/fog/network/storm_on_demand/requests/create_ruleset.rb,
lib/fog/network/storm_on_demand/requests/get_ip_details.rb,
lib/fog/network/storm_on_demand/requests/get_private_ip.rb,
lib/fog/network/storm_on_demand/requests/list_balancers.rb,
lib/fog/network/storm_on_demand/requests/update_ruleset.rb,
lib/fog/network/storm_on_demand/requests/create_balancer.rb,
lib/fog/network/storm_on_demand/requests/delete_balancer.rb,
lib/fog/network/storm_on_demand/requests/get_assignments.rb,
lib/fog/network/storm_on_demand/requests/request_new_ips.rb,
lib/fog/network/storm_on_demand/requests/update_balancer.rb,
lib/fog/network/storm_on_demand/requests/update_firewall.rb,
lib/fog/network/storm_on_demand/requests/add_ip_to_server.rb,
lib/fog/network/storm_on_demand/requests/list_network_ips.rb,
lib/fog/network/storm_on_demand/requests/list_private_ips.rb,
lib/fog/network/storm_on_demand/requests/set_default_zone.rb,
lib/fog/network/storm_on_demand/requests/add_balancer_node.rb,
lib/fog/network/storm_on_demand/requests/get_firewall_rules.rb,
lib/fog/network/storm_on_demand/requests/add_balancer_service.rb,
lib/fog/network/storm_on_demand/requests/get_balancer_details.rb,
lib/fog/network/storm_on_demand/requests/remove_balancer_node.rb,
lib/fog/network/storm_on_demand/requests/check_server_attached.rb,
lib/fog/network/storm_on_demand/requests/remove_ip_from_server.rb,
lib/fog/network/storm_on_demand/requests/get_balancer_strategies.rb,
lib/fog/network/storm_on_demand/requests/list_ip_public_accounts.rb,
lib/fog/network/storm_on_demand/requests/list_network_public_ips.rb,
lib/fog/network/storm_on_demand/requests/remove_balancer_service.rb,
lib/fog/network/storm_on_demand/requests/check_balancer_available.rb,
lib/fog/network/storm_on_demand/requests/get_firewall_basic_options.rb,
lib/fog/network/storm_on_demand/requests/attach_server_to_private_ip.rb,
lib/fog/network/storm_on_demand/requests/get_balancer_possible_nodes.rb,
lib/fog/network/storm_on_demand/requests/detach_server_from_private_ip.rb
Constant Summary
StormOnDemand::Shared::API_URL, StormOnDemand::Shared::API_VERSION
Instance Method Summary
collapse
#initialize, #reload, #request
Instance Method Details
#add_balancer_node(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/add_balancer_node.rb', line 5
def add_balancer_node(options = {})
request(
:path => "/Network/LoadBalancer/addNode",
:body => Fog::JSON.encode({:params => options})
)
end
|
#add_balancer_service(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/add_balancer_service.rb', line 5
def add_balancer_service(options = {})
request(
:path => "/Network/LoadBalancer/addService",
:body => Fog::JSON.encode(:params => options)
)
end
|
#add_ip_to_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/add_ip_to_server.rb', line 5
def add_ip_to_server(options = {})
request(
:path => "/Network/IP/add",
:body => Fog::JSON.encode(:params => options)
)
end
|
#attach_server_to_private_ip(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/attach_server_to_private_ip.rb', line 5
def attach_server_to_private_ip(options = {})
request(
:path => "/Network/Private/attach",
:body => Fog::JSON.encode(:params => options)
)
end
|
#check_balancer_available(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/check_balancer_available.rb', line 5
def check_balancer_available(options = {})
request(
:path => "/Network/LoadBalancer/available",
:body => Fog::JSON.encode(:params => options)
)
end
|
#check_server_attached(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/check_server_attached.rb', line 5
def check_server_attached(options = {})
request(
:path => "/Network/Private/isAttached",
:body => Fog::JSON.encode(:params => options)
)
end
|
#create_balancer(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/create_balancer.rb', line 5
def create_balancer(options = {})
request(
:path => "/Network/LoadBalancer/create",
:body => Fog::JSON.encode(:params => options)
)
end
|
#create_pool(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/create_pool.rb', line 5
def create_pool(options = {})
request(
:path => "/Network/Pool/create",
:body => Fog::JSON.encode(:params => options)
)
end
|
#create_ruleset(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/create_ruleset.rb', line 5
def create_ruleset(options = {})
request(
:path => "/Network/Firewall/Ruleset/create",
:body => Fog::JSON.encode(:params => options)
)
end
|
#delete_balancer(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/delete_balancer.rb', line 5
def delete_balancer(options = {})
request(
:path => "/Network/LoadBalancer/delete",
:body => Fog::JSON.encode(:params => options)
)
end
|
#delete_pool(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/delete_pool.rb', line 5
def delete_pool(options = {})
request(
:path => "/Network/Pool/delete",
:body => Fog::JSON.encode(:params => options)
)
end
|
#detach_server_from_private_ip(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/detach_server_from_private_ip.rb', line 5
def detach_server_from_private_ip(options = {})
request(
:path => "/Network/Private/detach",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_assignments(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_assignments.rb', line 5
def get_assignments(options = {})
request(
:path => "/Network/Pool/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_balancer_details(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_balancer_details.rb', line 5
def get_balancer_details(options = {})
request(
:path => "/Network/LoadBalancer/details",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_balancer_possible_nodes(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_balancer_possible_nodes.rb', line 5
def get_balancer_possible_nodes(options = {})
request(
:path => "/Network/LoadBalancer/possibleNodes",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_balancer_strategies(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_balancer_strategies.rb', line 5
def get_balancer_strategies(options = {})
request(
:path => "/Network/LoadBalancer/strategies",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_firewall(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_firewall.rb', line 5
def get_firewall(options = {})
request(
:path => "/Network/Firewall/details",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_firewall_basic_options(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_firewall_basic_options.rb', line 5
def get_firewall_basic_options(options = {})
request(
:path => "/Network/Firewall/getBasicOptions",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_firewall_rules(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_firewall_rules.rb', line 5
def get_firewall_rules(options = {})
request(
:path => "/Network/Firewall/rules",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_ip_details(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_ip_details.rb', line 5
def get_ip_details(options = {})
request(
:path => "/Network/IP/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_pool(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_pool.rb', line 5
def get_pool(options = {})
request(
:path => "/Network/Pool/details",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_private_ip(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_private_ip.rb', line 5
def get_private_ip(options = {})
request(
:path => "/Network/Private/getIP",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_ruleset(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_ruleset.rb', line 5
def get_ruleset(options = {})
request(
:path => "/Network/Firewall/Ruleset/details",
:body => Fog::JSON.encode(:params => options)
)
end
|
#get_zone(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/get_zone.rb', line 5
def get_zone(options = {})
request(
:path => "/Network/Zone/details",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_balancers(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_balancers.rb', line 5
def list_balancers(options = {})
request(
:path => "/Network/LoadBalancer/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_ip_public_accounts(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_ip_public_accounts.rb', line 5
def list_ip_public_accounts(options = {})
request(
:path => "/Network/IP/listAccntPublic",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_network_ips(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_network_ips.rb', line 5
def list_network_ips(options = {})
request(
:path => "/Network/IP/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_network_public_ips(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_network_public_ips.rb', line 5
def list_network_public_ips(options = {})
request(
:path => "/Network/IP/listPublic",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_private_ips(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_private_ips.rb', line 5
def list_private_ips(options = {})
request(
:path => "/Network/Private/get",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_rulesets(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_rulesets.rb', line 5
def list_rulesets(options = {})
request(
:path => "/Network/Firewall/Ruleset/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_zones(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/list_zones.rb', line 5
def list_zones(options = {})
request(
:path => "/Network/Zone/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#remove_balancer_node(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/remove_balancer_node.rb', line 5
def remove_balancer_node(options = {})
request(
:path => "/Network/LoadBalancer/removeNode",
:body => Fog::JSON.encode({:params => options})
)
end
|
#remove_balancer_service(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/remove_balancer_service.rb', line 5
def remove_balancer_service(options = {})
request(
:path => "/Network/LoadBalancer/removeService",
:body => Fog::JSON.encode(:params => options)
)
end
|
#remove_ip_from_server(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/remove_ip_from_server.rb', line 5
def remove_ip_from_server(options = {})
request(
:path => "/Network/IP/remove",
:body => Fog::JSON.encode(:params => options)
)
end
|
#request_new_ips(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/request_new_ips.rb', line 5
def request_new_ips(options = {})
request(
:path => "/Network/IP/request",
:body => Fog::JSON.encode(:params => options)
)
end
|
#set_default_zone(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/set_default_zone.rb', line 5
def set_default_zone(options = {})
request(
:path => "/Network/Zone/setDefault",
:body => Fog::JSON.encode(:params => options)
)
end
|
#update_balancer(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/update_balancer.rb', line 5
def update_balancer(options = {})
request(
:path => "/Network/LoadBalancer/update",
:body => Fog::JSON.encode(:params => options)
)
end
|
#update_firewalls(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/update_firewall.rb', line 5
def update_firewalls(options = {})
request(
:path => "/Network/Firewall/update",
:body => Fog::JSON.encode(:params => options)
)
end
|
#update_pool(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/update_pool.rb', line 5
def update_pool(options = {})
request(
:path => "/Network/Pool/update",
:body => Fog::JSON.encode(:params => options)
)
end
|
#update_ruleset(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/network/storm_on_demand/requests/update_ruleset.rb', line 5
def update_ruleset(options = {})
request(
:path => "/Network/Firewall/Ruleset/update",
:body => Fog::JSON.encode(:params => options)
)
end
|