Class: Softlayer::Network::Application::Delivery::Controller
- Defined in:
- lib/softlayer/network/application/delivery/controller.rb,
lib/softlayer/network/application/delivery/controller/type.rb,
lib/softlayer/network/application/delivery/controller/configuration.rb,
lib/softlayer/network/application/delivery/controller/load_balancer.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health.rb,
lib/softlayer/network/application/delivery/controller/configuration/history.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/routing.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/check.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/routing/type.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service/group.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/routing/method.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/attribute.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/check/type.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/attribute/type.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service/group/cross_reference.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address/secure_transport_cipher.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address/secure_transport_protocol.rb
Defined Under Namespace
Modules: Configuration, LoadBalancer Classes: Representer, Type
Constant Summary collapse
- SERVICE =
'SoftLayer_Network_Application_Delivery_Controller'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#average_daily_public_bandwidth_usage ⇒ Object
Returns the value of attribute average_daily_public_bandwidth_usage.
-
#billing_item ⇒ Object
Returns the value of attribute billing_item.
-
#configuration_history ⇒ Object
Returns the value of attribute configuration_history.
-
#configuration_history_count ⇒ Object
Returns the value of attribute configuration_history_count.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#datacenter ⇒ Object
Returns the value of attribute datacenter.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#license_expiration_date ⇒ Object
Returns the value of attribute license_expiration_date.
-
#load_balancer_count ⇒ Object
Returns the value of attribute load_balancer_count.
-
#load_balancers ⇒ Object
Returns the value of attribute load_balancers.
-
#managed_resource_flag ⇒ Object
Returns the value of attribute managed_resource_flag.
-
#management_ip_address ⇒ Object
Returns the value of attribute management_ip_address.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#network_vlan ⇒ Object
Returns the value of attribute network_vlan.
-
#network_vlan_count ⇒ Object
Returns the value of attribute network_vlan_count.
-
#network_vlans ⇒ Object
Returns the value of attribute network_vlans.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#outbound_public_bandwidth_usage ⇒ Object
Returns the value of attribute outbound_public_bandwidth_usage.
-
#password ⇒ Object
Returns the value of attribute password.
-
#primary_ip_address ⇒ Object
Returns the value of attribute primary_ip_address.
-
#projected_public_bandwidth_usage ⇒ Object
Returns the value of attribute projected_public_bandwidth_usage.
-
#subnet_count ⇒ Object
Returns the value of attribute subnet_count.
-
#subnets ⇒ Object
Returns the value of attribute subnets.
-
#tag_reference_count ⇒ Object
Returns the value of attribute tag_reference_count.
-
#tag_references ⇒ Object
Returns the value of attribute tag_references.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_id ⇒ Object
Returns the value of attribute type_id.
-
#virtual_ip_address_count ⇒ Object
Returns the value of attribute virtual_ip_address_count.
-
#virtual_ip_addresses ⇒ Object
Returns the value of attribute virtual_ip_addresses.
Instance Method Summary collapse
- #create_live_load_balancer(load_balancer = nil) ⇒ Object
- #delete_live_load_balancer(load_balancer = nil) ⇒ Object
- #delete_live_load_balancer_service(service = nil) ⇒ Object
- #edit_object(template_object = nil) ⇒ Object
- #get_account ⇒ Object
- #get_average_daily_public_bandwidth_usage ⇒ Object
- #get_bandwidth_data_by_date(start_date_time = nil, end_date_time = nil, network_type = nil) ⇒ Object
- #get_bandwidth_image_by_date(start_date_time = nil, end_date_time = nil, network_type = nil) ⇒ Object
- #get_billing_item ⇒ Object
- #get_configuration_history ⇒ Object
- #get_custom_bandwidth_data_by_date(graph_data = nil) ⇒ Object
- #get_datacenter ⇒ Object
- #get_description ⇒ Object
- #get_license_expiration_date ⇒ Object
- #get_live_load_balancer_service_graph_image(service = nil, graph_type = nil, metric = nil) ⇒ Object
- #get_load_balancers ⇒ Object
- #get_managed_resource_flag ⇒ Object
- #get_management_ip_address ⇒ Object
- #get_network_vlan ⇒ Object
- #get_network_vlans ⇒ Object
- #get_object ⇒ Object
- #get_outbound_public_bandwidth_usage ⇒ Object
- #get_password ⇒ Object
- #get_primary_ip_address ⇒ Object
- #get_projected_public_bandwidth_usage ⇒ Object
- #get_subnets ⇒ Object
- #get_tag_references ⇒ Object
- #get_type ⇒ Object
- #get_virtual_ip_addresses ⇒ Object
- #restore_base_configuration ⇒ Object
- #restore_configuration(configuration_history_id = nil) ⇒ Object
- #save_current_configuration(notes = nil) ⇒ Object
- #update_live_load_balancer(load_balancer = nil) ⇒ Object
- #update_net_scaler_license ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
23 24 25 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 23 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
10 11 12 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 10 def account_id @account_id end |
#average_daily_public_bandwidth_usage ⇒ Object
Returns the value of attribute average_daily_public_bandwidth_usage.
24 25 26 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 24 def average_daily_public_bandwidth_usage @average_daily_public_bandwidth_usage end |
#billing_item ⇒ Object
Returns the value of attribute billing_item.
25 26 27 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 25 def billing_item @billing_item end |
#configuration_history ⇒ Object
Returns the value of attribute configuration_history.
26 27 28 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 26 def configuration_history @configuration_history end |
#configuration_history_count ⇒ Object
Returns the value of attribute configuration_history_count.
17 18 19 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 17 def configuration_history_count @configuration_history_count end |
#create_date ⇒ Object
Returns the value of attribute create_date.
11 12 13 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 11 def create_date @create_date end |
#datacenter ⇒ Object
Returns the value of attribute datacenter.
27 28 29 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 27 def datacenter @datacenter end |
#description ⇒ Object
Returns the value of attribute description.
28 29 30 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 28 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 12 def id @id end |
#license_expiration_date ⇒ Object
Returns the value of attribute license_expiration_date.
29 30 31 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 29 def license_expiration_date @license_expiration_date end |
#load_balancer_count ⇒ Object
Returns the value of attribute load_balancer_count.
18 19 20 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 18 def load_balancer_count @load_balancer_count end |
#load_balancers ⇒ Object
Returns the value of attribute load_balancers.
30 31 32 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 30 def load_balancers @load_balancers end |
#managed_resource_flag ⇒ Object
Returns the value of attribute managed_resource_flag.
31 32 33 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 31 def managed_resource_flag @managed_resource_flag end |
#management_ip_address ⇒ Object
Returns the value of attribute management_ip_address.
32 33 34 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 32 def management_ip_address @management_ip_address end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
13 14 15 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 13 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 14 def name @name end |
#network_vlan ⇒ Object
Returns the value of attribute network_vlan.
33 34 35 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 33 def network_vlan @network_vlan end |
#network_vlan_count ⇒ Object
Returns the value of attribute network_vlan_count.
19 20 21 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 19 def network_vlan_count @network_vlan_count end |
#network_vlans ⇒ Object
Returns the value of attribute network_vlans.
34 35 36 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 34 def network_vlans @network_vlans end |
#notes ⇒ Object
Returns the value of attribute notes.
15 16 17 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 15 def notes @notes end |
#outbound_public_bandwidth_usage ⇒ Object
Returns the value of attribute outbound_public_bandwidth_usage.
35 36 37 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 35 def outbound_public_bandwidth_usage @outbound_public_bandwidth_usage end |
#password ⇒ Object
Returns the value of attribute password.
36 37 38 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 36 def password @password end |
#primary_ip_address ⇒ Object
Returns the value of attribute primary_ip_address.
37 38 39 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 37 def primary_ip_address @primary_ip_address end |
#projected_public_bandwidth_usage ⇒ Object
Returns the value of attribute projected_public_bandwidth_usage.
38 39 40 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 38 def projected_public_bandwidth_usage @projected_public_bandwidth_usage end |
#subnet_count ⇒ Object
Returns the value of attribute subnet_count.
20 21 22 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 20 def subnet_count @subnet_count end |
#subnets ⇒ Object
Returns the value of attribute subnets.
39 40 41 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 39 def subnets @subnets end |
#tag_reference_count ⇒ Object
Returns the value of attribute tag_reference_count.
21 22 23 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 21 def tag_reference_count @tag_reference_count end |
#tag_references ⇒ Object
Returns the value of attribute tag_references.
40 41 42 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 40 def tag_references @tag_references end |
#type ⇒ Object
Returns the value of attribute type.
41 42 43 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 41 def type @type end |
#type_id ⇒ Object
Returns the value of attribute type_id.
16 17 18 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 16 def type_id @type_id end |
#virtual_ip_address_count ⇒ Object
Returns the value of attribute virtual_ip_address_count.
22 23 24 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 22 def virtual_ip_address_count @virtual_ip_address_count end |
#virtual_ip_addresses ⇒ Object
Returns the value of attribute virtual_ip_addresses.
42 43 44 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 42 def virtual_ip_addresses @virtual_ip_addresses end |
Instance Method Details
#create_live_load_balancer(load_balancer = nil) ⇒ Object
44 45 46 47 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 44 def create_live_load_balancer(load_balancer = nil) = {load_balancer: load_balancer} request(:create_live_load_balancer, Boolean, ) end |
#delete_live_load_balancer(load_balancer = nil) ⇒ Object
49 50 51 52 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 49 def delete_live_load_balancer(load_balancer = nil) = {load_balancer: load_balancer} request(:delete_live_load_balancer, Boolean, ) end |
#delete_live_load_balancer_service(service = nil) ⇒ Object
54 55 56 57 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 54 def delete_live_load_balancer_service(service = nil) = {service: service} request(:delete_live_load_balancer_service, Boolean, ) end |
#edit_object(template_object = nil) ⇒ Object
59 60 61 62 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 59 def edit_object(template_object = nil) = {template_object: template_object} request(:edit_object, Boolean, ) end |
#get_account ⇒ Object
64 65 66 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 64 def get_account request(:get_account, Softlayer::Account) end |
#get_average_daily_public_bandwidth_usage ⇒ Object
68 69 70 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 68 def get_average_daily_public_bandwidth_usage request(:get_average_daily_public_bandwidth_usage, Float) end |
#get_bandwidth_data_by_date(start_date_time = nil, end_date_time = nil, network_type = nil) ⇒ Object
72 73 74 75 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 72 def get_bandwidth_data_by_date(start_date_time = nil, end_date_time = nil, network_type = nil) = {start_date_time: start_date_time, end_date_time: end_date_time, network_type: network_type} request(:get_bandwidth_data_by_date, Array[Softlayer::Metric::Tracking::Object::Data], ) end |
#get_bandwidth_image_by_date(start_date_time = nil, end_date_time = nil, network_type = nil) ⇒ Object
77 78 79 80 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 77 def get_bandwidth_image_by_date(start_date_time = nil, end_date_time = nil, network_type = nil) = {start_date_time: start_date_time, end_date_time: end_date_time, network_type: network_type} request(:get_bandwidth_image_by_date, Softlayer::Container::Bandwidth::GraphOutputs, ) end |
#get_billing_item ⇒ Object
82 83 84 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 82 def get_billing_item request(:get_billing_item, Softlayer::Billing::Item::Network::Application::Delivery::Controller) end |
#get_configuration_history ⇒ Object
86 87 88 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 86 def get_configuration_history request(:get_configuration_history, Array[Softlayer::Network::Application::Delivery::Controller::Configuration::History]) end |
#get_custom_bandwidth_data_by_date(graph_data = nil) ⇒ Object
90 91 92 93 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 90 def get_custom_bandwidth_data_by_date(graph_data = nil) = {graph_data: graph_data} request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, ) end |
#get_datacenter ⇒ Object
95 96 97 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 95 def get_datacenter request(:get_datacenter, Softlayer::Location) end |
#get_description ⇒ Object
99 100 101 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 99 def get_description request(:get_description, String) end |
#get_license_expiration_date ⇒ Object
103 104 105 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 103 def get_license_expiration_date request(:get_license_expiration_date, DateTime) end |
#get_live_load_balancer_service_graph_image(service = nil, graph_type = nil, metric = nil) ⇒ Object
107 108 109 110 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 107 def get_live_load_balancer_service_graph_image(service = nil, graph_type = nil, metric = nil) = {service: service, graph_type: graph_type, metric: metric} request(:get_live_load_balancer_service_graph_image, Softlayer::Base64Binary, ) end |
#get_load_balancers ⇒ Object
112 113 114 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 112 def get_load_balancers request(:get_load_balancers, Array[Softlayer::Network::LoadBalancer::VirtualIpAddress]) end |
#get_managed_resource_flag ⇒ Object
116 117 118 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 116 def get_managed_resource_flag request(:get_managed_resource_flag, Boolean) end |
#get_management_ip_address ⇒ Object
120 121 122 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 120 def get_management_ip_address request(:get_management_ip_address, String) end |
#get_network_vlan ⇒ Object
124 125 126 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 124 def get_network_vlan request(:get_network_vlan, Softlayer::Network::Vlan) end |
#get_network_vlans ⇒ Object
128 129 130 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 128 def get_network_vlans request(:get_network_vlans, Array[Softlayer::Network::Vlan]) end |
#get_object ⇒ Object
132 133 134 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 132 def get_object request(:get_object, Softlayer::Network::Application::Delivery::Controller) end |
#get_outbound_public_bandwidth_usage ⇒ Object
136 137 138 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 136 def get_outbound_public_bandwidth_usage request(:get_outbound_public_bandwidth_usage, Float) end |
#get_password ⇒ Object
140 141 142 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 140 def get_password request(:get_password, Softlayer::Software::Component::Password) end |
#get_primary_ip_address ⇒ Object
144 145 146 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 144 def get_primary_ip_address request(:get_primary_ip_address, String) end |
#get_projected_public_bandwidth_usage ⇒ Object
148 149 150 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 148 def get_projected_public_bandwidth_usage request(:get_projected_public_bandwidth_usage, Float) end |
#get_subnets ⇒ Object
152 153 154 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 152 def get_subnets request(:get_subnets, Array[Softlayer::Network::Subnet]) end |
#get_tag_references ⇒ Object
156 157 158 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 156 def get_tag_references request(:get_tag_references, Array[Softlayer::Tag::Reference]) end |
#get_type ⇒ Object
160 161 162 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 160 def get_type request(:get_type, Softlayer::Network::Application::Delivery::Controller::Type) end |
#get_virtual_ip_addresses ⇒ Object
164 165 166 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 164 def get_virtual_ip_addresses request(:get_virtual_ip_addresses, Array[Softlayer::Network::Application::Delivery::Controller::LoadBalancer::VirtualIpAddress]) end |
#restore_base_configuration ⇒ Object
168 169 170 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 168 def restore_base_configuration request(:restore_base_configuration, Boolean) end |
#restore_configuration(configuration_history_id = nil) ⇒ Object
172 173 174 175 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 172 def restore_configuration(configuration_history_id = nil) = {configuration_history_id: configuration_history_id} request(:restore_configuration, Boolean, ) end |
#save_current_configuration(notes = nil) ⇒ Object
177 178 179 180 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 177 def save_current_configuration(notes = nil) = {notes: notes} request(:save_current_configuration, Softlayer::Network::Application::Delivery::Controller::Configuration::History, ) end |
#update_live_load_balancer(load_balancer = nil) ⇒ Object
182 183 184 185 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 182 def update_live_load_balancer(load_balancer = nil) = {load_balancer: load_balancer} request(:update_live_load_balancer, Boolean, ) end |
#update_net_scaler_license ⇒ Object
187 188 189 |
# File 'lib/softlayer/network/application/delivery/controller.rb', line 187 def update_net_scaler_license request(:update_net_scaler_license, Softlayer::Provisioning::Version1::Transaction) end |