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
@@ -119,113 +119,118 @@ module Softlayer
119
119
  attr_accessor :webcc_account
120
120
  attr_accessor :weekly_schedule
121
121
 
122
- def allow_access_from_hardware(hardware_object_template = nil)
123
- message = {hardware_object_template: hardware_object_template}
122
+ # hardware_object_template
123
+ def allow_access_from_hardware(message)
124
124
  request(:allow_access_from_hardware, Boolean, message)
125
125
  end
126
126
 
127
- def allow_access_from_hardware_list(hardware_object_templates = nil)
128
- message = {hardware_object_templates: hardware_object_templates}
127
+ # hardware_object_templates
128
+ def allow_access_from_hardware_list(message)
129
129
  request(:allow_access_from_hardware_list, Boolean, message)
130
130
  end
131
131
 
132
- def allow_access_from_host(type_class_name = nil, host_id = nil)
133
- message = {type_class_name: type_class_name, host_id: host_id}
132
+ # type_class_name
133
+ # host_id
134
+ def allow_access_from_host(message)
134
135
  request(:allow_access_from_host, Softlayer::Network::Storage::Allowed::Host, message)
135
136
  end
136
137
 
137
- def allow_access_from_host_list(host_object_templates = nil)
138
- message = {host_object_templates: host_object_templates}
138
+ # host_object_templates
139
+ def allow_access_from_host_list(message)
139
140
  request(:allow_access_from_host_list, Array[Softlayer::Network::Storage::Allowed::Host], message)
140
141
  end
141
142
 
142
- def allow_access_from_ip_address(ip_address_object_template = nil)
143
- message = {ip_address_object_template: ip_address_object_template}
143
+ # ip_address_object_template
144
+ def allow_access_from_ip_address(message)
144
145
  request(:allow_access_from_ip_address, Boolean, message)
145
146
  end
146
147
 
147
- def allow_access_from_ip_address_list(ip_address_object_templates = nil)
148
- message = {ip_address_object_templates: ip_address_object_templates}
148
+ # ip_address_object_templates
149
+ def allow_access_from_ip_address_list(message)
149
150
  request(:allow_access_from_ip_address_list, Boolean, message)
150
151
  end
151
152
 
152
- def allow_access_from_subnet(subnet_object_template = nil)
153
- message = {subnet_object_template: subnet_object_template}
153
+ # subnet_object_template
154
+ def allow_access_from_subnet(message)
154
155
  request(:allow_access_from_subnet, Boolean, message)
155
156
  end
156
157
 
157
- def allow_access_from_subnet_list(subnet_object_templates = nil)
158
- message = {subnet_object_templates: subnet_object_templates}
158
+ # subnet_object_templates
159
+ def allow_access_from_subnet_list(message)
159
160
  request(:allow_access_from_subnet_list, Boolean, message)
160
161
  end
161
162
 
162
- def allow_access_from_virtual_guest(virtual_guest_object_template = nil)
163
- message = {virtual_guest_object_template: virtual_guest_object_template}
163
+ # virtual_guest_object_template
164
+ def allow_access_from_virtual_guest(message)
164
165
  request(:allow_access_from_virtual_guest, Boolean, message)
165
166
  end
166
167
 
167
- def allow_access_from_virtual_guest_list(virtual_guest_object_templates = nil)
168
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
168
+ # virtual_guest_object_templates
169
+ def allow_access_from_virtual_guest_list(message)
169
170
  request(:allow_access_from_virtual_guest_list, Boolean, message)
170
171
  end
171
172
 
172
- def allow_access_to_replicant_from_hardware(hardware_object_template = nil)
173
- message = {hardware_object_template: hardware_object_template}
173
+ # hardware_object_template
174
+ def allow_access_to_replicant_from_hardware(message)
174
175
  request(:allow_access_to_replicant_from_hardware, Boolean, message)
175
176
  end
176
177
 
