opennebula 4.4.0 → 4.5.80.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/NOTICE +1 -1
  3. data/lib/opennebula.rb +4 -2
  4. data/lib/opennebula/acl.rb +36 -8
  5. data/lib/opennebula/acl_pool.rb +1 -1
  6. data/lib/opennebula/client.rb +52 -4
  7. data/lib/opennebula/cluster.rb +1 -1
  8. data/lib/opennebula/cluster_pool.rb +1 -1
  9. data/lib/opennebula/datastore.rb +1 -1
  10. data/lib/opennebula/datastore_pool.rb +1 -1
  11. data/lib/opennebula/document.rb +1 -1
  12. data/lib/opennebula/document_json.rb +1 -1
  13. data/lib/opennebula/document_pool.rb +1 -1
  14. data/lib/opennebula/document_pool_json.rb +1 -1
  15. data/lib/opennebula/error.rb +1 -1
  16. data/lib/opennebula/group.rb +227 -43
  17. data/lib/opennebula/group_pool.rb +1 -1
  18. data/lib/opennebula/host.rb +1 -1
  19. data/lib/opennebula/host_pool.rb +1 -1
  20. data/lib/opennebula/image.rb +1 -1
  21. data/lib/opennebula/image_pool.rb +1 -1
  22. data/lib/opennebula/ldap_auth.rb +1 -1
  23. data/lib/opennebula/ldap_auth_spec.rb +1 -1
  24. data/lib/opennebula/oneflow_client.rb +1 -1
  25. data/lib/opennebula/pool.rb +57 -1
  26. data/lib/opennebula/pool_element.rb +1 -1
  27. data/lib/opennebula/server_cipher_auth.rb +1 -1
  28. data/lib/opennebula/server_x509_auth.rb +1 -1
  29. data/lib/opennebula/ssh_auth.rb +1 -1
  30. data/lib/opennebula/system.rb +1 -1
  31. data/lib/opennebula/template.rb +1 -1
  32. data/lib/opennebula/template_pool.rb +1 -1
  33. data/lib/opennebula/user.rb +10 -3
  34. data/lib/opennebula/user_pool.rb +1 -1
  35. data/lib/opennebula/virtual_machine.rb +1 -1
  36. data/lib/opennebula/virtual_machine_pool.rb +1 -1
  37. data/lib/opennebula/virtual_network.rb +1 -1
  38. data/lib/opennebula/virtual_network_pool.rb +1 -1
  39. data/lib/opennebula/x509_auth.rb +1 -1
  40. data/lib/opennebula/xml_element.rb +1 -1
  41. data/lib/opennebula/xml_pool.rb +2 -1
  42. data/lib/opennebula/xml_utils.rb +104 -1
  43. data/lib/opennebula/zone.rb +107 -0
  44. data/lib/opennebula/zone_pool.rb +58 -0
  45. metadata +21 -18
