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
@@ -6,113 +6,118 @@ module Softlayer
6
6
  SERVICE = 'SoftLayer_Network_Storage_Backup_Evault'
7
7
  autoload :Version6, 'softlayer/network/storage/backup/evault/version6'
8
8
 
9
- def allow_access_from_hardware(hardware_object_template = nil)
10
- message = {hardware_object_template: hardware_object_template}
9
+ # hardware_object_template
10
+ def allow_access_from_hardware(message)
11
11
  request(:allow_access_from_hardware, Boolean, message)
12
12
  end
13
13
 
14
- def allow_access_from_hardware_list(hardware_object_templates = nil)
15
- message = {hardware_object_templates: hardware_object_templates}
14
+ # hardware_object_templates
15
+ def allow_access_from_hardware_list(message)
16
16
  request(:allow_access_from_hardware_list, Boolean, message)
17
17
  end
18
18
 
19
- def allow_access_from_host(type_class_name = nil, host_id = nil)
20
- message = {type_class_name: type_class_name, host_id: host_id}
19
+ # type_class_name
20
+ # host_id
21
+ def allow_access_from_host(message)
21
22
  request(:allow_access_from_host, Softlayer::Network::Storage::Allowed::Host, message)
22
23
  end
23
24
 
24
- def allow_access_from_host_list(host_object_templates = nil)
25
- message = {host_object_templates: host_object_templates}
25
+ # host_object_templates
26
+ def allow_access_from_host_list(message)
26
27
  request(:allow_access_from_host_list, Array[Softlayer::Network::Storage::Allowed::Host], message)
27
28
  end
28
29
 
29
- def allow_access_from_ip_address(ip_address_object_template = nil)
30
- message = {ip_address_object_template: ip_address_object_template}
30
+ # ip_address_object_template
31
+ def allow_access_from_ip_address(message)
31
32
  request(:allow_access_from_ip_address, Boolean, message)
32
33
  end
33
34
 
34
- def allow_access_from_ip_address_list(ip_address_object_templates = nil)
35
- message = {ip_address_object_templates: ip_address_object_templates}
35
+ # ip_address_object_templates
36
+ def allow_access_from_ip_address_list(message)
36
37
  request(:allow_access_from_ip_address_list, Boolean, message)
37
38
  end
38
39
 
39
- def allow_access_from_subnet(subnet_object_template = nil)
40
- message = {subnet_object_template: subnet_object_template}
40
+ # subnet_object_template
41
+ def allow_access_from_subnet(message)
41
42
  request(:allow_access_from_subnet, Boolean, message)
42
43
  end
43
44
 
44
- def allow_access_from_subnet_list(subnet_object_templates = nil)
45
- message = {subnet_object_templates: subnet_object_templates}
45
+ # subnet_object_templates
46
+ def allow_access_from_subnet_list(message)
46
47
  request(:allow_access_from_subnet_list, Boolean, message)
47
48
  end
48
49
 
49
- def allow_access_from_virtual_guest(virtual_guest_object_template = nil)
50
- message = {virtual_guest_object_template: virtual_guest_object_template}
50
+ # virtual_guest_object_template
51
+ def allow_access_from_virtual_guest(message)
51
52
  request(:allow_access_from_virtual_guest, Boolean, message)
52
53
  end
53
54
 
54
- def allow_access_from_virtual_guest_list(virtual_guest_object_templates = nil)
55
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
55
+ # virtual_guest_object_templates
56
+ def allow_access_from_virtual_guest_list(message)
56
57
  request(:allow_access_from_virtual_guest_list, Boolean, message)
57
58
  end
58
59
 
59
- def allow_access_to_replicant_from_hardware(hardware_object_template = nil)
60
- message = {hardware_object_template: hardware_object_template}
60
+ # hardware_object_template
61
+ def allow_access_to_replicant_from_hardware(message)
61
62
  request(:allow_access_to_replicant_from_hardware, Boolean, message)
62
63
  end
63
64
 