177
- def allow_access_to_replicant_from_hardware_list(hardware_object_templates = nil)
178
- message = {hardware_object_templates: hardware_object_templates}
178
+ # hardware_object_templates
179
+ def allow_access_to_replicant_from_hardware_list(message)
179
180
  request(:allow_access_to_replicant_from_hardware_list, Boolean, message)
180
181
  end
181
182
 
182
- def allow_access_to_replicant_from_ip_address(ip_address_object_template = nil)
183
- message = {ip_address_object_template: ip_address_object_template}
183
+ # ip_address_object_template
184
+ def allow_access_to_replicant_from_ip_address(message)
184
185
  request(:allow_access_to_replicant_from_ip_address, Boolean, message)
185
186
  end
186
187
 
187
- def allow_access_to_replicant_from_ip_address_list(ip_address_object_templates = nil)
188
- message = {ip_address_object_templates: ip_address_object_templates}
188
+ # ip_address_object_templates
189
+ def allow_access_to_replicant_from_ip_address_list(message)
189
190
  request(:allow_access_to_replicant_from_ip_address_list, Boolean, message)
190
191
  end
191
192
 
192
- def allow_access_to_replicant_from_subnet(subnet_object_template = nil)
193
- message = {subnet_object_template: subnet_object_template}
193
+ # subnet_object_template
194
+ def allow_access_to_replicant_from_subnet(message)
194
195
  request(:allow_access_to_replicant_from_subnet, Boolean, message)
195
196
  end
196
197
 
197
- def allow_access_to_replicant_from_subnet_list(subnet_object_templates = nil)
198
- message = {subnet_object_templates: subnet_object_templates}
198
+ # subnet_object_templates
199
+ def allow_access_to_replicant_from_subnet_list(message)
199
200
  request(:allow_access_to_replicant_from_subnet_list, Boolean, message)
200
201
  end
201
202
 
202
- def allow_access_to_replicant_from_virtual_guest(virtual_guest_object_template = nil)
203
- message = {virtual_guest_object_template: virtual_guest_object_template}
203
+ # virtual_guest_object_template
204
+ def allow_access_to_replicant_from_virtual_guest(message)
204
205
  request(:allow_access_to_replicant_from_virtual_guest, Boolean, message)
205
206
  end
206
207
 
207
- def allow_access_to_replicant_from_virtual_guest_list(virtual_guest_object_templates = nil)
208
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
208
+ # virtual_guest_object_templates
209
+ def allow_access_to_replicant_from_virtual_guest_list(message)
209
210
  request(:allow_access_to_replicant_from_virtual_guest_list, Boolean, message)
210
211
  end
211
212
 
212
- def assign_credential(username = nil)
213
- message = {username: username}
213
+ # username
214
+ def assign_credential(message)
214
215
  request(:assign_credential, Boolean, message)
215
216
  end
216
217
 
217
- def assign_new_credential(type = nil)
218
- message = {type: type}
218
+ # type
219
+ def assign_new_credential(message)
219
220
  request(:assign_new_credential, Softlayer::Network::Storage::Credential, message)
220
221
  end
221
222
 
222
- def self.change_password(username = nil, current_password = nil, new_password = nil)
223
- message = {username: username, current_password: current_password, new_password: new_password}
223
+ # username
224
+ # current_password
225
+ # new_password
226
+ def self.change_password(message)
224
227
  request(:change_password, Boolean, message)
225
228
  end
226
229
 
227
- def collect_bandwidth(type = nil, start_date = nil, end_date = nil)
228
- message = {type: type, start_date: start_date, end_date: end_date}
230
+ # type
231
+ # start_date
232
+ # end_date
233
+ def collect_bandwidth(message)
229
234
  request(:collect_bandwidth, BigDecimal, message)
230
235
  end
231
236
 
@@ -233,13 +238,13 @@ module Softlayer
233
238
  request(:collect_bytes_used, BigDecimal)
234
239
  end
235
240
 
236
- def create_folder(folder = nil)
237
- message = {folder: folder}
241
+ # folder
242
+ def create_folder(message)
238
243
  request(:create_folder, Boolean, message)
239
244
  end
240
245
 
