Class: Softlayer::Scale::Group

Inherits:
Entity show all
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

Class Method Summary collapse

Instance Method Summary collapse

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

#accountObject

Returns the value of attribute account.



28
29
30
# File 'lib/softlayer/scale/group.rb', line 28

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



7
8
9
# File 'lib/softlayer/scale/group.rb', line 7

def 
  @account_id
end

#balanced_termination_flagObject

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

#cooldownObject

Returns the value of attribute cooldown.



9
10
11
# File 'lib/softlayer/scale/group.rb', line 9

def cooldown
  @cooldown
end

#create_dateObject

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_countObject

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

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/softlayer/scale/group.rb', line 12

def id
  @id
end

#last_action_dateObject

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_countObject

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_balancersObject

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_countObject

Returns the value of attribute log_count.



23
24
25
# File 'lib/softlayer/scale/group.rb', line 23

def log_count
  @log_count
end

#logsObject

Returns the value of attribute logs.



30
31
32
# File 'lib/softlayer/scale/group.rb', line 30

def logs
  @logs
end

#maximum_member_countObject

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_countObject

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_dateObject

Returns the value of attribute modify_date.



16
17
18
# File 'lib/softlayer/scale/group.rb', line 16

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



17
18
19
# File 'lib/softlayer/scale/group.rb', line 17

def name
  @name
end

#network_vlan_countObject

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_vlansObject

Returns the value of attribute network_vlans.



31
32
33
# File 'lib/softlayer/scale/group.rb', line 31

def network_vlans
  @network_vlans
end

#policiesObject

Returns the value of attribute policies.



32
33
34
# File 'lib/softlayer/scale/group.rb', line 32

def policies
  @policies
end

#policy_countObject

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_groupObject

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_idObject

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

#statusObject

Returns the value of attribute status.



34
35
36
# File 'lib/softlayer/scale/group.rb', line 34

def status
  @status
end

#suspended_flagObject

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_policyObject

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_idObject

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_countObject

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_assetsObject

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_countObject

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_templateObject

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_membersObject

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(message)
  request(:create_object, Softlayer::Scale::Group, message)
end

.get_available_hourly_instance_limitObject



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

.get_available_regional_groupsObject



65
66
67
# File 'lib/softlayer/scale/group.rb', line 65

def self.get_available_regional_groups
  request(:get_available_regional_groups, Array[Softlayer::Location::Group])
end

Instance Method Details

#delete_objectObject



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(message)
  request(:edit_object, Boolean, message)
end

#force_delete_objectObject



53
54
55
# File 'lib/softlayer/scale/group.rb', line 53

def force_delete_object
  request(:force_delete_object, Boolean)
end

#get_accountObject



57
58
59
# File 'lib/softlayer/scale/group.rb', line 57

def 
  request(:get_account, Softlayer::Account)
end

#get_load_balancersObject



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_logsObject



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_vlansObject



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_objectObject



81
82
83
# File 'lib/softlayer/scale/group.rb', line 81

def get_object
  request(:get_object, Softlayer::Scale::Group)
end

#get_policiesObject



85
86
87
# File 'lib/softlayer/scale/group.rb', line 85

def get_policies
  request(:get_policies, Array[Softlayer::Scale::Policy])
end

#get_regional_groupObject



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_statusObject



93
94
95
# File 'lib/softlayer/scale/group.rb', line 93

def get_status
  request(:get_status, Softlayer::Scale::Group::Status)
end

#get_termination_policyObject



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_assetsObject



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_membersObject



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

#resumeObject



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(message)
  request(:scale, Array[Softlayer::Scale::Member], message)
end

#scale_to(message) ⇒ Object

number



119
120
121
# File 'lib/softlayer/scale/group.rb', line 119

def scale_to(message)
  request(:scale_to, Array[Softlayer::Scale::Member], message)
end

#suspendObject



123
124
125
# File 'lib/softlayer/scale/group.rb', line 123

def suspend
  request(:suspend, nil)
end