64
- def allow_access_to_replicant_from_hardware_list(hardware_object_templates = nil)
65
- message = {hardware_object_templates: hardware_object_templates}
65
+ # hardware_object_templates
66
+ def allow_access_to_replicant_from_hardware_list(message)
66
67
  request(:allow_access_to_replicant_from_hardware_list, Boolean, message)
67
68
  end
68
69
 
69
- def allow_access_to_replicant_from_ip_address(ip_address_object_template = nil)
70
- message = {ip_address_object_template: ip_address_object_template}
70
+ # ip_address_object_template
71
+ def allow_access_to_replicant_from_ip_address(message)
71
72
  request(:allow_access_to_replicant_from_ip_address, Boolean, message)
72
73
  end
73
74
 
74
- def allow_access_to_replicant_from_ip_address_list(ip_address_object_templates = nil)
75
- message = {ip_address_object_templates: ip_address_object_templates}
75
+ # ip_address_object_templates
76
+ def allow_access_to_replicant_from_ip_address_list(message)
76
77
  request(:allow_access_to_replicant_from_ip_address_list, Boolean, message)
77
78
  end
78
79
 
79
- def allow_access_to_replicant_from_subnet(subnet_object_template = nil)
80
- message = {subnet_object_template: subnet_object_template}
80
+ # subnet_object_template
81
+ def allow_access_to_replicant_from_subnet(message)
81
82
  request(:allow_access_to_replicant_from_subnet, Boolean, message)
82
83
  end
83
84
 
84
- def allow_access_to_replicant_from_subnet_list(subnet_object_templates = nil)
85
- message = {subnet_object_templates: subnet_object_templates}
85
+ # subnet_object_templates
86
+ def allow_access_to_replicant_from_subnet_list(message)
86
87
  request(:allow_access_to_replicant_from_subnet_list, Boolean, message)
87
88
  end
88
89
 
89
- def allow_access_to_replicant_from_virtual_guest(virtual_guest_object_template = nil)
90
- message = {virtual_guest_object_template: virtual_guest_object_template}
90
+ # virtual_guest_object_template
91
+ def allow_access_to_replicant_from_virtual_guest(message)
91
92
  request(:allow_access_to_replicant_from_virtual_guest, Boolean, message)
92
93
  end
93
94
 
94
- def allow_access_to_replicant_from_virtual_guest_list(virtual_guest_object_templates = nil)
95
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
95
+ # virtual_guest_object_templates
96
+ def allow_access_to_replicant_from_virtual_guest_list(message)
96
97
  request(:allow_access_to_replicant_from_virtual_guest_list, Boolean, message)
97
98
  end
98
99
 
99
- def assign_credential(username = nil)
100
- message = {username: username}
100
+ # username
101
+ def assign_credential(message)
101
102
  request(:assign_credential, Boolean, message)
102
103
  end
103
104
 
104
- def assign_new_credential(type = nil)
105
- message = {type: type}
105
+ # type
106
+ def assign_new_credential(message)
106
107
  request(:assign_new_credential, Softlayer::Network::Storage::Credential, message)
107
108
  end
108
109
 
109
- def self.change_password(username = nil, current_password = nil, new_password = nil)
110
- message = {username: username, current_password: current_password, new_password: new_password}
110
+ # username
111
+ # current_password
112
+ # new_password
113
+ def self.change_password(message)
111
114
  request(:change_password, Boolean, message)
112
115
  end
113
116
 
114
- def collect_bandwidth(type = nil, start_date = nil, end_date = nil)
115
- message = {type: type, start_date: start_date, end_date: end_date}
117
+ # type
118
+ # start_date
119
+ # end_date
120
+ def collect_bandwidth(message)
116
121
  request(:collect_bandwidth, BigDecimal, message)
117
122
  end
118
123
 
@@ -120,13 +125,13 @@ module Softlayer
120
125
  request(:collect_bytes_used, BigDecimal)
121
126
  end
122
127
 
