Class: Softlayer::Network

Inherits:
Entity show all
Defined in:
lib/softlayer/network.rb,
lib/softlayer/network/pod.rb,
lib/softlayer/network/vlan.rb,
lib/softlayer/network/media.rb,
lib/softlayer/network/subnet.rb,
lib/softlayer/network/tunnel.rb,
lib/softlayer/network/gateway.rb,
lib/softlayer/network/logging.rb,
lib/softlayer/network/message.rb,
lib/softlayer/network/monitor.rb,
lib/softlayer/network/service.rb,
lib/softlayer/network/storage.rb,
lib/softlayer/network/backbone.rb,
lib/softlayer/network/customer.rb,
lib/softlayer/network/firewall.rb,
lib/softlayer/network/regional.rb,
lib/softlayer/network/security.rb,
lib/softlayer/network/bandwidth.rb,
lib/softlayer/network/component.rb,
lib/softlayer/network/vlan/type.rb,
lib/softlayer/network/protection.rb,
lib/softlayer/network/application.rb,
lib/softlayer/network/service/vpn.rb,
lib/softlayer/network/storage/hub.rb,
lib/softlayer/network/storage/nas.rb,
lib/softlayer/network/subnet/swip.rb,
lib/softlayer/network/gateway/vlan.rb,
lib/softlayer/network/storage/type.rb,
lib/softlayer/network/load_balancer.rb,
lib/softlayer/network/message/queue.rb,
lib/softlayer/network/storage/daily.rb,
lib/softlayer/network/storage/event.rb,
lib/softlayer/network/storage/group.rb,
lib/softlayer/network/storage/iscsi.rb,
lib/softlayer/network/subnet/rwhois.rb,
lib/softlayer/network/tunnel/module.rb,
lib/softlayer/network/vlan/firewall.rb,
lib/softlayer/network/gateway/member.rb,
lib/softlayer/network/gateway/status.rb,
lib/softlayer/network/logging/syslog.rb,
lib/softlayer/network/service/health.rb,
lib/softlayer/network/storage/backup.rb,
lib/softlayer/network/bandwidth/usage.rb,
lib/softlayer/network/component/group.rb,
lib/softlayer/network/customer/subnet.rb,
lib/softlayer/network/firewall/module.rb,
lib/softlayer/network/firewall/update.rb,
lib/softlayer/network/media/transcode.rb,
lib/softlayer/network/storage/allowed.rb,
lib/softlayer/network/storage/history.rb,
lib/softlayer/network/component/duplex.rb,
lib/softlayer/network/component/uplink.rb,
lib/softlayer/network/content_delivery.rb,
lib/softlayer/network/message/delivery.rb,
lib/softlayer/network/monitor/version1.rb,
lib/softlayer/network/security/scanner.rb,
lib/softlayer/network/service/resource.rb,
lib/softlayer/network/storage/iscsi/os.rb,
lib/softlayer/network/storage/property.rb,
lib/softlayer/network/storage/schedule.rb,
lib/softlayer/network/storage/snapshot.rb,
lib/softlayer/network/backbone/location.rb,
lib/softlayer/network/component/network.rb,
lib/softlayer/network/firewall/template.rb,
lib/softlayer/network/regional/internet.rb,
lib/softlayer/network/storage/group/nfs.rb,
lib/softlayer/network/storage/hub/swift.rb,
lib/softlayer/network/storage/replicant.rb,
lib/softlayer/network/subnet/ip_address.rb,
lib/softlayer/network/bandwidth/version1.rb,
lib/softlayer/network/component/firewall.rb,
lib/softlayer/network/firewall/interface.rb,
lib/softlayer/network/message/queue/node.rb,
lib/softlayer/network/protection/address.rb,
lib/softlayer/network/storage/credential.rb,
lib/softlayer/network/storage/group/type.rb,
lib/softlayer/network/storage/open_stack.rb,
lib/softlayer/network/subnet/rwhois/data.rb,
lib/softlayer/network/vlan/firewall/rule.rb,
lib/softlayer/network/media/transcode/job.rb,
lib/softlayer/network/storage/daily/usage.rb,
lib/softlayer/network/storage/group/iscsi.rb,
lib/softlayer/network/storage/partnership.rb,
lib/softlayer/network/subnet/registration.rb,
lib/softlayer/network/application/delivery.rb,
lib/softlayer/network/component/ip_address.rb,
lib/softlayer/network/load_balancer/global.rb,
lib/softlayer/network/message/queue/status.rb,
lib/softlayer/network/service/resource/hub.rb,
lib/softlayer/network/storage/allowed/host.rb,
lib/softlayer/network/component/duplex/mode.rb,
lib/softlayer/network/load_balancer/service.rb,
lib/softlayer/network/message/delivery/type.rb,
lib/softlayer/network/service/health/status.rb,
lib/softlayer/network/service/resource/type.rb,
lib/softlayer/network/service/vpn/overrides.rb,
lib/softlayer/network/storage/backup/evault.rb,
lib/softlayer/network/storage/iscsi/os/type.rb,
lib/softlayer/network/storage/property/type.rb,
lib/softlayer/network/storage/schedule/type.rb,
lib/softlayer/network/tunnel/module/context.rb,
lib/softlayer/network/bandwidth/usage/detail.rb,
lib/softlayer/network/component/network/vlan.rb,
lib/softlayer/network/firewall/template/rule.rb,
lib/softlayer/network/message/delivery/email.rb,
lib/softlayer/network/monitor/version1/query.rb,
lib/softlayer/network/bandwidth/version1/host.rb,
lib/softlayer/network/component/firewall/rule.rb,
lib/softlayer/network/firewall/module/context.rb,
lib/softlayer/network/firewall/update/request.rb,
lib/softlayer/network/media/transcode/account.rb,
lib/softlayer/network/message/delivery/vendor.rb,
lib/softlayer/network/storage/credential/type.rb,
lib/softlayer/network/storage/hub/swift/share.rb,
lib/softlayer/network/subnet/swip/transaction.rb,
lib/softlayer/network/tipping_point_reporting.rb,
lib/softlayer/network/bandwidth/version1/usage.rb,
lib/softlayer/network/content_delivery/account.rb,
lib/softlayer/network/security/scanner/request.rb,
lib/softlayer/network/storage/partnership/type.rb,
lib/softlayer/network/subnet/ip_address/global.rb,
lib/softlayer/network/subnet/registration/arin.rb,
lib/softlayer/network/subnet/registration/ripe.rb,
lib/softlayer/network/component/uplink/hardware.rb,
lib/softlayer/network/load_balancer/global/host.rb,
lib/softlayer/network/load_balancer/global/type.rb,
lib/softlayer/network/monitor/version1/incident.rb,
lib/softlayer/network/storage/iscsi/equal_logic.rb,
lib/softlayer/network/storage/open_stack/object.rb,
lib/softlayer/network/storage/schedule/property.rb,
lib/softlayer/network/subnet/registration/apnic.rb,
lib/softlayer/network/subnet/registration/event.rb,
lib/softlayer/network/component/firewall/subnets.rb,
lib/softlayer/network/customer/subnet/ip_address.rb,
lib/softlayer/network/media/transcode/job/status.rb,
lib/softlayer/network/message/delivery/attribute.rb,
lib/softlayer/network/regional/internet/registry.rb,
lib/softlayer/network/service/resource/attribute.rb,
lib/softlayer/network/service/resource/hub/swift.rb,
lib/softlayer/network/storage/hub/swift/version1.rb,
lib/softlayer/network/subnet/ip_address/version6.rb,
lib/softlayer/network/subnet/registration/status.rb,
lib/softlayer/network/backbone/location/dependent.rb,
lib/softlayer/network/component/remote_management.rb,
lib/softlayer/network/media/transcode/job/history.rb,
lib/softlayer/network/monitor/version1/query/host.rb,
lib/softlayer/network/monitor/version1/query/type.rb,
lib/softlayer/network/storage/allowed/host/subnet.rb,
lib/softlayer/network/storage/hub/swift/container.rb,
lib/softlayer/network/subnet/registration/details.rb,
lib/softlayer/network/bandwidth/version1/allotment.rb,
lib/softlayer/network/bandwidth/version1/interface.rb,
lib/softlayer/network/component/network/vlan/trunk.rb,
lib/softlayer/network/firewall/access_control_list.rb,
lib/softlayer/network/firewall/update/request/rule.rb,
lib/softlayer/network/load_balancer/global/account.rb,
lib/softlayer/network/bandwidth/version1/allocation.rb,
lib/softlayer/network/monitor/version1/query/result.rb,
lib/softlayer/network/storage/allowed/host/hardware.rb,
lib/softlayer/network/tunnel/module/context/address.rb,
lib/softlayer/network/storage/backup/evault/version6.rb,
lib/softlayer/network/storage/schedule/property/type.rb,
lib/softlayer/network/subnet/registration/event/type.rb,
lib/softlayer/network/application/delivery/controller.rb,
lib/softlayer/network/bandwidth/version1/usage/detail.rb,
lib/softlayer/network/content_delivery/account/status.rb,
lib/softlayer/network/content_delivery/authentication.rb,
lib/softlayer/network/message/delivery/email/sendgrid.rb,
lib/softlayer/network/security/scanner/request/status.rb,
lib/softlayer/network/service/resource/attribute/type.rb,
lib/softlayer/network/service/resource/monitoring_hub.rb,
lib/softlayer/network/storage/allowed/host/ip_address.rb,
lib/softlayer/network/firewall/update/request/customer.rb,
lib/softlayer/network/firewall/update/request/employee.rb,
lib/softlayer/network/load_balancer/virtual_ip_address.rb,
lib/softlayer/network/firewall/module/context/interface.rb,
lib/softlayer/network/storage/allowed/host/virtual_guest.rb,
lib/softlayer/network/storage/iscsi/equal_logic/version3.rb,
lib/softlayer/network/bandwidth/version1/allotment/detail.rb,
lib/softlayer/network/monitor/version1/query/host/stratum.rb,
lib/softlayer/network/application/delivery/controller/type.rb,
lib/softlayer/network/bandwidth/version1/usage/detail/type.rb,
lib/softlayer/network/monitor/version1/query/response_type.rb,
lib/softlayer/network/service/resource/nimsoft_landing_hub.rb,
lib/softlayer/network/bandwidth/version1/usage/detail/total.rb,
lib/softlayer/network/content_delivery/authentication/token.rb,
lib/softlayer/network/firewall/update/request/rule/version6.rb,
lib/softlayer/network/content_delivery/authentication/address.rb,
lib/softlayer/network/tunnel/module/context/address/translation.rb,
lib/softlayer/network/storage/iscsi/equal_logic/version3/snapshot.rb,
lib/softlayer/network/storage/iscsi/equal_logic/version3/replicant.rb,
lib/softlayer/network/application/delivery/controller/configuration.rb,
lib/softlayer/network/application/delivery/controller/load_balancer.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health.rb,
lib/softlayer/network/application/delivery/controller/configuration/history.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/routing.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/check.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/routing/type.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service/group.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/routing/method.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/attribute.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/check/type.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/health/attribute/type.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service/group/cross_reference.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address/secure_transport_cipher.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address/secure_transport_protocol.rb

