softlayer 0.0.7 → 0.0.8

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 (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
@@ -9,28 +9,28 @@ module Softlayer
9
9
  attr_accessor :local_disk_storage_capability_flag
10
10
  attr_accessor :san_storage_capability_flag
11
11
 
12
- def allow_access_to_network_storage(network_storage_template_object = nil)
13
- message = {network_storage_template_object: network_storage_template_object}
12
+ # network_storage_template_object
13
+ def allow_access_to_network_storage(message)
14
14
  request(:allow_access_to_network_storage, Boolean, message)
15
15
  end
16
16
 
17
- def allow_access_to_network_storage_list(network_storage_template_objects = nil)
18
- message = {network_storage_template_objects: network_storage_template_objects}
17
+ # network_storage_template_objects
18
+ def allow_access_to_network_storage_list(message)
19
19
  request(:allow_access_to_network_storage_list, Boolean, message)
20
20
  end
21
21
 
22
- def capture_image(capture_template = nil)
23
- message = {capture_template: capture_template}
22
+ # capture_template
23
+ def capture_image(message)
24
24
  request(:capture_image, Softlayer::Virtual::Guest::Block::Device::Template::Group, message)
25
25
  end
26
26
 
27
- def close_alarm(alarm_id = nil)
28
- message = {alarm_id: alarm_id}
27
+ # alarm_id
28
+ def close_alarm(message)
29
29
  request(:close_alarm, Boolean, message)
30
30
  end
31
31
 
32
- def self.create_object(template_object = nil)
33
- message = {template_object: template_object}
32
+ # template_object
33
+ def self.create_object(message)
34
34
  request(:create_object, Softlayer::Hardware::Router, message)
35
35
  end
36
36
 
@@ -38,28 +38,28 @@ module Softlayer
38
38
  request(:delete_object, Boolean)
39
39
  end
40
40
 
41
- def delete_software_component_passwords(software_component_passwords = nil)
42
- message = {software_component_passwords: software_component_passwords}
41
+ # software_component_passwords
42
+ def delete_software_component_passwords(message)
43
43
  request(:delete_software_component_passwords, Boolean, message)
44
44
  end
45
45
 
46
- def edit_software_component_passwords(software_component_passwords = nil)
47
- message = {software_component_passwords: software_component_passwords}
46
+ # software_component_passwords
47
+ def edit_software_component_passwords(message)
48
48
  request(:edit_software_component_passwords, Boolean, message)
49
49
  end
50
50
 
51
- def execute_remote_script(uri = nil)
52
- message = {uri: uri}
51
+ # uri
52
+ def execute_remote_script(message)
53
53
  request(:execute_remote_script, nil, message)
54
54
  end
55
55
 
56
- def self.find_by_ip_address(ip_address = nil)
57
- message = {ip_address: ip_address}
56
+ # ip_address
57
+ def self.find_by_ip_address(message)
58
58
  request(:find_by_ip_address, Softlayer::Hardware::Router, message)
59
59
  end
60
60
 
61
- def self.generate_order_template(template_object = nil)
62
- message = {template_object: template_object}
61
+ # template_object
62
+ def self.generate_order_template(message)
63
63
  request(:generate_order_template, Softlayer::Container::Product::Order, message)
64
64
  end
65
65
 
@@ -75,8 +75,10 @@ module Softlayer
75
75
  request(:get_active_network_monitor_incident, Array[Softlayer::Network::Monitor::Version1::Incident])
76
76
  end
77
77
 
78
- def get_alarm_history(start_date = nil, end_date = nil, alarm_id = nil)
79
- message = {start_date: start_date, end_date: end_date, alarm_id: alarm_id}
78
+ # start_date
79
+ # end_date
80
+ # alarm_id
81
+ def get_alarm_history(message)
80
82
  request(:get_alarm_history, Array[Softlayer::Container::Monitoring::Alarm::History], message)
81
83
  end
82
84
 
@@ -100,8 +102,8 @@ module Softlayer
100
102
  request(:get_antivirus_spyware_software_component, Softlayer::Software::Component)
101
103
  end
102
104
 
103
- def get_attached_network_storages(nas_type = nil)
104
- message = {nas_type: nas_type}
105
+ # nas_type
106
+ def get_attached_network_storages(message)
105
107
  request(:get_attached_network_storages, Array[Softlayer::Network::Storage], message)
106
108
  end
107
109
 
@@ -109,8 +111,8 @@ module Softlayer
109
111
  request(:get_attributes, Array[Softlayer::Hardware::Attribute])
110
112
  end
111
113
 
112
- def get_available_network_storages(nas_type = nil)
113
- message = {nas_type: nas_type}
114
+ # nas_type
115
+ def get_available_network_storages(message)
114
116
  request(:get_available_network_storages, Array[Softlayer::Network::Storage], message)
115
117
  end
116
118
 
@@ -118,8 +120,9 @@ module Softlayer
118
120
  request(:get_average_daily_public_bandwidth_usage, Float)
119
121
  end
120
122
 
121
- def get_backend_incoming_bandwidth(start_date = nil, end_date = nil)
122
- message = {start_date: start_date, end_date: end_date}
123
+ # start_date
124
+ # end_date
125
+ def get_backend_incoming_bandwidth(message)
123
126
  request(:get_backend_incoming_bandwidth, Float, message)
124
127
  end
125
128
 
@@ -127,8 +130,9 @@ module Softlayer
127
130
  request(:get_backend_network_components, Array[Softlayer::Network::Component])
128
131
  end
129
132
 
130
- def get_backend_outgoing_bandwidth(start_date = nil, end_date = nil)
131
- message = {start_date: start_date, end_date: end_date}
133
+ # start_date
134
+ # end_date
135
+ def get_backend_outgoing_bandwidth(message)
132
136
  request(:get_backend_outgoing_bandwidth, Float, message)
133
137
  end
134
138
 
@@ -192,8 +196,9 @@ module Softlayer
192
196
  request(:get_current_billing_total, Float)
193
197
  end
194
198
 
195
- def get_daily_average(start_date = nil, end_date = nil)
196
- message = {start_date: start_date, end_date: end_date}
199
+ # start_date
200
+ # end_date
201
+ def get_daily_average(message)
197
202
  request(:get_daily_average, Float, message)
198
203
  end
199
204
 
@@ -257,8 +262,9 @@ module Softlayer
257
262
  request(:get_fixed_configuration_preset, Softlayer::Product::Package::Preset)
258
263
  end
259
264
 
260
- def get_frontend_incoming_bandwidth(start_date = nil, end_date = nil)
261
- message = {start_date: start_date, end_date: end_date}
265
+ # start_date
266
+ # end_date
267
+ def get_frontend_incoming_bandwidth(message)
262
268
  request(:get_frontend_incoming_bandwidth, Float, message)
263
269
  end
264
270
 
@@ -266,8 +272,9 @@ module Softlayer
266
272
  request(:get_frontend_network_components, Array[Softlayer::Network::Component])
267
273
  end
268
274
 
269
- def get_frontend_outgoing_bandwidth(start_date = nil, end_date = nil)
270
- message = {start_date: start_date, end_date: end_date}
275
+ # start_date
276
+ # end_date
277
+ def get_frontend_outgoing_bandwidth(message)
271
278
  request(:get_frontend_outgoing_bandwidth, Float, message)
272
279
  end
273
280
 
@@ -307,8 +314,9 @@ module Softlayer
307
314
  request(:get_host_ips_software_component, Softlayer::Software::Component)
308
315
  end
309
316
 
310
- def get_hourly_bandwidth(mode = nil, day = nil)
311
- message = {mode: mode, day: day}
317
+ # mode
318
+ # day
319
+ def get_hourly_bandwidth(message)
312
320
  request(:get_hourly_bandwidth, Array[Softlayer::Metric::Tracking::Object::Data], message)
313
321
  end
314
322
 
@@ -364,8 +372,9 @@ module Softlayer
364
372
  request(:get_metric_tracking_object, Softlayer::Metric::Tracking::Object::HardwareServer)
365
373
  end
366
374
 
367
- def get_monitoring_active_alarms(start_date = nil, end_date = nil)
368
- message = {start_date: start_date, end_date: end_date}
375
+ # start_date
376
+ # end_date
377
+ def get_monitoring_active_alarms(message)
369
378
  request(:get_monitoring_active_alarms, Array[Softlayer::Container::Monitoring::Alarm::History], message)
370
379
  end
371
380
 
@@ -373,8 +382,9 @@ module Softlayer
373
382
  request(:get_monitoring_agents, Array[Softlayer::Monitoring::Agent])
374
383
  end
375
384
 
376
- def get_monitoring_closed_alarms(start_date = nil, end_date = nil)
377
- message = {start_date: start_date, end_date: end_date}
385
+ # start_date
386
+ # end_date
387
+ def get_monitoring_closed_alarms(message)
378
388
  request(:get_monitoring_closed_alarms, Array[Softlayer::Container::Monitoring::Alarm::History], message)
379
389
  end
380
390
 
@@ -490,8 +500,9 @@ module Softlayer
490
500
  request(:get_primary_network_component, Softlayer::Network::Component)
491
501
  end
492
502
 
493
- def get_private_bandwidth_data(start_time = nil, end_time = nil)
494
- message = {start_time: start_time, end_time: end_time}
503
+ # start_time
504
+ # end_time
505
+ def get_private_bandwidth_data(message)
495
506
  request(:get_private_bandwidth_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
496
507
  end
497
508
 
@@ -511,8 +522,9 @@ module Softlayer
511
522
  request(:get_processors, Array[Softlayer::Hardware::Component])
512
523
  end
513
524
 
514
- def get_public_bandwidth_data(start_time = nil, end_time = nil)
515
- message = {start_time: start_time, end_time: end_time}
525
+ # start_time
526
+ # end_time
527
+ def get_public_bandwidth_data(message)
516
528
  request(:get_public_bandwidth_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
517
529
  end
518
530
 
@@ -708,18 +720,18 @@ module Softlayer
708
720
  request(:reboot_soft, Boolean)
709
721
  end
710
722
 
711
- def remove_access_to_network_storage(network_storage_template_object = nil)
712
- message = {network_storage_template_object: network_storage_template_object}
723
+ # network_storage_template_object
724
+ def remove_access_to_network_storage(message)
713
725
  request(:remove_access_to_network_storage, Boolean, message)
714
726
  end
715
727
 
716
- def remove_access_to_network_storage_list(network_storage_template_objects = nil)
717
- message = {network_storage_template_objects: network_storage_template_objects}
728
+ # network_storage_template_objects
729
+ def remove_access_to_network_storage_list(message)
718
730
  request(:remove_access_to_network_storage_list, Boolean, message)
719
731
  end
720
732
 
721
- def set_tags(tags = nil)
722
- message = {tags: tags}
733
+ # tags
734
+ def set_tags(message)
723
735
  request(:set_tags, Boolean, message)
724
736
  end
725
737
 
@@ -7,28 +7,28 @@ module Softlayer
7
7
  attr_accessor :software_users
8
8
  attr_accessor :users
9
9
 
10
- def allow_access_to_network_storage(network_storage_template_object = nil)
11
- message = {network_storage_template_object: network_storage_template_object}
10
+ # network_storage_template_object
11
+ def allow_access_to_network_storage(message)
12
12
  request(:allow_access_to_network_storage, Boolean, message)
13
13
  end
14
14
 
15
- def allow_access_to_network_storage_list(network_storage_template_objects = nil)
16
- message = {network_storage_template_objects: network_storage_template_objects}
15
+ # network_storage_template_objects
16
+ def allow_access_to_network_storage_list(message)
17
17
  request(:allow_access_to_network_storage_list, Boolean, message)
18
18
  end
19
19
 
20
- def capture_image(capture_template = nil)
21
- message = {capture_template: capture_template}
20
+ # capture_template
21
+ def capture_image(message)
22
22
  request(:capture_image, Softlayer::Virtual::Guest::Block::Device::Template::Group, message)
23
23
  end
24
24
 
25
- def close_alarm(alarm_id = nil)
26
- message = {alarm_id: alarm_id}
25
+ # alarm_id
26
+ def close_alarm(message)
27
27
  request(:close_alarm, Boolean, message)
28
28
  end
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::Hardware::SecurityModule, message)
33
33
  end
34
34
 
@@ -36,28 +36,28 @@ module Softlayer
36
36
  request(:delete_object, Boolean)
37
37
  end
38
38
 
39
- def delete_software_component_passwords(software_component_passwords = nil)
40
- message = {software_component_passwords: software_component_passwords}
39
+ # software_component_passwords
40
+ def delete_software_component_passwords(message)
41
41
  request(:delete_software_component_passwords, Boolean, message)
42
42
  end
43
43
 
44
- def edit_software_component_passwords(software_component_passwords = nil)
45
- message = {software_component_passwords: software_component_passwords}
44
+ # software_component_passwords
45
+ def edit_software_component_passwords(message)
46
46
  request(:edit_software_component_passwords, Boolean, message)
47
47
  end
48
48
 
49
- def execute_remote_script(uri = nil)
50
- message = {uri: uri}
49
+ # uri
50
+ def execute_remote_script(message)
51
51
  request(:execute_remote_script, nil, message)
52
52
  end
53
53
 
54
- def self.find_by_ip_address(ip_address = nil)
55
- message = {ip_address: ip_address}
54
+ # ip_address
55
+ def self.find_by_ip_address(message)
56
56
  request(:find_by_ip_address, Softlayer::Hardware::SecurityModule, message)
57
57
  end
58
58
 
59
- def self.generate_order_template(template_object = nil)
60
- message = {template_object: template_object}
59
+ # template_object
60
+ def self.generate_order_template(message)
61
61
  request(:generate_order_template, Softlayer::Container::Product::Order, message)
62
62
  end
63
63
 
@@ -73,8 +73,10 @@ module Softlayer
73
73
  request(:get_active_network_monitor_incident, Array[Softlayer::Network::Monitor::Version1::Incident])
74
74
  end
75
75
 
76
- def get_alarm_history(start_date = nil, end_date = nil, alarm_id = nil)
77
- message = {start_date: start_date, end_date: end_date, alarm_id: alarm_id}
76
+ # start_date
77
+ # end_date
78
+ # alarm_id
79
+ def get_alarm_history(message)
78
80
  request(:get_alarm_history, Array[Softlayer::Container::Monitoring::Alarm::History], message)
79
81
  end
80
82
 
@@ -98,8 +100,8 @@ module Softlayer
98
100
  request(:get_antivirus_spyware_software_component, Softlayer::Software::Component)
99
101
  end
100
102
 
101
- def get_attached_network_storages(nas_type = nil)
102
- message = {nas_type: nas_type}
103
+ # nas_type
104
+ def get_attached_network_storages(message)
103
105
  request(:get_attached_network_storages, Array[Softlayer::Network::Storage], message)
104
106
  end
105
107
 
@@ -107,8 +109,8 @@ module Softlayer
107
109
  request(:get_attributes, Array[Softlayer::Hardware::Attribute])
108
110
  end
109
111
 
110
- def get_available_network_storages(nas_type = nil)
111
- message = {nas_type: nas_type}
112
+ # nas_type
113
+ def get_available_network_storages(message)
112
114
  request(:get_available_network_storages, Array[Softlayer::Network::Storage], message)
113
115
  end
114
116
 
@@ -116,8 +118,9 @@ module Softlayer
116
118
  request(:get_average_daily_public_bandwidth_usage, Float)
117
119
  end
118
120
 
119
- def get_backend_incoming_bandwidth(start_date = nil, end_date = nil)
120
- message = {start_date: start_date, end_date: end_date}
121
+ # start_date
122
+ # end_date
123
+ def get_backend_incoming_bandwidth(message)
121
124
  request(:get_backend_incoming_bandwidth, Float, message)
122
125
  end
123
126
 
@@ -125,8 +128,9 @@ module Softlayer
125
128
  request(:get_backend_network_components, Array[Softlayer::Network::Component])
126
129
  end
127
130
 
128
- def get_backend_outgoing_bandwidth(start_date = nil, end_date = nil)
129
- message = {start_date: start_date, end_date: end_date}
131
+ # start_date
132
+ # end_date
133
+ def get_backend_outgoing_bandwidth(message)
130
134
  request(:get_backend_outgoing_bandwidth, Float, message)
131
135
  end
132
136
 
@@ -186,8 +190,9 @@ module Softlayer
186
190
  request(:get_current_billing_total, Float)
187
191
  end
188
192
 
189
- def get_daily_average(start_date = nil, end_date = nil)
190
- message = {start_date: start_date, end_date: end_date}
193
+ # start_date
194
+ # end_date
195
+ def get_daily_average(message)
191
196
  request(:get_daily_average, Float, message)
192
197
  end
193
198
 
@@ -251,8 +256,9 @@ module Softlayer
251
256
  request(:get_fixed_configuration_preset, Softlayer::Product::Package::Preset)
252
257
  end
253
258
 
254
- def get_frontend_incoming_bandwidth(start_date = nil, end_date = nil)
255
- message = {start_date: start_date, end_date: end_date}
259
+ # start_date
260
+ # end_date
261
+ def get_frontend_incoming_bandwidth(message)
256
262
  request(:get_frontend_incoming_bandwidth, Float, message)
257
263
  end
258
264
 
@@ -260,8 +266,9 @@ module Softlayer
260
266
  request(:get_frontend_network_components, Array[Softlayer::Network::Component])
261
267
  end
262
268
 
263
- def get_frontend_outgoing_bandwidth(start_date = nil, end_date = nil)
264
- message = {start_date: start_date, end_date: end_date}
269
+ # start_date
270
+ # end_date
271
+ def get_frontend_outgoing_bandwidth(message)
265
272
  request(:get_frontend_outgoing_bandwidth, Float, message)
266
273
  end
267
274
 
@@ -301,8 +308,9 @@ module Softlayer
301
308
  request(:get_host_ips_software_component, Softlayer::Software::Component)
302
309
  end
303
310
 
304
- def get_hourly_bandwidth(mode = nil, day = nil)
305
- message = {mode: mode, day: day}
311
+ # mode
312
+ # day
313
+ def get_hourly_bandwidth(message)
306
314
  request(:get_hourly_bandwidth, Array[Softlayer::Metric::Tracking::Object::Data], message)
307
315
  end
308
316
 
@@ -354,8 +362,9 @@ module Softlayer
354
362
  request(:get_metric_tracking_object, Softlayer::Metric::Tracking::Object::HardwareServer)
355
363
  end
356
364
 
357
- def get_monitoring_active_alarms(start_date = nil, end_date = nil)
358
- message = {start_date: start_date, end_date: end_date}
365
+ # start_date
366
+ # end_date
367
+ def get_monitoring_active_alarms(message)
359
368
  request(:get_monitoring_active_alarms, Array[Softlayer::Container::Monitoring::Alarm::History], message)
360
369
  end
361
370
 
@@ -363,8 +372,9 @@ module Softlayer
363
372
  request(:get_monitoring_agents, Array[Softlayer::Monitoring::Agent])
364
373
  end
365
374
 
366
- def get_monitoring_closed_alarms(start_date = nil, end_date = nil)
367
- message = {start_date: start_date, end_date: end_date}
375
+ # start_date
376
+ # end_date
377
+ def get_monitoring_closed_alarms(message)
368
378
  request(:get_monitoring_closed_alarms, Array[Softlayer::Container::Monitoring::Alarm::History], message)
369
379
  end
370
380
 
@@ -496,8 +506,9 @@ module Softlayer
496
506
  request(:get_primary_network_component, Softlayer::Network::Component)
497
507
  end
498
508
 
499
- def get_private_bandwidth_data(start_time = nil, end_time = nil)
500
- message = {start_time: start_time, end_time: end_time}
509
+ # start_time
510
+ # end_time
511
+ def get_private_bandwidth_data(message)
501
512
  request(:get_private_bandwidth_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
502
513
  end
503
514
 
@@ -517,8 +528,9 @@ module Softlayer
517
528
  request(:get_processors, Array[Softlayer::Hardware::Component])
518
529
  end
519
530
 
520
- def get_public_bandwidth_data(start_time = nil, end_time = nil)
521
- message = {start_time: start_time, end_time: end_time}
531
+ # start_time
532
+ # end_time
533
+ def get_public_bandwidth_data(message)
522
534
  request(:get_public_bandwidth_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
523
535
  end
524
536
 
@@ -718,18 +730,18 @@ module Softlayer
718
730
  request(:reboot_soft, Boolean)
719
731
  end
720
732
 
721
- def remove_access_to_network_storage(network_storage_template_object = nil)
722
- message = {network_storage_template_object: network_storage_template_object}
733
+ # network_storage_template_object
734
+ def remove_access_to_network_storage(message)
723
735
  request(:remove_access_to_network_storage, Boolean, message)
724
736
  end
725
737
 
726
- def remove_access_to_network_storage_list(network_storage_template_objects = nil)
727
- message = {network_storage_template_objects: network_storage_template_objects}
738
+ # network_storage_template_objects
739
+ def remove_access_to_network_storage_list(message)
728
740
  request(:remove_access_to_network_storage_list, Boolean, message)
729
741
  end
730
742
 
731
- def set_tags(tags = nil)
732
- message = {tags: tags}
743
+ # tags
744
+ def set_tags(message)
733
745
  request(:set_tags, Boolean, message)
734
746
  end
735
747