123
- def create_folder(folder = nil)
124
- message = {folder: folder}
128
+ # folder
129
+ def create_folder(message)
125
130
  request(:create_folder, Boolean, message)
126
131
  end
127
132
 
128
- def create_snapshot(notes = nil)
129
- message = {notes: notes}
133
+ # notes
134
+ def create_snapshot(message)
130
135
  request(:create_snapshot, Softlayer::Network::Storage::Backup::Evault, message)
131
136
  end
132
137
 
@@ -134,18 +139,18 @@ module Softlayer
134
139
  request(:delete_all_files, Boolean)
135
140
  end
136
141
 
137
- def delete_file(file_id = nil)
138
- message = {file_id: file_id}
142
+ # file_id
143
+ def delete_file(message)
139
144
  request(:delete_file, Boolean, message)
140
145
  end
141
146
 
142
- def delete_files(file_ids = nil)
143
- message = {file_ids: file_ids}
147
+ # file_ids
148
+ def delete_files(message)
144
149
  request(:delete_files, Boolean, message)
145
150
  end
146
151
 
147
- def delete_folder(folder = nil)
148
- message = {folder: folder}
152
+ # folder
153
+ def delete_folder(message)
149
154
  request(:delete_folder, Boolean, message)
150
155
  end
151
156
 
@@ -153,33 +158,38 @@ module Softlayer
153
158
  request(:delete_object, Boolean)
154
159
  end
155
160
 
156
- def delete_tasks(tasks = nil)
157
- message = {tasks: tasks}
161
+ # tasks
162
+ def delete_tasks(message)
158
163
  request(:delete_tasks, Boolean, message)
159
164
  end
160
165
 
161
- def disable_snapshots(schedule_type = nil)
162
- message = {schedule_type: schedule_type}
166
+ # schedule_type
167
+ def disable_snapshots(message)
163
168
  request(:disable_snapshots, Boolean, message)
164
169
  end
165
170
 
166
- def download_file(file_id = nil)
167
- message = {file_id: file_id}
171
+ # file_id
172
+ def download_file(message)
168
173
  request(:download_file, Softlayer::Container::Utility::File::Entity, message)
169
174
  end
170
175
 
171
- def edit_credential(username = nil, new_password = nil)
172
- message = {username: username, new_password: new_password}
176
+ # username
177
+ # new_password
178
+ def edit_credential(message)
173
179
  request(:edit_credential, Boolean, message)
174
180
  end
175
181
 
176
- def edit_object(template_object = nil)
177
- message = {template_object: template_object}
182
+ # template_object
183
+ def edit_object(message)
178
184
  request(:edit_object, Boolean, message)
179
185
  end
180
186
 
181
- def enable_snapshots(schedule_type = nil, retention_count = nil, minute = nil, hour = nil, day_of_week = nil)
182
- message = {schedule_type: schedule_type, retention_count: retention_count, minute: minute, hour: hour, day_of_week: day_of_week}
187
+ # schedule_type
188
+ # retention_count
189
+ # minute
190
+ # hour
191
+ # day_of_week
192
+ def enable_snapshots(message)
183
193
  request(:enable_snapshots, Boolean, message)
184
194
  end
185
195
 
@@ -187,8 +197,8 @@ module Softlayer
187
197
  request(:failback_from_replicant, Boolean)
188
198
  end
189
199
 
190
- def failover_to_replicant(replicant_id = nil)
191
- message = {replicant_id: replicant_id}
200
+ # replicant_id
201
+ def failover_to_replicant(message)
192
202
  request(:failover_to_replicant, Boolean, message)
193
203
  end
194
204
 
@@ -208,28 +218,29 @@ module Softlayer
208
218
  request(:get_all_files, Array[Softlayer::Container::Utility::File::Entity])
209
219
  end
210
220
 
211
- def get_all_files_by_filter(filter = nil)
212
- message = {filter: filter}
221
+ # filter
222
+ def get_all_files_by_filter(message)
213
223
  request(:get_all_files_by_filter, Array[Softlayer::Container::Utility::File::Entity], message)
