softlayer 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -14
  3. data/lib/softlayer/account/address.rb +6 -6
  4. data/lib/softlayer/account/affiliation.rb +6 -6
  5. data/lib/softlayer/account/authentication/saml.rb +4 -4
  6. data/lib/softlayer/account/contact.rb +4 -4
  7. data/lib/softlayer/account/historical/report.rb +28 -16
  8. data/lib/softlayer/account/lockdown/request.rb +9 -8
  9. data/lib/softlayer/account/media/data/transfer/request.rb +2 -2
  10. data/lib/softlayer/account/media.rb +4 -4
  11. data/lib/softlayer/account/note/type.rb +4 -4
  12. data/lib/softlayer/account/note.rb +4 -4
  13. data/lib/softlayer/account/partner/referral/prospect.rb +3 -2
  14. data/lib/softlayer/account/password.rb +2 -2
  15. data/lib/softlayer/account/regional/registry/detail/property.rb +8 -8
  16. data/lib/softlayer/account/regional/registry/detail.rb +4 -4
  17. data/lib/softlayer/account/reports/request.rb +10 -8
  18. data/lib/softlayer/account/shipment/item.rb +2 -2
  19. data/lib/softlayer/account/shipment/tracking/data.rb +6 -6
  20. data/lib/softlayer/account/shipment.rb +4 -4
  21. data/lib/softlayer/account.rb +100 -74
  22. data/lib/softlayer/auxiliary/network/status.rb +2 -2
  23. data/lib/softlayer/auxiliary/press/release.rb +3 -2
  24. data/lib/softlayer/auxiliary/shipping/courier/type.rb +2 -2
  25. data/lib/softlayer/billing/currency/exchange_rate.rb +9 -6
  26. data/lib/softlayer/billing/currency.rb +3 -2
  27. data/lib/softlayer/billing/invoice/next.rb +6 -6
  28. data/lib/softlayer/billing/invoice.rb +2 -2
  29. data/lib/softlayer/billing/item/cancellation/request.rb +11 -10
  30. data/lib/softlayer/billing/item.rb +10 -6
  31. data/lib/softlayer/billing/order/cart.rb +20 -18
  32. data/lib/softlayer/billing/order/quote.rb +14 -12
  33. data/lib/softlayer/billing/order.rb +3 -2
  34. data/lib/softlayer/brand.rb +9 -8
  35. data/lib/softlayer/catalyst/enrollment.rb +4 -4
  36. data/lib/softlayer/configuration/template.rb +6 -6
  37. data/lib/softlayer/dns/domain/registration.rb +23 -20
  38. data/lib/softlayer/dns/domain/resource_record/mx_type.rb +10 -10
  39. data/lib/softlayer/dns/domain/resource_record/srv_type.rb +10 -10
  40. data/lib/softlayer/dns/domain/resource_record.rb +10 -10
  41. data/lib/softlayer/dns/domain.rb +39 -22
  42. data/lib/softlayer/dns/secondary.rb +8 -8
  43. data/lib/softlayer/event/log.rb +2 -2
  44. data/lib/softlayer/flexible_credit/program.rb +4 -4
  45. data/lib/softlayer/generator/class_file.rb +10 -14
  46. data/lib/softlayer/hardware/component/partition/operating_system.rb +2 -2
  47. data/lib/softlayer/hardware/router.rb +64 -52
  48. data/lib/softlayer/hardware/security_module.rb +64 -52
  49. data/lib/softlayer/hardware/server.rb +138 -106
  50. data/lib/softlayer/hardware.rb +64 -52
  51. data/lib/softlayer/layout/profile/containers.rb +4 -4
  52. data/lib/softlayer/layout/profile/customer.rb +8 -8
  53. data/lib/softlayer/layout/profile.rb +8 -8
  54. data/lib/softlayer/marketplace/partner.rb +8 -8
  55. data/lib/softlayer/metric/tracking/object.rb +37 -18
  56. data/lib/softlayer/model/filter.rb +1 -1
  57. data/lib/softlayer/model.rb +23 -0
  58. data/lib/softlayer/monitoring/agent/configuration/template/group/reference.rb +8 -8
  59. data/lib/softlayer/monitoring/agent/configuration/template/group.rb +6 -6
  60. data/lib/softlayer/monitoring/agent.rb +24 -18
  61. data/lib/softlayer/monitoring/robot.rb +2 -2
  62. data/lib/softlayer/network/application/delivery/controller/load_balancer/service/group.rb +3 -2
  63. data/lib/softlayer/network/application/delivery/controller/load_balancer/service.rb +3 -2
  64. data/lib/softlayer/network/application/delivery/controller/load_balancer/virtual_ip_address.rb +2 -2
  65. data/lib/softlayer/network/application/delivery/controller.rb +28 -22
  66. data/lib/softlayer/network/backbone/location/dependent.rb +2 -2
  67. data/lib/softlayer/network/backbone.rb +2 -2
  68. data/lib/softlayer/network/bandwidth/version1/allotment.rb +51 -30
  69. data/lib/softlayer/network/component.rb +6 -6
  70. data/lib/softlayer/network/content_delivery/account.rb +67 -50
  71. data/lib/softlayer/network/content_delivery/authentication/address.rb +7 -6
  72. data/lib/softlayer/network/content_delivery/authentication/token.rb +20 -14
  73. data/lib/softlayer/network/customer/subnet.rb +2 -2
  74. data/lib/softlayer/network/firewall/update/request/rule.rb +6 -4
  75. data/lib/softlayer/network/firewall/update/request.rb +5 -4
  76. data/lib/softlayer/network/gateway/member.rb +4 -4
  77. data/lib/softlayer/network/gateway/vlan.rb +6 -6
  78. data/lib/softlayer/network/gateway.rb +8 -8
  79. data/lib/softlayer/network/load_balancer/global/account.rb +2 -2
  80. data/lib/softlayer/network/load_balancer/service.rb +3 -2
  81. data/lib/softlayer/network/load_balancer/virtual_ip_address.rb +2 -2
  82. data/lib/softlayer/network/media/transcode/account.rb +9 -8
  83. data/lib/softlayer/network/media/transcode/job.rb +2 -2
  84. data/lib/softlayer/network/message/delivery/email/sendgrid.rb +17 -16
  85. data/lib/softlayer/network/message/delivery.rb +2 -2
  86. data/lib/softlayer/network/message/queue/node.rb +9 -8
  87. data/lib/softlayer/network/monitor/version1/query/host.rb +12 -12
  88. data/lib/softlayer/network/monitor.rb +6 -4
  89. data/lib/softlayer/network/security/scanner/request.rb +2 -2
  90. data/lib/softlayer/network/service/vpn/overrides.rb +4 -4
  91. data/lib/softlayer/network/storage/allowed/host/hardware.rb +6 -6
  92. data/lib/softlayer/network/storage/allowed/host/ip_address.rb +6 -6
  93. data/lib/softlayer/network/storage/allowed/host/subnet.rb +6 -6
  94. data/lib/softlayer/network/storage/allowed/host/virtual_guest.rb +6 -6
  95. data/lib/softlayer/network/storage/allowed/host.rb +6 -6
  96. data/lib/softlayer/network/storage/backup/evault.rb +163 -144
  97. data/lib/softlayer/network/storage/group/iscsi.rb +12 -12
  98. data/lib/softlayer/network/storage/group/nfs.rb +12 -12
  99. data/lib/softlayer/network/storage/group.rb +12 -12
  100. data/lib/softlayer/network/storage/hub/swift/share.rb +6 -4
  101. data/lib/softlayer/network/storage/iscsi.rb +154 -138
  102. data/lib/softlayer/network/storage/schedule.rb +4 -4
  103. data/lib/softlayer/network/storage.rb +154 -138
  104. data/lib/softlayer/network/subnet/ip_address/global.rb +2 -2
  105. data/lib/softlayer/network/subnet/ip_address.rb +18 -18
  106. data/lib/softlayer/network/subnet/registration/details.rb +2 -2
  107. data/lib/softlayer/network/subnet/registration.rb +7 -6
  108. data/lib/softlayer/network/subnet/rwhois/data.rb +2 -2
  109. data/lib/softlayer/network/subnet.rb +16 -16
  110. data/lib/softlayer/network/tipping_point_reporting.rb +19 -8
  111. data/lib/softlayer/network/tunnel/module/context.rb +24 -24
  112. data/lib/softlayer/network/vlan/firewall.rb +4 -4
  113. data/lib/softlayer/network/vlan.rb +12 -12
  114. data/lib/softlayer/network.rb +9 -8
  115. data/lib/softlayer/notification/mobile.rb +4 -2
  116. data/lib/softlayer/notification/occurrence/event.rb +2 -2
  117. data/lib/softlayer/notification/user/subscriber/billing.rb +4 -4
  118. data/lib/softlayer/notification/user/subscriber/mobile.rb +7 -6
  119. data/lib/softlayer/notification/user/subscriber/preference.rb +4 -4
  120. data/lib/softlayer/notification/user/subscriber.rb +4 -4
  121. data/lib/softlayer/product/item/category.rb +4 -4
  122. data/lib/softlayer/product/item/policy/assignment.rb +2 -2
  123. data/lib/softlayer/product/item/price.rb +3 -2
  124. data/lib/softlayer/product/order.rb +41 -26
  125. data/lib/softlayer/product/package/server/option.rb +2 -2
  126. data/lib/softlayer/product/package.rb +15 -12
  127. data/lib/softlayer/product/upgrade/request.rb +3 -2
  128. data/lib/softlayer/provisioning/hook.rb +4 -4
  129. data/lib/softlayer/provisioning/maintenance/classification.rb +2 -2
  130. data/lib/softlayer/provisioning/maintenance/window.rb +22 -14
  131. data/lib/softlayer/resource/group.rb +2 -2
  132. data/lib/softlayer/resource/metadata.rb +9 -8
  133. data/lib/softlayer/scale/asset/hardware.rb +2 -2
  134. data/lib/softlayer/scale/asset/virtual/guest.rb +2 -2
  135. data/lib/softlayer/scale/group.rb +8 -8
  136. data/lib/softlayer/scale/load_balancer.rb +4 -4
  137. data/lib/softlayer/scale/network/vlan.rb +2 -2
  138. data/lib/softlayer/scale/policy/action/scale.rb +4 -4
  139. data/lib/softlayer/scale/policy/action.rb +2 -2
  140. data/lib/softlayer/scale/policy/trigger/one_time.rb +4 -4
  141. data/lib/softlayer/scale/policy/trigger/repeating.rb +6 -6
  142. data/lib/softlayer/scale/policy/trigger/resource_use/watch.rb +4 -4
  143. data/lib/softlayer/scale/policy/trigger/resource_use.rb +4 -4
  144. data/lib/softlayer/scale/policy/trigger.rb +4 -4
  145. data/lib/softlayer/scale/policy.rb +4 -4
  146. data/lib/softlayer/search.rb +4 -4
  147. data/lib/softlayer/security/certificate/request.rb +11 -8
  148. data/lib/softlayer/security/certificate.rb +6 -6
  149. data/lib/softlayer/security/ssh/key.rb +4 -4
  150. data/lib/softlayer/software/component/antivirus_spyware.rb +2 -2
  151. data/lib/softlayer/software/component/host_ips.rb +8 -2
  152. data/lib/softlayer/software/component/password.rb +10 -10
  153. data/lib/softlayer/survey.rb +4 -4
  154. data/lib/softlayer/tag.rb +8 -6
  155. data/lib/softlayer/ticket/update/employee.rb +2 -2
  156. data/lib/softlayer/ticket.rb +74 -46
  157. data/lib/softlayer/user/customer/api_authentication.rb +2 -2
  158. data/lib/softlayer/user/customer/external/binding/phone.rb +14 -14
  159. data/lib/softlayer/user/customer/external/binding/totp.rb +4 -4
  160. data/lib/softlayer/user/customer/external/binding/verisign.rb +9 -8
  161. data/lib/softlayer/user/customer/external/binding.rb +4 -4
  162. data/lib/softlayer/user/customer/mobile_device.rb +4 -4
  163. data/lib/softlayer/user/customer/notification/hardware.rb +8 -8
  164. data/lib/softlayer/user/customer/notification/virtual/guest.rb +8 -8
  165. data/lib/softlayer/user/customer.rb +128 -104
  166. data/lib/softlayer/user/external/binding.rb +2 -2
  167. data/lib/softlayer/user/permission/group.rb +28 -24
  168. data/lib/softlayer/user/permission/role.rb +12 -12
  169. data/lib/softlayer/utility/network.rb +11 -10
  170. data/lib/softlayer/version.rb +1 -1
  171. data/lib/softlayer/virtual/disk/image.rb +2 -2
  172. data/lib/softlayer/virtual/guest/block/device/template/group.rb +23 -20
  173. data/lib/softlayer/virtual/guest/boot/parameter.rb +4 -4
  174. data/lib/softlayer/virtual/guest.rb +131 -100
  175. data/lib/softlayer/virtual/host.rb +19 -16
  176. data/lib/softlayer/virtual/storage/repository.rb +9 -6
  177. data/lib/softlayer.rb +74 -0
  178. metadata +2 -2
