softlayer 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -2
  3. data/data/.services_cache +266 -242
  4. data/data/Catalyst_Company_Type.wsdl +97 -0
  5. data/data/Locale.wsdl +99 -0
  6. data/data/Network_Monitor_Version1_Query_Host.wsdl +0 -23
  7. data/data/Software_AccountLicense.wsdl +145 -0
  8. data/data/User_Customer_Prospect_ServiceProvider_EnrollRequest.wsdl +122 -0
  9. data/data/types.xsd +87 -2
  10. data/lib/softlayer.rb +9 -9
  11. data/lib/softlayer/account/authentication.rb +1 -0
  12. data/lib/softlayer/billing/payment.rb +1 -0
  13. data/lib/softlayer/catalyst/company/type.rb +9 -0
  14. data/lib/softlayer/container.rb +2 -0
  15. data/lib/softlayer/container/network.rb +1 -0
  16. data/lib/softlayer/container/network/storage.rb +1 -0
  17. data/lib/softlayer/container/product/order/network/application.rb +1 -1
  18. data/lib/softlayer/container/product/order/network/application/delivery.rb +1 -1
  19. data/lib/softlayer/container/product/order/network/content_delivery.rb +1 -1
  20. data/lib/softlayer/container/product/order/network/message.rb +1 -1
  21. data/lib/softlayer/container/product/order/network/protection.rb +1 -1
  22. data/lib/softlayer/container/product/order/network/storage.rb +1 -1
  23. data/lib/softlayer/container/product/order/network/storage/backup.rb +1 -1
  24. data/lib/softlayer/container/product/order/network/storage/backup/evault.rb +1 -1
  25. data/lib/softlayer/container/product/order/network/tunnel.rb +1 -1
  26. data/lib/softlayer/container/product/order/software/component.rb +1 -8
  27. data/lib/softlayer/generator.rb +1 -0
  28. data/lib/softlayer/generator/data_type.rb +6 -1
  29. data/lib/softlayer/locale.rb +10 -0
  30. data/lib/softlayer/network/application.rb +1 -1
  31. data/lib/softlayer/network/application/delivery.rb +1 -1
  32. data/lib/softlayer/network/application/delivery/controller/configuration.rb +1 -1
  33. data/lib/softlayer/network/application/delivery/controller/load_balancer.rb +1 -1
  34. data/lib/softlayer/network/application/delivery/controller/load_balancer/health.rb +1 -1
  35. data/lib/softlayer/network/application/delivery/controller/load_balancer/routing.rb +1 -1
  36. data/lib/softlayer/network/component/duplex.rb +1 -1
  37. data/lib/softlayer/network/component/network.rb +1 -1
  38. data/lib/softlayer/network/component/network/vlan.rb +1 -1
  39. data/lib/softlayer/network/component/uplink.rb +1 -1
  40. data/lib/softlayer/network/content_delivery.rb +1 -1
  41. data/lib/softlayer/network/content_delivery/authentication.rb +1 -1
  42. data/lib/softlayer/network/customer.rb +1 -1
  43. data/lib/softlayer/network/firewall.rb +1 -1
  44. data/lib/softlayer/network/firewall/module.rb +1 -1
  45. data/lib/softlayer/network/firewall/module/context.rb +1 -1
  46. data/lib/softlayer/network/firewall/update.rb +1 -1
  47. data/lib/softlayer/network/load_balancer.rb +1 -1
  48. data/lib/softlayer/network/load_balancer/global.rb +1 -1
  49. data/lib/softlayer/network/logging.rb +1 -1
  50. data/lib/softlayer/network/media.rb +1 -1
  51. data/lib/softlayer/network/media/transcode.rb +1 -1
  52. data/lib/softlayer/network/message.rb +1 -1
  53. data/lib/softlayer/network/message/delivery/email.rb +1 -1
  54. data/lib/softlayer/network/monitor/version1.rb +1 -1
  55. data/lib/softlayer/network/monitor/version1/query.rb +1 -1
  56. data/lib/softlayer/network/monitor/version1/query/host.rb +0 -5
  57. data/lib/softlayer/network/protection.rb +1 -1
  58. data/lib/softlayer/network/regional.rb +1 -1
  59. data/lib/softlayer/network/regional/internet.rb +1 -1
  60. data/lib/softlayer/network/security.rb +1 -1
  61. data/lib/softlayer/network/security/scanner.rb +1 -1
  62. data/lib/softlayer/network/service.rb +1 -1
  63. data/lib/softlayer/network/service/vpn.rb +1 -1
  64. data/lib/softlayer/network/storage/allowed.rb +1 -1
  65. data/lib/softlayer/network/storage/daily.rb +1 -1
  66. data/lib/softlayer/network/storage/iscsi/equal_logic.rb +1 -1
  67. data/lib/softlayer/network/storage/iscsi/os.rb +1 -1
  68. data/lib/softlayer/network/storage/open_stack.rb +1 -1
  69. data/lib/softlayer/network/subnet/rwhois.rb +1 -1
  70. data/lib/softlayer/network/subnet/swip.rb +1 -1
  71. data/lib/softlayer/network/tunnel.rb +1 -1
  72. data/lib/softlayer/network/tunnel/module.rb +1 -1
  73. data/lib/softlayer/network/tunnel/module/context/address.rb +1 -1
  74. data/lib/softlayer/notification/occurrence/resource/network/storage.rb +2 -0
  75. data/lib/softlayer/notification/occurrence/resource/network/storage/iscsi.rb +1 -0
  76. data/lib/softlayer/notification/occurrence/resource/network/storage/iscsi/equal_logic.rb +27 -0
  77. data/lib/softlayer/notification/occurrence/resource/network/storage/lockbox.rb +25 -0
  78. data/lib/softlayer/notification/occurrence/resource/network/storage/nas.rb +25 -0
  79. data/lib/softlayer/security.rb +1 -0
  80. data/lib/softlayer/software/account_license.rb +17 -0
  81. data/lib/softlayer/user/customer/prospect/service_provider/enroll_request.rb +14 -0
  82. data/lib/softlayer/version.rb +1 -1
  83. metadata +9 -2
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Component
4
4
  module Network