214
224
  end
215
225
 
216
- def get_allowable_hardware(filter_hostname = nil)
217
- message = {filter_hostname: filter_hostname}
226
+ # filter_hostname
227
+ def get_allowable_hardware(message)
218
228
  request(:get_allowable_hardware, Array[Softlayer::Hardware], message)
219
229
  end
220
230
 
221
- def get_allowable_ip_addresses(subnet_id = nil, filter_ip_address = nil)
222
- message = {subnet_id: subnet_id, filter_ip_address: filter_ip_address}
231
+ # subnet_id
232
+ # filter_ip_address
233
+ def get_allowable_ip_addresses(message)
223
234
  request(:get_allowable_ip_addresses, Array[Softlayer::Network::Subnet::IpAddress], message)
224
235
  end
225
236
 
226
- def get_allowable_subnets(filter_network_identifier = nil)
227
- message = {filter_network_identifier: filter_network_identifier}
237
+ # filter_network_identifier
238
+ def get_allowable_subnets(message)
228
239
  request(:get_allowable_subnets, Array[Softlayer::Network::Subnet], message)
229
240
  end
230
241
 
231
- def get_allowable_virtual_guests(filter_hostname = nil)
232
- message = {filter_hostname: filter_hostname}
242
+ # filter_hostname
243
+ def get_allowable_virtual_guests(message)
233
244
  request(:get_allowable_virtual_guests, Array[Softlayer::Virtual::Guest], message)
234
245
  end
235
246
 
@@ -277,8 +288,9 @@ module Softlayer
277
288
  request(:get_billing_item_category, Softlayer::Product::Item::Category)
278
289
  end
279
290
 
280
- def self.get_by_username(username = nil, type = nil)
281
- message = {username: username, type: type}
291
+ # username
292
+ # type
293
+ def self.get_by_username(message)
282
294
  request(:get_by_username, Array[Softlayer::Network::Storage], message)
283
295
  end
284
296
 
@@ -314,8 +326,8 @@ module Softlayer
314
326
  request(:get_events, Array[Softlayer::Network::Storage::Event])
315
327
  end
316
328
 
317
- def get_file_by_identifier(identifier = nil)
318
- message = {identifier: identifier}
329
+ # identifier
330
+ def get_file_by_identifier(message)
319
331
  request(:get_file_by_identifier, Softlayer::Container::Utility::File::Entity, message)
320
332
  end
321
333
 
@@ -323,8 +335,9 @@ module Softlayer
323
335
  request(:get_file_count, Integer)
324
336
  end
325
337
 
326
- def get_file_list(folder = nil, path = nil)
327
- message = {folder: folder, path: path}
338
+ # folder
339
+ # path
340
+ def get_file_list(message)
328
341
  request(:get_file_list, Array[Softlayer::Container::Utility::File::Entity], message)
329
342
  end
330
343
 
@@ -340,8 +353,10 @@ module Softlayer
340
353
  request(:get_folder_list, Array[Softlayer::Container::Network::Storage::Hub::ObjectStorage::Folder])
341
354
  end
342
355
 
343
- def get_graph(start_date = nil, end_date = nil, type = nil)
344
- message = {start_date: start_date, end_date: end_date, type: type}
356
+ # start_date
357
+ # end_date
358
+ # type
359
+ def get_graph(message)
345
360
  request(:get_graph, Softlayer::Container::Bandwidth::GraphOutputs, message)
346
361
  end
347
362
 
@@ -349,8 +364,11 @@ module Softlayer
349
364
  request(:get_hardware, Softlayer::Hardware)
350
365
  end
351
366
 
352
- def self.get_hardware_with_evault_first(option = nil, exact_match = nil, criteria = nil, mode = nil)
353
- message = {option: option, exact_match: exact_match, criteria: criteria, mode: mode}
367
+ # option
368
+ # exact_match
369
+ # criteria
370
+ # mode
371
+ def self.get_hardware_with_evault_first(message)
354
372
  request(:get_hardware_with_evault_first, Array[Softlayer::Hardware], message)
