Class: Softlayer::Location::Reservation::Rack
- 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
-
#allotment ⇒ Object
Returns the value of attribute allotment.
-
#children ⇒ Object
Returns the value of attribute children.
-
#children_count ⇒ Object
Returns the value of attribute children_count.
-
#location ⇒ Object
Returns the value of attribute location.
-
#location_id ⇒ Object
Returns the value of attribute location_id.
-
#location_reservation ⇒ Object
Returns the value of attribute location_reservation.
-
#location_reservation_id ⇒ Object
Returns the value of attribute location_reservation_id.
-
#network_connection_capacity ⇒ Object
Returns the value of attribute network_connection_capacity.
-
#network_connection_reservation ⇒ Object
Returns the value of attribute network_connection_reservation.
-
#power_connection_capacity ⇒ Object
Returns the value of attribute power_connection_capacity.
-
#power_connection_reservation ⇒ Object
Returns the value of attribute power_connection_reservation.
-
#slot_capacity ⇒ Object
Returns the value of attribute slot_capacity.
-
#slot_reservation ⇒ Object
Returns the value of attribute slot_reservation.
Instance Method Summary collapse
- #get_allotment ⇒ Object
- #get_children ⇒ Object
- #get_location ⇒ Object
- #get_location_reservation ⇒ Object
- #get_object ⇒ Object
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
#allotment ⇒ Object
Returns the value of attribute allotment.
16 17 18 |
# File 'lib/softlayer/location/reservation/rack.rb', line 16 def allotment @allotment end |
#children ⇒ Object
Returns the value of attribute children.
17 18 19 |
# File 'lib/softlayer/location/reservation/rack.rb', line 17 def children @children end |
#children_count ⇒ Object
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 |
#location ⇒ Object
Returns the value of attribute location.
18 19 20 |
# File 'lib/softlayer/location/reservation/rack.rb', line 18 def location @location end |
#location_id ⇒ Object
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_reservation ⇒ Object
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_id ⇒ Object
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_capacity ⇒ Object
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_reservation ⇒ Object
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_capacity ⇒ Object
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_reservation ⇒ Object
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_capacity ⇒ Object
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_reservation ⇒ Object
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_allotment ⇒ Object
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_children ⇒ Object
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_location ⇒ Object
29 30 31 |
# File 'lib/softlayer/location/reservation/rack.rb', line 29 def get_location request(:get_location, Softlayer::Location) end |
#get_location_reservation ⇒ Object
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_object ⇒ Object
37 38 39 |
# File 'lib/softlayer/location/reservation/rack.rb', line 37 def get_object request(:get_object, Softlayer::Location::Reservation::Rack) end |