Class: Softlayer::Network::Backbone

Inherits:
Entity show all
Defined in:
lib/softlayer/network/backbone.rb,
lib/softlayer/network/backbone/location.rb,
lib/softlayer/network/backbone/location/dependent.rb

Defined Under Namespace

Modules: Location Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Backbone'

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

#capacityObject

Returns the value of attribute capacity.



6
7
8
# File 'lib/softlayer/network/backbone.rb', line 6

def capacity
  @capacity
end

#capacity_unitsObject

Returns the value of attribute capacity_units.



7
8
9
# File 'lib/softlayer/network/backbone.rb', line 7

def capacity_units
  @capacity_units
end

#healthObject

Returns the value of attribute health.



12
13
14
# File 'lib/softlayer/network/backbone.rb', line 12

def health
  @health
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/network/backbone.rb', line 8

def id
  @id
end

#locationObject

Returns the value of attribute location.



13
14
15
# File 'lib/softlayer/network/backbone.rb', line 13

def location
  @location
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/softlayer/network/backbone.rb', line 9

def name
  @name
end

#network_componentObject

Returns the value of attribute network_component.



14
15
16
# File 'lib/softlayer/network/backbone.rb', line 14

def network_component
  @network_component
end

#network_component_idObject

Returns the value of attribute network_component_id.



10
11
12
# File 'lib/softlayer/network/backbone.rb', line 10

def network_component_id
  @network_component_id
end

#typeObject

Returns the value of attribute type.



11
12
13
# File 'lib/softlayer/network/backbone.rb', line 11

def type
  @type
end

Class Method Details

.get_all_backbonesObject



16
17
18
# File 'lib/softlayer/network/backbone.rb', line 16

def self.get_all_backbones
  request(:get_all_backbones, Array[Softlayer::Network::Backbone])
end

.get_backbones_for_location_name(message) ⇒ Object

location_name



21
22
23
# File 'lib/softlayer/network/backbone.rb', line 21

def self.get_backbones_for_location_name(message)
  request(:get_backbones_for_location_name, Array[Softlayer::Network::Backbone], message)
end

Instance Method Details

#get_graph_imageObject



25
26
27
# File 'lib/softlayer/network/backbone.rb', line 25

def get_graph_image
  request(:get_graph_image, Softlayer::Base64Binary)
end

#get_healthObject



29
30
31
# File 'lib/softlayer/network/backbone.rb', line 29

def get_health
  request(:get_health, String)
end

#get_locationObject



33
34
35
# File 'lib/softlayer/network/backbone.rb', line 33

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

#get_network_componentObject



37
38
39
# File 'lib/softlayer/network/backbone.rb', line 37

def get_network_component
  request(:get_network_component, Softlayer::Network::Component)
end

#get_objectObject



41
42
43
# File 'lib/softlayer/network/backbone.rb', line 41

def get_object
  request(:get_object, Softlayer::Network::Backbone)
end