right_flexiscale 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +13 -0
- data/README.txt +78 -0
- data/Rakefile +49 -0
- data/lib/api/Flexiscale API.rb +513 -0
- data/lib/api/Flexiscale APIAddons.rb +228 -0
- data/lib/api/Flexiscale APIDriver.rb +315 -0
- data/lib/api/Flexiscale APIMappingRegistry.rb +597 -0
- data/lib/api/benchmark_fix.rb +39 -0
- data/lib/api/right_flexiscale_api.rb +819 -0
- data/lib/right_flexiscale.rb +42 -0
- data/test/test_helper.rb +6 -0
- data/test/test_right_flexiscale.rb +140 -0
- metadata +77 -0
@@ -0,0 +1,597 @@
|
|
1
|
+
require 'Flexiscale API.rb'
|
2
|
+
require 'soap/mapping'
|
3
|
+
|
4
|
+
module FlexiScale # :nodoc:
|
5
|
+
|
6
|
+
module FlexiscaleAPIMappingRegistry # :nodoc:
|
7
|
+
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
|
8
|
+
LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
|
9
|
+
NsApiFlexiscaleCom = "http://api.flexiscale.com"
|
10
|
+
|
11
|
+
EncodedRegistry.set(
|
12
|
+
FlexiScale::ArrayOf_xsd_int,
|
13
|
+
::SOAP::SOAPArray,
|
14
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
15
|
+
{ :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "int") }
|
16
|
+
)
|
17
|
+
|
18
|
+
EncodedRegistry.set(
|
19
|
+
FlexiScale::ArrayOf_xsd_string,
|
20
|
+
::SOAP::SOAPArray,
|
21
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
22
|
+
{ :type => XSD::QName.new("http://www.w3.org/2001/XMLSchema", "string") }
|
23
|
+
)
|
24
|
+
|
25
|
+
EncodedRegistry.set(
|
26
|
+
FlexiScale::ArrayOfServer,
|
27
|
+
::SOAP::SOAPArray,
|
28
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
29
|
+
{ :type => XSD::QName.new("http://api.flexiscale.com", "Server") }
|
30
|
+
)
|
31
|
+
|
32
|
+
EncodedRegistry.set(
|
33
|
+
FlexiScale::ArrayOfOperatingSystemImage,
|
34
|
+
::SOAP::SOAPArray,
|
35
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
36
|
+
{ :type => XSD::QName.new("http://api.flexiscale.com", "OperatingSystemImage") }
|
37
|
+
)
|
38
|
+
|
39
|
+
EncodedRegistry.register(
|
40
|
+
:class => FlexiScale::OperatingSystemImage,
|
41
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "OperatingSystemImage"),
|
42
|
+
:schema_element => [
|
43
|
+
["operating_system_image_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "operating_system_image_id")]],
|
44
|
+
["operating_system_image_name", ["SOAP::SOAPString", XSD::QName.new(nil, "operating_system_image_name")], [0, 1]]
|
45
|
+
]
|
46
|
+
)
|
47
|
+
|
48
|
+
EncodedRegistry.register(
|
49
|
+
:class => FlexiScale::Disk,
|
50
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Disk"),
|
51
|
+
:schema_element => [
|
52
|
+
["disk_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "disk_id")]],
|
53
|
+
["package_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "package_id")]],
|
54
|
+
["capacity", ["SOAP::SOAPInt", XSD::QName.new(nil, "capacity")]],
|
55
|
+
["usage", ["SOAP::SOAPFloat", XSD::QName.new(nil, "usage")]],
|
56
|
+
["server_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "server_id")]],
|
57
|
+
["locked", ["SOAP::SOAPInt", XSD::QName.new(nil, "locked")]],
|
58
|
+
["disk_name", ["SOAP::SOAPString", XSD::QName.new(nil, "disk_name")]]
|
59
|
+
]
|
60
|
+
)
|
61
|
+
|
62
|
+
EncodedRegistry.register(
|
63
|
+
:class => FlexiScale::NetworkInterface,
|
64
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "NetworkInterface"),
|
65
|
+
:schema_element => [
|
66
|
+
["network_interface_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "network_interface_id")]],
|
67
|
+
["server_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "server_id")]],
|
68
|
+
["vlan_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "vlan_id")]],
|
69
|
+
["mac_address", ["SOAP::SOAPString", XSD::QName.new(nil, "mac_address")]]
|
70
|
+
]
|
71
|
+
)
|
72
|
+
|
73
|
+
EncodedRegistry.register(
|
74
|
+
:class => FlexiScale::IpBlock,
|
75
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "IpBlock"),
|
76
|
+
:schema_element => [
|
77
|
+
["ip_block_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "ip_block_id")]],
|
78
|
+
["start_ip", ["SOAP::SOAPString", XSD::QName.new(nil, "start_ip")]],
|
79
|
+
["end_ip", ["SOAP::SOAPString", XSD::QName.new(nil, "end_ip")]],
|
80
|
+
["block_type", ["SOAP::SOAPInt", XSD::QName.new(nil, "block_type")]],
|
81
|
+
["customer_vlan_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "customer_vlan_id")]]
|
82
|
+
]
|
83
|
+
)
|
84
|
+
|
85
|
+
EncodedRegistry.set(
|
86
|
+
FlexiScale::ArrayOfFirewall,
|
87
|
+
::SOAP::SOAPArray,
|
88
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
89
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Firewall") }
|
90
|
+
)
|
91
|
+
|
92
|
+
EncodedRegistry.register(
|
93
|
+
:class => FlexiScale::Firewall,
|
94
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Firewall"),
|
95
|
+
:schema_element => [
|
96
|
+
["firewall_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_id")]],
|
97
|
+
["ip_address", ["SOAP::SOAPString", XSD::QName.new(nil, "ip_address")]],
|
98
|
+
["default_policy", ["SOAP::SOAPString", XSD::QName.new(nil, "default_policy")]]
|
99
|
+
]
|
100
|
+
)
|
101
|
+
|
102
|
+
EncodedRegistry.set(
|
103
|
+
FlexiScale::ArrayOfFirewallTemplate,
|
104
|
+
::SOAP::SOAPArray,
|
105
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
106
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallTemplate") }
|
107
|
+
)
|
108
|
+
|
109
|
+
EncodedRegistry.register(
|
110
|
+
:class => FlexiScale::FirewallTemplate,
|
111
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallTemplate"),
|
112
|
+
:schema_element => [
|
113
|
+
["firewall_template_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_template_id")]],
|
114
|
+
["template_name", ["SOAP::SOAPString", XSD::QName.new(nil, "template_name")]],
|
115
|
+
["default_policy", ["SOAP::SOAPString", XSD::QName.new(nil, "default_policy")]]
|
116
|
+
]
|
117
|
+
)
|
118
|
+
|
119
|
+
EncodedRegistry.set(
|
120
|
+
FlexiScale::ArrayOfFirewallRule,
|
121
|
+
::SOAP::SOAPArray,
|
122
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
123
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallRule") }
|
124
|
+
)
|
125
|
+
|
126
|
+
EncodedRegistry.register(
|
127
|
+
:class => FlexiScale::FirewallRule,
|
128
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallRule"),
|
129
|
+
:schema_element => [
|
130
|
+
["firewall_rule_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_rule_id")]],
|
131
|
+
["firewall_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_id")]],
|
132
|
+
["sequence_no", ["SOAP::SOAPInt", XSD::QName.new(nil, "sequence_no")]],
|
133
|
+
["rule_name", ["SOAP::SOAPString", XSD::QName.new(nil, "rule_name")]],
|
134
|
+
["direction", ["SOAP::SOAPString", XSD::QName.new(nil, "direction")]],
|
135
|
+
["firewall_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_protocol_id")]],
|
136
|
+
["source_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "source_port")]],
|
137
|
+
["destination_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "destination_port")]],
|
138
|
+
["icmp_parameter_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "icmp_parameter_id")]],
|
139
|
+
["ip_address", ["SOAP::SOAPString", XSD::QName.new(nil, "ip_address")]],
|
140
|
+
["ip_address_mask", ["SOAP::SOAPInt", XSD::QName.new(nil, "ip_address_mask")]],
|
141
|
+
["action", ["SOAP::SOAPString", XSD::QName.new(nil, "action")]],
|
142
|
+
["jump_to", ["SOAP::SOAPInt", XSD::QName.new(nil, "jump_to")]]
|
143
|
+
]
|
144
|
+
)
|
145
|
+
|
146
|
+
EncodedRegistry.set(
|
147
|
+
FlexiScale::ArrayOfFirewallTemplateRule,
|
148
|
+
::SOAP::SOAPArray,
|
149
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
150
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallTemplateRule") }
|
151
|
+
)
|
152
|
+
|
153
|
+
EncodedRegistry.register(
|
154
|
+
:class => FlexiScale::FirewallTemplateRule,
|
155
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallTemplateRule"),
|
156
|
+
:schema_element => [
|
157
|
+
["firewall_template_rule_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_template_rule_id")]],
|
158
|
+
["firewall_template_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_template_id")]],
|
159
|
+
["sequence_no", ["SOAP::SOAPInt", XSD::QName.new(nil, "sequence_no")]],
|
160
|
+
["rule_name", ["SOAP::SOAPString", XSD::QName.new(nil, "rule_name")]],
|
161
|
+
["direction", ["SOAP::SOAPString", XSD::QName.new(nil, "direction")]],
|
162
|
+
["firewall_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_protocol_id")]],
|
163
|
+
["source_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "source_port")]],
|
164
|
+
["destination_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "destination_port")]],
|
165
|
+
["icmp_parameter_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "icmp_parameter_id")]],
|
166
|
+
["ip_address", ["SOAP::SOAPString", XSD::QName.new(nil, "ip_address")]],
|
167
|
+
["ip_address_mask", ["SOAP::SOAPInt", XSD::QName.new(nil, "ip_address_mask")]],
|
168
|
+
["action", ["SOAP::SOAPString", XSD::QName.new(nil, "action")]],
|
169
|
+
["jump_to", ["SOAP::SOAPInt", XSD::QName.new(nil, "jump_to")]]
|
170
|
+
]
|
171
|
+
)
|
172
|
+
|
173
|
+
EncodedRegistry.set(
|
174
|
+
FlexiScale::ArrayOfIcmpProtocol,
|
175
|
+
::SOAP::SOAPArray,
|
176
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
177
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "IcmpProtocol") }
|
178
|
+
)
|
179
|
+
|
180
|
+
EncodedRegistry.register(
|
181
|
+
:class => FlexiScale::IcmpProtocol,
|
182
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "IcmpProtocol"),
|
183
|
+
:schema_element => [
|
184
|
+
["icmp_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "icmp_protocol_id")]],
|
185
|
+
["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]]
|
186
|
+
]
|
187
|
+
)
|
188
|
+
|
189
|
+
EncodedRegistry.set(
|
190
|
+
FlexiScale::ArrayOfFirewallProtocol,
|
191
|
+
::SOAP::SOAPArray,
|
192
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
193
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallProtocol") }
|
194
|
+
)
|
195
|
+
|
196
|
+
EncodedRegistry.register(
|
197
|
+
:class => FlexiScale::FirewallProtocol,
|
198
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallProtocol"),
|
199
|
+
:schema_element => [
|
200
|
+
["firewall_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_protocol_id")]],
|
201
|
+
["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]]
|
202
|
+
]
|
203
|
+
)
|
204
|
+
|
205
|
+
EncodedRegistry.set(
|
206
|
+
FlexiScale::ArrayOfIpBlock,
|
207
|
+
::SOAP::SOAPArray,
|
208
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
209
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "IpBlock") }
|
210
|
+
)
|
211
|
+
|
212
|
+
EncodedRegistry.register(
|
213
|
+
:class => FlexiScale::Vlan,
|
214
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Vlan"),
|
215
|
+
:schema_element => [
|
216
|
+
["vlan_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "vlan_id")]],
|
217
|
+
["vlan_name", ["SOAP::SOAPString", XSD::QName.new(nil, "vlan_name")], [0, 1]]
|
218
|
+
]
|
219
|
+
)
|
220
|
+
|
221
|
+
EncodedRegistry.set(
|
222
|
+
FlexiScale::ArrayOfVlan,
|
223
|
+
::SOAP::SOAPArray,
|
224
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
225
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Vlan") }
|
226
|
+
)
|
227
|
+
|
228
|
+
EncodedRegistry.set(
|
229
|
+
FlexiScale::ArrayOfNetworkInterface,
|
230
|
+
::SOAP::SOAPArray,
|
231
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
232
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "NetworkInterface") }
|
233
|
+
)
|
234
|
+
|
235
|
+
EncodedRegistry.set(
|
236
|
+
FlexiScale::ArrayOfDisk,
|
237
|
+
::SOAP::SOAPArray,
|
238
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
239
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Disk") }
|
240
|
+
)
|
241
|
+
|
242
|
+
EncodedRegistry.register(
|
243
|
+
:class => FlexiScale::Server,
|
244
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Server"),
|
245
|
+
:schema_element => [
|
246
|
+
["server_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "server_id")], [0, 1]],
|
247
|
+
["server_name", ["SOAP::SOAPString", XSD::QName.new(nil, "server_name")], [0, 1]],
|
248
|
+
["status", ["SOAP::SOAPString", XSD::QName.new(nil, "status")], [0, 1]],
|
249
|
+
["package_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "package_id")], [0, 1]],
|
250
|
+
["processors", ["SOAP::SOAPInt", XSD::QName.new(nil, "processors")], [0, 1]],
|
251
|
+
["memory", ["SOAP::SOAPInt", XSD::QName.new(nil, "memory")], [0, 1]],
|
252
|
+
["operating_system_image", ["FlexiScale::OperatingSystemImage", XSD::QName.new(nil, "operating_system_image")], [0, 1]],
|
253
|
+
["disk_capacity", ["SOAP::SOAPLong", XSD::QName.new(nil, "disk_capacity")], [0, 1]],
|
254
|
+
["disks", ["FlexiScale::ArrayOf_xsd_int", XSD::QName.new(nil, "disks")], [0, 1]],
|
255
|
+
["network_interfaces", ["FlexiScale::ArrayOf_xsd_int", XSD::QName.new(nil, "network_interfaces")], [0, 1]],
|
256
|
+
["initial_password", ["SOAP::SOAPString", XSD::QName.new(nil, "initial_password")], [0, 1]],
|
257
|
+
["uptime", ["SOAP::SOAPLong", XSD::QName.new(nil, "uptime")], [0, 1]],
|
258
|
+
["ip_addresses", ["FlexiScale::ArrayOf_xsd_string", XSD::QName.new(nil, "ip_addresses")], [0, 1]],
|
259
|
+
["modified", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "modified")], [0, 1]]
|
260
|
+
]
|
261
|
+
)
|
262
|
+
|
263
|
+
EncodedRegistry.register(
|
264
|
+
:class => FlexiScale::Job,
|
265
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Job"),
|
266
|
+
:schema_element => [
|
267
|
+
["job_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "job_id")]],
|
268
|
+
["type_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "type_id")]],
|
269
|
+
["status", ["SOAP::SOAPInt", XSD::QName.new(nil, "status")]],
|
270
|
+
["started", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "started")]],
|
271
|
+
["finished", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "finished")]],
|
272
|
+
["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]],
|
273
|
+
["parent_job", ["SOAP::SOAPInt", XSD::QName.new(nil, "parent_job")]],
|
274
|
+
["notes", ["SOAP::SOAPString", XSD::QName.new(nil, "notes")]]
|
275
|
+
]
|
276
|
+
)
|
277
|
+
|
278
|
+
EncodedRegistry.set(
|
279
|
+
FlexiScale::ArrayOfJob,
|
280
|
+
::SOAP::SOAPArray,
|
281
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
282
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Job") }
|
283
|
+
)
|
284
|
+
|
285
|
+
EncodedRegistry.set(
|
286
|
+
FlexiScale::ArrayOfPackage,
|
287
|
+
::SOAP::SOAPArray,
|
288
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
289
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Package") }
|
290
|
+
)
|
291
|
+
|
292
|
+
EncodedRegistry.register(
|
293
|
+
:class => FlexiScale::Package,
|
294
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Package"),
|
295
|
+
:schema_element => [
|
296
|
+
["package_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "package_id")]],
|
297
|
+
["package_name", ["SOAP::SOAPString", XSD::QName.new(nil, "package_name")]]
|
298
|
+
]
|
299
|
+
)
|
300
|
+
|
301
|
+
EncodedRegistry.set(
|
302
|
+
FlexiScale::ArrayOfDebitItem,
|
303
|
+
::SOAP::SOAPArray,
|
304
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
305
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "DebitItem") }
|
306
|
+
)
|
307
|
+
|
308
|
+
EncodedRegistry.register(
|
309
|
+
:class => FlexiScale::DebitItem,
|
310
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "DebitItem"),
|
311
|
+
:schema_element => [
|
312
|
+
["debit_item_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_item_id")]],
|
313
|
+
["item_type", ["SOAP::SOAPString", XSD::QName.new(nil, "item_type")]],
|
314
|
+
["type_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "type_id")]],
|
315
|
+
["item_value", ["SOAP::SOAPFloat", XSD::QName.new(nil, "item_value")]],
|
316
|
+
["item_cost", ["SOAP::SOAPFloat", XSD::QName.new(nil, "item_cost")]],
|
317
|
+
["debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_id")]],
|
318
|
+
["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]],
|
319
|
+
["timestamp", ["SOAP::SOAPString", XSD::QName.new(nil, "timestamp")]]
|
320
|
+
]
|
321
|
+
)
|
322
|
+
|
323
|
+
EncodedRegistry.set(
|
324
|
+
FlexiScale::ArrayOfDebit,
|
325
|
+
::SOAP::SOAPArray,
|
326
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
327
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Debit") }
|
328
|
+
)
|
329
|
+
|
330
|
+
EncodedRegistry.register(
|
331
|
+
:class => FlexiScale::Debit,
|
332
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Debit"),
|
333
|
+
:schema_element => [
|
334
|
+
["debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_id")]],
|
335
|
+
["creation_time", ["SOAP::SOAPString", XSD::QName.new(nil, "creation_time")]],
|
336
|
+
["item_count", ["SOAP::SOAPInt", XSD::QName.new(nil, "item_count")]],
|
337
|
+
["item_cost", ["SOAP::SOAPFloat", XSD::QName.new(nil, "item_cost")]]
|
338
|
+
]
|
339
|
+
)
|
340
|
+
|
341
|
+
EncodedRegistry.set(
|
342
|
+
FlexiScale::ArrayOfCredit,
|
343
|
+
::SOAP::SOAPArray,
|
344
|
+
::SOAP::Mapping::EncodedRegistry::TypedArrayFactory,
|
345
|
+
{ :type => XSD::QName.new(NsApiFlexiscaleCom, "Credit") }
|
346
|
+
)
|
347
|
+
|
348
|
+
EncodedRegistry.register(
|
349
|
+
:class => FlexiScale::Credit,
|
350
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Credit"),
|
351
|
+
:schema_element => [
|
352
|
+
["credit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "credit_id")]],
|
353
|
+
["credit_date", ["SOAP::SOAPString", XSD::QName.new(nil, "credit_date")]],
|
354
|
+
["credit_amount", ["SOAP::SOAPFloat", XSD::QName.new(nil, "credit_amount")]],
|
355
|
+
["unused_credit", ["SOAP::SOAPFloat", XSD::QName.new(nil, "unused_credit")]]
|
356
|
+
]
|
357
|
+
)
|
358
|
+
|
359
|
+
EncodedRegistry.register(
|
360
|
+
:class => FlexiScale::CreditDebit,
|
361
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "CreditDebit"),
|
362
|
+
:schema_element => [
|
363
|
+
["credit_debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "credit_debit_id")]],
|
364
|
+
["credit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "credit_id")]],
|
365
|
+
["debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_id")]],
|
366
|
+
["amount", ["SOAP::SOAPFloat", XSD::QName.new(nil, "amount")]]
|
367
|
+
]
|
368
|
+
)
|
369
|
+
|
370
|
+
LiteralRegistry.register(
|
371
|
+
:class => FlexiScale::OperatingSystemImage,
|
372
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "OperatingSystemImage"),
|
373
|
+
:schema_element => [
|
374
|
+
["operating_system_image_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "operating_system_image_id")]],
|
375
|
+
["operating_system_image_name", ["SOAP::SOAPString", XSD::QName.new(nil, "operating_system_image_name")], [0, 1]]
|
376
|
+
]
|
377
|
+
)
|
378
|
+
|
379
|
+
LiteralRegistry.register(
|
380
|
+
:class => FlexiScale::Disk,
|
381
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Disk"),
|
382
|
+
:schema_element => [
|
383
|
+
["disk_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "disk_id")]],
|
384
|
+
["package_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "package_id")]],
|
385
|
+
["capacity", ["SOAP::SOAPInt", XSD::QName.new(nil, "capacity")]],
|
386
|
+
["usage", ["SOAP::SOAPFloat", XSD::QName.new(nil, "usage")]],
|
387
|
+
["server_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "server_id")]],
|
388
|
+
["locked", ["SOAP::SOAPInt", XSD::QName.new(nil, "locked")]],
|
389
|
+
["disk_name", ["SOAP::SOAPString", XSD::QName.new(nil, "disk_name")]]
|
390
|
+
]
|
391
|
+
)
|
392
|
+
|
393
|
+
LiteralRegistry.register(
|
394
|
+
:class => FlexiScale::NetworkInterface,
|
395
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "NetworkInterface"),
|
396
|
+
:schema_element => [
|
397
|
+
["network_interface_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "network_interface_id")]],
|
398
|
+
["server_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "server_id")]],
|
399
|
+
["vlan_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "vlan_id")]],
|
400
|
+
["mac_address", ["SOAP::SOAPString", XSD::QName.new(nil, "mac_address")]]
|
401
|
+
]
|
402
|
+
)
|
403
|
+
|
404
|
+
LiteralRegistry.register(
|
405
|
+
:class => FlexiScale::IpBlock,
|
406
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "IpBlock"),
|
407
|
+
:schema_element => [
|
408
|
+
["ip_block_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "ip_block_id")]],
|
409
|
+
["start_ip", ["SOAP::SOAPString", XSD::QName.new(nil, "start_ip")]],
|
410
|
+
["end_ip", ["SOAP::SOAPString", XSD::QName.new(nil, "end_ip")]],
|
411
|
+
["block_type", ["SOAP::SOAPInt", XSD::QName.new(nil, "block_type")]],
|
412
|
+
["customer_vlan_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "customer_vlan_id")]]
|
413
|
+
]
|
414
|
+
)
|
415
|
+
|
416
|
+
LiteralRegistry.register(
|
417
|
+
:class => FlexiScale::Firewall,
|
418
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Firewall"),
|
419
|
+
:schema_element => [
|
420
|
+
["firewall_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_id")]],
|
421
|
+
["ip_address", ["SOAP::SOAPString", XSD::QName.new(nil, "ip_address")]],
|
422
|
+
["default_policy", ["SOAP::SOAPString", XSD::QName.new(nil, "default_policy")]]
|
423
|
+
]
|
424
|
+
)
|
425
|
+
|
426
|
+
LiteralRegistry.register(
|
427
|
+
:class => FlexiScale::FirewallTemplate,
|
428
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallTemplate"),
|
429
|
+
:schema_element => [
|
430
|
+
["firewall_template_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_template_id")]],
|
431
|
+
["template_name", ["SOAP::SOAPString", XSD::QName.new(nil, "template_name")]],
|
432
|
+
["default_policy", ["SOAP::SOAPString", XSD::QName.new(nil, "default_policy")]]
|
433
|
+
]
|
434
|
+
)
|
435
|
+
|
436
|
+
LiteralRegistry.register(
|
437
|
+
:class => FlexiScale::FirewallRule,
|
438
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallRule"),
|
439
|
+
:schema_element => [
|
440
|
+
["firewall_rule_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_rule_id")]],
|
441
|
+
["firewall_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_id")]],
|
442
|
+
["sequence_no", ["SOAP::SOAPInt", XSD::QName.new(nil, "sequence_no")]],
|
443
|
+
["rule_name", ["SOAP::SOAPString", XSD::QName.new(nil, "rule_name")]],
|
444
|
+
["direction", ["SOAP::SOAPString", XSD::QName.new(nil, "direction")]],
|
445
|
+
["firewall_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_protocol_id")]],
|
446
|
+
["source_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "source_port")]],
|
447
|
+
["destination_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "destination_port")]],
|
448
|
+
["icmp_parameter_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "icmp_parameter_id")]],
|
449
|
+
["ip_address", ["SOAP::SOAPString", XSD::QName.new(nil, "ip_address")]],
|
450
|
+
["ip_address_mask", ["SOAP::SOAPInt", XSD::QName.new(nil, "ip_address_mask")]],
|
451
|
+
["action", ["SOAP::SOAPString", XSD::QName.new(nil, "action")]],
|
452
|
+
["jump_to", ["SOAP::SOAPInt", XSD::QName.new(nil, "jump_to")]]
|
453
|
+
]
|
454
|
+
)
|
455
|
+
|
456
|
+
LiteralRegistry.register(
|
457
|
+
:class => FlexiScale::FirewallTemplateRule,
|
458
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallTemplateRule"),
|
459
|
+
:schema_element => [
|
460
|
+
["firewall_template_rule_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_template_rule_id")]],
|
461
|
+
["firewall_template_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_template_id")]],
|
462
|
+
["sequence_no", ["SOAP::SOAPInt", XSD::QName.new(nil, "sequence_no")]],
|
463
|
+
["rule_name", ["SOAP::SOAPString", XSD::QName.new(nil, "rule_name")]],
|
464
|
+
["direction", ["SOAP::SOAPString", XSD::QName.new(nil, "direction")]],
|
465
|
+
["firewall_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_protocol_id")]],
|
466
|
+
["source_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "source_port")]],
|
467
|
+
["destination_port", ["SOAP::SOAPInt", XSD::QName.new(nil, "destination_port")]],
|
468
|
+
["icmp_parameter_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "icmp_parameter_id")]],
|
469
|
+
["ip_address", ["SOAP::SOAPString", XSD::QName.new(nil, "ip_address")]],
|
470
|
+
["ip_address_mask", ["SOAP::SOAPInt", XSD::QName.new(nil, "ip_address_mask")]],
|
471
|
+
["action", ["SOAP::SOAPString", XSD::QName.new(nil, "action")]],
|
472
|
+
["jump_to", ["SOAP::SOAPInt", XSD::QName.new(nil, "jump_to")]]
|
473
|
+
]
|
474
|
+
)
|
475
|
+
|
476
|
+
LiteralRegistry.register(
|
477
|
+
:class => FlexiScale::IcmpProtocol,
|
478
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "IcmpProtocol"),
|
479
|
+
:schema_element => [
|
480
|
+
["icmp_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "icmp_protocol_id")]],
|
481
|
+
["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]]
|
482
|
+
]
|
483
|
+
)
|
484
|
+
|
485
|
+
LiteralRegistry.register(
|
486
|
+
:class => FlexiScale::FirewallProtocol,
|
487
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "FirewallProtocol"),
|
488
|
+
:schema_element => [
|
489
|
+
["firewall_protocol_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "firewall_protocol_id")]],
|
490
|
+
["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]]
|
491
|
+
]
|
492
|
+
)
|
493
|
+
|
494
|
+
LiteralRegistry.register(
|
495
|
+
:class => FlexiScale::Vlan,
|
496
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Vlan"),
|
497
|
+
:schema_element => [
|
498
|
+
["vlan_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "vlan_id")]],
|
499
|
+
["vlan_name", ["SOAP::SOAPString", XSD::QName.new(nil, "vlan_name")], [0, 1]]
|
500
|
+
]
|
501
|
+
)
|
502
|
+
|
503
|
+
LiteralRegistry.register(
|
504
|
+
:class => FlexiScale::Server,
|
505
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Server"),
|
506
|
+
:schema_element => [
|
507
|
+
["server_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "server_id")], [0, 1]],
|
508
|
+
["server_name", ["SOAP::SOAPString", XSD::QName.new(nil, "server_name")], [0, 1]],
|
509
|
+
["status", ["SOAP::SOAPString", XSD::QName.new(nil, "status")], [0, 1]],
|
510
|
+
["package_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "package_id")], [0, 1]],
|
511
|
+
["processors", ["SOAP::SOAPInt", XSD::QName.new(nil, "processors")], [0, 1]],
|
512
|
+
["memory", ["SOAP::SOAPInt", XSD::QName.new(nil, "memory")], [0, 1]],
|
513
|
+
["operating_system_image", ["FlexiScale::OperatingSystemImage", XSD::QName.new(nil, "operating_system_image")], [0, 1]],
|
514
|
+
["disk_capacity", ["SOAP::SOAPLong", XSD::QName.new(nil, "disk_capacity")], [0, 1]],
|
515
|
+
["disks", ["FlexiScale::ArrayOf_xsd_int", XSD::QName.new(nil, "disks")], [0, 1]],
|
516
|
+
["network_interfaces", ["FlexiScale::ArrayOf_xsd_int", XSD::QName.new(nil, "network_interfaces")], [0, 1]],
|
517
|
+
["initial_password", ["SOAP::SOAPString", XSD::QName.new(nil, "initial_password")], [0, 1]],
|
518
|
+
["uptime", ["SOAP::SOAPLong", XSD::QName.new(nil, "uptime")], [0, 1]],
|
519
|
+
["ip_addresses", ["FlexiScale::ArrayOf_xsd_string", XSD::QName.new(nil, "ip_addresses")], [0, 1]],
|
520
|
+
["modified", ["SOAP::SOAPBoolean", XSD::QName.new(nil, "modified")], [0, 1]]
|
521
|
+
]
|
522
|
+
)
|
523
|
+
|
524
|
+
LiteralRegistry.register(
|
525
|
+
:class => FlexiScale::Job,
|
526
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Job"),
|
527
|
+
:schema_element => [
|
528
|
+
["job_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "job_id")]],
|
529
|
+
["type_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "type_id")]],
|
530
|
+
["status", ["SOAP::SOAPInt", XSD::QName.new(nil, "status")]],
|
531
|
+
["started", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "started")]],
|
532
|
+
["finished", ["SOAP::SOAPDateTime", XSD::QName.new(nil, "finished")]],
|
533
|
+
["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]],
|
534
|
+
["parent_job", ["SOAP::SOAPInt", XSD::QName.new(nil, "parent_job")]],
|
535
|
+
["notes", ["SOAP::SOAPString", XSD::QName.new(nil, "notes")]]
|
536
|
+
]
|
537
|
+
)
|
538
|
+
|
539
|
+
LiteralRegistry.register(
|
540
|
+
:class => FlexiScale::Package,
|
541
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Package"),
|
542
|
+
:schema_element => [
|
543
|
+
["package_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "package_id")]],
|
544
|
+
["package_name", ["SOAP::SOAPString", XSD::QName.new(nil, "package_name")]]
|
545
|
+
]
|
546
|
+
)
|
547
|
+
|
548
|
+
LiteralRegistry.register(
|
549
|
+
:class => FlexiScale::DebitItem,
|
550
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "DebitItem"),
|
551
|
+
:schema_element => [
|
552
|
+
["debit_item_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_item_id")]],
|
553
|
+
["item_type", ["SOAP::SOAPString", XSD::QName.new(nil, "item_type")]],
|
554
|
+
["type_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "type_id")]],
|
555
|
+
["item_value", ["SOAP::SOAPFloat", XSD::QName.new(nil, "item_value")]],
|
556
|
+
["item_cost", ["SOAP::SOAPFloat", XSD::QName.new(nil, "item_cost")]],
|
557
|
+
["debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_id")]],
|
558
|
+
["description", ["SOAP::SOAPString", XSD::QName.new(nil, "description")]],
|
559
|
+
["timestamp", ["SOAP::SOAPString", XSD::QName.new(nil, "timestamp")]]
|
560
|
+
]
|
561
|
+
)
|
562
|
+
|
563
|
+
LiteralRegistry.register(
|
564
|
+
:class => FlexiScale::Debit,
|
565
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Debit"),
|
566
|
+
:schema_element => [
|
567
|
+
["debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_id")]],
|
568
|
+
["creation_time", ["SOAP::SOAPString", XSD::QName.new(nil, "creation_time")]],
|
569
|
+
["item_count", ["SOAP::SOAPInt", XSD::QName.new(nil, "item_count")]],
|
570
|
+
["item_cost", ["SOAP::SOAPFloat", XSD::QName.new(nil, "item_cost")]]
|
571
|
+
]
|
572
|
+
)
|
573
|
+
|
574
|
+
LiteralRegistry.register(
|
575
|
+
:class => FlexiScale::Credit,
|
576
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "Credit"),
|
577
|
+
:schema_element => [
|
578
|
+
["credit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "credit_id")]],
|
579
|
+
["credit_date", ["SOAP::SOAPString", XSD::QName.new(nil, "credit_date")]],
|
580
|
+
["credit_amount", ["SOAP::SOAPFloat", XSD::QName.new(nil, "credit_amount")]],
|
581
|
+
["unused_credit", ["SOAP::SOAPFloat", XSD::QName.new(nil, "unused_credit")]]
|
582
|
+
]
|
583
|
+
)
|
584
|
+
|
585
|
+
LiteralRegistry.register(
|
586
|
+
:class => FlexiScale::CreditDebit,
|
587
|
+
:schema_type => XSD::QName.new(NsApiFlexiscaleCom, "CreditDebit"),
|
588
|
+
:schema_element => [
|
589
|
+
["credit_debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "credit_debit_id")]],
|
590
|
+
["credit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "credit_id")]],
|
591
|
+
["debit_id", ["SOAP::SOAPInt", XSD::QName.new(nil, "debit_id")]],
|
592
|
+
["amount", ["SOAP::SOAPFloat", XSD::QName.new(nil, "amount")]]
|
593
|
+
]
|
594
|
+
)
|
595
|
+
end
|
596
|
+
|
597
|
+
end
|