@@ -6,113 +6,118 @@ module Softlayer
6
6
  autoload :EqualLogic, 'softlayer/network/storage/iscsi/equal_logic'
7
7
  autoload :Os, 'softlayer/network/storage/iscsi/os'
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::Iscsi, 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,28 +158,33 @@ module Softlayer
153
158
  request(:delete_object, Boolean)
154
159
  end
155
160
 
156
- def disable_snapshots(schedule_type = nil)
157
- message = {schedule_type: schedule_type}
161
+ # schedule_type
162
+ def disable_snapshots(message)
158
163
  request(:disable_snapshots, Boolean, message)
159
164
  end
160
165
 
161
- def download_file(file_id = nil)
162
- message = {file_id: file_id}
166
+ # file_id
167
+ def download_file(message)
163
168
  request(:download_file, Softlayer::Container::Utility::File::Entity, message)
164
169
  end
165
170
 
166
- def edit_credential(username = nil, new_password = nil)
167
- message = {username: username, new_password: new_password}
171
+ # username
172
+ # new_password
173
+ def edit_credential(message)
168
174
  request(:edit_credential, Boolean, message)
169
175
  end
170
176
 
171
- def edit_object(template_object = nil)
172
- message = {template_object: template_object}
177
+ # template_object
178
+ def edit_object(message)
173
179
  request(:edit_object, Boolean, message)
