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
@@ -28,13 +28,13 @@ module Softlayer
28
28
  request(:activate, Boolean)
29
29
  end
30
30
 
31
- def add_configuration_profile(configuration_values = nil)
32
- message = {configuration_values: configuration_values}
31
+ # configuration_values
32
+ def add_configuration_profile(message)
33
33
  request(:add_configuration_profile, Softlayer::Provisioning::Version1::Transaction, message)
34
34
  end
35
35
 
36
- def apply_configuration_values(configuration_values = nil)
37
- message = {configuration_values: configuration_values}
36
+ # configuration_values
37
+ def apply_configuration_values(message)
38
38
  request(:apply_configuration_values, Softlayer::Provisioning::Version1::Transaction, message)
39
39
  end
40
40
 
@@ -42,13 +42,14 @@ module Softlayer
42
42
  request(:deactivate, Boolean)
43
43
  end
44
44
 
45
- def delete_configuration_profile(section_id = nil, profile_id = nil)
46
- message = {section_id: section_id, profile_id: profile_id}
45
+ # section_id
46
+ # profile_id
47
+ def delete_configuration_profile(message)
47
48
  request(:delete_configuration_profile, Boolean, message)
48
49
  end
49
50
 
50
- def deploy_monitoring_agent(configuration_template_id = nil)
51
- message = {configuration_template_id: configuration_template_id}
51
+ # configuration_template_id
52
+ def deploy_monitoring_agent(message)
52
53
  request(:deploy_monitoring_agent, Softlayer::Provisioning::Version1::Transaction, message)
53
54
  end
54
55
 
@@ -64,8 +65,9 @@ module Softlayer
64
65
  request(:get_available_configuration_templates, Array[Softlayer::Configuration::Template])
65
66
  end
66
67
 
67
- def get_available_configuration_values(configuration_definition_id = nil, config_values = nil)
68
- message = {configuration_definition_id: configuration_definition_id, config_values: config_values}
68
+ # configuration_definition_id
69
+ # config_values
70
+ def get_available_configuration_values(message)
69
71
  request(:get_available_configuration_values, Array[Softlayer::Monitoring::Agent::Configuration::Value], message)
70
72
  end
71
73
 
@@ -85,13 +87,17 @@ module Softlayer
85
87
  request(:get_eligible_alarm_subscibers, Array[Softlayer::User::Customer])
86
88
  end
87
89
 
88
- def get_graph(configuration_values = nil, begin_date = nil, end_date = nil)
89
- message = {configuration_values: configuration_values, begin_date: begin_date, end_date: end_date}
90
+ # configuration_values
91
+ # begin_date
92
+ # end_date
93
+ def get_graph(message)
90
94
  request(:get_graph, Softlayer::Container::Monitoring::Graph::Outputs, message)
91
95
  end
92
96
 
