Class: Softlayer::Virtual::Host

Inherits:
Entity show all
Defined in:
lib/softlayer/virtual/host.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Virtual_Host'

Instance Attribute 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.



16
17
18
# File 'lib/softlayer/virtual/host.rb', line 16

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



5
6
7
# File 'lib/softlayer/virtual/host.rb', line 5

def 
  @account_id
end

#billed_per_guest_flagObject

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_flagObject

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_dateObject

Returns the value of attribute create_date.



6
7
8
# File 'lib/softlayer/virtual/host.rb', line 6

def create_date
  @create_date
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/softlayer/virtual/host.rb', line 7

def description
  @description
end

#enabled_flagObject

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_countObject

Returns the value of attribute guest_count.



15
16
17
# File 'lib/softlayer/virtual/host.rb', line 15

def guest_count
  @guest_count
end

#guestsObject

Returns the value of attribute guests.



19
20
21
# File 'lib/softlayer/virtual/host.rb', line 19

def guests
  @guests
end

#hardwareObject

Returns the value of attribute hardware.



20
21
22
# File 'lib/softlayer/virtual/host.rb', line 20

def hardware
  @hardware
end

#hardware_idObject

Returns the value of attribute hardware_id.



9
10
11
# File 'lib/softlayer/virtual/host.rb', line 9

def hardware_id
  @hardware_id
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/virtual/host.rb', line 10

def id
  @id
end

#metric_tracking_objectObject

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_dateObject

Returns the value of attribute modify_date.



11
12
13
# File 'lib/softlayer/virtual/host.rb', line 11

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/softlayer/virtual/host.rb', line 12

def name
  @name
end

#physical_memory_capacityObject

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

#uuidObject

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_accountObject



23
24
25
# File 'lib/softlayer/virtual/host.rb', line 23

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

#get_billed_per_guest_flagObject



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_flagObject



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_guestsObject



35
36
37
# File 'lib/softlayer/virtual/host.rb', line 35

def get_guests
  request(:get_guests, Array[Softlayer::Virtual::Guest])
end

#get_hardwareObject



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(message)
  request(:get_live_guest_by_uuid, Softlayer::Virtual::Guest, message)
end

#get_live_guest_listObject



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(message)
  request(:get_live_guest_recent_metric_data, Array[Softlayer::Metric::Tracking::Object], message)
end

#get_metric_tracking_objectObject



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_objectObject



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

#power_cycle_live_guest(message) ⇒ Object

uuid



74
75
76
# File 'lib/softlayer/virtual/host.rb', line 74

def power_cycle_live_guest(message)
  request(:power_cycle_live_guest, Boolean, message)
end

#power_off_live_guest(message) ⇒ Object

uuid



79
80
81
# File 'lib/softlayer/virtual/host.rb', line 79

def power_off_live_guest(message)
  request(:power_off_live_guest, Boolean, message)
end

#power_on_live_guest(message) ⇒ Object

uuid



84
85
86
# File 'lib/softlayer/virtual/host.rb', line 84

def power_on_live_guest(message)
  request(:power_on_live_guest, Boolean, message)
end

#reboot_soft_live_guest(message) ⇒ Object

uuid



89
90
91
# File 'lib/softlayer/virtual/host.rb', line 89

def reboot_soft_live_guest(message)
  request(:reboot_soft_live_guest, Boolean, message)
end

#resume_live_guest(message) ⇒ Object

uuid



94
95
96
# File 'lib/softlayer/virtual/host.rb', line 94

def resume_live_guest(message)
  request(:resume_live_guest, Boolean, message)
end