fog-proxmox 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +13 -9
  3. data/docs/compute.md +17 -17
  4. data/docs/identity.md +6 -6
  5. data/examples/compute.rb +1 -1
  6. data/examples/identity.rb +1 -1
  7. data/fog-proxmox.gemspec +4 -4
  8. data/lib/fog/compute/proxmox.rb +2 -2
  9. data/lib/fog/compute/proxmox/models/disk.rb +2 -2
  10. data/lib/fog/compute/proxmox/models/disks.rb +3 -3
  11. data/lib/fog/compute/proxmox/models/interface.rb +2 -2
  12. data/lib/fog/compute/proxmox/models/interfaces.rb +4 -4
  13. data/lib/fog/compute/proxmox/models/node.rb +6 -6
  14. data/lib/fog/compute/proxmox/models/nodes.rb +3 -3
  15. data/lib/fog/compute/proxmox/models/server.rb +6 -6
  16. data/lib/fog/compute/proxmox/models/server_config.rb +8 -8
  17. data/lib/fog/compute/proxmox/models/servers.rb +3 -3
  18. data/lib/fog/compute/proxmox/models/snapshot.rb +3 -3
  19. data/lib/fog/compute/proxmox/models/snapshots.rb +3 -3
  20. data/lib/fog/compute/proxmox/models/storage.rb +3 -3
  21. data/lib/fog/compute/proxmox/models/storages.rb +3 -3
  22. data/lib/fog/compute/proxmox/models/task.rb +2 -2
  23. data/lib/fog/compute/proxmox/models/tasks.rb +3 -3
  24. data/lib/fog/compute/proxmox/models/volume.rb +2 -2
  25. data/lib/fog/compute/proxmox/models/volumes.rb +3 -3
  26. data/lib/fog/compute/proxmox/requests/action_server.rb +2 -2
  27. data/lib/fog/compute/proxmox/requests/clone_server.rb +2 -2
  28. data/lib/fog/compute/proxmox/requests/create_backup.rb +2 -2
  29. data/lib/fog/compute/proxmox/requests/create_server.rb +2 -2
  30. data/lib/fog/compute/proxmox/requests/create_snapshot.rb +2 -2
  31. data/lib/fog/compute/proxmox/requests/create_spice.rb +2 -2
  32. data/lib/fog/compute/proxmox/requests/create_term.rb +2 -2
  33. data/lib/fog/compute/proxmox/requests/create_vnc.rb +2 -2
  34. data/lib/fog/compute/proxmox/requests/delete_server.rb +2 -2
  35. data/lib/fog/compute/proxmox/requests/delete_snapshot.rb +2 -2
  36. data/lib/fog/compute/proxmox/requests/delete_volume.rb +2 -2
  37. data/lib/fog/compute/proxmox/requests/get_node_statistics.rb +2 -2
  38. data/lib/fog/compute/proxmox/requests/get_server_config.rb +2 -2
  39. data/lib/fog/compute/proxmox/requests/get_server_status.rb +2 -2
  40. data/lib/fog/compute/proxmox/requests/get_snapshot_config.rb +2 -2
  41. data/lib/fog/compute/proxmox/requests/get_task.rb +2 -2
  42. data/lib/fog/compute/proxmox/requests/get_vnc.rb +2 -2
  43. data/lib/fog/compute/proxmox/requests/get_volume.rb +2 -2
  44. data/lib/fog/compute/proxmox/requests/list_nodes.rb +2 -2
  45. data/lib/fog/compute/proxmox/requests/list_servers.rb +2 -2
  46. data/lib/fog/compute/proxmox/requests/list_snapshots.rb +2 -2
  47. data/lib/fog/compute/proxmox/requests/list_storages.rb +2 -2
  48. data/lib/fog/compute/proxmox/requests/list_tasks.rb +2 -2
  49. data/lib/fog/compute/proxmox/requests/list_volumes.rb +2 -2
  50. data/lib/fog/compute/proxmox/requests/log_task.rb +2 -2
  51. data/lib/fog/compute/proxmox/requests/migrate_server.rb +2 -2
  52. data/lib/fog/compute/proxmox/requests/move_disk.rb +2 -2
  53. data/lib/fog/compute/proxmox/requests/move_volume.rb +2 -2
  54. data/lib/fog/compute/proxmox/requests/next_vmid.rb +2 -2
  55. data/lib/fog/compute/proxmox/requests/resize_container.rb +2 -2
  56. data/lib/fog/compute/proxmox/requests/resize_server.rb +2 -2
  57. data/lib/fog/compute/proxmox/requests/rollback_snapshot.rb +2 -2
  58. data/lib/fog/compute/proxmox/requests/status_task.rb +2 -2
  59. data/lib/fog/compute/proxmox/requests/stop_task.rb +2 -2
  60. data/lib/fog/compute/proxmox/requests/template_server.rb +2 -2
  61. data/lib/fog/compute/proxmox/requests/update_server.rb +2 -2
  62. data/lib/fog/compute/proxmox/requests/update_snapshot.rb +2 -2
  63. data/lib/fog/identity/proxmox.rb +2 -2
  64. data/lib/fog/identity/proxmox/models/domain.rb +3 -3
  65. data/lib/fog/identity/proxmox/models/domain_type.rb +2 -2
  66. data/lib/fog/identity/proxmox/models/domains.rb +3 -3
  67. data/lib/fog/identity/proxmox/models/group.rb +2 -2
  68. data/lib/fog/identity/proxmox/models/groups.rb +3 -3
  69. data/lib/fog/identity/proxmox/models/permission.rb +2 -2
  70. data/lib/fog/identity/proxmox/models/permissions.rb +3 -3
  71. data/lib/fog/identity/proxmox/models/pool.rb +2 -2
  72. data/lib/fog/identity/proxmox/models/pools.rb +3 -3
  73. data/lib/fog/identity/proxmox/models/principal.rb +2 -2
  74. data/lib/fog/identity/proxmox/models/role.rb +2 -2
  75. data/lib/fog/identity/proxmox/models/roles.rb +3 -3
  76. data/lib/fog/identity/proxmox/models/user.rb +2 -2
  77. data/lib/fog/identity/proxmox/models/users.rb +3 -3
  78. data/lib/fog/identity/proxmox/requests/change_password.rb +2 -2
  79. data/lib/fog/identity/proxmox/requests/check_permissions.rb +2 -2
  80. data/lib/fog/identity/proxmox/requests/create_domain.rb +2 -2
  81. data/lib/fog/identity/proxmox/requests/create_group.rb +2 -2
  82. data/lib/fog/identity/proxmox/requests/create_pool.rb +2 -2
  83. data/lib/fog/identity/proxmox/requests/create_role.rb +2 -2
  84. data/lib/fog/identity/proxmox/requests/create_user.rb +2 -2
  85. data/lib/fog/identity/proxmox/requests/delete_domain.rb +2 -2
  86. data/lib/fog/identity/proxmox/requests/delete_group.rb +2 -2
  87. data/lib/fog/identity/proxmox/requests/delete_pool.rb +2 -2
  88. data/lib/fog/identity/proxmox/requests/delete_role.rb +2 -2
  89. data/lib/fog/identity/proxmox/requests/delete_user.rb +2 -2
  90. data/lib/fog/identity/proxmox/requests/get_domain.rb +2 -2
  91. data/lib/fog/identity/proxmox/requests/get_group.rb +2 -2
  92. data/lib/fog/identity/proxmox/requests/get_pool.rb +2 -2
  93. data/lib/fog/identity/proxmox/requests/get_role.rb +2 -2
  94. data/lib/fog/identity/proxmox/requests/get_user.rb +2 -2
  95. data/lib/fog/identity/proxmox/requests/list_domains.rb +2 -2
  96. data/lib/fog/identity/proxmox/requests/list_groups.rb +2 -2
  97. data/lib/fog/identity/proxmox/requests/list_permissions.rb +2 -2
  98. data/lib/fog/identity/proxmox/requests/list_pools.rb +2 -2
  99. data/lib/fog/identity/proxmox/requests/list_roles.rb +2 -2
  100. data/lib/fog/identity/proxmox/requests/list_users.rb +2 -2
  101. data/lib/fog/identity/proxmox/requests/read_version.rb +2 -2
  102. data/lib/fog/identity/proxmox/requests/update_domain.rb +2 -2
  103. data/lib/fog/identity/proxmox/requests/update_group.rb +2 -2
  104. data/lib/fog/identity/proxmox/requests/update_permissions.rb +2 -2
  105. data/lib/fog/identity/proxmox/requests/update_pool.rb +2 -2
  106. data/lib/fog/identity/proxmox/requests/update_role.rb +2 -2
  107. data/lib/fog/identity/proxmox/requests/update_user.rb +2 -2
  108. data/lib/fog/network/proxmox.rb +2 -2
  109. data/lib/fog/network/proxmox/models/network.rb +2 -2
  110. data/lib/fog/network/proxmox/models/networks.rb +3 -3
  111. data/lib/fog/network/proxmox/models/node.rb +3 -3
  112. data/lib/fog/network/proxmox/models/nodes.rb +3 -3
  113. data/lib/fog/network/proxmox/requests/create_network.rb +2 -2
  114. data/lib/fog/network/proxmox/requests/delete_network.rb +2 -2
  115. data/lib/fog/network/proxmox/requests/get_network.rb +2 -2
  116. data/lib/fog/network/proxmox/requests/get_node.rb +2 -2
  117. data/lib/fog/network/proxmox/requests/list_networks.rb +2 -2
  118. data/lib/fog/network/proxmox/requests/list_nodes.rb +2 -2
  119. data/lib/fog/network/proxmox/requests/power_node.rb +2 -2
  120. data/lib/fog/network/proxmox/requests/update_network.rb +2 -2
  121. data/lib/fog/proxmox.rb +4 -17
  122. data/lib/fog/proxmox/core.rb +1 -1
  123. data/lib/fog/proxmox/helpers/controller_helper.rb +5 -6
  124. data/lib/fog/proxmox/version.rb +1 -1
  125. data/lib/fog/storage/proxmox.rb +2 -2
  126. data/spec/compute_spec.rb +2 -2
  127. data/spec/helpers/controller_helper_spec.rb +17 -2
  128. data/spec/identity_spec.rb +3 -3
  129. data/spec/network_spec.rb +2 -2
  130. data/spec/spec_helper.rb +1 -0
  131. metadata +10 -10
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real create_group request
24
24
  class Real