93
- def get_graph_data(metric_data_types = nil, start_date = nil, end_date = nil)
94
- message = {metric_data_types: metric_data_types, start_date: start_date, end_date: end_date}
97
+ # metric_data_types
98
+ # start_date
99
+ # end_date
100
+ def get_graph_data(message)
95
101
  request(:get_graph_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
96
102
  end
97
103
 
@@ -119,8 +125,8 @@ module Softlayer
119
125
  request(:get_virtual_guest, Softlayer::Virtual::Guest)
120
126
  end
121
127
 
122
- def remove_active_alarm_subscriber(user_record_id = nil)
123
- message = {user_record_id: user_record_id}
128
+ # user_record_id
129
+ def remove_active_alarm_subscriber(message)
124
130
  request(:remove_active_alarm_subscriber, Boolean, message)
125
131
  end
126
132
 
@@ -132,8 +138,8 @@ module Softlayer
132
138
  request(:restart_monitoring_agent, Boolean)
133
139
  end
134
140
 
135
- def set_active_alarm_subscriber(user_record_id = nil)
136
- message = {user_record_id: user_record_id}
141
+ # user_record_id
142
+ def set_active_alarm_subscriber(message)
137
143
  request(:set_active_alarm_subscriber, Boolean, message)
138
144
  end
139
145
 
@@ -17,8 +17,8 @@ module Softlayer
17
17
  request(:check_connection, Boolean)
18
18
  end
19
19
 
20
- def deploy_monitoring_agents(configuration_template_group = nil)
21
- message = {configuration_template_group: configuration_template_group}
20
+ # configuration_template_group
21
+ def deploy_monitoring_agents(message)
22
22
  request(:deploy_monitoring_agents, Softlayer::Provisioning::Version1::Transaction, message)
23
23
  end
24
24
 
@@ -23,8 +23,9 @@ module Softlayer
23
23
  attr_accessor :services
24
24
  attr_accessor :virtual_servers
25
25
 
26
- def get_graph_image(graph_type = nil, metric = nil)
27
- message = {graph_type: graph_type, metric: metric}
26
+ # graph_type
27
+ # metric
28
+ def get_graph_image(message)
28
29
  request(:get_graph_image, Softlayer::Base64Binary, message)
29
30
  end
30
31
 
@@ -26,8 +26,9 @@ module Softlayer
26
26
  request(:delete_object, Boolean)
27
27
  end
28
28
 
29
- def get_graph_image(graph_type = nil, metric = nil)
30
- message = {graph_type: graph_type, metric: metric}
29
+ # graph_type
30
+ # metric
31
+ def get_graph_image(message)
31
32
  request(:get_graph_image, Softlayer::Base64Binary, message)
32
33
  end
33
34
 
@@ -38,8 +38,8 @@ module Softlayer
38
38
  attr_accessor :security_certificate_entry
39
39
  attr_accessor :virtual_servers
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
 
@@ -41,23 +41,23 @@ module Softlayer
41
41
  attr_accessor :type
42
42
  attr_accessor :virtual_ip_addresses
43
43
 
44
- def create_live_load_balancer(load_balancer = nil)
45
- message = {load_balancer: load_balancer}
44
+ # load_balancer
45
+ def create_live_load_balancer(message)
46
46
  request(:create_live_load_balancer, Boolean, message)
47
47
  end
48
48
 
49
- def delete_live_load_balancer(load_balancer = nil)
50
- message = {load_balancer: load_balancer}
49
+ # load_balancer
50
+ def delete_live_load_balancer(message)
51
51
  request(:delete_live_load_balancer, Boolean, message)
52
52
  end
53
53
 
54
- def delete_live_load_balancer_service(service = nil)
55
- message = {service: service}
54
+ # service
55
+ def delete_live_load_balancer_service(message)
56
56
  request(:delete_live_load_balancer_service, Boolean, message)
57
57
  end
58
58
 
59
- def edit_object(template_object = nil)
60
- message = {template_object: template_object}
59
+ # template_object
60
+ def edit_object(message)
61
61
  request(:edit_object, Boolean, message)
62
62
  end
63
63
 
@@ -69,13 +69,17 @@ module Softlayer
69
69
  request(:get_average_daily_public_bandwidth_usage, Float)
70
70
  end
71
71
 
72
- def get_bandwidth_data_by_date(start_date_time = nil, end_date_time = nil, network_type = nil)
73
- message = {start_date_time: start_date_time, end_date_time: end_date_time, network_type: network_type}
72
+ # start_date_time
73
+ # end_date_time
74
+ # network_type
75
+ def get_bandwidth_data_by_date(message)
74
76
  request(:get_bandwidth_data_by_date, Array[Softlayer::Metric::Tracking::Object::Data], message)
75
77
  end
76
78
 
77
- def get_bandwidth_image_by_date(start_date_time = nil, end_date_time = nil, network_type = nil)
78
- message = {start_date_time: start_date_time, end_date_time: end_date_time, network_type: network_type}
79
+ # start_date_time
80
+ # end_date_time
81
+ # network_type
82
+ def get_bandwidth_image_by_date(message)
79
83
  request(:get_bandwidth_image_by_date, Softlayer::Container::Bandwidth::GraphOutputs, message)
80
84
  end
81
85
 
@@ -87,8 +91,8 @@ module Softlayer
87
91
  request(:get_configuration_history, Array[Softlayer::Network::Application::Delivery::Controller::Configuration::History])
88
92
  end
89
93
 
90
- def get_custom_bandwidth_data_by_date(graph_data = nil)
91
- message = {graph_data: graph_data}
94
+ # graph_data
95
+ def get_custom_bandwidth_data_by_date(message)
92
96
  request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, message)
