Class: Softlayer::Virtual::Guest::Network::Component

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/virtual/guest/network/component.rb,
lib/softlayer/virtual/guest/network/component/ip_address.rb

Defined Under Namespace

Classes: IpAddress, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Virtual_Guest_Network_Component'

Instance Attribute 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

#create_dateObject

Returns the value of attribute create_date.



8
9
10
# File 'lib/softlayer/virtual/guest/network/component.rb', line 8

def create_date
  @create_date
end

#guestObject

Returns the value of attribute guest.



22
23
24
# File 'lib/softlayer/virtual/guest/network/component.rb', line 22

def guest
  @guest
end

#guest_idObject

Returns the value of attribute guest_id.



9
10
11
# File 'lib/softlayer/virtual/guest/network/component.rb', line 9

def guest_id
  @guest_id
end

#high_availability_firewall_flagObject

Returns the value of attribute high_availability_firewall_flag.



23
24
25
# File 'lib/softlayer/virtual/guest/network/component.rb', line 23

def high_availability_firewall_flag
  @high_availability_firewall_flag
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/virtual/guest/network/component.rb', line 10

def id
  @id
end

#ip_address_binding_countObject

Returns the value of attribute ip_address_binding_count.



20
21
22
# File 'lib/softlayer/virtual/guest/network/component.rb', line 20

def ip_address_binding_count
  @ip_address_binding_count
end

#ip_address_bindingsObject

Returns the value of attribute ip_address_bindings.



24
25
26
# File 'lib/softlayer/virtual/guest/network/component.rb', line 24

def ip_address_bindings
  @ip_address_bindings
end

#mac_addressObject

Returns the value of attribute mac_address.



11
12
13
# File 'lib/softlayer/virtual/guest/network/component.rb', line 11

def mac_address
  @mac_address
end

#max_speedObject

Returns the value of attribute max_speed.



12
13
14
# File 'lib/softlayer/virtual/guest/network/component.rb', line 12

def max_speed
  @max_speed
end

#modify_dateObject

Returns the value of attribute modify_date.



13
14
15
# File 'lib/softlayer/virtual/guest/network/component.rb', line 13

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/softlayer/virtual/guest/network/component.rb', line 14

def name
  @name
end

#network_component_firewallObject

Returns the value of attribute network_component_firewall.



25
26
27
# File 'lib/softlayer/virtual/guest/network/component.rb', line 25

def network_component_firewall
  @network_component_firewall
end

#network_idObject

Returns the value of attribute network_id.



15
16
17
# File 'lib/softlayer/virtual/guest/network/component.rb', line 15

def network_id
  @network_id
end

#network_vlanObject

Returns the value of attribute network_vlan.



26
27
28
# File 'lib/softlayer/virtual/guest/network/component.rb', line 26

def network_vlan
  @network_vlan
end

#portObject

Returns the value of attribute port.



16
17
18
# File 'lib/softlayer/virtual/guest/network/component.rb', line 16

def port
  @port
end

#primary_ip_addressObject

Returns the value of attribute primary_ip_address.



27
28
29
# File 'lib/softlayer/virtual/guest/network/component.rb', line 27

def primary_ip_address
  @primary_ip_address
end

#primary_ip_address_recordObject

Returns the value of attribute primary_ip_address_record.



28
29
30
# File 'lib/softlayer/virtual/guest/network/component.rb', line 28

def primary_ip_address_record
  @primary_ip_address_record
end

#primary_subnetObject

Returns the value of attribute primary_subnet.



29
30
31
# File 'lib/softlayer/virtual/guest/network/component.rb', line 29

def primary_subnet
  @primary_subnet
end

#primary_version6_ip_address_recordObject

Returns the value of attribute primary_version6_ip_address_record.



30
31
32
# File 'lib/softlayer/virtual/guest/network/component.rb', line 30

def primary_version6_ip_address_record
  @primary_version6_ip_address_record
end

#routerObject

Returns the value of attribute router.



31
32
33
# File 'lib/softlayer/virtual/guest/network/component.rb', line 31

def router
  @router
end

#speedObject

