Class: Softlayer::Location::Reservation
- Defined in:
- lib/softlayer/location/reservation.rb,
lib/softlayer/location/reservation/rack.rb,
lib/softlayer/location/reservation/rack/member.rb
Defined Under Namespace
Classes: Rack, Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Location_Reservation'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#allotment ⇒ Object
Returns the value of attribute allotment.
-
#allotment_id ⇒ Object
Returns the value of attribute allotment_id.
-
#billing_item ⇒ Object
Returns the value of attribute billing_item.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#location_id ⇒ Object
Returns the value of attribute location_id.
-
#location_reservation_rack ⇒ Object
Returns the value of attribute location_reservation_rack.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
Class Method Summary collapse
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_allotment ⇒ Object
- #get_billing_item ⇒ Object
- #get_location ⇒ Object
- #get_location_reservation_rack ⇒ 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
#account ⇒ Object
Returns the value of attribute account.
11 12 13 |
# File 'lib/softlayer/location/reservation.rb', line 11 def account @account end |
#allotment ⇒ Object
Returns the value of attribute allotment.
12 13 14 |
# File 'lib/softlayer/location/reservation.rb', line 12 def allotment @allotment end |
#allotment_id ⇒ Object
Returns the value of attribute allotment_id.
6 7 8 |
# File 'lib/softlayer/location/reservation.rb', line 6 def allotment_id @allotment_id end |
#billing_item ⇒ Object
Returns the value of attribute billing_item.
13 14 15 |
# File 'lib/softlayer/location/reservation.rb', line 13 def billing_item @billing_item end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/softlayer/location/reservation.rb', line 7 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
14 15 16 |
# File 'lib/softlayer/location/reservation.rb', line 14 def location @location end |
#location_id ⇒ Object
Returns the value of attribute location_id.
8 9 10 |
# File 'lib/softlayer/location/reservation.rb', line 8 def location_id @location_id end |
#location_reservation_rack ⇒ Object
Returns the value of attribute location_reservation_rack.
15 16 17 |
# File 'lib/softlayer/location/reservation.rb', line 15 def location_reservation_rack @location_reservation_rack end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/softlayer/location/reservation.rb', line 9 def name @name end |
#notes ⇒ Object
Returns the value of attribute notes.
10 11 12 |
# File 'lib/softlayer/location/reservation.rb', line 10 def notes @notes end |
Class Method Details
.get_account_reservations ⇒ Object
21 22 23 |
# File 'lib/softlayer/location/reservation.rb', line 21 def self.get_account_reservations request(:get_account_reservations, Array[Softlayer::Location::Reservation]) end |
Instance Method Details
#get_account ⇒ Object
17 18 19 |
# File 'lib/softlayer/location/reservation.rb', line 17 def get_account request(:get_account, Softlayer::Account) end |
#get_allotment ⇒ Object
25 26 27 |
# File 'lib/softlayer/location/reservation.rb', line 25 def get_allotment request(:get_allotment, Softlayer::Network::Bandwidth::Version1::Allotment) end |
#get_billing_item ⇒ Object
29 30 31 |
# File 'lib/softlayer/location/reservation.rb', line 29 def get_billing_item request(:get_billing_item, Softlayer::Billing::Item) end |
#get_location ⇒ Object
33 34 35 |
# File 'lib/softlayer/location/reservation.rb', line 33 def get_location request(:get_location, Softlayer::Location) end |
#get_location_reservation_rack ⇒ Object
37 38 39 |
# File 'lib/softlayer/location/reservation.rb', line 37 def get_location_reservation_rack request(:get_location_reservation_rack, Softlayer::Location::Reservation::Rack) end |
#get_object ⇒ Object
41 42 43 |
# File 'lib/softlayer/location/reservation.rb', line 41 def get_object request(:get_object, Softlayer::Location::Reservation) end |