93
97
  end
94
98
 
@@ -104,8 +108,10 @@ module Softlayer
104
108
  request(:get_license_expiration_date, DateTime)
105
109
  end
106
110
 
107
- def get_live_load_balancer_service_graph_image(service = nil, graph_type = nil, metric = nil)
108
- message = {service: service, graph_type: graph_type, metric: metric}
111
+ # service
112
+ # graph_type
113
+ # metric
114
+ def get_live_load_balancer_service_graph_image(message)
109
115
  request(:get_live_load_balancer_service_graph_image, Softlayer::Base64Binary, message)
110
116
  end
111
117
 
@@ -169,18 +175,18 @@ module Softlayer
169
175
  request(:restore_base_configuration, Boolean)
170
176
  end
171
177
 
172
- def restore_configuration(configuration_history_id = nil)
173
- message = {configuration_history_id: configuration_history_id}
178
+ # configuration_history_id
179
+ def restore_configuration(message)
174
180
  request(:restore_configuration, Boolean, message)
175
181
  end
176
182
 
177
- def save_current_configuration(notes = nil)
178
- message = {notes: notes}
183
+ # notes
184
+ def save_current_configuration(message)
179
185
  request(:save_current_configuration, Softlayer::Network::Application::Delivery::Controller::Configuration::History, message)
180
186
  end
181
187
 
182
- def update_live_load_balancer(load_balancer = nil)
183
- message = {load_balancer: load_balancer}
188
+ # load_balancer
189
+ def update_live_load_balancer(message)
184
190
  request(:update_live_load_balancer, Boolean, message)
185
191
  end
186
192
 
@@ -22,8 +22,8 @@ module Softlayer
22
22
  request(:get_object, Softlayer::Network::Backbone::Location::Dependent)
23
23
  end
24
24
 
25
- def self.get_source_dependents_by_name(location_name = nil)
26
- message = {location_name: location_name}
25
+ # location_name
26
+ def self.get_source_dependents_by_name(message)
27
27
  request(:get_source_dependents_by_name, Softlayer::Location, message)
28
28
  end
29
29
 
@@ -17,8 +17,8 @@ module Softlayer
17
17
  request(:get_all_backbones, Array[Softlayer::Network::Backbone])
18
18
  end
19
19
 
20
- def self.get_backbones_for_location_name(location_name = nil)
21
- message = {location_name: location_name}
20
+ # location_name
21
+ def self.get_backbones_for_location_name(message)
22
22
  request(:get_backbones_for_location_name, Array[Softlayer::Network::Backbone], message)
23
23
  end
24
24
 
@@ -53,13 +53,13 @@ module Softlayer
53
53
  attr_accessor :total_bandwidth_allocated
54
54
  attr_accessor :virtual_guests
55
55
 
56
- def self.create_object(template_object = nil)
57
- message = {template_object: template_object}
56
+ # template_object
57
+ def self.create_object(message)
58
58
  request(:create_object, Boolean, message)
59
59
  end
60
60
 
61
- def edit_object(template_object = nil)
62
- message = {template_object: template_object}
61
+ # template_object
62
+ def edit_object(message)
63
63
  request(:edit_object, Boolean, message)
64
64
  end
65
65
 
@@ -79,23 +79,28 @@ module Softlayer
79
79
  request(:get_average_daily_public_bandwidth_usage, Float)
80
80
  end
81
81
 