355
373
  end
356
374
 
@@ -394,8 +412,8 @@ module Softlayer
394
412
  request(:get_object_storage_connection_information, Array[Softlayer::Container::Network::Service::Resource::ObjectStorage::ConnectionInformation])
395
413
  end
396
414
 
397
- def self.get_objects_by_credential(credential_object = nil)
398
- message = {credential_object: credential_object}
415
+ # credential_object
416
+ def self.get_objects_by_credential(message)
399
417
  request(:get_objects_by_credential, Array[Softlayer::Network::Storage], message)
400
418
  end
401
419
 
@@ -431,8 +449,8 @@ module Softlayer
431
449
  request(:get_properties, Array[Softlayer::Network::Storage::Property])
432
450
  end
433
451
 
434
- def get_recycle_bin_file_by_identifier(file_id = nil)
435
- message = {file_id: file_id}
452
+ # file_id
453
+ def get_recycle_bin_file_by_identifier(message)
436
454
  request(:get_recycle_bin_file_by_identifier, Softlayer::Container::Utility::File::Entity, message)
437
455
  end
438
456
 
@@ -568,8 +586,8 @@ module Softlayer
568
586
  request(:get_weekly_schedule, Softlayer::Network::Storage::Schedule)
569
587
  end
570
588
 
571
- def immediate_failover_to_replicant(replicant_id = nil)
572
- message = {replicant_id: replicant_id}
589
+ # replicant_id
590
+ def immediate_failover_to_replicant(message)
573
591
  request(:immediate_failover_to_replicant, Boolean, message)
574
592
  end
575
593
 
@@ -577,128 +595,129 @@ module Softlayer
577
595
  request(:initiate_bare_metal_restore, Boolean)
578
596
  end
579
597
 
580
- def initiate_bare_metal_restore_for_server(hardware_id = nil)
581
- message = {hardware_id: hardware_id}
598
+ # hardware_id
599
+ def initiate_bare_metal_restore_for_server(message)
582
600
  request(:initiate_bare_metal_restore_for_server, Boolean, message)
583
601
  end
584
602
 
585
- def is_blocking_operation_in_progress(exempt_status_key_names = nil)
586
- message = {exempt_status_key_names: exempt_status_key_names}
603
+ # exempt_status_key_names
604
+ def is_blocking_operation_in_progress(message)
587
605
  request(:is_blocking_operation_in_progress, Boolean, message)
588
606
  end
589
607
 
590
- def remove_access_from_hardware(hardware_object_template = nil)
591
- message = {hardware_object_template: hardware_object_template}
608
+ # hardware_object_template
609
+ def remove_access_from_hardware(message)
592
610
  request(:remove_access_from_hardware, Boolean, message)
593
611
  end
594
612
 
595
- def remove_access_from_hardware_list(hardware_object_templates = nil)
596
- message = {hardware_object_templates: hardware_object_templates}
613
+ # hardware_object_templates
614
+ def remove_access_from_hardware_list(message)
597
615
  request(:remove_access_from_hardware_list, Boolean, message)
598
616
  end
599
617
 
600
- def remove_access_from_host(type_class_name = nil, host_id = nil)
601
- message = {type_class_name: type_class_name, host_id: host_id}
618
+ # type_class_name
619
+ # host_id
620
+ def remove_access_from_host(message)
602
621
  request(:remove_access_from_host, Softlayer::Network::Storage::Allowed::Host, message)
603
622
  end
604
623
 
605
- def remove_access_from_host_list(host_object_templates = nil)
606
- message = {host_object_templates: host_object_templates}
624
+ # host_object_templates
625
+ def remove_access_from_host_list(message)
607
626
  request(:remove_access_from_host_list, Array[Softlayer::Network::Storage::Allowed::Host], message)
608
627
  end