5
5
  module Vlan
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Component
4
4
  module Uplink
5
5
  autoload :Hardware, 'softlayer/network/component/uplink/hardware'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module ContentDelivery
4
4
  autoload :Account, 'softlayer/network/content_delivery/account'
5
5
  autoload :Authentication, 'softlayer/network/content_delivery/authentication'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module ContentDelivery
4
4
  module Authentication
5
5
  autoload :Address, 'softlayer/network/content_delivery/authentication/address'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Customer
4
4
  autoload :Subnet, 'softlayer/network/customer/subnet'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Firewall
4
4
  autoload :AccessControlList, 'softlayer/network/firewall/access_control_list'
5
5
  autoload :Interface, 'softlayer/network/firewall/interface'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Firewall
4
4
  module Module
5
5
  autoload :Context, 'softlayer/network/firewall/module/context'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Firewall
4
4
  module Module
5
5
  module Context
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Firewall
4
4
  module Update
5
5
  autoload :Request, 'softlayer/network/firewall/update/request'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module LoadBalancer
4
4
  autoload :Service, 'softlayer/network/load_balancer/service'
5
5
  autoload :VirtualIpAddress, 'softlayer/network/load_balancer/virtual_ip_address'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module LoadBalancer
4
4
  module Global
5
5
  autoload :Account, 'softlayer/network/load_balancer/global/account'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Logging
4
4
  autoload :Syslog, 'softlayer/network/logging/syslog'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Media
4
4
  autoload :Transcode, 'softlayer/network/media/transcode'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Media
4
4
  module Transcode
5
5
  autoload :Account, 'softlayer/network/media/transcode/account'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Message
4
4
  autoload :Delivery, 'softlayer/network/message/delivery'
5
5
  autoload :Queue, 'softlayer/network/message/queue'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Message
4
4
  class Delivery
5
5
  module Email
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Monitor
4
4
  module Version1
5
5
  autoload :Incident, 'softlayer/network/monitor/version1/incident'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Monitor
4
4
  module Version1
5
5
  module Query