241
- def create_snapshot(notes = nil)
242
- message = {notes: notes}
246
+ # notes
247
+ def create_snapshot(message)
243
248
  request(:create_snapshot, Softlayer::Network::Storage, message)
244
249
  end
245
250
 
@@ -247,18 +252,18 @@ module Softlayer
247
252
  request(:delete_all_files, Boolean)
248
253
  end
249
254
 
250
- def delete_file(file_id = nil)
251
- message = {file_id: file_id}
255
+ # file_id
256
+ def delete_file(message)
252
257
  request(:delete_file, Boolean, message)
253
258
  end
254
259
 
255
- def delete_files(file_ids = nil)
256
- message = {file_ids: file_ids}
260
+ # file_ids
261
+ def delete_files(message)
257
262
  request(:delete_files, Boolean, message)
258
263
  end
259
264
 
260
- def delete_folder(folder = nil)
261
- message = {folder: folder}
265
+ # folder
266
+ def delete_folder(message)
262
267
  request(:delete_folder, Boolean, message)
263
268
  end
264
269
 
@@ -266,28 +271,33 @@ module Softlayer
266
271
  request(:delete_object, Boolean)
267
272
  end
268
273
 
269
- def disable_snapshots(schedule_type = nil)
270
- message = {schedule_type: schedule_type}
274
+ # schedule_type
275
+ def disable_snapshots(message)
271
276
  request(:disable_snapshots, Boolean, message)
272
277
  end
273
278
 
274
- def download_file(file_id = nil)
275
- message = {file_id: file_id}
279
+ # file_id
280
+ def download_file(message)
276
281
  request(:download_file, Softlayer::Container::Utility::File::Entity, message)
277
282
  end
278
283
 
279
- def edit_credential(username = nil, new_password = nil)
280
- message = {username: username, new_password: new_password}
284
+ # username
285
+ # new_password
286
+ def edit_credential(message)
281
287
  request(:edit_credential, Boolean, message)
282
288
  end
283
289
 
284
- def edit_object(template_object = nil)
285
- message = {template_object: template_object}
290
+ # template_object
291
+ def edit_object(message)
286
292
  request(:edit_object, Boolean, message)
287
293
  end
288
294
 
289
- def enable_snapshots(schedule_type = nil, retention_count = nil, minute = nil, hour = nil, day_of_week = nil)
290
- message = {schedule_type: schedule_type, retention_count: retention_count, minute: minute, hour: hour, day_of_week: day_of_week}
295
+ # schedule_type
296
+ # retention_count
297
+ # minute
298
+ # hour
299
+ # day_of_week
300
+ def enable_snapshots(message)
291
301
  request(:enable_snapshots, Boolean, message)
292
302
  end
293
303
 
@@ -295,8 +305,8 @@ module Softlayer
295
305
  request(:failback_from_replicant, Boolean)
296
306
  end
297
307
 
298
- def failover_to_replicant(replicant_id = nil)
299
- message = {replicant_id: replicant_id}
308
+ # replicant_id
309
+ def failover_to_replicant(message)
300
310
  request(:failover_to_replicant, Boolean, message)
301
311
  end
302
312
 
@@ -316,28 +326,29 @@ module Softlayer
316
326
  request(:get_all_files, Array[Softlayer::Container::Utility::File::Entity])
317
327
  end
318
328
 
319
- def get_all_files_by_filter(filter = nil)
320
- message = {filter: filter}
329
+ # filter
330
+ def get_all_files_by_filter(message)
321
331
  request(:get_all_files_by_filter, Array[Softlayer::Container::Utility::File::Entity], message)
322
332
  end
323
333
 
324
- def get_allowable_hardware(filter_hostname = nil)
325
- message = {filter_hostname: filter_hostname}
334
+ # filter_hostname
335
+ def get_allowable_hardware(message)
326
336
  request(:get_allowable_hardware, Array[Softlayer::Hardware], message)
327
337
  end
328
338
 