25
25
  def create_group(group)
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real create_pool request
24
24
  class Real
25
25
  def create_pool(pool)
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real create_role request
24
24
  class Real
25
25
  def create_role(role)
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real create_user request
24
24
  class Real
25
25
  def create_user(user)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real delete_domain collection
25
25
  class Real
26
26
  def delete_domain(realm)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real delete_group request
25
25
  class Real
26
26
  def delete_group(groupid)
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real delete_pool request
24
24
  class Real
25
25
  def delete_pool(poolid)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real delete_role collection
25
25
  class Real
26
26
  def delete_role(roleid)
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real delete_user request
24
24
  class Real
25
25
  def delete_user(userid)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real get_domain request
25
25
  class Real
26
26
  def get_domain(realm)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real get_group collection
25
25
  class Real
26
26
  def get_group(groupid)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real get_pool collection
25
25
  class Real
26
26
  def get_pool(poolid)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real get_role request
25
25
  class Real
26
26
  def get_role(roleid)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real get_user request
25
25
  class Real
26
26
  def get_user(userid)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real list_domains request
25
25
  class Real
26
26
  def list_domains
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real list_groups request
25
25
  class Real
26
26
  def list_groups
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real list_permissions request
25
25
  class Real
26
26
  def list_permissions
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real list_pools request
25
25
  class Real