174
180
  end
175
181
 
176
- def enable_snapshots(schedule_type = nil, retention_count = nil, minute = nil, hour = nil, day_of_week = nil)
177
- message = {schedule_type: schedule_type, retention_count: retention_count, minute: minute, hour: hour, day_of_week: day_of_week}
182
+ # schedule_type
183
+ # retention_count
184
+ # minute
185
+ # hour
186
+ # day_of_week
187
+ def enable_snapshots(message)
178
188
  request(:enable_snapshots, Boolean, message)
179
189
  end
180
190
 
@@ -182,8 +192,8 @@ module Softlayer
182
192
  request(:failback_from_replicant, Boolean)
183
193
  end
184
194
 
185
- def failover_to_replicant(replicant_id = nil)
186
- message = {replicant_id: replicant_id}
195
+ # replicant_id
196
+ def failover_to_replicant(message)
187
197
  request(:failover_to_replicant, Boolean, message)
188
198
  end
189
199
 
@@ -203,28 +213,29 @@ module Softlayer
203
213
  request(:get_all_files, Array[Softlayer::Container::Utility::File::Entity])
204
214
  end
205
215
 
206
- def get_all_files_by_filter(filter = nil)
207
- message = {filter: filter}
216
+ # filter
217
+ def get_all_files_by_filter(message)
208
218
  request(:get_all_files_by_filter, Array[Softlayer::Container::Utility::File::Entity], message)