329
- def get_allowable_ip_addresses(subnet_id = nil, filter_ip_address = nil)
330
- message = {subnet_id: subnet_id, filter_ip_address: filter_ip_address}
339
+ # subnet_id
340
+ # filter_ip_address
341
+ def get_allowable_ip_addresses(message)
331
342
  request(:get_allowable_ip_addresses, Array[Softlayer::Network::Subnet::IpAddress], message)
332
343
  end
333
344
 
334
- def get_allowable_subnets(filter_network_identifier = nil)
335
- message = {filter_network_identifier: filter_network_identifier}
345
+ # filter_network_identifier
346
+ def get_allowable_subnets(message)
336
347
  request(:get_allowable_subnets, Array[Softlayer::Network::Subnet], message)
337
348
  end
338
349
 
339
- def get_allowable_virtual_guests(filter_hostname = nil)
340
- message = {filter_hostname: filter_hostname}
350
+ # filter_hostname
351
+ def get_allowable_virtual_guests(message)
341
352
  request(:get_allowable_virtual_guests, Array[Softlayer::Virtual::Guest], message)
342
353
  end
343
354
 
@@ -385,8 +396,9 @@ module Softlayer
385
396
  request(:get_billing_item_category, Softlayer::Product::Item::Category)
386
397
  end
387
398
 
388
- def self.get_by_username(username = nil, type = nil)
389
- message = {username: username, type: type}
399
+ # username
400
+ # type
401
+ def self.get_by_username(message)
390
402
  request(:get_by_username, Array[Softlayer::Network::Storage], message)
391
403
  end
392
404
 
@@ -418,8 +430,8 @@ module Softlayer
418
430
  request(:get_events, Array[Softlayer::Network::Storage::Event])
419
431
  end
420
432
 
421
- def get_file_by_identifier(identifier = nil)
422
- message = {identifier: identifier}
433
+ # identifier
434
+ def get_file_by_identifier(message)
423
435
  request(:get_file_by_identifier, Softlayer::Container::Utility::File::Entity, message)
424
436
  end
425
437
 
@@ -427,8 +439,9 @@ module Softlayer
427
439
  request(:get_file_count, Integer)
428
440
  end
429
441
 
430
- def get_file_list(folder = nil, path = nil)
431
- message = {folder: folder, path: path}
442
+ # folder
443
+ # path
444
+ def get_file_list(message)
432
445
  request(:get_file_list, Array[Softlayer::Container::Utility::File::Entity], message)
433
446
  end
434
447
 
@@ -444,8 +457,10 @@ module Softlayer
444
457
  request(:get_folder_list, Array[Softlayer::Container::Network::Storage::Hub::ObjectStorage::Folder])
445
458
  end
446
459
 
447
- def get_graph(start_date = nil, end_date = nil, type = nil)
448
- message = {start_date: start_date, end_date: end_date, type: type}
460
+ # start_date
461
+ # end_date
462
+ # type
463
+ def get_graph(message)
449
464
  request(:get_graph, Softlayer::Container::Bandwidth::GraphOutputs, message)
450
465
  end
451
466
 
@@ -493,8 +508,8 @@ module Softlayer
493
508
  request(:get_object_storage_connection_information, Array[Softlayer::Container::Network::Service::Resource::ObjectStorage::ConnectionInformation])
494
509
  end
495
510
 
496
- def self.get_objects_by_credential(credential_object = nil)
497
- message = {credential_object: credential_object}
511
+ # credential_object
512
+ def self.get_objects_by_credential(message)
498
513
  request(:get_objects_by_credential, Array[Softlayer::Network::Storage], message)
499
514
  end
500
515
 
@@ -526,8 +541,8 @@ module Softlayer
526
541
  request(:get_properties, Array[Softlayer::Network::Storage::Property])
527
542
  end
528
543
 
529
- def get_recycle_bin_file_by_identifier(file_id = nil)
530
- message = {file_id: file_id}
544
+ # file_id
545
+ def get_recycle_bin_file_by_identifier(message)
531
546
  request(:get_recycle_bin_file_by_identifier, Softlayer::Container::Utility::File::Entity, message)
532
547
  end
