Class: Softlayer::Location::Reservation::Rack

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/location/reservation/rack.rb,
lib/softlayer/location/reservation/rack/member.rb

Defined Under Namespace

Classes: Member, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Location_Reservation_Rack'

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

#allotmentObject

Returns the value of attribute allotment.



16
17
18
# File 'lib/softlayer/location/reservation/rack.rb', line 16

def allotment
  @allotment
end

#childrenObject

Returns the value of attribute children.



17
18
19
# File 'lib/softlayer/location/reservation/rack.rb', line 17

def children
  @children
end

#children_countObject

Returns the value of attribute children_count.



15
16
17
# File 'lib/softlayer/location/reservation/rack.rb', line 15

def children_count
  @children_count
end

#locationObject

Returns the value of attribute location.



18
19
20
# File 'lib/softlayer/location/reservation/rack.rb', line 18

def location
  @location
end

#location_idObject

Returns the value of attribute location_id.



7
8
9
# File 'lib/softlayer/location/reservation/rack.rb', line 7

def location_id
  @location_id
end

#location_reservationObject

Returns the value of attribute location_reservation.



19
20
21
# File 'lib/softlayer/location/reservation/rack.rb', line 19

def location_reservation
  @location_reservation
end

#location_reservation_idObject

Returns the value of attribute location_reservation_id.



8
9
10
# File 'lib/softlayer/location/reservation/rack.rb', line 8

def location_reservation_id
  @location_reservation_id
end

#network_connection_capacityObject

Returns the value of attribute network_connection_capacity.



9
10
11
# File 'lib/softlayer/location/reservation/rack.rb', line 9

def network_connection_capacity
  @network_connection_capacity
end

#network_connection_reservationObject

Returns the value of attribute network_connection_reservation.



10
11
12
# File 'lib/softlayer/location/reservation/rack.rb', line 10

def network_connection_reservation
  @network_connection_reservation
end

#power_connection_capacityObject

Returns the value of attribute power_connection_capacity.



11
12
13
# File 'lib/softlayer/location/reservation/rack.rb', line 11

def power_connection_capacity
  @power_connection_capacity
end

#power_connection_reservationObject

Returns the value of attribute power_connection_reservation.



12
13
14
# File 'lib/softlayer/location/reservation/rack.rb', line 12

def power_connection_reservation
  @power_connection_reservation
end

#slot_capacityObject

Returns the value of attribute slot_capacity.



13
14
15
# File 'lib/softlayer/location/reservation/rack.rb', line 13

def slot_capacity
  @slot_capacity
end

#slot_reservationObject

Returns the value of attribute slot_reservation.



14
15
16
# File 'lib/softlayer/location/reservation/rack.rb', line 14

def slot_reservation
  @slot_reservation
end

Instance Method Details

#get_allotmentObject



21
22
23
# File 'lib/softlayer/location/reservation/rack.rb', line 21

def get_allotment
  request(:get_allotment, Softlayer::Network::Bandwidth::Version1::Allotment)
end

#get_childrenObject



25
26
27
# File 'lib/softlayer/location/reservation/rack.rb', line 25

def get_children
  request(:get_children, Array[Softlayer::Location::Reservation::Rack::Member])
end

#get_locationObject



29
30
31
# File 'lib/softlayer/location/reservation/rack.rb', line 29

def get_location
  request(:get_location, Softlayer::Location)
end

#get_location_reservationObject



33
34
35
# File 'lib/softlayer/location/reservation/rack.rb', line 33

def get_location_reservation
  request(:get_location_reservation, Softlayer::Location::Reservation)
end

#get_objectObject



37
38
39
# File 'lib/softlayer/location/reservation/rack.rb', line 37

def get_object
  request(:get_object, Softlayer::Location::Reservation::Rack)
end