softlayer 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -14
  3. data/lib/softlayer/account/address.rb +6 -6
  4. data/lib/softlayer/account/affiliation.rb +6 -6
  5. data/lib/softlayer/account/authentication/saml.rb +4 -4
  6. data/lib/softlayer/account/contact.rb +4 -4
  7. data/lib/softlayer/account/historical/report.rb +28 -16
  8. data/lib/softlayer/account/lockdown/request.rb +9 -8
  9. data/lib/softlayer/account/media/data/transfer/request.rb +2 -2
  10. data/lib/softlayer/account/media.rb +4 -4
  11. data/lib/softlayer/account/note/type.rb +4 -4
  12. data/lib/softlayer/account/note.rb +4 -4
  13. data/lib/softlayer/account/partner/referral/prospect.rb +3 -2
  14. data/lib/softlayer/account/password.rb +2 -2
  15. data/lib/softlayer/account/regional/registry/detail/property.rb +8 -8
  16. data/lib/softlayer/account/regional/registry/detail.rb +4 -4
  17. data/lib/softlayer/account/reports/request.rb +10 -8
  18. data/lib/softlayer/account/shipment/item.rb +2 -2
  19. data/lib/softlayer/account/shipment/tracking/data.rb +6 -6
  20. data/lib/softlayer/account/shipment.rb +4 -4
  21. data/lib/softlayer/account.rb +100 -74
  22. data/lib/softlayer/auxiliary/network/status.rb +2 -2
  23. data/lib/softlayer/auxiliary/press/release.rb +3 -2
  24. data/lib/softlayer/auxiliary/shipping/courier/type.rb +2 -2
  25. data/lib/softlayer/billing/currency/exchange_rate.rb +9 -6
  26. data/lib/softlayer/billing/currency.rb +3 -2
  27. data/lib/softlayer/billing/invoice/next.rb +6 -6
  28. data/lib/softlayer/billing/invoice.rb +2 -2
  29. data/lib/softlayer/billing/item/cancellation/request.rb +11 -10
  30. data/lib/softlayer/billing/item.rb +10 -6
  31. data/lib/softlayer/billing/order/cart.rb +20 -18
  32. data/lib/softlayer/billing/order/quote.rb +14 -12
  33. data/lib/softlayer/billing/order.rb +3 -2
  34. data/lib/softlayer/brand.rb +9 -8
  35. data/lib/softlayer/catalyst/enrollment.rb +4 -4
  36. data/lib/softlayer/configuration/template.rb +6 -6
  37. data/lib/softlayer/dns/domain/registration.rb +23 -20
  38. data/lib/softlayer/dns/domain/resource_record/mx_type.rb +10 -10
  39. data/lib/softlayer/dns/domain/resource_record/srv_type.rb +10 -10
  40. data/lib/softlayer/dns/domain/resource_record.rb +10 -10
  41. data/lib/softlayer/dns/domain.rb +39 -22
  42. data/lib/softlayer/dns/secondary.rb +8 -8
  43. data/lib/softlayer/event/log.rb +2 -2
  44. data/lib/softlayer/flexible_credit/program.rb +4 -4
  45. data/lib/softlayer/generator/class_file.rb +10 -14
  46. data/lib/softlayer/hardware/component/partition/operating_system.rb +2 -2
  47. data/lib/softlayer/hardware/router.rb +64 -52
  48. data/lib/softlayer/hardware/security_module.rb +64 -52
  49. data/lib/softlayer/hardware/server.rb +138 -106
  50. data/lib/softlayer/hardware.rb +64 -52
  51. data/lib/softlayer/layout/profile/containers.rb +4 -4
  52. data/lib/softlayer/layout/profile/customer.rb +8 -8
  53. data/lib/softlayer/layout/profile.rb +8 -8
  54. data/lib/softlayer/marketplace/partner.rb +8 -8
  55. data/lib/softlayer/metric/tracking/object.rb +37 -18
  56. data/lib/softlayer/model/filter.rb +1 -1
  57. data/lib/softlayer/model.rb +23 -0
  58. data/lib/softlayer/monitoring/agent/configuration/template/group/reference.rb +8 -8
  59. data/lib/softlayer/monitoring/agent/configuration/template/group.rb +6 -6
  60. data/lib/softlayer/monitoring/agent.rb +24 -18
  61. data/lib/softlayer/monitoring/robot.rb +2 -2
  62. data/lib/softlayer/network/application/delivery/controller/load_balancer/service/group.rb +3 -2
  63. data/lib/softlayer/network/application/delivery/controller/load_balancer/service.rb +3 -2
  64. data/lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address.rb +2 -2
  65. data/lib/softlayer/network/application/delivery/controller.rb +28 -22
  66. data/lib/softlayer/network/backbone/location/dependent.rb +2 -2
  67. data/lib/softlayer/network/backbone.rb +2 -2
  68. data/lib/softlayer/network/bandwidth/version1/allotment.rb +51 -30
  69. data/lib/softlayer/network/component.rb +6 -6
  70. data/lib/softlayer/network/content_delivery/account.rb +67 -50
  71. data/lib/softlayer/network/content_delivery/authentication/address.rb +7 -6
  72. data/lib/softlayer/network/content_delivery/authentication/token.rb +20 -14
  73. data/lib/softlayer/network/customer/subnet.rb +2 -2
  74. data/lib/softlayer/network/firewall/update/request/rule.rb +6 -4
  75. data/lib/softlayer/network/firewall/update/request.rb +5 -4
  76. data/lib/softlayer/network/gateway/member.rb +4 -4
  77. data/lib/softlayer/network/gateway/vlan.rb +6 -6
  78. data/lib/softlayer/network/gateway.rb +8 -8
  79. data/lib/softlayer/network/load_balancer/global/account.rb +2 -2
  80. data/lib/softlayer/network/load_balancer/service.rb +3 -2
  81. data/lib/softlayer/network/load_balancer/virtual_ip_address.rb +2 -2
  82. data/lib/softlayer/network/media/transcode/account.rb +9 -8
  83. data/lib/softlayer/network/media/transcode/job.rb +2 -2
  84. data/lib/softlayer/network/message/delivery/email/sendgrid.rb +17 -16
  85. data/lib/softlayer/network/message/delivery.rb +2 -2
  86. data/lib/softlayer/network/message/queue/node.rb +9 -8
  87. data/lib/softlayer/network/monitor/version1/query/host.rb +12 -12
  88. data/lib/softlayer/network/monitor.rb +6 -4
  89. data/lib/softlayer/network/security/scanner/request.rb +2 -2
  90. data/lib/softlayer/network/service/vpn/overrides.rb +4 -4
  91. data/lib/softlayer/network/storage/allowed/host/hardware.rb +6 -6
  92. data/lib/softlayer/network/storage/allowed/host/ip_address.rb +6 -6
  93. data/lib/softlayer/network/storage/allowed/host/subnet.rb +6 -6
  94. data/lib/softlayer/network/storage/allowed/host/virtual_guest.rb +6 -6
  95. data/lib/softlayer/network/storage/allowed/host.rb +6 -6
  96. data/lib/softlayer/network/storage/backup/evault.rb +163 -144
  97. data/lib/softlayer/network/storage/group/iscsi.rb +12 -12
  98. data/lib/softlayer/network/storage/group/nfs.rb +12 -12
  99. data/lib/softlayer/network/storage/group.rb +12 -12
  100. data/lib/softlayer/network/storage/hub/swift/share.rb +6 -4
  101. data/lib/softlayer/network/storage/iscsi.rb +154 -138
  102. data/lib/softlayer/network/storage/schedule.rb +4 -4
  103. data/lib/softlayer/network/storage.rb +154 -138
  104. data/lib/softlayer/network/subnet/ip_address/global.rb +2 -2
  105. data/lib/softlayer/network/subnet/ip_address.rb +18 -18
  106. data/lib/softlayer/network/subnet/registration/details.rb +2 -2
  107. data/lib/softlayer/network/subnet/registration.rb +7 -6
  108. data/lib/softlayer/network/subnet/rwhois/data.rb +2 -2
  109. data/lib/softlayer/network/subnet.rb +16 -16
  110. data/lib/softlayer/network/tipping_point_reporting.rb +19 -8
  111. data/lib/softlayer/network/tunnel/module/context.rb +24 -24
  112. data/lib/softlayer/network/vlan/firewall.rb +4 -4
  113. data/lib/softlayer/network/vlan.rb +12 -12
  114. data/lib/softlayer/network.rb +9 -8
  115. data/lib/softlayer/notification/mobile.rb +4 -2
  116. data/lib/softlayer/notification/occurrence/event.rb +2 -2
  117. data/lib/softlayer/notification/user/subscriber/billing.rb +4 -4
  118. data/lib/softlayer/notification/user/subscriber/mobile.rb +7 -6
  119. data/lib/softlayer/notification/user/subscriber/preference.rb +4 -4
  120. data/lib/softlayer/notification/user/subscriber.rb +4 -4
  121. data/lib/softlayer/product/item/category.rb +4 -4
  122. data/lib/softlayer/product/item/policy/assignment.rb +2 -2
  123. data/lib/softlayer/product/item/price.rb +3 -2
  124. data/lib/softlayer/product/order.rb +41 -26
  125. data/lib/softlayer/product/package/server/option.rb +2 -2
  126. data/lib/softlayer/product/package.rb +15 -12
  127. data/lib/softlayer/product/upgrade/request.rb +3 -2
  128. data/lib/softlayer/provisioning/hook.rb +4 -4
  129. data/lib/softlayer/provisioning/maintenance/classification.rb +2 -2
  130. data/lib/softlayer/provisioning/maintenance/window.rb +22 -14
  131. data/lib/softlayer/resource/group.rb +2 -2
  132. data/lib/softlayer/resource/metadata.rb +9 -8
  133. data/lib/softlayer/scale/asset/hardware.rb +2 -2
  134. data/lib/softlayer/scale/asset/virtual/guest.rb +2 -2
  135. data/lib/softlayer/scale/group.rb +8 -8
  136. data/lib/softlayer/scale/load_balancer.rb +4 -4
  137. data/lib/softlayer/scale/network/vlan.rb +2 -2
  138. data/lib/softlayer/scale/policy/action/scale.rb +4 -4
  139. data/lib/softlayer/scale/policy/action.rb +2 -2
  140. data/lib/softlayer/scale/policy/trigger/one_time.rb +4 -4
  141. data/lib/softlayer/scale/policy/trigger/repeating.rb +6 -6
  142. data/lib/softlayer/scale/policy/trigger/resource_use/watch.rb +4 -4
  143. data/lib/softlayer/scale/policy/trigger/resource_use.rb +4 -4
  144. data/lib/softlayer/scale/policy/trigger.rb +4 -4
  145. data/lib/softlayer/scale/policy.rb +4 -4
  146. data/lib/softlayer/search.rb +4 -4
  147. data/lib/softlayer/security/certificate/request.rb +11 -8
  148. data/lib/softlayer/security/certificate.rb +6 -6
  149. data/lib/softlayer/security/ssh/key.rb +4 -4
  150. data/lib/softlayer/software/component/antivirus_spyware.rb +2 -2
  151. data/lib/softlayer/software/component/host_ips.rb +8 -2
  152. data/lib/softlayer/software/component/password.rb +10 -10
  153. data/lib/softlayer/survey.rb +4 -4
  154. data/lib/softlayer/tag.rb +8 -6
  155. data/lib/softlayer/ticket/update/employee.rb +2 -2
  156. data/lib/softlayer/ticket.rb +74 -46
  157. data/lib/softlayer/user/customer/api_authentication.rb +2 -2
  158. data/lib/softlayer/user/customer/external/binding/phone.rb +14 -14
  159. data/lib/softlayer/user/customer/external/binding/totp.rb +4 -4
  160. data/lib/softlayer/user/customer/external/binding/verisign.rb +9 -8
  161. data/lib/softlayer/user/customer/external/binding.rb +4 -4
  162. data/lib/softlayer/user/customer/mobile_device.rb +4 -4
  163. data/lib/softlayer/user/customer/notification/hardware.rb +8 -8
  164. data/lib/softlayer/user/customer/notification/virtual/guest.rb +8 -8
  165. data/lib/softlayer/user/customer.rb +128 -104
  166. data/lib/softlayer/user/external/binding.rb +2 -2
  167. data/lib/softlayer/user/permission/group.rb +28 -24
  168. data/lib/softlayer/user/permission/role.rb +12 -12
  169. data/lib/softlayer/utility/network.rb +11 -10
  170. data/lib/softlayer/version.rb +1 -1
  171. data/lib/softlayer/virtual/disk/image.rb +2 -2
  172. data/lib/softlayer/virtual/guest/block/device/template/group.rb +23 -20
  173. data/lib/softlayer/virtual/guest/boot/parameter.rb +4 -4
  174. data/lib/softlayer/virtual/guest.rb +131 -100
  175. data/lib/softlayer/virtual/host.rb +19 -16
  176. data/lib/softlayer/virtual/storage/repository.rb +9 -6
  177. data/lib/softlayer.rb +74 -0
  178. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a852ac905950499ded0c1ee0b252675117d037c