533
548
 
@@ -659,128 +674,129 @@ module Softlayer
659
674
  request(:get_weekly_schedule, Softlayer::Network::Storage::Schedule)
660
675
  end
661
676
 
662
- def immediate_failover_to_replicant(replicant_id = nil)
663
- message = {replicant_id: replicant_id}
677
+ # replicant_id
678
+ def immediate_failover_to_replicant(message)
664
679
  request(:immediate_failover_to_replicant, Boolean, message)
665
680
  end
666
681
 
667
- def is_blocking_operation_in_progress(exempt_status_key_names = nil)
668
- message = {exempt_status_key_names: exempt_status_key_names}
682
+ # exempt_status_key_names
683
+ def is_blocking_operation_in_progress(message)
669
684
  request(:is_blocking_operation_in_progress, Boolean, message)
670
685
  end
671
686
 
672
- def remove_access_from_hardware(hardware_object_template = nil)
673
- message = {hardware_object_template: hardware_object_template}
687
+ # hardware_object_template
688
+ def remove_access_from_hardware(message)
674
689
  request(:remove_access_from_hardware, Boolean, message)
675
690
  end
676
691
 
677
- def remove_access_from_hardware_list(hardware_object_templates = nil)
678
- message = {hardware_object_templates: hardware_object_templates}
692
+ # hardware_object_templates
693
+ def remove_access_from_hardware_list(message)
679
694
  request(:remove_access_from_hardware_list, Boolean, message)
680
695
  end
681
696
 
682
- def remove_access_from_host(type_class_name = nil, host_id = nil)
683
- message = {type_class_name: type_class_name, host_id: host_id}
697
+ # type_class_name
698
+ # host_id
699
+ def remove_access_from_host(message)
684
700
  request(:remove_access_from_host, Softlayer::Network::Storage::Allowed::Host, message)
685
701
  end
686
702
 
687
- def remove_access_from_host_list(host_object_templates = nil)
688
- message = {host_object_templates: host_object_templates}
703
+ # host_object_templates
704
+ def remove_access_from_host_list(message)
689
705
  request(:remove_access_from_host_list, Array[Softlayer::Network::Storage::Allowed::Host], message)
690
706
  end
691
707
 
692
- def remove_access_from_ip_address(ip_address_object_template = nil)
693
- message = {ip_address_object_template: ip_address_object_template}
708
+ # ip_address_object_template
709
+ def remove_access_from_ip_address(message)
694
710
  request(:remove_access_from_ip_address, Boolean, message)
695
711
  end
696
712
 
697
- def remove_access_from_ip_address_list(ip_address_object_templates = nil)
698
- message = {ip_address_object_templates: ip_address_object_templates}
713
+ # ip_address_object_templates
714
+ def remove_access_from_ip_address_list(message)
699
715
  request(:remove_access_from_ip_address_list, Boolean, message)
700
716
  end
701
717
 
702
- def remove_access_from_subnet(subnet_object_template = nil)
703
- message = {subnet_object_template: subnet_object_template}
718
+ # subnet_object_template
719
+ def remove_access_from_subnet(message)
704
720
  request(:remove_access_from_subnet, Boolean, message)
705
721
  end
706
722
 
707
- def remove_access_from_subnet_list(subnet_object_templates = nil)
708
- message = {subnet_object_templates: subnet_object_templates}
723
+ # subnet_object_templates
724
+ def remove_access_from_subnet_list(message)
709
725
  request(:remove_access_from_subnet_list, Boolean, message)
710
726
  end
711
727
 
712
- def remove_access_from_virtual_guest(virtual_guest_object_template = nil)
713
- message = {virtual_guest_object_template: virtual_guest_object_template}
728
+ # virtual_guest_object_template
729
+ def remove_access_from_virtual_guest(message)
714
730
  request(:remove_access_from_virtual_guest, Boolean, message)
715
731
  end
716
732
 