26
26
  def list_pools
@@ -18,8 +18,8 @@
18
18
  # frozen_string_literal: true
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real list_roles request
24
24
  class Real
25
25
  def list_roles
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real list_users request
25
25
  class Real
26
26
  def list_users(options = {})
@@ -18,8 +18,8 @@
18
18
  # frozen_string_literal: true
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real read_version request
24
24
  class Real
25
25
  def read_version
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real update_domain request
25
25
  class Real
26
26
  def update_domain(realm, attributes)
@@ -18,8 +18,8 @@
18
18
  # frozen_string_literal: true
19
19
 
20
20
  module Fog
21
- module Identity
22
- class Proxmox
21
+ module Proxmox
22
+ class Identity
23
23
  # class Real update_group request
24
24
  class Real
25
25
  def update_group(groupid, options)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real update_permissions request
25
25
  class Real
26
26
  def update_permissions(body_params)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real update_pool request
25
25
  class Real
26
26
  def update_pool(poolid, attributes)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real update_role request
25
25
  class Real
26
26
  def update_role(roleid, attributes)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Identity
23
- class Proxmox
22
+ module Proxmox
23
+ class Identity
24
24
  # class Real update_user request
25
25
  class Real
26
26
  def update_user(userid, attributes)
@@ -18,9 +18,9 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Network
21
+ module Proxmox
22
22
  # Proxmox network service