609
628
 
610
- def remove_access_from_ip_address(ip_address_object_template = nil)
611
- message = {ip_address_object_template: ip_address_object_template}
629
+ # ip_address_object_template
630
+ def remove_access_from_ip_address(message)
612
631
  request(:remove_access_from_ip_address, Boolean, message)
613
632
  end
614
633
 
615
- def remove_access_from_ip_address_list(ip_address_object_templates = nil)
616
- message = {ip_address_object_templates: ip_address_object_templates}
634
+ # ip_address_object_templates
635
+ def remove_access_from_ip_address_list(message)
617
636
  request(:remove_access_from_ip_address_list, Boolean, message)
618
637
  end
619
638
 
620
- def remove_access_from_subnet(subnet_object_template = nil)
621
- message = {subnet_object_template: subnet_object_template}
639
+ # subnet_object_template
640
+ def remove_access_from_subnet(message)
622
641
  request(:remove_access_from_subnet, Boolean, message)
623
642
  end
624
643
 
625
- def remove_access_from_subnet_list(subnet_object_templates = nil)
626
- message = {subnet_object_templates: subnet_object_templates}
644
+ # subnet_object_templates
645
+ def remove_access_from_subnet_list(message)
627
646
  request(:remove_access_from_subnet_list, Boolean, message)
628
647
  end
629
648
 
630
- def remove_access_from_virtual_guest(virtual_guest_object_template = nil)
631
- message = {virtual_guest_object_template: virtual_guest_object_template}
649
+ # virtual_guest_object_template
650
+ def remove_access_from_virtual_guest(message)
632
651
  request(:remove_access_from_virtual_guest, Boolean, message)
633
652
  end
634
653
 
635
- def remove_access_from_virtual_guest_list(virtual_guest_object_templates = nil)
636
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
654
+ # virtual_guest_object_templates
655
+ def remove_access_from_virtual_guest_list(message)
637
656
  request(:remove_access_from_virtual_guest_list, Boolean, message)
638
657
  end
639
658
 
640
- def remove_access_to_replicant_from_hardware_list(hardware_object_templates = nil)
641
- message = {hardware_object_templates: hardware_object_templates}
659
+ # hardware_object_templates
660
+ def remove_access_to_replicant_from_hardware_list(message)
642
661
  request(:remove_access_to_replicant_from_hardware_list, Boolean, message)
643
662
  end
644
663
 
645
- def remove_access_to_replicant_from_ip_address_list(ip_address_object_templates = nil)
646
- message = {ip_address_object_templates: ip_address_object_templates}
664
+ # ip_address_object_templates
665
+ def remove_access_to_replicant_from_ip_address_list(message)
647
666
  request(:remove_access_to_replicant_from_ip_address_list, Boolean, message)
648
667
  end
649
668
 
650
- def remove_access_to_replicant_from_subnet(subnet_object_template = nil)
651
- message = {subnet_object_template: subnet_object_template}
669
+ # subnet_object_template
670
+ def remove_access_to_replicant_from_subnet(message)
652
671
  request(:remove_access_to_replicant_from_subnet, Boolean, message)
653
672
  end
654
673
 
655
- def remove_access_to_replicant_from_subnet_list(subnet_object_templates = nil)
656
- message = {subnet_object_templates: subnet_object_templates}
674
+ # subnet_object_templates
675
+ def remove_access_to_replicant_from_subnet_list(message)
657
676
  request(:remove_access_to_replicant_from_subnet_list, Boolean, message)
658
677
  end
659
678
 
660
- def remove_access_to_replicant_from_virtual_guest_list(virtual_guest_object_templates = nil)
661
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
679
+ # virtual_guest_object_templates
680
+ def remove_access_to_replicant_from_virtual_guest_list(message)
662
681
  request(:remove_access_to_replicant_from_virtual_guest_list, Boolean, message)
663
682
  end
664
683
 