209
219
  end
210
220
 
211
- def get_allowable_hardware(filter_hostname = nil)
212
- message = {filter_hostname: filter_hostname}
221
+ # filter_hostname
222
+ def get_allowable_hardware(message)
213
223
  request(:get_allowable_hardware, Array[Softlayer::Hardware], message)
214
224
  end
215
225
 
216
- def get_allowable_ip_addresses(subnet_id = nil, filter_ip_address = nil)
217
- message = {subnet_id: subnet_id, filter_ip_address: filter_ip_address}
226
+ # subnet_id
227
+ # filter_ip_address
228
+ def get_allowable_ip_addresses(message)
218
229
  request(:get_allowable_ip_addresses, Array[Softlayer::Network::Subnet::IpAddress], message)
219
230
  end
220
231
 
221
- def get_allowable_subnets(filter_network_identifier = nil)
222
- message = {filter_network_identifier: filter_network_identifier}
232
+ # filter_network_identifier
233
+ def get_allowable_subnets(message)
223
234
  request(:get_allowable_subnets, Array[Softlayer::Network::Subnet], message)
224
235
  end
225
236
 
226
- def get_allowable_virtual_guests(filter_hostname = nil)
227
- message = {filter_hostname: filter_hostname}
237
+ # filter_hostname
238
+ def get_allowable_virtual_guests(message)
228
239
  request(:get_allowable_virtual_guests, Array[Softlayer::Virtual::Guest], message)
