Class: Softlayer::Location::Reservation

Inherits:
Entity show all
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

Class Method 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.



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

def 
  @account
end

#allotmentObject

Returns the value of attribute allotment.



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

def allotment
  @allotment
end

#allotment_idObject

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_itemObject

Returns the value of attribute billing_item.



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

def billing_item
  @billing_item
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#location_idObject

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_rackObject

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

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#notesObject

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_reservationsObject



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

def self.
  request(:get_account_reservations, Array[Softlayer::Location::Reservation])
end

Instance Method Details

#get_accountObject



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

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

#get_allotmentObject



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_itemObject



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

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_locationObject



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

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

#get_location_reservation_rackObject



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_objectObject



41
42
43
# File 'lib/softlayer/location/reservation.rb', line 41

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