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.
- checksums.yaml +4 -4
- data/Rakefile +9 -2
- data/data/.services_cache +266 -242
- data/data/Catalyst_Company_Type.wsdl +97 -0
- data/data/Locale.wsdl +99 -0
- data/data/Network_Monitor_Version1_Query_Host.wsdl +0 -23
- data/data/Software_AccountLicense.wsdl +145 -0
- data/data/User_Customer_Prospect_ServiceProvider_EnrollRequest.wsdl +122 -0
- data/data/types.xsd +87 -2
- data/lib/softlayer.rb +9 -9
- data/lib/softlayer/account/authentication.rb +1 -0
- data/lib/softlayer/billing/payment.rb +1 -0
- data/lib/softlayer/catalyst/company/type.rb +9 -0
- data/lib/softlayer/container.rb +2 -0
- data/lib/softlayer/container/network.rb +1 -0
- data/lib/softlayer/container/network/storage.rb +1 -0
- data/lib/softlayer/container/product/order/network/application.rb +1 -1
- data/lib/softlayer/container/product/order/network/application/delivery.rb +1 -1
- data/lib/softlayer/container/product/order/network/content_delivery.rb +1 -1
- data/lib/softlayer/container/product/order/network/message.rb +1 -1
- data/lib/softlayer/container/product/order/network/protection.rb +1 -1
- data/lib/softlayer/container/product/order/network/storage.rb +1 -1
- data/lib/softlayer/container/product/order/network/storage/backup.rb +1 -1
- data/lib/softlayer/container/product/order/network/storage/backup/evault.rb +1 -1
- data/lib/softlayer/container/product/order/network/tunnel.rb +1 -1
- data/lib/softlayer/container/product/order/software/component.rb +1 -8
- data/lib/softlayer/generator.rb +1 -0
- data/lib/softlayer/generator/data_type.rb +6 -1
- data/lib/softlayer/locale.rb +10 -0
- data/lib/softlayer/network/application.rb +1 -1
- data/lib/softlayer/network/application/delivery.rb +1 -1
- data/lib/softlayer/network/application/delivery/controller/configuration.rb +1 -1
- data/lib/softlayer/network/application/delivery/controller/load_balancer.rb +1 -1
- data/lib/softlayer/network/application/delivery/controller/load_balancer/health.rb +1 -1
- data/lib/softlayer/network/application/delivery/controller/load_balancer/routing.rb +1 -1
- data/lib/softlayer/network/component/duplex.rb +1 -1
- data/lib/softlayer/network/component/network.rb +1 -1
- data/lib/softlayer/network/component/network/vlan.rb +1 -1
- data/lib/softlayer/network/component/uplink.rb +1 -1
- data/lib/softlayer/network/content_delivery.rb +1 -1
- data/lib/softlayer/network/content_delivery/authentication.rb +1 -1
- data/lib/softlayer/network/customer.rb +1 -1
- data/lib/softlayer/network/firewall.rb +1 -1
- data/lib/softlayer/network/firewall/module.rb +1 -1
- data/lib/softlayer/network/firewall/module/context.rb +1 -1
- data/lib/softlayer/network/firewall/update.rb +1 -1
- data/lib/softlayer/network/load_balancer.rb +1 -1
- data/lib/softlayer/network/load_balancer/global.rb +1 -1
- data/lib/softlayer/network/logging.rb +1 -1
- data/lib/softlayer/network/media.rb +1 -1
- data/lib/softlayer/network/media/transcode.rb +1 -1
- data/lib/softlayer/network/message.rb +1 -1
- data/lib/softlayer/network/message/delivery/email.rb +1 -1
- data/lib/softlayer/network/monitor/version1.rb +1 -1
- data/lib/softlayer/network/monitor/version1/query.rb +1 -1
- data/lib/softlayer/network/monitor/version1/query/host.rb +0 -5
- data/lib/softlayer/network/protection.rb +1 -1
- data/lib/softlayer/network/regional.rb +1 -1
- data/lib/softlayer/network/regional/internet.rb +1 -1
- data/lib/softlayer/network/security.rb +1 -1
- data/lib/softlayer/network/security/scanner.rb +1 -1
- data/lib/softlayer/network/service.rb +1 -1
- data/lib/softlayer/network/service/vpn.rb +1 -1
- data/lib/softlayer/network/storage/allowed.rb +1 -1
- data/lib/softlayer/network/storage/daily.rb +1 -1
- data/lib/softlayer/network/storage/iscsi/equal_logic.rb +1 -1
- data/lib/softlayer/network/storage/iscsi/os.rb +1 -1
- data/lib/softlayer/network/storage/open_stack.rb +1 -1
- data/lib/softlayer/network/subnet/rwhois.rb +1 -1
- data/lib/softlayer/network/subnet/swip.rb +1 -1
- data/lib/softlayer/network/tunnel.rb +1 -1
- data/lib/softlayer/network/tunnel/module.rb +1 -1
- data/lib/softlayer/network/tunnel/module/context/address.rb +1 -1
- data/lib/softlayer/notification/occurrence/resource/network/storage.rb +2 -0
- data/lib/softlayer/notification/occurrence/resource/network/storage/iscsi.rb +1 -0
- data/lib/softlayer/notification/occurrence/resource/network/storage/iscsi/equal_logic.rb +27 -0
- data/lib/softlayer/notification/occurrence/resource/network/storage/lockbox.rb +25 -0
- data/lib/softlayer/notification/occurrence/resource/network/storage/nas.rb +25 -0
- data/lib/softlayer/security.rb +1 -0
- data/lib/softlayer/software/account_license.rb +17 -0
- data/lib/softlayer/user/customer/prospect/service_provider/enroll_request.rb +14 -0
- data/lib/softlayer/version.rb +1 -1
- metadata +9 -2
@@ -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
|
@@ -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
|
data/lib/softlayer/security.rb
CHANGED
@@ -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
|