4
- data.tar.gz: 564f43344c81ac8ff120dd4253ebd5714dca68b0
3
+ metadata.gz: 1abb84390ac5581b1eadd91f7aad72510ec98ec1
4
+ data.tar.gz: fc9ef7e6defed29e37021b09b445c8f98221e0f8
5
5
  SHA512:
6
- metadata.gz: e87fe136b2d4e82068c37d58b13403b91289b67760b160c3f08613c638d4faacd3a53d011ad139b8de323df7cf032250ec3dbe62d197582a1aebebb6d3d98779
7
- data.tar.gz: 017e5036081f15a89e092dab2006970b0c70eecb3410f29be22bfb98689e030a0eb3f4a9c2375d2894046308bc44697ca600e2bbbe7ad60f06c199468742346d
6
+ metadata.gz: 5f7d86ed175beb537eb682679725a1a8a8862647fedb92cfba338168dcc8008d872abe097363de75c2a0de48b50cbce99b3bb8c4be859f055b7f8d33f280a512
7
+ data.tar.gz: 001b52d090a68fe91704315d02407f45c09535de6947a37fbe17162d6a2f46e29099c682f6592c791cf2e3b27ac44d0c78361af5080d416795067259c041f05b
data/README.md CHANGED
@@ -39,6 +39,27 @@ Softlayer::Account.get_master_user
39
39
  Softlayer::Account.get_virtual_guests