229
240
  end
230
241
 
@@ -272,8 +283,9 @@ module Softlayer
272
283
  request(:get_billing_item_category, Softlayer::Product::Item::Category)
273
284
  end
274
285
 
275
- def self.get_by_username(username = nil, type = nil)
276
- message = {username: username, type: type}
286
+ # username
287
+ # type
288
+ def self.get_by_username(message)
277
289
  request(:get_by_username, Array[Softlayer::Network::Storage], message)
278
290
  end
279
291
 
@@ -305,8 +317,8 @@ module Softlayer
305
317
  request(:get_events, Array[Softlayer::Network::Storage::Event])
306
318
  end
307
319
 
308
- def get_file_by_identifier(identifier = nil)
309
- message = {identifier: identifier}
320
+ # identifier
321
+ def get_file_by_identifier(message)
310
322
  request(:get_file_by_identifier, Softlayer::Container::Utility::File::Entity, message)
311
323
  end
312
324
 
@@ -314,8 +326,9 @@ module Softlayer
314
326
  request(:get_file_count, Integer)
315
327
  end
316
328
 
317
- def get_file_list(folder = nil, path = nil)
318
- message = {folder: folder, path: path}
329
+ # folder
330
+ # path
331
+ def get_file_list(message)
319
332
  request(:get_file_list, Array[Softlayer::Container::Utility::File::Entity], message)
320
333
  end
321
334
 
@@ -331,8 +344,10 @@ module Softlayer
331
344
  request(:get_folder_list, Array[Softlayer::Container::Network::Storage::Hub::ObjectStorage::Folder])
332
345
  end
333
346
 
334
- def get_graph(start_date = nil, end_date = nil, type = nil)
335
- message = {start_date: start_date, end_date: end_date, type: type}
347
+ # start_date
348
+ # end_date
349
+ # type
350
+ def get_graph(message)
336
351
  request(:get_graph, Softlayer::Container::Bandwidth::GraphOutputs, message)
337
352
  end
338
353
 
@@ -380,8 +395,8 @@ module Softlayer
380
395
  request(:get_object_storage_connection_information, Array[Softlayer::Container::Network::Service::Resource::ObjectStorage::ConnectionInformation])
381
396
  end
382
397
 
383
- def self.get_objects_by_credential(credential_object = nil)
384
- message = {credential_object: credential_object}
398
+ # credential_object
399
+ def self.get_objects_by_credential(message)
385
400
  request(:get_objects_by_credential, Array[Softlayer::Network::Storage], message)
386
401
  end
387
402
 
@@ -413,8 +428,8 @@ module Softlayer
413
428
  request(:get_properties, Array[Softlayer::Network::Storage::Property])
414
429
  end
415
430
 
416
- def get_recycle_bin_file_by_identifier(file_id = nil)
417
- message = {file_id: file_id}
431
+ # file_id
432
+ def get_recycle_bin_file_by_identifier(message)
418
433
  request(:get_recycle_bin_file_by_identifier, Softlayer::Container::Utility::File::Entity, message)
419
434
  end
420
435
 
@@ -546,128 +561,129 @@ module Softlayer
546
561
  request(:get_weekly_schedule, Softlayer::Network::Storage::Schedule)
547
562
  end
548
563
 