717
- def remove_access_from_virtual_guest_list(virtual_guest_object_templates = nil)
718
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
733
+ # virtual_guest_object_templates
734
+ def remove_access_from_virtual_guest_list(message)
719
735
  request(:remove_access_from_virtual_guest_list, Boolean, message)
720
736
  end
721
737
 
722
- def remove_access_to_replicant_from_hardware_list(hardware_object_templates = nil)
723
- message = {hardware_object_templates: hardware_object_templates}
738
+ # hardware_object_templates
739
+ def remove_access_to_replicant_from_hardware_list(message)
724
740
  request(:remove_access_to_replicant_from_hardware_list, Boolean, message)
725
741
  end
726
742
 
727
- def remove_access_to_replicant_from_ip_address_list(ip_address_object_templates = nil)
728
- message = {ip_address_object_templates: ip_address_object_templates}
743
+ # ip_address_object_templates
744
+ def remove_access_to_replicant_from_ip_address_list(message)
729
745
  request(:remove_access_to_replicant_from_ip_address_list, Boolean, message)
730
746
  end
731
747
 
732
- def remove_access_to_replicant_from_subnet(subnet_object_template = nil)
733
- message = {subnet_object_template: subnet_object_template}
748
+ # subnet_object_template
749
+ def remove_access_to_replicant_from_subnet(message)
734
750
  request(:remove_access_to_replicant_from_subnet, Boolean, message)
735
751
  end
736
752
 
737
- def remove_access_to_replicant_from_subnet_list(subnet_object_templates = nil)
738
- message = {subnet_object_templates: subnet_object_templates}
753
+ # subnet_object_templates
754
+ def remove_access_to_replicant_from_subnet_list(message)
739
755
  request(:remove_access_to_replicant_from_subnet_list, Boolean, message)
740
756
  end
741
757
 
742
- def remove_access_to_replicant_from_virtual_guest_list(virtual_guest_object_templates = nil)
743
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
758
+ # virtual_guest_object_templates
759
+ def remove_access_to_replicant_from_virtual_guest_list(message)
744
760
  request(:remove_access_to_replicant_from_virtual_guest_list, Boolean, message)
745
761
  end
746
762
 
747
- def remove_credential(username = nil)
748
- message = {username: username}
763
+ # username
764
+ def remove_credential(message)
749
765
  request(:remove_credential, Boolean, message)
750
766
  end
751
767
 
752
- def restore_file(file_id = nil)
753
- message = {file_id: file_id}
768
+ # file_id
769
+ def restore_file(message)
754
770
  request(:restore_file, Softlayer::Container::Utility::File::Entity, message)
755
771
  end
756
772
 
757
- def restore_from_snapshot(snapshot_id = nil)
758
- message = {snapshot_id: snapshot_id}
773
+ # snapshot_id
774
+ def restore_from_snapshot(message)
759
775
  request(:restore_from_snapshot, Boolean, message)
760
776
  end
761
777
 
762
- def self.send_password_reminder_email(username = nil)
763
- message = {username: username}
778
+ # username
779
+ def self.send_password_reminder_email(message)
764
780
  request(:send_password_reminder_email, Boolean, message)
765
781
  end
766
782
 
767
- def set_mountable(mountable = nil)
768
- message = {mountable: mountable}
783
+ # mountable
784
+ def set_mountable(message)
769
785
  request(:set_mountable, Boolean, message)
770
786
  end
771
787
 
772
- def set_snapshot_allocation(capacity_gb = nil)
773
- message = {capacity_gb: capacity_gb}
788
+ # capacity_gb
789
+ def set_snapshot_allocation(message)
774
790
  request(:set_snapshot_allocation, nil, message)
775
791
  end
776
792
 
777
- def upgrade_volume_capacity(item_id = nil)
778
- message = {item_id: item_id}
793
+ # item_id
794
+ def upgrade_volume_capacity(message)
779
795
  request(:upgrade_volume_capacity, Boolean, message)
780
796
  end
781
797
 
782
- def upload_file(file = nil)
783
- message = {file: file}
798
+ # file
799
+ def upload_file(message)
784
800
  request(:upload_file, Softlayer::Container::Utility::File::Entity, message)