82
- def get_backend_bandwidth_by_hour(date = nil)
83
- message = {date: date}
82
+ # date
83
+ def get_backend_bandwidth_by_hour(message)
84
84
  request(:get_backend_bandwidth_by_hour, Array[Softlayer::Container::Network::Bandwidth::Version1::Usage], message)
85
85
  end
86
86
 
87
- def get_backend_bandwidth_use(start_date = nil, end_date = nil)
88
- message = {start_date: start_date, end_date: end_date}
87
+ # start_date
88
+ # end_date
89
+ def get_backend_bandwidth_use(message)
89
90
  request(:get_backend_bandwidth_use, Array[Softlayer::Network::Bandwidth::Version1::Usage::Detail], message)
90
91
  end
91
92
 
92
- def get_bandwidth_for_date_range(start_date = nil, end_date = nil)
93
- message = {start_date: start_date, end_date: end_date}
93
+ # start_date
94
+ # end_date
95
+ def get_bandwidth_for_date_range(message)
94
96
  request(:get_bandwidth_for_date_range, Array[Softlayer::Metric::Tracking::Object::Data], message)
95
97
  end
96
98
 
97
- def get_bandwidth_image(network_type = nil, snapshot_range = nil, draw = nil, date_specified = nil)
98
- message = {network_type: network_type, snapshot_range: snapshot_range, draw: draw, date_specified: date_specified}
99
+ # network_type
100
+ # snapshot_range
101
+ # draw
102
+ # date_specified
103
+ def get_bandwidth_image(message)
99
104
  request(:get_bandwidth_image, Softlayer::Container::Bandwidth::GraphOutputs, message)
100
105
  end
101
106
 
@@ -127,8 +132,8 @@ module Softlayer
127
132
  request(:get_current_bandwidth_summary, Softlayer::Metric::Tracking::Object::Bandwidth::Summary)
128
133
  end
129
134
 
130
- def get_custom_bandwidth_data_by_date(graph_data = nil)
131
- message = {graph_data: graph_data}
135
+ # graph_data
136
+ def get_custom_bandwidth_data_by_date(message)
132
137
  request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, message)
133
138
  end
134
139
 
@@ -136,13 +141,14 @@ module Softlayer
136
141
  request(:get_details, Array[Softlayer::Network::Bandwidth::Version1::Allotment::Detail])
137
142
  end
138
143
 
139
- def get_frontend_bandwidth_by_hour(date = nil)
140
- message = {date: date}
144
+ # date
145
+ def get_frontend_bandwidth_by_hour(message)
141
146
  request(:get_frontend_bandwidth_by_hour, Array[Softlayer::Container::Network::Bandwidth::Version1::Usage], message)
142
147
  end
143
148
 
144
- def get_frontend_bandwidth_use(start_date = nil, end_date = nil)
145
- message = {start_date: start_date, end_date: end_date}
149
+ # start_date
150
+ # end_date
151
+ def get_frontend_bandwidth_use(message)
146
152
  request(:get_frontend_bandwidth_use, Array[Softlayer::Network::Bandwidth::Version1::Usage::Detail], message)
147
153
  end
148
154
 
@@ -214,13 +220,17 @@ module Softlayer
214
220
  request(:get_virtual_guests, Array[Softlayer::Virtual::Guest])
215
221
  end
216
222
 
217
- def new_get_bandwidth_image(network_type = nil, snapshot_range = nil, draw = nil, date_specified = nil)
218
- message = {network_type: network_type, snapshot_range: snapshot_range, draw: draw, date_specified: date_specified}
223
+ # network_type
224
+ # snapshot_range
225
+ # draw
226
+ # date_specified
227
+ def new_get_bandwidth_image(message)
219
228
  request(:new_get_bandwidth_image, Softlayer::Container::Bandwidth::GraphOutputs, message)
220
229
  end
221
230
 
