Class: Softlayer::Scale::Group
- Defined in:
- lib/softlayer/scale/group.rb,
lib/softlayer/scale/group/log.rb,
lib/softlayer/scale/group/status.rb
Defined Under Namespace
Classes: Log, Representer, Status
Constant Summary collapse
- SERVICE =
'SoftLayer_Scale_Group'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#balanced_termination_flag ⇒ Object
Returns the value of attribute balanced_termination_flag.
-
#cooldown ⇒ Object
Returns the value of attribute cooldown.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#desired_member_count ⇒ Object
Returns the value of attribute desired_member_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_action_date ⇒ Object
Returns the value of attribute last_action_date.
-
#load_balancer_count ⇒ Object
Returns the value of attribute load_balancer_count.
-
#load_balancers ⇒ Object
Returns the value of attribute load_balancers.
-
#log_count ⇒ Object
Returns the value of attribute log_count.
-
#logs ⇒ Object
Returns the value of attribute logs.
-
#maximum_member_count ⇒ Object
Returns the value of attribute maximum_member_count.
-
#minimum_member_count ⇒ Object
Returns the value of attribute minimum_member_count.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#network_vlan_count ⇒ Object
Returns the value of attribute network_vlan_count.
-
#network_vlans ⇒ Object
Returns the value of attribute network_vlans.
-
#policies ⇒ Object
Returns the value of attribute policies.
-
#policy_count ⇒ Object
Returns the value of attribute policy_count.
-
#regional_group ⇒ Object
Returns the value of attribute regional_group.
-
#regional_group_id ⇒ Object
Returns the value of attribute regional_group_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#suspended_flag ⇒ Object
Returns the value of attribute suspended_flag.
-
#termination_policy ⇒ Object
Returns the value of attribute termination_policy.
-
#termination_policy_id ⇒ Object
Returns the value of attribute termination_policy_id.
-
#virtual_guest_asset_count ⇒ Object
Returns the value of attribute virtual_guest_asset_count.
-
#virtual_guest_assets ⇒ Object
Returns the value of attribute virtual_guest_assets.
-
#virtual_guest_member_count ⇒ Object
Returns the value of attribute virtual_guest_member_count.
-
#virtual_guest_member_template ⇒ Object
Returns the value of attribute virtual_guest_member_template.
-
#virtual_guest_members ⇒ Object
Returns the value of attribute virtual_guest_members.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
- .get_available_hourly_instance_limit ⇒ Object
- .get_available_regional_groups ⇒ Object
Instance Method Summary collapse
- #delete_object ⇒ Object
-
#edit_object(message) ⇒ Object
template_object.
- #force_delete_object ⇒ Object
- #get_account ⇒ Object
- #get_load_balancers ⇒ Object
- #get_logs ⇒ Object
- #get_network_vlans ⇒ Object
- #get_object ⇒ Object
- #get_policies ⇒ Object
- #get_regional_group ⇒ Object
- #get_status ⇒ Object
- #get_termination_policy ⇒ Object
- #get_virtual_guest_assets ⇒ Object
- #get_virtual_guest_members ⇒ Object
- #resume ⇒ Object
-
#scale(message) ⇒ Object
delta.
-
#scale_to(message) ⇒ Object
number.
- #suspend ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
28 29 30 |
# File 'lib/softlayer/scale/group.rb', line 28 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
7 8 9 |
# File 'lib/softlayer/scale/group.rb', line 7 def account_id @account_id end |
#balanced_termination_flag ⇒ Object
Returns the value of attribute balanced_termination_flag.
8 9 10 |
# File 'lib/softlayer/scale/group.rb', line 8 def balanced_termination_flag @balanced_termination_flag end |
#cooldown ⇒ Object
Returns the value of attribute cooldown.
9 10 11 |
# File 'lib/softlayer/scale/group.rb', line 9 def cooldown @cooldown end |
#create_date ⇒ Object
Returns the value of attribute create_date.
10 11 12 |
# File 'lib/softlayer/scale/group.rb', line 10 def create_date @create_date end |
#desired_member_count ⇒ Object
Returns the value of attribute desired_member_count.
11 12 13 |
# File 'lib/softlayer/scale/group.rb', line 11 def desired_member_count @desired_member_count end |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/softlayer/scale/group.rb', line 12 def id @id end |
#last_action_date ⇒ Object
Returns the value of attribute last_action_date.
13 14 15 |
# File 'lib/softlayer/scale/group.rb', line 13 def last_action_date @last_action_date end |
#load_balancer_count ⇒ Object
Returns the value of attribute load_balancer_count.
22 23 24 |
# File 'lib/softlayer/scale/group.rb', line 22 def load_balancer_count @load_balancer_count end |
#load_balancers ⇒ Object
Returns the value of attribute load_balancers.
29 30 31 |
# File 'lib/softlayer/scale/group.rb', line 29 def load_balancers @load_balancers end |
#log_count ⇒ Object
Returns the value of attribute log_count.
23 24 25 |
# File 'lib/softlayer/scale/group.rb', line 23 def log_count @log_count end |
#logs ⇒ Object
Returns the value of attribute logs.
30 31 32 |
# File 'lib/softlayer/scale/group.rb', line 30 def logs @logs end |
#maximum_member_count ⇒ Object
Returns the value of attribute maximum_member_count.
14 15 16 |
# File 'lib/softlayer/scale/group.rb', line 14 def maximum_member_count @maximum_member_count end |
#minimum_member_count ⇒ Object
Returns the value of attribute minimum_member_count.
15 16 17 |
# File 'lib/softlayer/scale/group.rb', line 15 def minimum_member_count @minimum_member_count end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
16 17 18 |
# File 'lib/softlayer/scale/group.rb', line 16 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
17 18 19 |
# File 'lib/softlayer/scale/group.rb', line 17 def name @name end |
#network_vlan_count ⇒ Object
Returns the value of attribute network_vlan_count.
24 25 26 |
# File 'lib/softlayer/scale/group.rb', line 24 def network_vlan_count @network_vlan_count end |
#network_vlans ⇒ Object
Returns the value of attribute network_vlans.
31 32 33 |
# File 'lib/softlayer/scale/group.rb', line 31 def network_vlans @network_vlans end |
#policies ⇒ Object
Returns the value of attribute policies.
32 33 34 |
# File 'lib/softlayer/scale/group.rb', line 32 def policies @policies end |
#policy_count ⇒ Object
Returns the value of attribute policy_count.
25 26 27 |
# File 'lib/softlayer/scale/group.rb', line 25 def policy_count @policy_count end |
#regional_group ⇒ Object
Returns the value of attribute regional_group.
33 34 35 |
# File 'lib/softlayer/scale/group.rb', line 33 def regional_group @regional_group end |
#regional_group_id ⇒ Object
Returns the value of attribute regional_group_id.
18 19 20 |
# File 'lib/softlayer/scale/group.rb', line 18 def regional_group_id @regional_group_id end |
#status ⇒ Object
Returns the value of attribute status.
34 35 36 |
# File 'lib/softlayer/scale/group.rb', line 34 def status @status end |
#suspended_flag ⇒ Object
Returns the value of attribute suspended_flag.
19 20 21 |
# File 'lib/softlayer/scale/group.rb', line 19 def suspended_flag @suspended_flag end |
#termination_policy ⇒ Object
Returns the value of attribute termination_policy.
35 36 37 |
# File 'lib/softlayer/scale/group.rb', line 35 def termination_policy @termination_policy end |
#termination_policy_id ⇒ Object
Returns the value of attribute termination_policy_id.
20 21 22 |
# File 'lib/softlayer/scale/group.rb', line 20 def termination_policy_id @termination_policy_id end |
#virtual_guest_asset_count ⇒ Object
Returns the value of attribute virtual_guest_asset_count.
26 27 28 |
# File 'lib/softlayer/scale/group.rb', line 26 def virtual_guest_asset_count @virtual_guest_asset_count end |
#virtual_guest_assets ⇒ Object
Returns the value of attribute virtual_guest_assets.
36 37 38 |
# File 'lib/softlayer/scale/group.rb', line 36 def virtual_guest_assets @virtual_guest_assets end |
#virtual_guest_member_count ⇒ Object
Returns the value of attribute virtual_guest_member_count.
27 28 29 |
# File 'lib/softlayer/scale/group.rb', line 27 def virtual_guest_member_count @virtual_guest_member_count end |
#virtual_guest_member_template ⇒ Object
Returns the value of attribute virtual_guest_member_template.
21 22 23 |
# File 'lib/softlayer/scale/group.rb', line 21 def virtual_guest_member_template @virtual_guest_member_template end |
#virtual_guest_members ⇒ Object
Returns the value of attribute virtual_guest_members.
37 38 39 |
# File 'lib/softlayer/scale/group.rb', line 37 def virtual_guest_members @virtual_guest_members end |
Class Method Details
.create_object(message) ⇒ Object
template_object
40 41 42 |
# File 'lib/softlayer/scale/group.rb', line 40 def self.create_object() request(:create_object, Softlayer::Scale::Group, ) end |
.get_available_hourly_instance_limit ⇒ Object
61 62 63 |
# File 'lib/softlayer/scale/group.rb', line 61 def self.get_available_hourly_instance_limit request(:get_available_hourly_instance_limit, Integer) end |
Instance Method Details
#delete_object ⇒ Object
44 45 46 |
# File 'lib/softlayer/scale/group.rb', line 44 def delete_object request(:delete_object, Boolean) end |
#edit_object(message) ⇒ Object
template_object
49 50 51 |
# File 'lib/softlayer/scale/group.rb', line 49 def edit_object() request(:edit_object, Boolean, ) end |
#force_delete_object ⇒ Object
53 54 55 |
# File 'lib/softlayer/scale/group.rb', line 53 def force_delete_object request(:force_delete_object, Boolean) end |
#get_account ⇒ Object
57 58 59 |
# File 'lib/softlayer/scale/group.rb', line 57 def get_account request(:get_account, Softlayer::Account) end |
#get_load_balancers ⇒ Object
69 70 71 |
# File 'lib/softlayer/scale/group.rb', line 69 def get_load_balancers request(:get_load_balancers, Array[Softlayer::Scale::LoadBalancer]) end |
#get_logs ⇒ Object
73 74 75 |
# File 'lib/softlayer/scale/group.rb', line 73 def get_logs request(:get_logs, Array[Softlayer::Scale::Group::Log]) end |
#get_network_vlans ⇒ Object
77 78 79 |
# File 'lib/softlayer/scale/group.rb', line 77 def get_network_vlans request(:get_network_vlans, Array[Softlayer::Scale::Network::Vlan]) end |
#get_object ⇒ Object
81 82 83 |
# File 'lib/softlayer/scale/group.rb', line 81 def get_object request(:get_object, Softlayer::Scale::Group) end |
#get_policies ⇒ Object
85 86 87 |
# File 'lib/softlayer/scale/group.rb', line 85 def get_policies request(:get_policies, Array[Softlayer::Scale::Policy]) end |
#get_regional_group ⇒ Object
89 90 91 |
# File 'lib/softlayer/scale/group.rb', line 89 def get_regional_group request(:get_regional_group, Softlayer::Location::Group::Regional) end |
#get_status ⇒ Object
93 94 95 |
# File 'lib/softlayer/scale/group.rb', line 93 def get_status request(:get_status, Softlayer::Scale::Group::Status) end |
#get_termination_policy ⇒ Object
97 98 99 |
# File 'lib/softlayer/scale/group.rb', line 97 def get_termination_policy request(:get_termination_policy, Softlayer::Scale::Termination::Policy) end |
#get_virtual_guest_assets ⇒ Object
101 102 103 |
# File 'lib/softlayer/scale/group.rb', line 101 def get_virtual_guest_assets request(:get_virtual_guest_assets, Array[Softlayer::Scale::Asset::Virtual::Guest]) end |
#get_virtual_guest_members ⇒ Object
105 106 107 |
# File 'lib/softlayer/scale/group.rb', line 105 def get_virtual_guest_members request(:get_virtual_guest_members, Array[Softlayer::Scale::Member::Virtual::Guest]) end |
#resume ⇒ Object
109 110 111 |
# File 'lib/softlayer/scale/group.rb', line 109 def resume request(:resume, nil) end |
#scale(message) ⇒ Object
delta
114 115 116 |
# File 'lib/softlayer/scale/group.rb', line 114 def scale() request(:scale, Array[Softlayer::Scale::Member], ) end |
#scale_to(message) ⇒ Object
number
119 120 121 |
# File 'lib/softlayer/scale/group.rb', line 119 def scale_to() request(:scale_to, Array[Softlayer::Scale::Member], ) end |
#suspend ⇒ Object
123 124 125 |
# File 'lib/softlayer/scale/group.rb', line 123 def suspend request(:suspend, nil) end |