Class: Fog::Network::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::RealShared
Defined in:
lib/fog/storm_on_demand/network.rb,
lib/fog/storm_on_demand/requests/network/get_pool.rb,
lib/fog/storm_on_demand/requests/network/get_zone.rb,
lib/fog/storm_on_demand/requests/network/list_zones.rb,
lib/fog/storm_on_demand/requests/network/create_pool.rb,
lib/fog/storm_on_demand/requests/network/delete_pool.rb,
lib/fog/storm_on_demand/requests/network/get_ruleset.rb,
lib/fog/storm_on_demand/requests/network/update_pool.rb,
lib/fog/storm_on_demand/requests/network/get_firewall.rb,
lib/fog/storm_on_demand/requests/network/list_rulesets.rb,
lib/fog/storm_on_demand/requests/network/create_ruleset.rb,
lib/fog/storm_on_demand/requests/network/get_ip_details.rb,
lib/fog/storm_on_demand/requests/network/get_private_ip.rb,
lib/fog/storm_on_demand/requests/network/list_balancers.rb,
lib/fog/storm_on_demand/requests/network/update_ruleset.rb,
lib/fog/storm_on_demand/requests/network/create_balancer.rb,
lib/fog/storm_on_demand/requests/network/delete_balancer.rb,
lib/fog/storm_on_demand/requests/network/get_assignments.rb,
lib/fog/storm_on_demand/requests/network/request_new_ips.rb,
lib/fog/storm_on_demand/requests/network/update_balancer.rb,
lib/fog/storm_on_demand/requests/network/update_firewall.rb,
lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb,
lib/fog/storm_on_demand/requests/network/list_network_ips.rb,
lib/fog/storm_on_demand/requests/network/list_private_ips.rb,
lib/fog/storm_on_demand/requests/network/set_default_zone.rb,
lib/fog/storm_on_demand/requests/network/add_balancer_node.rb,
lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb,
lib/fog/storm_on_demand/requests/network/add_balancer_service.rb,
lib/fog/storm_on_demand/requests/network/get_balancer_details.rb,
lib/fog/storm_on_demand/requests/network/remove_balancer_node.rb,
lib/fog/storm_on_demand/requests/network/check_server_attached.rb,
lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb,
lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb,
lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb,
lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb,
lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb,
lib/fog/storm_on_demand/requests/network/check_balancer_available.rb,
lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb,
lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb,
lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb,
lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb

Constant Summary

Constants included from StormOnDemand::RealShared

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

Instance Method Summary collapse

Methods included from StormOnDemand::RealShared

#initialize, #reload, #request

Instance Method Details

#add_balancer_node(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/add_balancer_node.rb', line 6

def add_balancer_node(options = {})
  request(
    :path     => "/Network/LoadBalancer/addNode",
    :body     => Fog::JSON.encode({:params => options})
  )
end

#add_balancer_service(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/add_balancer_service.rb', line 6

def add_balancer_service(options={})
  request(
    :path => '/Network/LoadBalancer/addService',
    :body => Fog::JSON.encode(:params => options)
  )
end

#add_ip_to_server(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb', line 6

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



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb', line 6

def attach_server_to_private_ip(options={})
  request(
    :path => '/Network/Private/attach',
    :body => Fog::JSON.encode(:params => options)
  )
end

#check_balancer_available(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/check_balancer_available.rb', line 6

def check_balancer_available(options={})
  request(
    :path => '/Network/LoadBalancer/available',
    :body => Fog::JSON.encode(:params => options)
  )
end

#check_server_attached(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/check_server_attached.rb', line 6