665
- def remove_credential(username = nil)
666
- message = {username: username}
684
+ # username
685
+ def remove_credential(message)
667
686
  request(:remove_credential, Boolean, message)
668
687
  end
669
688
 
670
- def restore_file(file_id = nil)
671
- message = {file_id: file_id}
689
+ # file_id
690
+ def restore_file(message)
672
691
  request(:restore_file, Softlayer::Container::Utility::File::Entity, message)
673
692
  end
674
693
 
675
- def restore_from_snapshot(snapshot_id = nil)
676
- message = {snapshot_id: snapshot_id}
694
+ # snapshot_id
695
+ def restore_from_snapshot(message)
677
696
  request(:restore_from_snapshot, Boolean, message)
678
697
  end
679
698
 
680
- def self.send_password_reminder_email(username = nil)
681
- message = {username: username}
699
+ # username
700
+ def self.send_password_reminder_email(message)
682
701
  request(:send_password_reminder_email, Boolean, message)
683
702
  end
684
703
 
685
- def set_mountable(mountable = nil)
686
- message = {mountable: mountable}
704
+ # mountable
705
+ def set_mountable(message)
687
706
  request(:set_mountable, Boolean, message)
688
707
  end
689
708
 
690
- def set_snapshot_allocation(capacity_gb = nil)
691
- message = {capacity_gb: capacity_gb}
709
+ # capacity_gb
710
+ def set_snapshot_allocation(message)
692
711
  request(:set_snapshot_allocation, nil, message)
693
712
  end
694
713
 
695
- def upgrade_volume_capacity(item_id = nil)
696
- message = {item_id: item_id}
714
+ # item_id
715
+ def upgrade_volume_capacity(message)
697
716
  request(:upgrade_volume_capacity, Boolean, message)
698
717
  end
699
718
 
700
- def upload_file(file = nil)
701
- message = {file: file}
719
+ # file
720
+ def upload_file(message)
702
721
  request(:upload_file, Softlayer::Container::Utility::File::Entity, message)
703
722
  end
704
723
 
@@ -5,18 +5,18 @@ module Softlayer
5
5
  class Iscsi < Softlayer::Network::Storage::Group
6
6
  SERVICE = 'SoftLayer_Network_Storage_Group_Iscsi'
7
7
 
8
- def add_allowed_host(allowed_host = nil)
9
- message = {allowed_host: allowed_host}
8
+ # allowed_host
9
+ def add_allowed_host(message)
10
10
  request(:add_allowed_host, Boolean, message)
11
11
  end
12
12
 
13
- def attach_to_volume(volume = nil)
14
- message = {volume: volume}
13
+ # volume
14
+ def attach_to_volume(message)
15
15
  request(:attach_to_volume, Boolean, message)
16
16
  end
17
17
 
18
- def self.create_object(template_object = nil)
19
- message = {template_object: template_object}
18
+ # template_object
19
+ def self.create_object(message)
20
20
  request(:create_object, Boolean, message)
21
21
  end
22
22
 
@@ -24,8 +24,8 @@ module Softlayer
24
24
  request(:delete_object, Boolean)
25
25
  end
26
26
 
27
- def edit_object(template_object = nil)
28
- message = {template_object: template_object}
27
+ # template_object
28
+ def edit_object(message)
29
29
  request(:edit_object, Boolean, message)
30
30
  end
31
31
 
@@ -65,13 +65,13 @@ module Softlayer
65
65
  request(:get_service_resource, Softlayer::Network::Service::Resource)
66
66
  end
67
67
 
68
- def remove_allowed_host(allowed_host = nil)
69
- message = {allowed_host: allowed_host}
68
+ # allowed_host
69
+ def remove_allowed_host(message)
70
70
  request(:remove_allowed_host, Boolean, message)
71
71
  end
72
72
 
73
- def remove_from_volume(volume = nil)
74
- message = {volume: volume}
73
+ # volume
74
+ def remove_from_volume(message)
75
75
  request(:remove_from_volume, Boolean, message)
76
76
  end
77
77