fog-ovirt 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +12 -5
- data/lib/fog/bin/ovirt.rb +3 -3
- data/lib/fog/ovirt.rb +2 -4
- data/lib/fog/ovirt/compute.rb +12 -12
- data/lib/fog/ovirt/compute/v3.rb +2 -2
- data/lib/fog/ovirt/compute/v4.rb +4 -2
- data/lib/fog/ovirt/models/compute/affinity_group.rb +2 -2
- data/lib/fog/ovirt/models/compute/affinity_groups.rb +3 -3
- data/lib/fog/ovirt/models/compute/cluster.rb +2 -2
- data/lib/fog/ovirt/models/compute/clusters.rb +3 -3
- data/lib/fog/ovirt/models/compute/instance_type.rb +2 -2
- data/lib/fog/ovirt/models/compute/instance_types.rb +3 -3
- data/lib/fog/ovirt/models/compute/interface.rb +2 -2
- data/lib/fog/ovirt/models/compute/interfaces.rb +5 -5
- data/lib/fog/ovirt/models/compute/operating_system.rb +2 -2
- data/lib/fog/ovirt/models/compute/operating_systems.rb +3 -3
- data/lib/fog/ovirt/models/compute/quota.rb +2 -2
- data/lib/fog/ovirt/models/compute/quotas.rb +3 -3
- data/lib/fog/ovirt/models/compute/server.rb +4 -4
- data/lib/fog/ovirt/models/compute/servers.rb +3 -3
- data/lib/fog/ovirt/models/compute/template.rb +4 -4
- data/lib/fog/ovirt/models/compute/templates.rb +3 -3
- data/lib/fog/ovirt/models/compute/volume.rb +4 -4
- data/lib/fog/ovirt/models/compute/volumes.rb +5 -5
- data/lib/fog/ovirt/requests/compute/v3/activate_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/add_interface.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/add_to_affinity_group.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/add_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/attach_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/create_affinity_group.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/create_vm.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/datacenters.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/deactivate_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/destroy_affinity_group.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/destroy_interface.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/destroy_vm.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/destroy_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/detach_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_affinity_group.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_api_version.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_cluster.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_instance_type.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_quota.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_template.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/get_virtual_machine.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_affinity_group_vms.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_affinity_groups.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_clusters.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_instance_types.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_networks.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_quotas.rb +3 -3
- data/lib/fog/ovirt/requests/compute/v3/list_template_interfaces.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_template_volumes.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_templates.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_vm_volumes.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/list_volumes.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/remove_from_affinity_group.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/storage_domains.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/update_interface.rb +4 -4
- data/lib/fog/ovirt/requests/compute/v3/update_vm.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/update_volume.rb +4 -4
- data/lib/fog/ovirt/requests/compute/v3/vm_action.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/vm_start_with_cloudinit.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v3/vm_ticket.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/add_interface.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/add_volume.rb +6 -7
- data/lib/fog/ovirt/requests/compute/v4/create_vm.rb +3 -3
- data/lib/fog/ovirt/requests/compute/v4/datacenters.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/destroy_interface.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/destroy_vm.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/destroy_volume.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/get_api_version.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/get_cluster.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/get_instance_type.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/get_quota.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/get_template.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_clusters.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_instance_types.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_networks.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_operating_systems.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_quotas.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_template_interfaces.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_template_volumes.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_templates.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_virtual_machines.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_vm_volumes.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/list_volumes.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/storage_domains.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/update_interface.rb +4 -4
- data/lib/fog/ovirt/requests/compute/v4/update_vm.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/update_volume.rb +4 -4
- data/lib/fog/ovirt/requests/compute/v4/vm_action.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/vm_start_with_cloudinit.rb +2 -2
- data/lib/fog/ovirt/requests/compute/v4/vm_ticket.rb +2 -2
- data/lib/fog/ovirt/version.rb +1 -1
- data/tests/ovirt/compute_tests.rb +2 -2
- data/tests/ovirt/models/compute/cluster_tests.rb +3 -3
- data/tests/ovirt/models/compute/clusters_tests.rb +3 -3
- data/tests/ovirt/models/compute/interface_tests.rb +3 -3
- data/tests/ovirt/models/compute/interfaces_tests.rb +3 -3
- data/tests/ovirt/models/compute/operating_system_tests.rb +3 -3
- data/tests/ovirt/models/compute/operating_systems_tests.rb +3 -3
- data/tests/ovirt/models/compute/server_tests.rb +3 -3
- data/tests/ovirt/models/compute/servers_tests.rb +3 -3
- data/tests/ovirt/models/compute/template_tests.rb +3 -3
- data/tests/ovirt/models/compute/templates_tests.rb +3 -3
- data/tests/ovirt/requests/compute/v3/client_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/create_vm_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/destroy_vm_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/list_datacenters_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/list_quotas_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/list_storage_domains_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/update_vm_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v3/update_volume_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v4/client_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v4/create_vm_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v4/destroy_vm_tests.rb +2 -2
- data/tests/ovirt/requests/compute/v4/list_datacenters_tests.rb +1 -1
- data/tests/ovirt/requests/compute/v4/list_quotas_tests.rb +1 -1
- data/tests/ovirt/requests/compute/v4/list_storage_domains_tests.rb +1 -1
- data/tests/ovirt/requests/compute/v4/update_volume_tests.rb +1 -1
- metadata +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Ovirt
|
3
|
+
class Compute
|
4
4
|
class V3
|
5
5
|
class Real
|
6
6
|
def list_quotas(filters = {})
|
@@ -11,7 +11,7 @@ module Fog
|
|
11
11
|
def list_quotas(_filters = {})
|
12
12
|
xml = read_xml "quotas.xml"
|
13
13
|
Nokogiri::XML(xml).xpath("/quotas/quota").map do |q|
|
14
|
-
ovirt_attrs OVIRT::
|
14
|
+
ovirt_attrs OVIRT::Quota.new(self, q)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Ovirt
|
3
|
+
class Compute
|
4
4
|
class V3
|
5
5
|
module Shared
|
6
6
|
def check_arguments(id, options)
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
end
|
11
11
|
|
12
12
|
class Real
|
13
|
-
extend ::Fog::Compute::
|
13
|
+
extend ::Fog::Ovirt::Compute::V3::Shared
|
14
14
|
|
15
15
|
def update_interface(id, options)
|
16
16
|
check_arguments(id, options)
|
@@ -23,7 +23,7 @@ module Fog
|
|
23
23
|
end
|
24
24
|
|
25
25
|
class Mock
|
26
|
-
extend ::Fog::Compute::
|
26
|
+
extend ::Fog::Ovirt::Compute::V3::Shared
|
27
27
|
|
28
28
|
def update_interface(id, options)
|
29
29
|
check_arguments(id, options)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Ovirt
|
3
|
+
class Compute
|
4
4
|
class V3
|
5
5
|
module Shared
|
6
6
|
def check_arguments(id, options)
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
end
|
11
11
|
|
12
12
|
class Real
|
13
|
-
extend ::Fog::Compute::
|
13
|
+
extend ::Fog::Ovirt::Compute::V3::Shared
|
14
14
|
|
15
15
|
def update_volume(id, options)
|
16
16
|
check_arguments(id, options)
|
@@ -24,7 +24,7 @@ module Fog
|
|
24
24
|
end
|
25
25
|
|
26
26
|
class Mock
|
27
|
-
extend ::Fog::Compute::
|
27
|
+
extend ::Fog::Ovirt::Compute::V3::Shared
|
28
28
|
|
29
29
|
def update_volume(id, options)
|
30
30
|
check_arguments(id, options)
|