23
- class Proxmox < Fog::Service
23
+ class Network < Fog::Service
24
24
  requires :pve_url
25
25
  recognizes :pve_ticket, :pve_path, :pve_ticket_expires, :pve_csrftoken, :persistent, :current_user, :pve_username, :pve_password
26
26
 
@@ -27,8 +27,8 @@
27
27
  # frozen_string_literal: true
28
28
 
29
29
  module Fog
30
- module Network
31
- class Proxmox
30
+ module Proxmox
31
+ class Network
32
32
  # class Network model
33
33
  class Network < Fog::Model
34
34
  identity :iface
@@ -20,11 +20,11 @@
20
20
  require 'fog/network/proxmox/models/node'
21
21
 
22
22
  module Fog
23
- module Network
24
- class Proxmox
23
+ module Proxmox
24
+ class Network
25
25
  # class Networks Collection of nodes of cluster
26
26
  class Networks < Fog::Collection
27
- model Fog::Network::Proxmox::Network
27
+ model Fog::Proxmox::Network::Network
28
28
  attribute :node_id
29
29
 
30
30
  def new(attributes = {})
@@ -27,8 +27,8 @@
27
27
  # frozen_string_literal: true
28
28
 
29
29
  module Fog
30
- module Network
31
- class Proxmox
30
+ module Proxmox
31
+ class Network
32
32
  # class Node model of VMs
33
33
  class Node < Fog::Model
34
34
  identity :node
@@ -66,7 +66,7 @@ module Fog
66
66
  private
67
67
 
68
68
  def initialize_networks
69
- attributes[:networks] = Fog::Network::Proxmox::Networks.new(service: service, node_id: node)
69
+ attributes[:networks] = Fog::Proxmox::Network::Networks.new(service: service, node_id: node)
70
70
  end
71
71
  end
72
72
  end
@@ -20,11 +20,11 @@
20
20
  require 'fog/network/proxmox/models/node'
21
21
 
22
22
  module Fog
23
- module Network
24
- class Proxmox
23
+ module Proxmox
24
+ class Network
25
25
  # class Nodes Collection of nodes of cluster
26
26
  class Nodes < Fog::Collection
27
- model Fog::Network::Proxmox::Node
27
+ model Fog::Proxmox::Network::Node
28
28
 
29
29
  def all
30
30
  load service.list_nodes
@@ -18,8 +18,8 @@
18
18
  # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Fog
21
- module Network
22
- class Proxmox
21
+ module Proxmox
22
+ class Network
23
23
  # class Real create_network request
24
24
  class Real
25
25
  def create_network(path_params, body_params)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Network
23
- class Proxmox
22
+ module Proxmox
23
+ class Network
24
24
  # class Real delete_network request
25
25
  class Real
26
26
  def delete_network(path_params)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Network
23
- class Proxmox
22
+ module Proxmox
23
+ class Network
24
24
  # class Real get_node request
25
25
  class Real
26
26
  def get_network(path_params)
@@ -19,8 +19,8 @@
19
19
  # frozen_string_literal: true
20
20
 
21
21
  module Fog
22
- module Network
23
- class Proxmox
22
+ module Proxmox
23
+ class Network
24
24
  # class Real get_node request
25
25
  class Real
26
26
  def get_node(node)