@@ -20,7 +20,6 @@ module Softlayer
20
20
  attr_accessor :last_result
21
21
  attr_accessor :query_type
22
22
  attr_accessor :response_action
23
- attr_accessor :subnet
24
23
 
25
24
  # template_object
26
25
  def self.create_object(message)
@@ -76,10 +75,6 @@ module Softlayer
76
75
  request(:get_response_action, Softlayer::Network::Monitor::Version1::Query::ResponseType)
77
76
  end
78
77
 
79
- def get_subnet
80
- request(:get_subnet, Softlayer::Network::Subnet)
81
- end
82
-
83
78
  class Representer < Softlayer::Entity::Representer
84
79
  include Representable::Hash
85
80
  include Representable::Coercion
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Protection
4
4
  autoload :Address, 'softlayer/network/protection/address'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Regional
4
4
  autoload :Internet, 'softlayer/network/regional/internet'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Regional
4
4
  module Internet
5
5
  autoload :Registry, 'softlayer/network/regional/internet/registry'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Security
4
4
  autoload :Scanner, 'softlayer/network/security/scanner'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Security
4
4
  module Scanner
5
5
  autoload :Request, 'softlayer/network/security/scanner/request'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Service
4
4
  autoload :Health, 'softlayer/network/service/health'
5
5
  autoload :Resource, 'softlayer/network/service/resource'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Service
4
4
  module Vpn
5
5
  autoload :Overrides, 'softlayer/network/service/vpn/overrides'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Storage
4
4
  module Allowed
5
5
  autoload :Host, 'softlayer/network/storage/allowed/host'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Storage
4
4
  module Daily
5
5
  autoload :Usage, 'softlayer/network/storage/daily/usage'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Storage
4
4
  class Iscsi
5
5
  module EqualLogic
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Storage
4
4
  class Iscsi
5
5
  module Os
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Storage
4
4
  module OpenStack
5
5
  autoload :Object, 'softlayer/network/storage/open_stack/object'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Subnet
4
4
  module Rwhois
5
5
  autoload :Data, 'softlayer/network/subnet/rwhois/data'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  class Subnet
4
4
  module Swip
5
5
  autoload :Transaction, 'softlayer/network/subnet/swip/transaction'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Tunnel
4
4
  autoload :Module, 'softlayer/network/tunnel/module'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Tunnel
4
4
  module Module
5
5
  autoload :Context, 'softlayer/network/tunnel/module/context'
@@ -1,5 +1,5 @@
1
1
  module Softlayer
2
- module Network
2
+ class Network
3
3
  module Tunnel
4
4
  module Module
5
5
  class Context
@@ -4,6 +4,8 @@ module Softlayer
4
4
  class Resource
5
5
  module Network
6
6
  module Storage
7
+ autoload :Lockbox, 'softlayer/notification/occurrence/resource/network/storage/lockbox'
8
+ autoload :Nas, 'softlayer/notification/occurrence/resource/network/storage/nas'
7
9
  autoload :Iscsi, 'softlayer/notification/occurrence/resource/network/storage/iscsi'
8
10
  autoload :NetApp, 'softlayer/notification/occurrence/resource/network/storage/net_app'
9
11
  end
@@ -5,6 +5,7 @@ module Softlayer
5
5
  module Network
6
6
  module Storage
7
7
  module Iscsi
8
+ autoload :EqualLogic, 'softlayer/notification/occurrence/resource/network/storage/iscsi/equal_logic'
8
9
  autoload :NetApp, 'softlayer/notification/occurrence/resource/network/storage/iscsi/net_app'
9
10
  end
10
11
  end
