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(uuid = nil) ⇒ Object
- #get_live_guest_list ⇒ Object
- #get_live_guest_recent_metric_data(uuid = nil, time = nil, limit = nil, interval = nil) ⇒ Object
- #get_metric_tracking_object ⇒ Object
- #get_object ⇒ Object
- #pause_live_guest(uuid = nil) ⇒ Object
- #power_cycle_live_guest(uuid = nil) ⇒ Object
- #power_off_live_guest(uuid = nil) ⇒ Object
- #power_on_live_guest(uuid = nil) ⇒ Object
- #reboot_soft_live_guest(uuid = nil) ⇒ Object
- #resume_live_guest(uuid = nil) ⇒ 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.
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(uuid = nil) ⇒ Object
43 44 45 46 |
# File 'lib/softlayer/virtual/host.rb', line 43 def get_live_guest_by_uuid(uuid = nil) = {uuid: 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(uuid = nil, time = nil, limit = nil, interval = nil) ⇒ Object
52 53 54 55 |
# File 'lib/softlayer/virtual/host.rb', line 52 def get_live_guest_recent_metric_data(uuid = nil, time = nil, limit = nil, interval = nil) = {uuid: uuid, time: time, limit: limit, interval: interval} request(:get_live_guest_recent_metric_data, Array[Softlayer::Metric::Tracking::Object], ) end |
#get_metric_tracking_object ⇒ Object
57 58 59 |
# File 'lib/softlayer/virtual/host.rb', line 57 def get_metric_tracking_object request(:get_metric_tracking_object, Softlayer::Metric::Tracking::Object) end |
#get_object ⇒ Object
61 62 63 |
# File 'lib/softlayer/virtual/host.rb', line 61 def get_object request(:get_object, Softlayer::Virtual::Host) end |
#pause_live_guest(uuid = nil) ⇒ Object
65 66 67 68 |
# File 'lib/softlayer/virtual/host.rb', line 65 def pause_live_guest(uuid = nil) = {uuid: uuid} request(:pause_live_guest, Boolean, ) end |
#power_cycle_live_guest(uuid = nil) ⇒ Object
70 71 72 73 |
# File 'lib/softlayer/virtual/host.rb', line 70 def power_cycle_live_guest(uuid = nil) = {uuid: uuid} request(:power_cycle_live_guest, Boolean, ) end |
#power_off_live_guest(uuid = nil) ⇒ Object
75 76 77 78 |
# File 'lib/softlayer/virtual/host.rb', line 75 def power_off_live_guest(uuid = nil) = {uuid: uuid} request(:power_off_live_guest, Boolean, ) end |
#power_on_live_guest(uuid = nil) ⇒ Object
80 81 82 83 |
# File 'lib/softlayer/virtual/host.rb', line 80 def power_on_live_guest(uuid = nil) = {uuid: uuid} request(:power_on_live_guest, Boolean, ) end |
#reboot_soft_live_guest(uuid = nil) ⇒ Object
85 86 87 88 |
# File 'lib/softlayer/virtual/host.rb', line 85 def reboot_soft_live_guest(uuid = nil) = {uuid: uuid} request(:reboot_soft_live_guest, Boolean, ) end |
#resume_live_guest(uuid = nil) ⇒ Object
90 91 92 93 |
# File 'lib/softlayer/virtual/host.rb', line 90 def resume_live_guest(uuid = nil) = {uuid: uuid} request(:resume_live_guest, Boolean, ) end |