Returns the value of attribute speed.



17
18
19
# File 'lib/softlayer/virtual/guest/network/component.rb', line 17

def speed
  @speed
end

#statusObject

Returns the value of attribute status.



18
19
20
# File 'lib/softlayer/virtual/guest/network/component.rb', line 18

def status
  @status
end

#subnet_countObject

Returns the value of attribute subnet_count.



21
22
23
# File 'lib/softlayer/virtual/guest/network/component.rb', line 21

def subnet_count
  @subnet_count
end

#subnetsObject

Returns the value of attribute subnets.



32
33
34
# File 'lib/softlayer/virtual/guest/network/component.rb', line 32

def subnets
  @subnets
end

#uuidObject

Returns the value of attribute uuid.



19
20
21
# File 'lib/softlayer/virtual/guest/network/component.rb', line 19

def uuid
  @uuid
end

Instance Method Details

#disableObject



34
35
36
# File 'lib/softlayer/virtual/guest/network/component.rb', line 34

def disable
  request(:disable, Boolean)
end

#enableObject



38
39
40
# File 'lib/softlayer/virtual/guest/network/component.rb', line 38

def enable
  request(:enable, Boolean)
end

#get_guestObject



42
43
44
# File 'lib/softlayer/virtual/guest/network/component.rb', line 42

def get_guest
  request(:get_guest, Softlayer::Virtual::Guest)
end

#get_high_availability_firewall_flagObject



46
47
48
# File 'lib/softlayer/virtual/guest/network/component.rb', line 46

def get_high_availability_firewall_flag
  request(:get_high_availability_firewall_flag, Boolean)
end

#get_ip_address_bindingsObject



50
51
52
# File 'lib/softlayer/virtual/guest/network/component.rb', line 50

def get_ip_address_bindings
  request(:get_ip_address_bindings, Array[Softlayer::Virtual::Guest::Network::Component::IpAddress])
end

#get_network_component_firewallObject



54
55
56
# File 'lib/softlayer/virtual/guest/network/component.rb', line 54

def get_network_component_firewall
  request(:get_network_component_firewall, Softlayer::Network::Component::Firewall)
end

#get_network_vlanObject



58
59
60
# File 'lib/softlayer/virtual/guest/network/component.rb', line 58

def get_network_vlan
  request(:get_network_vlan, Softlayer::Network::Vlan)
end

#get_objectObject



62
63
64
# File 'lib/softlayer/virtual/guest/network/component.rb', line 62

def get_object
  request(:get_object, Softlayer::Virtual::Guest::Network::Component)
end

#get_primary_ip_addressObject



66
67
68
# File 'lib/softlayer/virtual/guest/network/component.rb', line 66

def get_primary_ip_address
  request(:get_primary_ip_address, String)
end

#get_primary_ip_address_recordObject



70
71
72
# File 'lib/softlayer/virtual/guest/network/component.rb', line 70

def get_primary_ip_address_record
  request(:get_primary_ip_address_record, Softlayer::Network::Subnet::IpAddress)
end

#get_primary_subnetObject



74
75
76
# File 'lib/softlayer/virtual/guest/network/component.rb', line 74

def get_primary_subnet
  request(:get_primary_subnet, Softlayer::Network::Subnet)
end

#get_primary_version6_ip_address_recordObject



78
79
80
# File 'lib/softlayer/virtual/guest/network/component.rb', line 78

def get_primary_version6_ip_address_record
  request(:get_primary_version6_ip_address_record, Softlayer::Network::Subnet::IpAddress)
end

#get_routerObject



82
83
84
# File 'lib/softlayer/virtual/guest/network/component.rb', line 82

def get_router
  request(:get_router, Softlayer::Hardware::Router)
end

#get_subnetsObject



86
87
88
# File 'lib/softlayer/virtual/guest/network/component.rb', line 86

def get_subnets
  request(:get_subnets, Array[Softlayer::Network::Subnet])
end

#is_pingableObject



90
91
92
# File 'lib/softlayer/virtual/guest/network/component.rb', line 90

def is_pingable
  request(:is_pingable, Boolean)
end