40
40
  ```
41
41
 
42
+ When you need to pass a parameter to a method, you can pass the Softlayer object, and the client handles eveything behind the curtains, if you generate a order template to virtual guest, then you wanna send this template to verifyOrder you can easily like this:
43
+
44
+ ```ruby
45
+ template = {
46
+ hostname: 'anyhost',
47
+ domain: 'anydomain.com',
48
+ startCpus: 1,
49
+ maxMemory: 1024,
50
+ datacenter: {
51
+ name: 'wdc01'
52
+ },
53
+ operatingSystemReferenceCode: 'DEBIAN_8_64',
54
+ localDiskFlag: true
55
+ }
56
+ order_template = Softlayer::Virtual::Guest.generate_order_template(template_object: template)
57
+ Softlayer::Product::Order.verify_order(order_data: order_template)
58
+ # don't know why we are passing `order_data` here?
59
+ # You can always check the parameters for a method, in this case you can check on this page
60
+ # http://sldn.softlayer.com/reference/services/SoftLayer_Product_Order/verifyOrder
61
+ ```
62
+
42
63
  ### Masks
43
64
 
44
65
  If you'd like to get relational properties, you can use masks to get more information in a single request, lets consider the example below
@@ -132,20 +153,7 @@ ps: `getDatacenters` message does not accept a `resultLimit` header, just using
132
153
  ## Known Issues
133
154
 
134
155
  * Using Savon master until a version is released containing the commit to support rpc/encoded XML
135
- * Actually arrays are being wrongly mapped, so when we pass an argument containing **one** array, we need to pass inside another array, like this:
136
-
137
- ```ruby
138
- # instead of
139
- parameters = {
140
- list_of_something: ["arg1", "arg2"]
141
- }
142
-
143
- # use
144
- parameters = {
145
- list_of_something: [["arg1", "arg2"]]
146
- }
147
- ```
148
-
156
+ * Savon do not construct our array correctly, so the client workaround on the problem, this is not a real big deal to who is using the client, but I'm leaving this as a future reference if some problem appears.
149
157
  hope to fix this _really soon_, in the meanwhile you can check the progress of this bug on this [issue](https://github.com/savonrb/savon/issues/752)
150
158
 
151
159
  ## Development
@@ -22,13 +22,13 @@ module Softlayer
22
22
  attr_accessor :modify_user
23
23
  attr_accessor :type
24
24
 
25
- def self.create_object(template_object = nil)
26
- message = {template_object: template_object}
25
+ # template_object
26
+ def self.create_object(message)
27
27
  request(:create_object, Softlayer::Account::Address, message)
28
28
  end
29
29
 
30
- def edit_object(template_object = nil)
31
- message = {template_object: template_object}
30
+ # template_object
31
+ def edit_object(message)
32
32
  request(:edit_object, Boolean, message)
33
33
  end
34
34
 
@@ -56,8 +56,8 @@ module Softlayer
56
56
  request(:get_modify_user, Softlayer::User::Customer)
57
57
  end
58
58
 
59
- def self.get_network_address(name = nil)
60
- message = {name: name}
59
+ # name
60
+ def self.get_network_address(message)
61
61
  request(:get_network_address, Array[Softlayer::Account::Address], message)
62
62
  end
63
63
 
@@ -9,8 +9,8 @@ module Softlayer
9
9
  attr_accessor :modify_date
10
10
  attr_accessor :account
11
11
 
12
- def self.create_object(template_object = nil)
13
- message = {template_object: template_object}
12
+ # template_object
13
+ def self.create_object(message)
14
14
  request(:create_object, Softlayer::Account::Affiliation, message)
15
15
  end
16
16
 
@@ -18,8 +18,8 @@ module Softlayer
18
18
  request(:delete_object, Boolean)
19
19
  end
20
20
 
21
- def edit_object(template_object = nil)
22
- message = {template_object: template_object}
21
+ # template_object
22
+ def edit_object(message)
23
23
  request(:edit_object, Boolean, message)
24
24
  end
25
25
 
@@ -27,8 +27,8 @@ module Softlayer
27
27
  request(:get_account, Softlayer::Account)
28
28
  end
29
29
 
30
- def self.get_account_affiliations_by_affiliate_id(affiliate_id = nil)
31
- message = {affiliate_id: affiliate_id}
30
+ # affiliate_id
31
+ def self.get_account_affiliations_by_affiliate_id(message)
32
32
  request(:get_account_affiliations_by_affiliate_id, Array[Softlayer::Account::Affiliation], message)
33
33
  end
34
34
 
@@ -23,8 +23,8 @@ module Softlayer
23
23
  attr_accessor :account
24
24
  attr_accessor :attributes
25
25
 
26
- def self.create_object(template_object = nil)
27
- message = {template_object: template_object}
26
+ # template_object
27
+ def self.create_object(message)
28
28
  request(:create_object, Softlayer::Account::Authentication::Saml, message)
29
29
  end
30
30
 
@@ -32,8 +32,8 @@ module Softlayer
32
32
  request(:delete_object, Boolean)
33
33
  end
34
34
 
35
- def edit_object(template_object = nil)
36
- message = {template_object: template_object}
35
+ # template_object
36
+ def edit_object(message)
37
37
  request(:edit_object, Boolean, message)
38
38
  end
39
39
 
@@ -27,8 +27,8 @@ module Softlayer
27
27
  attr_accessor :account
28
28
  attr_accessor :type
29
29
 
30
- def self.create_object(template_object = nil)
31
- message = {template_object: template_object}
30
+ # template_object
31
+ def self.create_object(message)
32
32
  request(:create_object, Softlayer::Account::Contact, message)
33
33
  end
34
34
 
@@ -36,8 +36,8 @@ module Softlayer
36
36
  request(:delete_object, Boolean)
37
37
  end
38
38
 
39
- def edit_object(template_object = nil)
40
- message = {template_object: template_object}
39
+ # template_object
40
+ def edit_object(message)
41
41
  request(:edit_object, Boolean, message)
42
42
  end
43
43
 
@@ -4,43 +4,55 @@ module Softlayer
4
4
  class Report < Softlayer::Entity
5
5
  SERVICE = 'SoftLayer_Account_Historical_Report'
6
6
 
7
- def self.get_account_host_uptime_graph_data(start_date = nil, end_date = nil)
8
- message = {start_date: start_date, end_date: end_date}
7
+ # start_date
8
+ # end_date
9
+ def self.get_account_host_uptime_graph_data(message)
9
10
  request(:get_account_host_uptime_graph_data, Softlayer::Container::Graph, message)
10
11
  end
11
12
 
12
- def self.get_account_host_uptime_summary(start_date_time = nil, end_date_time = nil)
13
- message = {start_date_time: start_date_time, end_date_time: end_date_time}
13
+ # start_date_time
14
+ # end_date_time
15
+ def self.get_account_host_uptime_summary(message)
14
16
  request(:get_account_host_uptime_summary, Softlayer::Container::Account::Historical::Summary, message)
15
17
  end
16
18
 
17
- def self.get_account_url_uptime_graph_data(start_date = nil, end_date = nil)
18
- message = {start_date: start_date, end_date: end_date}
19
+ # start_date
20
+ # end_date
21
+ def self.get_account_url_uptime_graph_data(message)
19
22
  request(:get_account_url_uptime_graph_data, Softlayer::Container::Graph, message)
20
23
  end
21
24
 
22
- def self.get_account_url_uptime_summary(start_date_time = nil, end_date_time = nil)
23
- message = {start_date_time: start_date_time, end_date_time: end_date_time}
25
+ # start_date_time
26
+ # end_date_time
27
+ def self.get_account_url_uptime_summary(message)
24
28
  request(:get_account_url_uptime_summary, Softlayer::Container::Account::Historical::Summary, message)
25
29
  end
26
30
 
27
- def self.get_host_uptime_detail(configuration_value_id = nil, start_date_time = nil, end_date_time = nil)
28
- message = {configuration_value_id: configuration_value_id, start_date_time: start_date_time, end_date_time: end_date_time}
31
+ # configuration_value_id
32
+ # start_date_time
33
+ # end_date_time
34
+ def self.get_host_uptime_detail(message)
29
35
  request(:get_host_uptime_detail, Softlayer::Container::Account::Historical::Summary::Detail, message)
30
36
  end
31
37
 
32
- def self.get_host_uptime_graph_data(configuration_value_id = nil, start_date = nil, end_date = nil)
33
- message = {configuration_value_id: configuration_value_id, start_date: start_date, end_date: end_date}
38
+ # configuration_value_id
39
+ # start_date
40
+ # end_date
41
+ def self.get_host_uptime_graph_data(message)
34
42
  request(:get_host_uptime_graph_data, Softlayer::Container::Graph, message)
35
43
  end
36
44
 
37
- def self.get_url_uptime_detail(configuration_value_id = nil, start_date_time = nil, end_date_time = nil)
38
- message = {configuration_value_id: configuration_value_id, start_date_time: start_date_time, end_date_time: end_date_time}
45
+ # configuration_value_id
46
+ # start_date_time
47
+ # end_date_time
48
+ def self.get_url_uptime_detail(message)
39
49
  request(:get_url_uptime_detail, Softlayer::Container::Account::Historical::Summary::Detail, message)
40
50
  end
41
51
 
42
- def self.get_url_uptime_graph_data(configuration_value_id = nil, start_date = nil, end_date = nil)
43
- message = {configuration_value_id: configuration_value_id, start_date: start_date, end_date: end_date}
52
+ # configuration_value_id
53
+ # start_date
54
+ # end_date
55
+ def self.get_url_uptime_graph_data(message)
44
56
  request(:get_url_uptime_graph_data, Softlayer::Container::Graph, message)
45
57
  end
46
58
 
@@ -14,18 +14,19 @@ module Softlayer
14
14
  request(:cancel_request, nil)
15
15
  end
16
16
 
17
- def disable_locked_account(disable_date = nil)
18
- message = {disable_date: disable_date}
17
+ # disable_date
18
+ def disable_locked_account(message)
19
19
  request(:disable_locked_account, Integer, message)
20
20
  end
21
21
 
22
- def self.disconnect_compute(account_id = nil, disconnect_date = nil)
23
- message = {account_id: account_id, disconnect_date: disconnect_date}
22
+ # account_id
23
+ # disconnect_date
24
+ def self.disconnect_compute(message)
24
25
  request(:disconnect_compute, Integer, message)
25
26
  end
26
27
 
27
- def self.get_account_history(account_id = nil)
28
- message = {account_id: account_id}
28
+ # account_id
29
+ def self.get_account_history(message)
29
30
  request(:get_account_history, Array[Softlayer::Account::Lockdown::Request], message)
30
31
  end
31
32
 
@@ -33,8 +34,8 @@ module Softlayer
33
34
  request(:get_object, Softlayer::Account::Lockdown::Request)
34
35
  end
35
36
 
36
- def reconnect_compute(reconnect_date = nil)
37
- message = {reconnect_date: reconnect_date}
37
+ # reconnect_date
38
+ def reconnect_compute(message)
38
39
  request(:reconnect_compute, Integer, message)
39
40
  end
40
41
 
@@ -27,8 +27,8 @@ module Softlayer
27
27
  attr_accessor :status
28
28
  attr_accessor :tickets
29
29
 
30
- def edit_object(template_object = nil)
31
- message = {template_object: template_object}
30
+ # template_object
31
+ def edit_object(message)
32
32
  request(:edit_object, Boolean, message)
33
33
  end
34
34
 
@@ -18,8 +18,8 @@ module Softlayer
18
18
  attr_accessor :type
19
19
  attr_accessor :volume
20
20
 
21
- def edit_object(template_object = nil)
22
- message = {template_object: template_object}
21
+ # template_object
22
+ def edit_object(message)
23
23
  request(:edit_object, Boolean, message)
24
24
  end
25
25
 
@@ -63,8 +63,8 @@ module Softlayer
63
63
  request(:get_volume, Softlayer::Network::Storage)
64
64
  end
65
65
 
66
- def self.remove_media_from_list(media_template = nil)
67
- message = {media_template: media_template}
66
+ # media_template
67
+ def self.remove_media_from_list(message)
68
68
  request(:remove_media_from_list, Integer, message)
69
69
  end
70
70
 
@@ -12,8 +12,8 @@ module Softlayer
12
12
  attr_accessor :name
13
13
  attr_accessor :value_expression
14
14
 
15
- def self.create_object(template_object = nil)
16
- message = {template_object: template_object}
15
+ # template_object
16
+ def self.create_object(message)
17
17
  request(:create_object, Softlayer::Account::Note::Type, message)
18
18
  end
19
19
 
@@ -21,8 +21,8 @@ module Softlayer
21
21
  request(:delete_object, Boolean)
22
22
  end
23
23
 
24
- def edit_object(template_object = nil)
25
- message = {template_object: template_object}
24
+ # template_object
25
+ def edit_object(message)
26
26
  request(:edit_object, Boolean, message)
27
27
  end
28
28
 
@@ -17,8 +17,8 @@ module Softlayer
17
17
  attr_accessor :note_history
18
18
  attr_accessor :note_type
19
19
 
20
- def self.create_object(template_object = nil)
21
- message = {template_object: template_object}
20
+ # template_object
21
+ def self.create_object(message)
22
22
  request(:create_object, Softlayer::Account::Note, message)
23
23
  end
24
24
 
@@ -26,8 +26,8 @@ module Softlayer
26
26
  request(:delete_object, Boolean)
27
27
  end
28
28
 
29
- def edit_object(template_object = nil)
30
- message = {template_object: template_object}
29
+ # template_object
30
+ def edit_object(message)
31
31
  request(:edit_object, Boolean, message)
32
32
  end
33
33
 
@@ -10,8 +10,9 @@ module Softlayer
10
10
  attr_accessor :id
11
11
  attr_accessor :last_name
12
12
 
13
- def self.create_prospect(template_object = nil, commit = nil)
14
- message = {template_object: template_object, commit: commit}
13
+ # template_object
14
+ # commit
15
+ def self.create_prospect(message)
15
16
  request(:create_prospect, Softlayer::Account::Partner::Referral::Prospect, message)
16
17
  end
17
18
 
@@ -12,8 +12,8 @@ module Softlayer
12
12
  attr_accessor :account
13
13
  attr_accessor :type
14
14
 
15
- def edit_object(template_object = nil)
16
- message = {template_object: template_object}
15
+ # template_object
16
+ def edit_object(message)
17
17
  request(:edit_object, Boolean, message)
18
18
  end
19
19
 
@@ -16,13 +16,13 @@ module Softlayer
16
16
  attr_accessor :detail
17
17
  attr_accessor :property_type
18
18
 
19
- def self.create_object(template_object = nil)
20
- message = {template_object: template_object}
19
+ # template_object
20
+ def self.create_object(message)
21
21
  request(:create_object, Softlayer::Account::Regional::Registry::Detail::Property, message)
22
22
  end
23
23
 
24
- def self.create_objects(template_objects = nil)
25
- message = {template_objects: template_objects}
24
+ # template_objects
25
+ def self.create_objects(message)
26
26
  request(:create_objects, Array[Softlayer::Account::Regional::Registry::Detail::Property], message)
27
27
  end
28
28
 
@@ -30,13 +30,13 @@ module Softlayer
30
30
  request(:delete_object, Boolean)
31
31
  end
32
32
 
33
- def edit_object(template_object = nil)
34
- message = {template_object: template_object}
33
+ # template_object
34
+ def edit_object(message)
35
35
  request(:edit_object, Boolean, message)
36
36
  end
37
37
 
38
- def self.edit_objects(template_objects = nil)
39
- message = {template_objects: template_objects}
38
+ # template_objects
39
+ def self.edit_objects(message)
40
40
  request(:edit_objects, Boolean, message)
41
41
  end
42
42
 
@@ -21,8 +21,8 @@ module Softlayer
21
21
  attr_accessor :properties
22
22
  attr_accessor :regional_internet_registry_handle
23
23
 
24
- def self.create_object(template_object = nil)
25
- message = {template_object: template_object}
24
+ # template_object
25
+ def self.create_object(message)
26
26
  request(:create_object, Softlayer::Account::Regional::Registry::Detail, message)
27
27
  end
28
28
 
@@ -30,8 +30,8 @@ module Softlayer
30
30
  request(:delete_object, Boolean)
31
31
  end
32
32
 
33
- def edit_object(template_object = nil)
34
- message = {template_object: template_object}
33
+ # template_object
34
+ def edit_object(message)
35
35
  request(:edit_object, Boolean, message)
36
36
  end
37
37
 
@@ -23,8 +23,10 @@ module Softlayer
23
23
  attr_accessor :ticket
24
24
  attr_accessor :user
25
25
 
26
- def self.create_request(contact = nil, reason = nil, report_type = nil)
27
- message = {contact: contact, reason: reason, report_type: report_type}
26
+ # contact
27
+ # reason
28
+ # report_type
29
+ def self.create_request(message)
28
30
  request(:create_request, Softlayer::Account::Reports::Request, message)
29
31
  end
30
32
 
@@ -48,8 +50,8 @@ module Softlayer
48
50
  request(:get_report_type, Softlayer::Compliance::Report::Type)
49
51
  end
50
52
 
51
- def self.get_request_by_request_key(request_key = nil)
52
- message = {request_key: request_key}
53
+ # request_key
54
+ def self.get_request_by_request_key(message)
53
55
  request(:get_request_by_request_key, Softlayer::Account::Reports::Request, message)
54
56
  end
55
57
 
@@ -61,13 +63,13 @@ module Softlayer
61
63
  request(:get_user, Softlayer::User::Customer)
62
64
  end
63
65
 
64
- def self.send_report_email(request = nil)
65
- message = {request: request}
66
+ # request
67
+ def self.send_report_email(message)
66
68
  request(:send_report_email, Boolean, message)
67
69
  end
68
70
 
69
- def self.update_ticket_on_decline(request = nil)
70
- message = {request: request}
71
+ # request
72
+ def self.update_ticket_on_decline(message)
71
73
  request(:update_ticket_on_decline, Boolean, message)
72
74
  end
73
75
 
@@ -14,8 +14,8 @@ module Softlayer
14
14
  attr_accessor :shipment
15
15
  attr_accessor :shipment_item_type
16
16
 
17
- def edit_object(template_object = nil)
18
- message = {template_object: template_object}
17
+ # template_object
18
+ def edit_object(message)
19
19
  request(:edit_object, Boolean, message)
20
20
  end
21
21
 
@@ -17,13 +17,13 @@ module Softlayer
17
17
  attr_accessor :modify_user
18
18
  attr_accessor :shipment
19
19
 
20
- def self.create_object(template_object = nil)
21
- message = {template_object: template_object}
20
+ # template_object
21
+ def self.create_object(message)
22
22
  request(:create_object, Softlayer::Account::Shipment::Tracking::Data, message)
23
23
  end
24
24
 
25
- def self.create_objects(template_objects = nil)
26
- message = {template_objects: template_objects}
25
+ # template_objects
26
+ def self.create_objects(message)
27
27
  request(:create_objects, Array[Softlayer::Account::Shipment::Tracking::Data], message)
28
28
  end
29
29
 
@@ -31,8 +31,8 @@ module Softlayer
31
31
  request(:delete_object, Boolean)
32
32
  end
33
33
 
34
- def edit_object(template_object = nil)
35
- message = {template_object: template_object}
34
+ # template_object
35
+ def edit_object(message)
36
36
  request(:edit_object, Boolean, message)
37
37
  end
38
38
 
@@ -35,8 +35,8 @@ module Softlayer
35
35
  attr_accessor :tracking_data
36
36
  attr_accessor :type
37
37
 
38
- def edit_object(template_object = nil)
39
- message = {template_object: template_object}
38
+ # template_object
39
+ def edit_object(message)
40
40
  request(:edit_object, Boolean, message)
41
41
  end
42
42
 
@@ -48,8 +48,8 @@ module Softlayer
48
48
  request(:get_all_couriers, Array[Softlayer::Auxiliary::Shipping::Courier])
49
49
  end
50
50
 
51
- def self.get_all_couriers_by_type(courier_type_key_name = nil)
52
- message = {courier_type_key_name: courier_type_key_name}
51
+ # courier_type_key_name
52
+ def self.get_all_couriers_by_type(message)
53
53
  request(:get_all_couriers_by_type, Array[Softlayer::Auxiliary::Shipping::Courier], message)
54
54
  end
55
55