def check_server_attached(options={})
  request(
    :path => '/Network/Private/isAttached',
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_balancer(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/create_balancer.rb', line 6

def create_balancer(options={})
  request(
    :path => '/Network/LoadBalancer/create',
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_pool(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/create_pool.rb', line 6

def create_pool(options={})
  request(
    :path => '/Network/Pool/create',
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_ruleset(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/create_ruleset.rb', line 6

def create_ruleset(options={})
  request(
    :path => '/Network/Firewall/Ruleset/create',
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_balancer(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/delete_balancer.rb', line 6

def delete_balancer(options={})
  request(
    :path => '/Network/LoadBalancer/delete',
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_pool(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/delete_pool.rb', line 6

def delete_pool(options={})
  request(
    :path => '/Network/Pool/delete',
    :body => Fog::JSON.encode(:params => options)
  )
end

#detach_server_from_private_ip(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb', line 6

def detach_server_from_private_ip(options={})
  request(
    :path => '/Network/Private/detach',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_assignments(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_assignments.rb', line 6

def get_assignments(options={})
  request(
    :path => '/Network/Pool/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_balancer_details(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_balancer_details.rb', line 6

def get_balancer_details(options={})
  request(
    :path => '/Network/LoadBalancer/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_balancer_possible_nodes(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb', line 6

def get_balancer_possible_nodes(options={})
  request(
    :path => '/Network/LoadBalancer/possibleNodes',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_balancer_strategies(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb', line 6

def get_balancer_strategies(options={})
  request(
    :path => '/Network/LoadBalancer/strategies',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_firewall(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_firewall.rb', line 6

def get_firewall(options={})
  request(
    :path => '/Network/Firewall/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_firewall_basic_options(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb', line 6

def get_firewall_basic_options(options={})
  request(
    :path => '/Network/Firewall/getBasicOptions',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_firewall_rules(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb', line 6

def get_firewall_rules(options={})
  request(
    :path => '/Network/Firewall/rules',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_ip_details(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_ip_details.rb', line 6

def get_ip_details(options={})
  request(
    :path => '/Network/IP/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_pool(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_pool.rb', line 6

def get_pool(options={})
  request(
    :path => '/Network/Pool/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_private_ip(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_private_ip.rb', line 6

def get_private_ip(options={})
  request(
    :path => '/Network/Private/getIP',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_ruleset(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_ruleset.rb', line 6

def get_ruleset(options={})
  request(
    :path => '/Network/Firewall/Ruleset/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_zone(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/get_zone.rb', line 6

def get_zone(options={})
  request(
    :path => '/Network/Zone/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_balancers(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_balancers.rb', line 6

def list_balancers(options = {})
  request(
    :path     => "/Network/LoadBalancer/list",
    :body     => Fog::JSON.encode(:params => options)
  )
end

#list_ip_public_accounts(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb', line 6

def list_ip_public_accounts(options={})
  request(
    :path => '/Network/IP/listAccntPublic',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_network_ips(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_network_ips.rb', line 6

def list_network_ips(options={})
  request(
    :path => '/Network/IP/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_network_public_ips(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb', line 6

def list_network_public_ips(options={})
  request(
    :path => '/Network/IP/listPublic',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_private_ips(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_private_ips.rb', line 6

def list_private_ips(options = {})
  request(
    :path     => "/Network/Private/get",
    :body     => Fog::JSON.encode(:params => options)
  )
end

#list_rulesets(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_rulesets.rb', line 6

def list_rulesets(options={})
  request(
    :path => '/Network/Firewall/Ruleset/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_zones(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/list_zones.rb', line 6

def list_zones(options={})
  request(
    :path => '/Network/Zone/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#remove_balancer_node(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/remove_balancer_node.rb', line 6

def remove_balancer_node(options = {})
  request(
    :path     => "/Network/LoadBalancer/removeNode",
    :body     => Fog::JSON.encode({:params => options})
  )
end

#remove_balancer_service(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb', line 6

def remove_balancer_service(options={})
  request(
    :path => '/Network/LoadBalancer/removeService',
    :body => Fog::JSON.encode(:params => options)
  )
end

#remove_ip_from_server(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb', line 6

def remove_ip_from_server(options={})
  request(
    :path => '/Network/IP/remove',
    :body => Fog::JSON.encode(:params => options)
  )
end

#request_new_ips(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/request_new_ips.rb', line 6

def request_new_ips(options={})
  request(
    :path => '/Network/IP/request',
    :body => Fog::JSON.encode(:params => options)
  )
end

#set_default_zone(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/set_default_zone.rb', line 6

def set_default_zone(options={})
  request(
    :path => '/Network/Zone/setDefault',
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_balancer(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/update_balancer.rb', line 6

def update_balancer(options={})
  request(
    :path => '/Network/LoadBalancer/update',
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_firewalls(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/update_firewall.rb', line 6

def update_firewalls(options={})
  request(
    :path => '/Network/Firewall/update',
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_pool(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/update_pool.rb', line 6

def update_pool(options={})
  request(
    :path => '/Network/Pool/update',
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_ruleset(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/network/update_ruleset.rb', line 6

def update_ruleset(options={})
  request(
    :path => '/Network/Firewall/Ruleset/update',
    :body => Fog::JSON.encode(:params => options)
  )
end