549
- def immediate_failover_to_replicant(replicant_id = nil)
550
- message = {replicant_id: replicant_id}
564
+ # replicant_id
565
+ def immediate_failover_to_replicant(message)
551
566
  request(:immediate_failover_to_replicant, Boolean, message)
552
567
  end
553
568
 
554
- def is_blocking_operation_in_progress(exempt_status_key_names = nil)
555
- message = {exempt_status_key_names: exempt_status_key_names}
569
+ # exempt_status_key_names
570
+ def is_blocking_operation_in_progress(message)
556
571
  request(:is_blocking_operation_in_progress, Boolean, message)
557
572
  end
558
573
 
559
- def remove_access_from_hardware(hardware_object_template = nil)
560
- message = {hardware_object_template: hardware_object_template}
574
+ # hardware_object_template
575
+ def remove_access_from_hardware(message)
561
576
  request(:remove_access_from_hardware, Boolean, message)
562
577
  end
563
578
 
564
- def remove_access_from_hardware_list(hardware_object_templates = nil)
565
- message = {hardware_object_templates: hardware_object_templates}
579
+ # hardware_object_templates
580
+ def remove_access_from_hardware_list(message)
566
581
  request(:remove_access_from_hardware_list, Boolean, message)
567
582
  end
568
583
 
569
- def remove_access_from_host(type_class_name = nil, host_id = nil)
570
- message = {type_class_name: type_class_name, host_id: host_id}
584
+ # type_class_name
585
+ # host_id
586
+ def remove_access_from_host(message)
571
587
  request(:remove_access_from_host, Softlayer::Network::Storage::Allowed::Host, message)
572
588
  end
573
589
 
574
- def remove_access_from_host_list(host_object_templates = nil)
575
- message = {host_object_templates: host_object_templates}
590
+ # host_object_templates
591
+ def remove_access_from_host_list(message)
576
592
  request(:remove_access_from_host_list, Array[Softlayer::Network::Storage::Allowed::Host], message)
577
593
  end
578
594
 
579
- def remove_access_from_ip_address(ip_address_object_template = nil)
580
- message = {ip_address_object_template: ip_address_object_template}
595
+ # ip_address_object_template
596
+ def remove_access_from_ip_address(message)
581
597
  request(:remove_access_from_ip_address, Boolean, message)
582
598
  end
583
599
 
584
- def remove_access_from_ip_address_list(ip_address_object_templates = nil)
585
- message = {ip_address_object_templates: ip_address_object_templates}
600
+ # ip_address_object_templates
601
+ def remove_access_from_ip_address_list(message)
586
602
  request(:remove_access_from_ip_address_list, Boolean, message)
587
603
  end
588
604
 
589
- def remove_access_from_subnet(subnet_object_template = nil)
590
- message = {subnet_object_template: subnet_object_template}
605
+ # subnet_object_template
606
+ def remove_access_from_subnet(message)
591
607
  request(:remove_access_from_subnet, Boolean, message)
592
608
  end
593
609
 
594
- def remove_access_from_subnet_list(subnet_object_templates = nil)
595
- message = {subnet_object_templates: subnet_object_templates}
610
+ # subnet_object_templates
611
+ def remove_access_from_subnet_list(message)
596
612
  request(:remove_access_from_subnet_list, Boolean, message)
597
613
  end
598
614
 
599
- def remove_access_from_virtual_guest(virtual_guest_object_template = nil)
600
- message = {virtual_guest_object_template: virtual_guest_object_template}
615
+ # virtual_guest_object_template
616
+ def remove_access_from_virtual_guest(message)
601
617
  request(:remove_access_from_virtual_guest, Boolean, message)
602
618
  end
603
619
 
604
- def remove_access_from_virtual_guest_list(virtual_guest_object_templates = nil)
605
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
620
+ # virtual_guest_object_templates
621
+ def remove_access_from_virtual_guest_list(message)
606
622
  request(:remove_access_from_virtual_guest_list, Boolean, message)
607
623
  end
608
624
 
609
- def remove_access_to_replicant_from_hardware_list(hardware_object_templates = nil)
610
- message = {hardware_object_templates: hardware_object_templates}
625
+ # hardware_object_templates
626
+ def remove_access_to_replicant_from_hardware_list(message)
611
627
  request(:remove_access_to_replicant_from_hardware_list, Boolean, message)