@@ -0,0 +1,27 @@
1
+ module Softlayer
2
+ class Notification
3
+ module Occurrence
4
+ class Resource
5
+ module Network
6
+ module Storage
7
+ module Iscsi
8
+ class EqualLogic < Softlayer::Notification::Occurrence::Resource
9
+ attr_accessor :hostname
10
+ attr_accessor :private_ip
11
+ attr_accessor :resource_type
12
+
13
+ class Representer < Softlayer::Notification::Occurrence::Resource::Representer
14
+ include Representable::Hash
15
+ include Representable::Coercion
16
+ property :hostname, type: String
17
+ property :private_ip, type: String
18
+ property :resource_type, type: String
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,25 @@
1
+ module Softlayer
2
+ class Notification
3
+ module Occurrence
4
+ class Resource
5
+ module Network
6
+ module Storage
7
+ class Lockbox < Softlayer::Notification::Occurrence::Resource
8
+ attr_accessor :hostname
9
+ attr_accessor :private_ip
10
+ attr_accessor :resource_type
11
+
12
+ class Representer < Softlayer::Notification::Occurrence::Resource::Representer
13
+ include Representable::Hash
14
+ include Representable::Coercion
15
+ property :hostname, type: String
16
+ property :private_ip, type: String
17
+ property :resource_type, type: String
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ module Softlayer
2
+ class Notification
3
+ module Occurrence
4
+ class Resource
5
+ module Network
6
+ module Storage
7
+ class Nas < Softlayer::Notification::Occurrence::Resource
8
+ attr_accessor :hostname
9
+ attr_accessor :private_ip
10
+ attr_accessor :resource_type
11
+
12
+ class Representer < Softlayer::Notification::Occurrence::Resource::Representer
13
+ include Representable::Hash
14
+ include Representable::Coercion
15
+ property :hostname, type: String
16
+ property :private_ip, type: String
17
+ property :resource_type, type: String
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,6 +1,7 @@
1
1
  module Softlayer
2
2
  module Security
3
3
  autoload :Certificate, 'softlayer/security/certificate'
4
+ autoload :SecureTransportCipher, 'softlayer/security/secure_transport_cipher'
4
5
  autoload :SecureTransportProtocol, 'softlayer/security/secure_transport_protocol'
5
6
  autoload :Directory, 'softlayer/security/directory'
6
7
  autoload :Ssh, 'softlayer/security/ssh'
@@ -1,6 +1,7 @@
1
1
  module Softlayer
2
2
  module Software
3
3
  class AccountLicense < Softlayer::Entity
4
+ SERVICE = 'SoftLayer_Software_AccountLicense'
4
5
  attr_accessor :account_id
5
6
  attr_accessor :capacity
6
7
  attr_accessor :key
@@ -9,6 +10,22 @@ module Softlayer
9
10
  attr_accessor :billing_item
10
11
  attr_accessor :software_description
11
12
 
13
+ def get_account
14
+ request(:get_account, Softlayer::Account)
15
+ end
16
+
17
+ def get_billing_item
18
+ request(:get_billing_item, Softlayer::Billing::Item)
19
+ end
20
+
21
+ def get_object
22
+ request(:get_object, Softlayer::Software::AccountLicense)
23
+ end
24
+
25
+ def get_software_description
26
+ request(:get_software_description, Softlayer::Software::Description)
27
+ end
28
+
12
29
  class Representer < Softlayer::Entity::Representer
13
30
  include Representable::Hash
14
31
  include Representable::Coercion
@@ -4,6 +4,7 @@ module Softlayer
4
4
  class Prospect
5
5
  module ServiceProvider
6
6
  class EnrollRequest < Softlayer::Entity
7
+ SERVICE = 'SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest'
7
8
  attr_accessor :account_id
8
9
  attr_accessor :address1
9
10
  attr_accessor :address2
@@ -38,6 +39,19 @@ module Softlayer
38
39
  attr_accessor :vat_id
39
40
  attr_accessor :company_type
40
41
 
42
+ # template_object
43
+ def self.enroll(message)
44
+ request(:enroll, Softlayer::User::Customer::Prospect::ServiceProvider::EnrollRequest, message)
45
+ end
46
+
47
+ def get_company_type
48
+ request(:get_company_type, Softlayer::Catalyst::Company::Type)
49
+ end
50
+
51
+ def get_object
52
+ request(:get_object, Softlayer::User::Customer::Prospect::ServiceProvider::EnrollRequest)
53
+ end
54
+
41
55
  class Representer < Softlayer::Entity::Representer
42
56
  include Representable::Hash
43
57
  include Representable::Coercion