@@ -0,0 +1,58 @@
1
+ # -------------------------------------------------------------------------- #
2
+ # Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs #
3
+ # #
4
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may #
5
+ # not use this file except in compliance with the License. You may obtain #
6
+ # a copy of the License at #
7
+ # #
8
+ # http://www.apache.org/licenses/LICENSE-2.0 #
9
+ # #
10
+ # Unless required by applicable law or agreed to in writing, software #
11
+ # distributed under the License is distributed on an "AS IS" BASIS, #
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13
+ # See the License for the specific language governing permissions and #
14
+ # limitations under the License. #
15
+ #--------------------------------------------------------------------------- #
16
+
17
+
18
+ require 'opennebula/pool'
19
+
20
+ module OpenNebula
21
+ class ZonePool < Pool
22
+ #######################################################################
23
+ # Constants and Class attribute accessors
24
+ #######################################################################
25
+
26
+ ZONE_POOL_METHODS = {
27
+ :info => "zonepool.info"
28
+ }
29
+
30
+ #######################################################################
31
+ # Class constructor & Pool Methods
32
+ #######################################################################
33
+
34
+ # @param client [OpenNebula::Client] XML-RPC connection
35
+ def initialize(client)
36
+ super('ZONE_POOL','ZONE',client)
37
+ end
38
+
39
+ # Factory method to create Zone objects
40
+ # @return [Zone] new Zone object
41
+ def factory(element_xml)
42
+ OpenNebula::Zone.new(element_xml,@client)
43
+ end
44
+
45
+ #######################################################################
46
+ # XML-RPC Methods for the Zone Object
47
+ #######################################################################
48
+
49
+ # Retrieves all the ZONEs in the pool.
50
+ # @return [nil, OpenNebula::Error] nil in case of success, Error
51
+ # otherwise
52
+ def info()
53
+ super(ZONE_POOL_METHODS[:info])
54
+ end
55
+
56
+ alias_method :info!, :info
57
+ end
58
+ end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.80.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-02 00:00:00.000000000 Z
11
+ date: 2014-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Libraries needed to talk to OpenNebula
@@ -44,6 +44,8 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - LICENSE
48
+ - NOTICE
47
49
  - lib/opennebula.rb
48
50
  - lib/opennebula/acl.rb
49
51
  - lib/opennebula/acl_pool.rb
@@ -63,9 +65,14 @@ files:
63
65
  - lib/opennebula/host_pool.rb
64
66
  - lib/opennebula/image.rb
65
67
  - lib/opennebula/image_pool.rb
68
+ - lib/opennebula/ldap_auth.rb
69
+ - lib/opennebula/ldap_auth_spec.rb
66
70
  - lib/opennebula/oneflow_client.rb
67
71
  - lib/opennebula/pool.rb
68
72
  - lib/opennebula/pool_element.rb
73
+ - lib/opennebula/server_cipher_auth.rb
74
+ - lib/opennebula/server_x509_auth.rb
75
+ - lib/opennebula/ssh_auth.rb
69
76
  - lib/opennebula/system.rb
70
77
  - lib/opennebula/template.rb
71
78
  - lib/opennebula/template_pool.rb
@@ -75,17 +82,12 @@ files:
75
82
  - lib/opennebula/virtual_machine_pool.rb
76
83
  - lib/opennebula/virtual_network.rb
77
84
  - lib/opennebula/virtual_network_pool.rb
85
+ - lib/opennebula/x509_auth.rb
78
86
  - lib/opennebula/xml_element.rb
79
87
  - lib/opennebula/xml_pool.rb
80
88
  - lib/opennebula/xml_utils.rb
81
- - lib/opennebula/ldap_auth.rb
82
- - lib/opennebula/ldap_auth_spec.rb
83
- - lib/opennebula/server_cipher_auth.rb
84
- - lib/opennebula/server_x509_auth.rb
85
- - lib/opennebula/ssh_auth.rb
86
- - lib/opennebula/x509_auth.rb
87
- - NOTICE
88
- - LICENSE
89
+ - lib/opennebula/zone.rb
90
+ - lib/opennebula/zone_pool.rb
89
91
  homepage: http://opennebula.org
90
92
  licenses: []
91
93
  metadata: {}
@@ -95,18 +97,19 @@ require_paths:
95
97
  - lib
96
98
  required_ruby_version: !ruby/object:Gem::Requirement
97
99
  requirements:
98
- - - '>='
100
+ - - ">="
99
101
  - !ruby/object:Gem::Version
100
102
  version: '0'
101
103
  required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  requirements:
103
- - - '>='
105
+ - - ">"
104
106
  - !ruby/object:Gem::Version
105
- version: '0'
107
+ version: 1.3.1
106
108
  requirements: []
107
109
  rubyforge_project:
108
- rubygems_version: 2.0.3
110
+ rubygems_version: 2.2.0
109
111
  signing_key:
110
112
  specification_version: 4
111
113
  summary: OpenNebula Client API
112
114
  test_files: []
115
+ has_rdoc: