fog-ovirt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +30 -0
  3. data/CONTRIBUTING.md +18 -0
  4. data/CONTRIBUTORS.md +21 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE.md +20 -0
  7. data/README.md +47 -0
  8. data/Rakefile +15 -0
  9. data/fog-ovirt.gemspec +32 -0
  10. data/lib/fog/bin/ovirt.rb +28 -0
  11. data/lib/fog/ovirt/compute.rb +155 -0
  12. data/lib/fog/ovirt/core.rb +16 -0
  13. data/lib/fog/ovirt/models/compute/affinity_group.rb +25 -0
  14. data/lib/fog/ovirt/models/compute/affinity_groups.rb +20 -0
  15. data/lib/fog/ovirt/models/compute/cluster.rb +20 -0
  16. data/lib/fog/ovirt/models/compute/clusters.rb +20 -0
  17. data/lib/fog/ovirt/models/compute/instance_type.rb +39 -0
  18. data/lib/fog/ovirt/models/compute/instance_types.rb +20 -0
  19. data/lib/fog/ovirt/models/compute/interface.rb +19 -0
  20. data/lib/fog/ovirt/models/compute/interfaces.rb +29 -0
  21. data/lib/fog/ovirt/models/compute/quota.rb +16 -0
  22. data/lib/fog/ovirt/models/compute/quotas.rb +20 -0
  23. data/lib/fog/ovirt/models/compute/server.rb +175 -0
  24. data/lib/fog/ovirt/models/compute/servers.rb +27 -0
  25. data/lib/fog/ovirt/models/compute/template.rb +58 -0
  26. data/lib/fog/ovirt/models/compute/templates.rb +20 -0
  27. data/lib/fog/ovirt/models/compute/volume.rb +36 -0
  28. data/lib/fog/ovirt/models/compute/volumes.rb +28 -0
  29. data/lib/fog/ovirt/requests/compute/activate_volume.rb +22 -0
  30. data/lib/fog/ovirt/requests/compute/add_interface.rb +20 -0
  31. data/lib/fog/ovirt/requests/compute/add_to_affinity_group.rb +21 -0
  32. data/lib/fog/ovirt/requests/compute/add_volume.rb +21 -0
  33. data/lib/fog/ovirt/requests/compute/attach_volume.rb +22 -0
  34. data/lib/fog/ovirt/requests/compute/create_affinity_group.rb +18 -0
  35. data/lib/fog/ovirt/requests/compute/create_vm.rb +18 -0
  36. data/lib/fog/ovirt/requests/compute/datacenters.rb +20 -0
  37. data/lib/fog/ovirt/requests/compute/deactivate_volume.rb +22 -0
  38. data/lib/fog/ovirt/requests/compute/destroy_affinity_group.rb +19 -0
  39. data/lib/fog/ovirt/requests/compute/destroy_interface.rb +22 -0
  40. data/lib/fog/ovirt/requests/compute/destroy_vm.rb +19 -0
  41. data/lib/fog/ovirt/requests/compute/destroy_volume.rb +22 -0
  42. data/lib/fog/ovirt/requests/compute/detach_volume.rb +22 -0
  43. data/lib/fog/ovirt/requests/compute/get_affinity_group.rb +18 -0
  44. data/lib/fog/ovirt/requests/compute/get_api_version.rb +16 -0
  45. data/lib/fog/ovirt/requests/compute/get_cluster.rb +17 -0
  46. data/lib/fog/ovirt/requests/compute/get_instance_type.rb +17 -0
  47. data/lib/fog/ovirt/requests/compute/get_quota.rb +17 -0
  48. data/lib/fog/ovirt/requests/compute/get_template.rb +17 -0
  49. data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +17 -0
  50. data/lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb +22 -0
  51. data/lib/fog/ovirt/requests/compute/list_affinity_groups.rb +20 -0
  52. data/lib/fog/ovirt/requests/compute/list_clusters.rb +19 -0
  53. data/lib/fog/ovirt/requests/compute/list_instance_types.rb +19 -0
  54. data/lib/fog/ovirt/requests/compute/list_networks.rb +16 -0
  55. data/lib/fog/ovirt/requests/compute/list_quotas.rb +19 -0
  56. data/lib/fog/ovirt/requests/compute/list_template_interfaces.rb +19 -0
  57. data/lib/fog/ovirt/requests/compute/list_template_volumes.rb +19 -0
  58. data/lib/fog/ovirt/requests/compute/list_templates.rb +19 -0
  59. data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +19 -0
  60. data/lib/fog/ovirt/requests/compute/list_vm_interfaces.rb +19 -0
  61. data/lib/fog/ovirt/requests/compute/list_vm_volumes.rb +19 -0
  62. data/lib/fog/ovirt/requests/compute/list_volumes.rb +19 -0
  63. data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml +8 -0
  64. data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml +9 -0
  65. data/lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml +17 -0
  66. data/lib/fog/ovirt/requests/compute/mock_files/cluster.xml +20 -0
  67. data/lib/fog/ovirt/requests/compute/mock_files/clusters.xml +39 -0
  68. data/lib/fog/ovirt/requests/compute/mock_files/data_centers.xml +17 -0
  69. data/lib/fog/ovirt/requests/compute/mock_files/disks.xml +58 -0
  70. data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +42 -0
  71. data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +197 -0
  72. data/lib/fog/ovirt/requests/compute/mock_files/nics.xml +10 -0
  73. data/lib/fog/ovirt/requests/compute/mock_files/quotas.xml +7 -0
  74. data/lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml +36 -0
  75. data/lib/fog/ovirt/requests/compute/mock_files/template.xml +39 -0
  76. data/lib/fog/ovirt/requests/compute/mock_files/templates.xml +110 -0
  77. data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +52 -0
  78. data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +152 -0
  79. data/lib/fog/ovirt/requests/compute/mock_files/volumes.xml +40 -0
  80. data/lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb +21 -0
  81. data/lib/fog/ovirt/requests/compute/storage_domains.rb +20 -0
  82. data/lib/fog/ovirt/requests/compute/update_interface.rb +35 -0
  83. data/lib/fog/ovirt/requests/compute/update_vm.rb +18 -0
  84. data/lib/fog/ovirt/requests/compute/update_volume.rb +39 -0
  85. data/lib/fog/ovirt/requests/compute/vm_action.rb +22 -0
  86. data/lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb +19 -0
  87. data/lib/fog/ovirt/requests/compute/vm_ticket.rb +17 -0
  88. data/lib/fog/ovirt/version.rb +5 -0
  89. data/lib/fog/ovirt.rb +1 -0
  90. data/spec/fog/bin/ovirt_spec.rb +10 -0
  91. data/spec/fog/bin_spec.rb +32 -0
  92. data/tests/helper.rb +1 -0
  93. data/tests/helpers/mock_helper.rb +16 -0
  94. data/tests/helpers/succeeds_helper.rb +9 -0
  95. data/tests/ovirt/compute_tests.rb +25 -0
  96. data/tests/ovirt/models/compute/cluster_tests.rb +31 -0
  97. data/tests/ovirt/models/compute/clusters_tests.rb +9 -0
  98. data/tests/ovirt/models/compute/interface_tests.rb +27 -0
  99. data/tests/ovirt/models/compute/interfaces_tests.rb +9 -0
  100. data/tests/ovirt/models/compute/server_tests.rb +51 -0
  101. data/tests/ovirt/models/compute/servers_tests.rb +14 -0
  102. data/tests/ovirt/models/compute/template_tests.rb +28 -0
  103. data/tests/ovirt/models/compute/templates_tests.rb +9 -0
  104. data/tests/ovirt/requests/compute/create_vm_tests.rb +26 -0
  105. data/tests/ovirt/requests/compute/destroy_vm_tests.rb +18 -0
  106. data/tests/ovirt/requests/compute/list_datacenters_tests.rb +13 -0
  107. data/tests/ovirt/requests/compute/list_quotas_tests.rb +12 -0
  108. data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +13 -0
  109. data/tests/ovirt/requests/compute/update_vm_tests.rb +18 -0
  110. data/tests/ovirt/requests/compute/update_volume_tests.rb +20 -0
  111. metadata +298 -0