222
- def self.reassign_servers(template_objects = nil, new_allotment_id = nil)
223
- message = {template_objects: template_objects, new_allotment_id: new_allotment_id}
231
+ # template_objects
232
+ # new_allotment_id
233
+ def self.reassign_servers(message)
224
234
  request(:reassign_servers, Boolean, message)
225
235
  end
226
236
 
@@ -228,23 +238,34 @@ module Softlayer
228
238
  request(:request_vdr_cancellation, Boolean)
229
239
  end
230
240
 
231
- def request_vdr_content_updates(hardware_to_add = nil, hardware_to_remove = nil, clouds_to_add = nil, clouds_to_remove = nil, optional_allotment_id = nil, adc_to_add = nil, adc_to_remove = nil)
232
- message = {hardware_to_add: hardware_to_add, hardware_to_remove: hardware_to_remove, clouds_to_add: clouds_to_add, clouds_to_remove: clouds_to_remove, optional_allotment_id: optional_allotment_id, adc_to_add: adc_to_add, adc_to_remove: adc_to_remove}
241
+ # hardware_to_add
242
+ # hardware_to_remove
243
+ # clouds_to_add
244
+ # clouds_to_remove
245
+ # optional_allotment_id
246
+ # adc_to_add
247
+ # adc_to_remove
248
+ def request_vdr_content_updates(message)
233
249
  request(:request_vdr_content_updates, Boolean, message)
234
250
  end
235
251
 
236
- def set_vdr_content(hardware = nil, bare_metal_servers = nil, virtual_server_instance = nil, adc = nil, optional_allotment_id = nil)
237
- message = {hardware: hardware, bare_metal_servers: bare_metal_servers, virtual_server_instance: virtual_server_instance, adc: adc, optional_allotment_id: optional_allotment_id}
252
+ # hardware
253
+ # bare_metal_servers
254
+ # virtual_server_instance
255
+ # adc
256
+ # optional_allotment_id
257
+ def set_vdr_content(message)
238
258
  request(:set_vdr_content, Boolean, message)
239
259
  end
240
260
 
241
- def self.unassign_servers(template_objects = nil)
242
- message = {template_objects: template_objects}
261
+ # template_objects
262
+ def self.unassign_servers(message)
243
263
  request(:unassign_servers, Boolean, message)
244
264
  end
245
265
 
246
- def void_pending_server_move(id = nil, type = nil)
247
- message = {id: id, type: type}
266
+ # id
267
+ # type
268
+ def void_pending_server_move(message)
248
269
  request(:void_pending_server_move, Boolean, message)
249
270
  end
250
271
 
@@ -59,8 +59,8 @@ module Softlayer
59
59
  attr_accessor :uplink_component
60
60
  attr_accessor :uplink_duplex_mode
61
61
 
62
- def add_network_vlan_trunks(network_vlans = nil)
63
- message = {network_vlans: network_vlans}
62
+ # network_vlans
63
+ def add_network_vlan_trunks(message)
64
64
  request(:add_network_vlan_trunks, Array[Softlayer::Network::Vlan], message)
65
65
  end
66
66
 
@@ -72,8 +72,8 @@ module Softlayer
72
72
  request(:get_active_command, Softlayer::Hardware::Component::RemoteManagement::Command::Request)
73
73
  end
74
74
 
75
- def get_custom_bandwidth_data_by_date(graph_data = nil)
76
- message = {graph_data: graph_data}
75
+ # graph_data
76
+ def get_custom_bandwidth_data_by_date(message)
77
77
  request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, message)
78
78
  end
79
79
 
@@ -189,8 +189,8 @@ module Softlayer
189
189
  request(:get_uplink_duplex_mode, Softlayer::Network::Component::Duplex::Mode)
190
190
  end
191
191
 
192
- def remove_network_vlan_trunks(network_vlans = nil)
193
- message = {network_vlans: network_vlans}
192
+ # network_vlans
193
+ def remove_network_vlan_trunks(message)
194
194
  request(:remove_network_vlan_trunks, Array[Softlayer::Network::Vlan], message)
195
195
  end
196
196