Class: Softlayer::Virtual::Host
- Defined in:
- lib/softlayer/virtual/host.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Virtual_Host'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#billed_per_guest_flag ⇒ Object
Returns the value of attribute billed_per_guest_flag.
-
#billed_per_memory_usage_flag ⇒ Object
Returns the value of attribute billed_per_memory_usage_flag.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled_flag ⇒ Object
Returns the value of attribute enabled_flag.
-
#guest_count ⇒ Object
Returns the value of attribute guest_count.
-
#guests ⇒ Object
Returns the value of attribute guests.
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#metric_tracking_object ⇒ Object
Returns the value of attribute metric_tracking_object.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#physical_memory_capacity ⇒ Object
Returns the value of attribute physical_memory_capacity.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_billed_per_guest_flag ⇒ Object
- #get_billed_per_memory_usage_flag ⇒ Object
- #get_guests ⇒ Object
- #get_hardware ⇒ Object
-
#get_live_guest_by_uuid(message) ⇒ Object
uuid.
- #get_live_guest_list ⇒ Object
-
#get_live_guest_recent_metric_data(message) ⇒ Object
uuid time limit interval.
- #get_metric_tracking_object ⇒ Object
- #get_object ⇒ Object
-
#pause_live_guest(message) ⇒ Object
uuid.
-
#power_cycle_live_guest(message) ⇒ Object
uuid.
-
#power_off_live_guest(message) ⇒ Object
uuid.
-
#power_on_live_guest(message) ⇒ Object
uuid.
-
#reboot_soft_live_guest(message) ⇒ Object
uuid.
-
#resume_live_guest(message) ⇒ Object
uuid.
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.
16 17 18 |
# File 'lib/softlayer/virtual/host.rb', line 16 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
5 6 7 |
# File 'lib/softlayer/virtual/host.rb', line 5 def account_id @account_id end |
#billed_per_guest_flag ⇒ Object
Returns the value of attribute billed_per_guest_flag.
17 18 19 |
# File 'lib/softlayer/virtual/host.rb', line 17 def billed_per_guest_flag @billed_per_guest_flag end |
#billed_per_memory_usage_flag ⇒ Object
Returns the value of attribute billed_per_memory_usage_flag.
18 19 20 |
# File 'lib/softlayer/virtual/host.rb', line 18 def billed_per_memory_usage_flag @billed_per_memory_usage_flag end |
#create_date ⇒ Object
Returns the value of attribute create_date.
6 7 8 |
# File 'lib/softlayer/virtual/host.rb', line 6 def create_date @create_date end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/softlayer/virtual/host.rb', line 7 def description @description end |
#enabled_flag ⇒ Object
Returns the value of attribute enabled_flag.
8 9 10 |
# File 'lib/softlayer/virtual/host.rb', line 8 def enabled_flag @enabled_flag end |
#guest_count ⇒ Object
Returns the value of attribute guest_count.
15 16 17 |
# File 'lib/softlayer/virtual/host.rb', line 15 def guest_count @guest_count end |
#guests ⇒ Object
Returns the value of attribute guests.
19 20 21 |
# File 'lib/softlayer/virtual/host.rb', line 19 def guests @guests end |
#hardware ⇒ Object
Returns the value of attribute hardware.
20 21 22 |
# File 'lib/softlayer/virtual/host.rb', line 20 def hardware @hardware end |
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
9 10 11 |
# File 'lib/softlayer/virtual/host.rb', line 9 def hardware_id @hardware_id end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/softlayer/virtual/host.rb', line 10 def id @id end |
#metric_tracking_object ⇒ Object
Returns the value of attribute metric_tracking_object.
21 22 23 |
# File 'lib/softlayer/virtual/host.rb', line 21 def metric_tracking_object @metric_tracking_object end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
11 12 13 |
# File 'lib/softlayer/virtual/host.rb', line 11 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/softlayer/virtual/host.rb', line 12 def name @name end |
#physical_memory_capacity ⇒ Object
Returns the value of attribute physical_memory_capacity.
13 14 15 |
# File 'lib/softlayer/virtual/host.rb', line 13 def physical_memory_capacity @physical_memory_capacity end |
#uuid ⇒ Object
Returns the value of attribute uuid.
14 15 16 |
# File 'lib/softlayer/virtual/host.rb', line 14 def uuid @uuid end |
Instance Method Details
#get_account ⇒ Object
23 24 25 |
# File 'lib/softlayer/virtual/host.rb', line 23 def get_account request(:get_account, Softlayer::Account) end |
#get_billed_per_guest_flag ⇒ Object
27 28 29 |
# File 'lib/softlayer/virtual/host.rb', line 27 def get_billed_per_guest_flag request(:get_billed_per_guest_flag, Boolean) end |
#get_billed_per_memory_usage_flag ⇒ Object
31 32 33 |
# File 'lib/softlayer/virtual/host.rb', line 31 def get_billed_per_memory_usage_flag request(:get_billed_per_memory_usage_flag, Boolean) end |
#get_guests ⇒ Object
35 36 37 |
# File 'lib/softlayer/virtual/host.rb', line 35 def get_guests request(:get_guests, Array[Softlayer::Virtual::Guest]) end |
#get_hardware ⇒ Object
39 40 41 |
# File 'lib/softlayer/virtual/host.rb', line 39 def get_hardware request(:get_hardware, Softlayer::Hardware::Server) end |
#get_live_guest_by_uuid(message) ⇒ Object
uuid
44 45 46 |
# File 'lib/softlayer/virtual/host.rb', line 44 def get_live_guest_by_uuid() request(:get_live_guest_by_uuid, Softlayer::Virtual::Guest, ) end |
#get_live_guest_list ⇒ Object
48 49 50 |
# File 'lib/softlayer/virtual/host.rb', line 48 def get_live_guest_list request(:get_live_guest_list, Array[Softlayer::Virtual::Guest]) end |
#get_live_guest_recent_metric_data(message) ⇒ Object
uuid time limit interval
56 57 58 |
# File 'lib/softlayer/virtual/host.rb', line 56 def get_live_guest_recent_metric_data() request(:get_live_guest_recent_metric_data, Array[Softlayer::Metric::Tracking::Object], ) end |
#get_metric_tracking_object ⇒ Object
60 61 62 |
# File 'lib/softlayer/virtual/host.rb', line 60 def get_metric_tracking_object request(:get_metric_tracking_object, Softlayer::Metric::Tracking::Object) end |
#get_object ⇒ Object
64 65 66 |
# File 'lib/softlayer/virtual/host.rb', line 64 def get_object request(:get_object, Softlayer::Virtual::Host) end |
#pause_live_guest(message) ⇒ Object
uuid
69 70 71 |
# File 'lib/softlayer/virtual/host.rb', line 69 def pause_live_guest() request(:pause_live_guest, Boolean, ) end |
#power_cycle_live_guest(message) ⇒ Object
uuid
74 75 76 |
# File 'lib/softlayer/virtual/host.rb', line 74 def power_cycle_live_guest() request(:power_cycle_live_guest, Boolean, ) end |
#power_off_live_guest(message) ⇒ Object
uuid
79 80 81 |
# File 'lib/softlayer/virtual/host.rb', line 79 def power_off_live_guest() request(:power_off_live_guest, Boolean, ) end |
#power_on_live_guest(message) ⇒ Object
uuid
84 85 86 |
# File 'lib/softlayer/virtual/host.rb', line 84 def power_on_live_guest() request(:power_on_live_guest, Boolean, ) end |
#reboot_soft_live_guest(message) ⇒ Object
uuid
89 90 91 |
# File 'lib/softlayer/virtual/host.rb', line 89 def reboot_soft_live_guest() request(:reboot_soft_live_guest, Boolean, ) end |
#resume_live_guest(message) ⇒ Object
uuid
94 95 96 |
# File 'lib/softlayer/virtual/host.rb', line 94 def resume_live_guest() request(:resume_live_guest, Boolean, ) end |