metadata ADDED
@@ -0,0 +1,298 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fog-ovirt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ori Rabin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fog-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.45'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.45'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fog-json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: fog-xml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.10'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.10'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '10.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '10.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.34'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.34'
111
+ - !ruby/object:Gem::Dependency
112
+ name: shindo
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.3'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.3'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rbovirt
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '='
130
+ - !ruby/object:Gem::Version
131
+ version: 0.1.3
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '='
137
+ - !ruby/object:Gem::Version
138
+ version: 0.1.3
139
+ description: This library can be used as a module for `fog`.
140
+ email:
141
+ - orabin@redhat.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - CONTRIBUTING.md
148
+ - CONTRIBUTORS.md
149
+ - Gemfile
150
+ - LICENSE.md
151
+ - README.md
152
+ - Rakefile
153
+ - fog-ovirt.gemspec
154
+ - lib/fog/bin/ovirt.rb
155
+ - lib/fog/ovirt.rb
156
+ - lib/fog/ovirt/compute.rb
157
+ - lib/fog/ovirt/core.rb
158
+ - lib/fog/ovirt/models/compute/affinity_group.rb
159
+ - lib/fog/ovirt/models/compute/affinity_groups.rb
160
+ - lib/fog/ovirt/models/compute/cluster.rb
161
+ - lib/fog/ovirt/models/compute/clusters.rb
162
+ - lib/fog/ovirt/models/compute/instance_type.rb
163
+ - lib/fog/ovirt/models/compute/instance_types.rb
164
+ - lib/fog/ovirt/models/compute/interface.rb
165
+ - lib/fog/ovirt/models/compute/interfaces.rb
166
+ - lib/fog/ovirt/models/compute/quota.rb
167
+ - lib/fog/ovirt/models/compute/quotas.rb
168
+ - lib/fog/ovirt/models/compute/server.rb
169
+ - lib/fog/ovirt/models/compute/servers.rb
170
+ - lib/fog/ovirt/models/compute/template.rb
171
+ - lib/fog/ovirt/models/compute/templates.rb
172
+ - lib/fog/ovirt/models/compute/volume.rb
173
+ - lib/fog/ovirt/models/compute/volumes.rb
174
+ - lib/fog/ovirt/requests/compute/activate_volume.rb
175
+ - lib/fog/ovirt/requests/compute/add_interface.rb
176
+ - lib/fog/ovirt/requests/compute/add_to_affinity_group.rb
177
+ - lib/fog/ovirt/requests/compute/add_volume.rb
178
+ - lib/fog/ovirt/requests/compute/attach_volume.rb
179
+ - lib/fog/ovirt/requests/compute/create_affinity_group.rb
180
+ - lib/fog/ovirt/requests/compute/create_vm.rb
181
+ - lib/fog/ovirt/requests/compute/datacenters.rb
182
+ - lib/fog/ovirt/requests/compute/deactivate_volume.rb
183
+ - lib/fog/ovirt/requests/compute/destroy_affinity_group.rb
184
+ - lib/fog/ovirt/requests/compute/destroy_interface.rb
185
+ - lib/fog/ovirt/requests/compute/destroy_vm.rb
186
+ - lib/fog/ovirt/requests/compute/destroy_volume.rb
187
+ - lib/fog/ovirt/requests/compute/detach_volume.rb
188
+ - lib/fog/ovirt/requests/compute/get_affinity_group.rb
189
+ - lib/fog/ovirt/requests/compute/get_api_version.rb
190
+ - lib/fog/ovirt/requests/compute/get_cluster.rb
191
+ - lib/fog/ovirt/requests/compute/get_instance_type.rb
192
+ - lib/fog/ovirt/requests/compute/get_quota.rb
193
+ - lib/fog/ovirt/requests/compute/get_template.rb
194
+ - lib/fog/ovirt/requests/compute/get_virtual_machine.rb
195
+ - lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb
196
+ - lib/fog/ovirt/requests/compute/list_affinity_groups.rb
197
+ - lib/fog/ovirt/requests/compute/list_clusters.rb
198
+ - lib/fog/ovirt/requests/compute/list_instance_types.rb
199
+ - lib/fog/ovirt/requests/compute/list_networks.rb
200
+ - lib/fog/ovirt/requests/compute/list_quotas.rb
201
+ - lib/fog/ovirt/requests/compute/list_template_interfaces.rb
202
+ - lib/fog/ovirt/requests/compute/list_template_volumes.rb
203
+ - lib/fog/ovirt/requests/compute/list_templates.rb
204
+ - lib/fog/ovirt/requests/compute/list_virtual_machines.rb
205
+ - lib/fog/ovirt/requests/compute/list_vm_interfaces.rb
206
+ - lib/fog/ovirt/requests/compute/list_vm_volumes.rb
207
+ - lib/fog/ovirt/requests/compute/list_volumes.rb
208
+ - lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml
209
+ - lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml
210
+ - lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml
211
+ - lib/fog/ovirt/requests/compute/mock_files/cluster.xml
212
+ - lib/fog/ovirt/requests/compute/mock_files/clusters.xml
213
+ - lib/fog/ovirt/requests/compute/mock_files/data_centers.xml
214
+ - lib/fog/ovirt/requests/compute/mock_files/disks.xml
215
+ - lib/fog/ovirt/requests/compute/mock_files/instance_type.xml
216
+ - lib/fog/ovirt/requests/compute/mock_files/instance_types.xml
217
+ - lib/fog/ovirt/requests/compute/mock_files/nics.xml
218
+ - lib/fog/ovirt/requests/compute/mock_files/quotas.xml
219
+ - lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml
220
+ - lib/fog/ovirt/requests/compute/mock_files/template.xml
221
+ - lib/fog/ovirt/requests/compute/mock_files/templates.xml
222
+ - lib/fog/ovirt/requests/compute/mock_files/vm.xml
223
+ - lib/fog/ovirt/requests/compute/mock_files/vms.xml
224
+ - lib/fog/ovirt/requests/compute/mock_files/volumes.xml
225
+ - lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb
226
+ - lib/fog/ovirt/requests/compute/storage_domains.rb
227
+ - lib/fog/ovirt/requests/compute/update_interface.rb
228
+ - lib/fog/ovirt/requests/compute/update_vm.rb
229
+ - lib/fog/ovirt/requests/compute/update_volume.rb
230
+ - lib/fog/ovirt/requests/compute/vm_action.rb
231
+ - lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb
232
+ - lib/fog/ovirt/requests/compute/vm_ticket.rb
233
+ - lib/fog/ovirt/version.rb
234
+ - spec/fog/bin/ovirt_spec.rb
235
+ - spec/fog/bin_spec.rb
236
+ - tests/helper.rb
237
+ - tests/helpers/mock_helper.rb
238
+ - tests/helpers/succeeds_helper.rb
239
+ - tests/ovirt/compute_tests.rb
240
+ - tests/ovirt/models/compute/cluster_tests.rb
241
+ - tests/ovirt/models/compute/clusters_tests.rb
242
+ - tests/ovirt/models/compute/interface_tests.rb
243
+ - tests/ovirt/models/compute/interfaces_tests.rb
244
+ - tests/ovirt/models/compute/server_tests.rb
245
+ - tests/ovirt/models/compute/servers_tests.rb
246
+ - tests/ovirt/models/compute/template_tests.rb
247
+ - tests/ovirt/models/compute/templates_tests.rb
248
+ - tests/ovirt/requests/compute/create_vm_tests.rb
249
+ - tests/ovirt/requests/compute/destroy_vm_tests.rb
250
+ - tests/ovirt/requests/compute/list_datacenters_tests.rb
251
+ - tests/ovirt/requests/compute/list_quotas_tests.rb
252
+ - tests/ovirt/requests/compute/list_storage_domains_tests.rb
253
+ - tests/ovirt/requests/compute/update_vm_tests.rb
254
+ - tests/ovirt/requests/compute/update_volume_tests.rb
255
+ homepage: https://github.com/fog/fog-ovirt
256
+ licenses:
257
+ - MIT
258
+ metadata: {}
259
+ post_install_message:
260
+ rdoc_options: []
261
+ require_paths:
262
+ - lib
263
+ required_ruby_version: !ruby/object:Gem::Requirement
264
+ requirements:
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ version: '0'
268
+ required_rubygems_version: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ version: '0'
273
+ requirements: []
274
+ rubyforge_project:
275
+ rubygems_version: 2.5.2
276
+ signing_key:
277
+ specification_version: 4
278
+ summary: Module for the 'fog' gem to support Ovirt.
279
+ test_files:
280
+ - tests/helper.rb
281
+ - tests/helpers/mock_helper.rb
282
+ - tests/helpers/succeeds_helper.rb
283
+ - tests/ovirt/compute_tests.rb
284
+ - tests/ovirt/models/compute/cluster_tests.rb
285
+ - tests/ovirt/models/compute/clusters_tests.rb
286
+ - tests/ovirt/models/compute/interface_tests.rb
287
+ - tests/ovirt/models/compute/interfaces_tests.rb
288
+ - tests/ovirt/models/compute/server_tests.rb
289
+ - tests/ovirt/models/compute/servers_tests.rb
290
+ - tests/ovirt/models/compute/template_tests.rb
291
+ - tests/ovirt/models/compute/templates_tests.rb
292
+ - tests/ovirt/requests/compute/create_vm_tests.rb
293
+ - tests/ovirt/requests/compute/destroy_vm_tests.rb
294
+ - tests/ovirt/requests/compute/list_datacenters_tests.rb
295
+ - tests/ovirt/requests/compute/list_quotas_tests.rb
296
+ - tests/ovirt/requests/compute/list_storage_domains_tests.rb
297
+ - tests/ovirt/requests/compute/update_vm_tests.rb
298
+ - tests/ovirt/requests/compute/update_volume_tests.rb