785
801
  end
786
802
 
@@ -39,8 +39,8 @@ module Softlayer
39
39
  request(:get_object, Softlayer::Network::Subnet::IpAddress::Global)
40
40
  end
41
41
 
42
- def route(new_end_point_ip_address = nil)
43
- message = {new_end_point_ip_address: new_end_point_ip_address}
42
+ # new_end_point_ip_address
43
+ def route(message)
44
44
  request(:route, Softlayer::Provisioning::Version1::Transaction, message)
45
45
  end
46
46
 
@@ -57,28 +57,28 @@ module Softlayer
57
57
  attr_accessor :virtual_guest
58
58
  attr_accessor :virtual_licenses
59
59
 
60
- def allow_access_to_network_storage(network_storage_template_object = nil)
61
- message = {network_storage_template_object: network_storage_template_object}
60
+ # network_storage_template_object
61
+ def allow_access_to_network_storage(message)
62
62
  request(:allow_access_to_network_storage, Boolean, message)
63
63
  end
64
64
 
65
- def allow_access_to_network_storage_list(network_storage_template_objects = nil)
66
- message = {network_storage_template_objects: network_storage_template_objects}
65
+ # network_storage_template_objects
66
+ def allow_access_to_network_storage_list(message)
67
67
  request(:allow_access_to_network_storage_list, Boolean, message)
68
68
  end
69
69
 
70
- def edit_object(template_object = nil)
71
- message = {template_object: template_object}
70
+ # template_object
71
+ def edit_object(message)
72
72
  request(:edit_object, Boolean, message)
73
73
  end
74
74
 
75
- def self.edit_objects(template_objects = nil)
76
- message = {template_objects: template_objects}
75
+ # template_objects
76
+ def self.edit_objects(message)
77
77
  request(:edit_objects, Boolean, message)
78
78
  end
79
79
 
80
- def self.find_by_ipv4_address(ip_address = nil)
81
- message = {ip_address: ip_address}
80
+ # ip_address
81
+ def self.find_by_ipv4_address(message)
82
82
  request(:find_by_ipv4_address, Softlayer::Network::Subnet::IpAddress, message)
83
83
  end
84
84
 
@@ -98,18 +98,18 @@ module Softlayer
98
98
  request(:get_application_delivery_controller, Softlayer::Network::Application::Delivery::Controller)
99
99
  end
100
100
 
101
- def get_attached_network_storages(nas_type = nil)
102
- message = {nas_type: nas_type}
101
+ # nas_type
102
+ def get_attached_network_storages(message)
103
103
  request(:get_attached_network_storages, Array[Softlayer::Network::Storage], message)
104
104
  end
105
105
 
106
- def get_available_network_storages(nas_type = nil)
107
- message = {nas_type: nas_type}
106
+ # nas_type
107
+ def get_available_network_storages(message)
108
108
  request(:get_available_network_storages, Array[Softlayer::Network::Storage], message)
109
109
  end
110
110
 
111
- def self.get_by_ip_address(ip_address = nil)
112
- message = {ip_address: ip_address}
111
+ # ip_address
112
+ def self.get_by_ip_address(message)
113
113
  request(:get_by_ip_address, Softlayer::Network::Subnet::IpAddress, message)
114
114
  end
115
115
 
@@ -209,8 +209,8 @@ module Softlayer
209
209
  request(:get_virtual_licenses, Array[Softlayer::Software::VirtualLicense])
210
210
  end
211
211
 
212
- def remove_access_to_network_storage_list(network_storage_template_objects = nil)
213
- message = {network_storage_template_objects: network_storage_template_objects}
212
+ # network_storage_template_objects
213
+ def remove_access_to_network_storage_list(message)
214
214
  request(:remove_access_to_network_storage_list, Boolean, message)
215
215
  end
216
216
 
@@ -12,8 +12,8 @@ module Softlayer
12
12
  attr_accessor :detail
13
13
  attr_accessor :registration
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::Network::Subnet::Registration::Details, message)
18
18
  end
19
19