612
628
  end
613
629
 
614
- def remove_access_to_replicant_from_ip_address_list(ip_address_object_templates = nil)
615
- message = {ip_address_object_templates: ip_address_object_templates}
630
+ # ip_address_object_templates
631
+ def remove_access_to_replicant_from_ip_address_list(message)
616
632
  request(:remove_access_to_replicant_from_ip_address_list, Boolean, message)
617
633
  end
618
634
 
619
- def remove_access_to_replicant_from_subnet(subnet_object_template = nil)
620
- message = {subnet_object_template: subnet_object_template}
635
+ # subnet_object_template
636
+ def remove_access_to_replicant_from_subnet(message)
621
637
  request(:remove_access_to_replicant_from_subnet, Boolean, message)
622
638
  end
623
639
 
624
- def remove_access_to_replicant_from_subnet_list(subnet_object_templates = nil)
625
- message = {subnet_object_templates: subnet_object_templates}
640
+ # subnet_object_templates
641
+ def remove_access_to_replicant_from_subnet_list(message)
626
642
  request(:remove_access_to_replicant_from_subnet_list, Boolean, message)
627
643
  end
628
644
 
629
- def remove_access_to_replicant_from_virtual_guest_list(virtual_guest_object_templates = nil)
630
- message = {virtual_guest_object_templates: virtual_guest_object_templates}
645
+ # virtual_guest_object_templates
646
+ def remove_access_to_replicant_from_virtual_guest_list(message)
631
647
  request(:remove_access_to_replicant_from_virtual_guest_list, Boolean, message)
632
648
  end
633
649
 
634
- def remove_credential(username = nil)
635
- message = {username: username}
650
+ # username
651
+ def remove_credential(message)
636
652
  request(:remove_credential, Boolean, message)
637
653
  end
638
654
 
639
- def restore_file(file_id = nil)
640
- message = {file_id: file_id}
655
+ # file_id
656
+ def restore_file(message)
641
657
  request(:restore_file, Softlayer::Container::Utility::File::Entity, message)
642
658
  end
643
659
 
644
- def restore_from_snapshot(snapshot_id = nil)
645
- message = {snapshot_id: snapshot_id}
660
+ # snapshot_id
661
+ def restore_from_snapshot(message)
646
662
  request(:restore_from_snapshot, Boolean, message)
647
663
  end
648
664
 
649
- def self.send_password_reminder_email(username = nil)
650
- message = {username: username}
665
+ # username
666
+ def self.send_password_reminder_email(message)
651
667
  request(:send_password_reminder_email, Boolean, message)
652
668
  end
653
669
 
654
- def set_mountable(mountable = nil)
655
- message = {mountable: mountable}
670
+ # mountable
671
+ def set_mountable(message)
656
672
  request(:set_mountable, Boolean, message)
657
673
  end
658
674
 
659
- def set_snapshot_allocation(capacity_gb = nil)
660
- message = {capacity_gb: capacity_gb}
675
+ # capacity_gb
676
+ def set_snapshot_allocation(message)
661
677
  request(:set_snapshot_allocation, nil, message)
662
678
  end
663
679
 
664
- def upgrade_volume_capacity(item_id = nil)
665
- message = {item_id: item_id}
680
+ # item_id
681
+ def upgrade_volume_capacity(message)
666
682
  request(:upgrade_volume_capacity, Boolean, message)
667
683
  end
668
684
 
669
- def upload_file(file = nil)
670
- message = {file: file}
685
+ # file
686
+ def upload_file(message)
671
687
  request(:upload_file, Softlayer::Container::Utility::File::Entity, message)
672
688
  end
673
689
 
@@ -29,8 +29,8 @@ module Softlayer
29
29
  attr_accessor :type
30
30
  attr_accessor :volume
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::Network::Storage::Schedule, message)
35
35
  end
36
36
 
@@ -38,8 +38,8 @@ module Softlayer
38
38
  request(:delete_object, Boolean)
39
39
  end
40
40
 
41
- def edit_object(template_object = nil)
42
- message = {template_object: template_object}
41
+ # template_object
42
+ def edit_object(message)
43
43
  request(:edit_object, Boolean, message)
44
44
  end
45
45