Defined Under Namespace

Modules: Application, Bandwidth, ContentDelivery, Customer, Firewall, LoadBalancer, Logging, Media, Message, Protection, Regional, Security, Service, Tunnel Classes: Backbone, Component, Gateway, Monitor, Pod, Representer, Storage, Subnet, TippingPointReporting, Vlan

Constant Summary collapse

SERVICE =
'SoftLayer_Network'

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

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#cidrObject

Returns the value of attribute cidr.



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

def cidr
  @cidr
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#network_identifierObject

Returns the value of attribute network_identifier.



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

def network_identifier
  @network_identifier
end

#notesObject

Returns the value of attribute notes.



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

def notes
  @notes
end

#subnet_countObject

Returns the value of attribute subnet_count.



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

def subnet_count
  @subnet_count
end

#subnetsObject

Returns the value of attribute subnets.



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

def subnets
  @subnets
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

def self.create_object(message)
  request(:create_object, Softlayer::Network, message)
end

.get_all_objectsObject



61
62
63
# File 'lib/softlayer/network.rb', line 61

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

Instance Method Details

#create_subnet(message) ⇒ Object

subnet pod



43
44
45
# File 'lib/softlayer/network.rb', line 43

def create_subnet(message)
  request(:create_subnet, Softlayer::Network::Subnet, message)
end

#delete_objectObject



47
48
49
# File 'lib/softlayer/network.rb', line 47

def delete_object
  request(:delete_object, Boolean)
end

#delete_subnet(message) ⇒ Object

subnet



52
53
54
# File 'lib/softlayer/network.rb', line 52

def delete_subnet(message)
  request(:delete_subnet, Boolean, message)
end

#edit_object(message) ⇒ Object

template_object



57
58
59
# File 'lib/softlayer/network.rb', line 57

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_cidrObject



65
66
67
# File 'lib/softlayer/network.rb', line 65

def get_cidr
  request(:get_cidr, Integer)
end

#get_nameObject



69
70
71
# File 'lib/softlayer/network.rb', line 69

def get_name
  request(:get_name, String)
end

#get_network_identifierObject



73
74
75
# File 'lib/softlayer/network.rb', line 73

def get_network_identifier
  request(:get_network_identifier, String)
end

#get_notesObject



77
78
79
# File 'lib/softlayer/network.rb', line 77

def get_notes
  request(:get_notes, String)
end

#get_objectObject



81
82
83
# File 'lib/softlayer/network.rb', line 81

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

#get_subnetsObject



85
86
87
# File 'lib/softlayer/network.rb', line 85

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