Class: Softlayer::Network::Gateway::Member
- Defined in:
- lib/softlayer/network/gateway/member.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Network_Gateway_Member'
Instance Attribute Summary collapse
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#network_gateway ⇒ Object
Returns the value of attribute network_gateway.
-
#network_gateway_id ⇒ Object
Returns the value of attribute network_gateway_id.
-
#priority ⇒ Object
Returns the value of attribute priority.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#hardware ⇒ Object
Returns the value of attribute hardware.
10 11 12 |
# File 'lib/softlayer/network/gateway/member.rb', line 10 def hardware @hardware end |
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
6 7 8 |
# File 'lib/softlayer/network/gateway/member.rb', line 6 def hardware_id @hardware_id end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/softlayer/network/gateway/member.rb', line 7 def id @id end |
#network_gateway ⇒ Object
Returns the value of attribute network_gateway.
11 12 13 |
# File 'lib/softlayer/network/gateway/member.rb', line 11 def network_gateway @network_gateway end |
#network_gateway_id ⇒ Object
Returns the value of attribute network_gateway_id.
8 9 10 |
# File 'lib/softlayer/network/gateway/member.rb', line 8 def network_gateway_id @network_gateway_id end |
#priority ⇒ Object
Returns the value of attribute priority.
9 10 11 |
# File 'lib/softlayer/network/gateway/member.rb', line 9 def priority @priority end |
Class Method Details
.create_object(template_object = nil) ⇒ Object
13 14 15 16 |
# File 'lib/softlayer/network/gateway/member.rb', line 13 def self.create_object(template_object = nil) = {template_object: template_object} request(:create_object, Softlayer::Network::Gateway::Member, ) end |
.create_objects(template_objects = nil) ⇒ Object
18 19 20 21 |
# File 'lib/softlayer/network/gateway/member.rb', line 18 def self.create_objects(template_objects = nil) = {template_objects: template_objects} request(:create_objects, Array[Softlayer::Network::Gateway::Member], ) end |
Instance Method Details
#get_hardware ⇒ Object
23 24 25 |
# File 'lib/softlayer/network/gateway/member.rb', line 23 def get_hardware request(:get_hardware, Softlayer::Hardware) end |
#get_network_gateway ⇒ Object
27 28 29 |
# File 'lib/softlayer/network/gateway/member.rb', line 27 def get_network_gateway request(:get_network_gateway, Softlayer::Network::Gateway) end |
#get_object ⇒ Object
31 32 33 |
# File 'lib/softlayer/network/gateway/member.rb', line 31 def get_object request(:get_object, Softlayer::Network::Gateway::Member) end |