opennebula 7.0.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cloud/CloudClient.rb +3 -3
- data/lib/models/role.rb +1 -1
- data/lib/models/service.rb +1 -1
- data/lib/models/vmrole.rb +1 -1
- data/lib/models/vrrole.rb +1 -1
- data/lib/models.rb +1 -1
- data/lib/opennebula/acl.rb +12 -14
- data/lib/opennebula/acl_pool.rb +1 -1
- data/lib/opennebula/backupjob.rb +1 -1
- data/lib/opennebula/backupjob_pool.rb +1 -1
- data/lib/opennebula/cluster.rb +1 -1
- data/lib/opennebula/cluster_pool.rb +3 -1
- data/lib/opennebula/datastore.rb +1 -1
- data/lib/opennebula/datastore_pool.rb +3 -1
- data/lib/opennebula/document.rb +2 -2
- data/lib/opennebula/document_json.rb +2 -1
- data/lib/opennebula/document_pool.rb +1 -1
- data/lib/opennebula/document_pool_json.rb +3 -1
- data/lib/opennebula/error.rb +9 -3
- data/lib/opennebula/flow/grammar.rb +1 -1
- data/lib/opennebula/flow/service_pool.rb +3 -1
- data/lib/opennebula/flow/service_template.rb +2 -1
- data/lib/opennebula/flow/service_template_ext.rb +1 -1
- data/lib/opennebula/flow/service_template_pool.rb +1 -1
- data/lib/opennebula/flow/validator.rb +1 -1
- data/lib/opennebula/flow.rb +1 -1
- data/lib/opennebula/group.rb +4 -1
- data/lib/opennebula/group_pool.rb +3 -1
- data/lib/opennebula/grpc/acl_pb.rb +21 -0
- data/lib/opennebula/grpc/acl_services_pb.rb +56 -0
- data/lib/opennebula/grpc/backupjob_pb.rb +35 -0
- data/lib/opennebula/grpc/backupjob_services_pb.rb +70 -0
- data/lib/opennebula/grpc/cluster_pb.rb +33 -0
- data/lib/opennebula/grpc/cluster_services_pb.rb +38 -0
- data/lib/opennebula/grpc/datastore_pb.rb +27 -0
- data/lib/opennebula/grpc/datastore_services_pb.rb +62 -0
- data/lib/opennebula/grpc/document_pb.rb +29 -0
- data/lib/opennebula/grpc/document_services_pb.rb +64 -0
- data/lib/opennebula/grpc/group_pb.rb +27 -0
- data/lib/opennebula/grpc/group_services_pb.rb +63 -0
- data/lib/opennebula/grpc/hook_pb.rb +28 -0
- data/lib/opennebula/grpc/hook_services_pb.rb +63 -0
- data/lib/opennebula/grpc/host_pb.rb +27 -0
- data/lib/opennebula/grpc/host_services_pb.rb +62 -0
- data/lib/opennebula/grpc/image_pb.rb +36 -0
- data/lib/opennebula/grpc/image_services_pb.rb +71 -0
- data/lib/opennebula/grpc/marketplace_pb.rb +29 -0
- data/lib/opennebula/grpc/marketplace_services_pb.rb +64 -0
- data/lib/opennebula/grpc/marketplaceapp_pb.rb +32 -0
- data/lib/opennebula/grpc/marketplaceapp_services_pb.rb +67 -0
- data/lib/opennebula/grpc/secgroup_pb.rb +28 -0
- data/lib/opennebula/grpc/secgroup_services_pb.rb +63 -0
- data/lib/opennebula/grpc/shared_pb.rb +16 -0
- data/lib/opennebula/grpc/system_pb.rb +22 -0
- data/lib/opennebula/grpc/system_services_pb.rb +57 -0
- data/lib/opennebula/grpc/template_pb.rb +30 -0
- data/lib/opennebula/grpc/template_services_pb.rb +65 -0
- data/lib/opennebula/grpc/user_pb.rb +32 -0
- data/lib/opennebula/grpc/user_services_pb.rb +68 -0
- data/lib/opennebula/grpc/vdc_pb.rb +34 -0
- data/lib/opennebula/grpc/vdc_services_pb.rb +69 -0
- data/lib/opennebula/grpc/vm_pb.rb +66 -0
- data/lib/opennebula/grpc/vm_services_pb.rb +102 -0
- data/lib/opennebula/grpc/vmgroup_pb.rb +31 -0
- data/lib/opennebula/grpc/vmgroup_services_pb.rb +66 -0
- data/lib/opennebula/grpc/vn_pb.rb +36 -0
- data/lib/opennebula/grpc/vn_services_pb.rb +71 -0
- data/lib/opennebula/grpc/vntemplate_pb.rb +30 -0
- data/lib/opennebula/grpc/vntemplate_services_pb.rb +65 -0
- data/lib/opennebula/grpc/vrouter_pb.rb +31 -0
- data/lib/opennebula/grpc/vrouter_services_pb.rb +66 -0
- data/lib/opennebula/grpc/zone_pb.rb +36 -0
- data/lib/opennebula/grpc/zone_services_pb.rb +68 -0
- data/lib/opennebula/hook.rb +1 -1
- data/lib/opennebula/hook_log.rb +1 -1
- data/lib/opennebula/hook_pool.rb +1 -1
- data/lib/opennebula/host.rb +3 -1
- data/lib/opennebula/host_pool.rb +3 -1
- data/lib/opennebula/image.rb +11 -10
- data/lib/opennebula/image_pool.rb +1 -1
- data/lib/opennebula/ldap_auth.rb +2 -2
- data/lib/opennebula/ldap_auth_spec.rb +1 -1
- data/lib/opennebula/lockable_ext.rb +13 -24
- data/lib/opennebula/marketplace.rb +1 -1
- data/lib/opennebula/marketplace_pool.rb +1 -1
- data/lib/opennebula/marketplaceapp.rb +1 -1
- data/lib/opennebula/marketplaceapp_ext.rb +4 -1
- data/lib/opennebula/marketplaceapp_pool.rb +1 -1
- data/lib/opennebula/oneflow_client.rb +1 -1
- data/lib/opennebula/oneform_client.rb +320 -0
- data/lib/opennebula/pool.rb +3 -2
- data/lib/opennebula/pool_element.rb +9 -9
- data/lib/opennebula/saml_auth.rb +2 -2
- data/lib/opennebula/security_group.rb +1 -1
- data/lib/opennebula/security_group_pool.rb +1 -1
- data/lib/opennebula/server_cipher_auth.rb +1 -1
- data/lib/opennebula/server_x509_auth.rb +1 -1
- data/lib/opennebula/ssh_auth.rb +1 -1
- data/lib/opennebula/system.rb +1 -1
- data/lib/opennebula/template.rb +1 -1
- data/lib/opennebula/template_ext.rb +1 -1
- data/lib/opennebula/template_pool.rb +1 -1
- data/lib/opennebula/user.rb +1 -1
- data/lib/opennebula/user_pool.rb +2 -1
- data/lib/opennebula/utils.rb +1 -1
- data/lib/opennebula/vdc.rb +1 -1
- data/lib/opennebula/vdc_pool.rb +1 -1
- data/lib/opennebula/version.rb +22 -0
- data/lib/opennebula/virtual_machine.rb +35 -3
- data/lib/opennebula/virtual_machine_ext.rb +3 -1
- data/lib/opennebula/virtual_machine_pool.rb +1 -1
- data/lib/opennebula/virtual_network.rb +1 -1
- data/lib/opennebula/virtual_network_pool.rb +3 -1
- data/lib/opennebula/virtual_router.rb +1 -1
- data/lib/opennebula/virtual_router_pool.rb +1 -1
- data/lib/opennebula/vm_group.rb +1 -1
- data/lib/opennebula/vm_group_pool.rb +1 -1
- data/lib/opennebula/vntemplate.rb +1 -1
- data/lib/opennebula/vntemplate_pool.rb +1 -1
- data/lib/opennebula/wait_ext.rb +2 -1
- data/lib/opennebula/x509_auth.rb +1 -1
- data/lib/opennebula/xml_element.rb +2 -1
- data/lib/opennebula/xml_pool.rb +1 -1
- data/lib/opennebula/xml_utils.rb +3 -3
- data/lib/opennebula/zone.rb +5 -4
- data/lib/opennebula/zone_pool.rb +1 -1
- data/lib/opennebula.rb +3 -14
- metadata +49 -3
- data/lib/opennebula/client.rb +0 -228
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ba213cbf9c61bf639e606a86a5496dc10523a36845bab21e78dc69e096e4a6a
|
|
4
|
+
data.tar.gz: 6c56a7baf3e61745b7ab9d2959dc0cc21d04aa717e69153e21e4c4b07a57c0f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6946c2f94864b1101171a7a60d67afe95956777b031f87699601fc3165a410949e1e9b3470c21bb04375ce151a773561731e8275b53fae73174ef6b5365f1e63
|
|
7
|
+
data.tar.gz: ab5eda8064f4133f6e3751a10923a21f3000903e63bce981d652cd54fd9c15d9a3d8fbefa15a98eb0235008d27898199ee973ecef541c10b1d80b571d036b14f
|
data/lib/cloud/CloudClient.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -51,7 +51,7 @@ end
|
|
|
51
51
|
module CloudClient
|
|
52
52
|
|
|
53
53
|
# OpenNebula version
|
|
54
|
-
VERSION = '7.0
|
|
54
|
+
VERSION = '7.2.0'
|
|
55
55
|
|
|
56
56
|
# #########################################################################
|
|
57
57
|
# Default location for the authentication file
|
|
@@ -229,7 +229,7 @@ module CloudCLI
|
|
|
229
229
|
def version_text
|
|
230
230
|
version=<<EOT
|
|
231
231
|
OpenNebula #{CloudClient::VERSION}
|
|
232
|
-
Copyright 2002-
|
|
232
|
+
Copyright 2002-2026, OpenNebula Project, OpenNebula Systems
|
|
233
233
|
|
|
234
234
|
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
235
235
|
not use this file except in compliance with the License. You may obtain
|
data/lib/models/role.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/models/service.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/models/vmrole.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/models/vrrole.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/models.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/acl.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
# limitations under the License. #
|
|
15
15
|
#--------------------------------------------------------------------------- #
|
|
16
16
|
|
|
17
|
+
require 'opennebula/pool_element'
|
|
17
18
|
|
|
18
19
|
module OpenNebula
|
|
19
20
|
|
|
@@ -122,19 +123,14 @@ module OpenNebula
|
|
|
122
123
|
#
|
|
123
124
|
# @return [nil, OpenNebula::Error] nil in case of success, Error
|
|
124
125
|
# otherwise
|
|
125
|
-
def allocate(user, resource, rights, zone=
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return super( AclPool::ACL_POOL_METHODS[:addrule],
|
|
134
|
-
user,
|
|
135
|
-
resource,
|
|
136
|
-
rights)
|
|
137
|
-
end
|
|
126
|
+
def allocate(user, resource, rights, zone='')
|
|
127
|
+
require 'opennebula/acl_pool'
|
|
128
|
+
|
|
129
|
+
return super( AclPool::ACL_POOL_METHODS[:addrule],
|
|
130
|
+
user,
|
|
131
|
+
resource,
|
|
132
|
+
rights,
|
|
133
|
+
zone )
|
|
138
134
|
end
|
|
139
135
|
|
|
140
136
|
# Deletes the Acl rule
|
|
@@ -142,6 +138,8 @@ module OpenNebula
|
|
|
142
138
|
# @return [nil, OpenNebula::Error] nil in case of success, Error
|
|
143
139
|
# otherwise
|
|
144
140
|
def delete()
|
|
141
|
+
require 'opennebula/acl_pool'
|
|
142
|
+
|
|
145
143
|
super(AclPool::ACL_POOL_METHODS[:delrule])
|
|
146
144
|
end
|
|
147
145
|
|
data/lib/opennebula/acl_pool.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/backupjob.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/cluster.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -41,6 +41,8 @@ module OpenNebula
|
|
|
41
41
|
|
|
42
42
|
# Factory method to create Cluster objects
|
|
43
43
|
def factory(element_xml)
|
|
44
|
+
require 'opennebula/cluster'
|
|
45
|
+
|
|
44
46
|
OpenNebula::Cluster.new(element_xml,@client)
|
|
45
47
|
end
|
|
46
48
|
|
data/lib/opennebula/datastore.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -38,6 +38,8 @@ module OpenNebula
|
|
|
38
38
|
|
|
39
39
|
# Factory method to create datastore objects
|
|
40
40
|
def factory(element_xml)
|
|
41
|
+
require 'opennebula/datastore'
|
|
42
|
+
|
|
41
43
|
OpenNebula::Datastore.new(element_xml,@client)
|
|
42
44
|
end
|
|
43
45
|
|
data/lib/opennebula/document.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -264,7 +264,7 @@ module OpenNebula
|
|
|
264
264
|
type = self['TYPE']
|
|
265
265
|
|
|
266
266
|
if type.nil? && @pe_id
|
|
267
|
-
rc = @client.call(DOCUMENT_METHODS[:info], @pe_id)
|
|
267
|
+
rc = @client.call(DOCUMENT_METHODS[:info], @pe_id, false)
|
|
268
268
|
|
|
269
269
|
return rc if OpenNebula.is_error?(rc)
|
|
270
270
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
#--------------------------------------------------------------------------- #
|
|
16
16
|
|
|
17
17
|
require 'json'
|
|
18
|
+
require 'opennebula/document'
|
|
18
19
|
|
|
19
20
|
module OpenNebula
|
|
20
21
|
class DocumentJSON < Document
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
# limitations under the License. #
|
|
15
15
|
#--------------------------------------------------------------------------- #
|
|
16
16
|
|
|
17
|
+
require 'opennebula/document_pool'
|
|
18
|
+
|
|
17
19
|
module OpenNebula
|
|
18
20
|
class DocumentPoolJSON < DocumentPool
|
|
19
21
|
|
data/lib/opennebula/error.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -26,11 +26,14 @@ module OpenNebula
|
|
|
26
26
|
EAUTHORIZATION = 0x0200
|
|
27
27
|
ENO_EXISTS = 0x0400
|
|
28
28
|
EACTION = 0x0800
|
|
29
|
-
|
|
29
|
+
ERPC_API = 0x1000
|
|
30
30
|
EINTERNAL = 0x2000
|
|
31
31
|
EALLOCATE = 0x4000
|
|
32
|
+
ELOCKED = 0x8000
|
|
32
33
|
ENOTDEFINED = 0xF001
|
|
33
34
|
EXML_RPC_CALL = 0xF002
|
|
35
|
+
EGRPC_CALL = 0xF004
|
|
36
|
+
ETIMEOUT = 0xF008
|
|
34
37
|
|
|
35
38
|
attr_reader :message, :errno
|
|
36
39
|
|
|
@@ -38,8 +41,8 @@ module OpenNebula
|
|
|
38
41
|
# +message+ Description of the error
|
|
39
42
|
# +errno+ OpenNebula code error
|
|
40
43
|
def initialize(message=nil, errno=0x1111)
|
|
41
|
-
@message = message
|
|
42
44
|
@errno = errno
|
|
45
|
+
@message = message
|
|
43
46
|
end
|
|
44
47
|
|
|
45
48
|
def to_str()
|
|
@@ -52,6 +55,9 @@ module OpenNebula
|
|
|
52
55
|
@errno == EXML_RPC_CALL
|
|
53
56
|
end
|
|
54
57
|
|
|
58
|
+
def is_egrpc_call?
|
|
59
|
+
@errno == EGRPC_CALL
|
|
60
|
+
end
|
|
55
61
|
end
|
|
56
62
|
|
|
57
63
|
# Returns true if the object returned by a method of the OpenNebula
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Autogenerated from a Treetop grammar. Edits may be lost.
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
# Copyright 2002-
|
|
5
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
6
6
|
# #
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
8
8
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
# limitations under the License. #
|
|
15
15
|
#--------------------------------------------------------------------------- #
|
|
16
16
|
|
|
17
|
+
require 'opennebula/document_pool_json'
|
|
18
|
+
|
|
17
19
|
module OpenNebula
|
|
18
20
|
|
|
19
21
|
# ServicePool class
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
#--------------------------------------------------------------------------- #
|
|
16
16
|
|
|
17
17
|
require 'parse-cron'
|
|
18
|
+
require 'opennebula/document_json'
|
|
18
19
|
|
|
19
20
|
module OpenNebula
|
|
20
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/flow.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/group.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -312,6 +312,8 @@ module OpenNebula
|
|
|
312
312
|
# Creates an acl array of acl strings. Returns true or error and
|
|
313
313
|
# a qrray with the new acl ids
|
|
314
314
|
def create_group_acls(acls)
|
|
315
|
+
require 'opennebula/acl'
|
|
316
|
+
|
|
315
317
|
acls_ids = Array.new
|
|
316
318
|
|
|
317
319
|
acls.each{|rule|
|
|
@@ -363,6 +365,7 @@ module OpenNebula
|
|
|
363
365
|
udriver = gdef[:group_admin][:auth_driver]
|
|
364
366
|
|
|
365
367
|
if !uadmin.nil? && !upasswd.nil?
|
|
368
|
+
require 'opennebula/user'
|
|
366
369
|
|
|
367
370
|
group_admin = OpenNebula::User.new(OpenNebula::User.build_xml,
|
|
368
371
|
@client)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
|
2
|
-
# Copyright 2002-
|
|
2
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems #
|
|
3
3
|
# #
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
|
@@ -39,6 +39,8 @@ module OpenNebula
|
|
|
39
39
|
|
|
40
40
|
# Factory method to create User objects
|
|
41
41
|
def factory(element_xml)
|
|
42
|
+
require 'opennebula/group'
|
|
43
|
+
|
|
42
44
|
OpenNebula::Group.new(element_xml,@client)
|
|
43
45
|
end
|
|
44
46
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: acl.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\tacl.proto\x12\x07one.acl\x1a\x0cshared.proto\"b\n\x0e\x41\x64\x64RuleRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04user\x18\x02 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\x12\x0e\n\x06rights\x18\x04 \x01(\t\x12\x0c\n\x04zone\x18\x05 \x01(\t\"1\n\x0e\x44\x65lRuleRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"!\n\x0bInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t2\xa6\x01\n\nAclService\x12\x33\n\x07\x41\x64\x64Rule\x12\x17.one.acl.AddRuleRequest\x1a\x0f.one.ResponseID\x12\x33\n\x07\x44\x65lRule\x12\x17.one.acl.DelRuleRequest\x1a\x0f.one.ResponseID\x12.\n\x04Info\x12\x14.one.acl.InfoRequest\x1a\x10.one.ResponseXMLB7Z5github.com/OpenNebula/one/src/oca/go/src/goca/api/aclb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Acl
|
|
17
|
+
AddRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.acl.AddRuleRequest").msgclass
|
|
18
|
+
DelRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.acl.DelRuleRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.acl.InfoRequest").msgclass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: acl.proto for package 'one.acl'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# --------------------------------------------------------------------------
|
|
5
|
+
#
|
|
6
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems
|
|
7
|
+
#
|
|
8
|
+
#
|
|
9
|
+
#
|
|
10
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
11
|
+
#
|
|
12
|
+
# not use this file except in compliance with the License. You may obtain
|
|
13
|
+
#
|
|
14
|
+
# a copy of the License at
|
|
15
|
+
#
|
|
16
|
+
#
|
|
17
|
+
#
|
|
18
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
+
#
|
|
20
|
+
#
|
|
21
|
+
#
|
|
22
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
#
|
|
24
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
25
|
+
#
|
|
26
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
|
+
#
|
|
28
|
+
# See the License for the specific language governing permissions and
|
|
29
|
+
#
|
|
30
|
+
# limitations under the License.
|
|
31
|
+
#
|
|
32
|
+
# --------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
require 'grpc'
|
|
35
|
+
require 'acl_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Acl
|
|
39
|
+
module AclService
|
|
40
|
+
class Service
|
|
41
|
+
|
|
42
|
+
include ::GRPC::GenericService
|
|
43
|
+
|
|
44
|
+
self.marshal_class_method = :encode
|
|
45
|
+
self.unmarshal_class_method = :decode
|
|
46
|
+
self.service_name = 'one.acl.AclService'
|
|
47
|
+
|
|
48
|
+
rpc :AddRule, ::One::Acl::AddRuleRequest, ::One::ResponseID
|
|
49
|
+
rpc :DelRule, ::One::Acl::DelRuleRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Acl::InfoRequest, ::One::ResponseXML
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
Stub = Service.rpc_stub_class
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: backupjob.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x0f\x62\x61\x63kupjob.proto\x12\rone.backupjob\x1a\x0cshared.proto\"7\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08template\x18\x02 \x01(\t\"0\n\rDeleteRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\".\n\x0bInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"R\n\rUpdateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x10\n\x08template\x18\x03 \x01(\t\x12\x0e\n\x06\x61ppend\x18\x04 \x01(\x05\">\n\rRenameRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xe6\x01\n\x0c\x43hmodRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x10\n\x08user_use\x18\x03 \x01(\x11\x12\x13\n\x0buser_manage\x18\x04 \x01(\x11\x12\x12\n\nuser_admin\x18\x05 \x01(\x11\x12\x11\n\tgroup_use\x18\x06 \x01(\x11\x12\x14\n\x0cgroup_manage\x18\x07 \x01(\x11\x12\x13\n\x0bgroup_admin\x18\x08 \x01(\x11\x12\x11\n\tother_use\x18\t \x01(\x11\x12\x14\n\x0cother_manage\x18\n \x01(\x11\x12\x13\n\x0bother_admin\x18\x0b \x01(\x11\"R\n\x0c\x43hownRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0f\n\x07user_id\x18\x03 \x01(\x11\x12\x10\n\x08group_id\x18\x04 \x01(\x11\"K\n\x0bLockRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05level\x18\x03 \x01(\x05\x12\x0c\n\x04test\x18\x04 \x01(\x08\"0\n\rUnlockRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"0\n\rBackupRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"0\n\rCancelRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"/\n\x0cRetryRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"D\n\x0fPriorityRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x10\n\x08priority\x18\x03 \x01(\x05\"D\n\x0fSchedAddRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x10\n\x08template\x18\x03 \x01(\t\"A\n\x0fSchedDelRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05sa_id\x18\x03 \x01(\x05\"V\n\x12SchedUpdateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05sa_id\x18\x03 \x01(\x05\x12\x10\n\x08template\x18\x04 \x01(\t\"V\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x13\n\x0b\x66ilter_flag\x18\x02 \x01(\x11\x12\r\n\x05start\x18\x03 \x01(\x11\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x11\x32\xed\x07\n\x10\x42\x61\x63kupJobService\x12;\n\x08\x41llocate\x12\x1e.one.backupjob.AllocateRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x44\x65lete\x12\x1c.one.backupjob.DeleteRequest\x1a\x0f.one.ResponseID\x12\x34\n\x04Info\x12\x1a.one.backupjob.InfoRequest\x1a\x10.one.ResponseXML\x12\x37\n\x06Update\x12\x1c.one.backupjob.UpdateRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06Rename\x12\x1c.one.backupjob.RenameRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05\x43hmod\x12\x1b.one.backupjob.ChmodRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05\x43hown\x12\x1b.one.backupjob.ChownRequest\x1a\x0f.one.ResponseID\x12\x33\n\x04Lock\x12\x1a.one.backupjob.LockRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06Unlock\x12\x1c.one.backupjob.UnlockRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x42\x61\x63kup\x12\x1c.one.backupjob.BackupRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x43\x61ncel\x12\x1c.one.backupjob.CancelRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05Retry\x12\x1b.one.backupjob.RetryRequest\x1a\x0f.one.ResponseID\x12;\n\x08Priority\x12\x1e.one.backupjob.PriorityRequest\x1a\x0f.one.ResponseID\x12;\n\x08SchedAdd\x12\x1e.one.backupjob.SchedAddRequest\x1a\x0f.one.ResponseID\x12;\n\x08SchedDel\x12\x1e.one.backupjob.SchedDelRequest\x1a\x0f.one.ResponseID\x12\x41\n\x0bSchedUpdate\x12!.one.backupjob.SchedUpdateRequest\x1a\x0f.one.ResponseID\x12<\n\x08PoolInfo\x12\x1e.one.backupjob.PoolInfoRequest\x1a\x10.one.ResponseXMLB=Z;github.com/OpenNebula/one/src/oca/go/src/goca/api/backupjobb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Backupjob
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.RenameRequest").msgclass
|
|
22
|
+
ChmodRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.ChmodRequest").msgclass
|
|
23
|
+
ChownRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.ChownRequest").msgclass
|
|
24
|
+
LockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.LockRequest").msgclass
|
|
25
|
+
UnlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.UnlockRequest").msgclass
|
|
26
|
+
BackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.BackupRequest").msgclass
|
|
27
|
+
CancelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.CancelRequest").msgclass
|
|
28
|
+
RetryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.RetryRequest").msgclass
|
|
29
|
+
PriorityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.PriorityRequest").msgclass
|
|
30
|
+
SchedAddRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.SchedAddRequest").msgclass
|
|
31
|
+
SchedDelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.SchedDelRequest").msgclass
|
|
32
|
+
SchedUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.SchedUpdateRequest").msgclass
|
|
33
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.backupjob.PoolInfoRequest").msgclass
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: backupjob.proto for package 'one.backupjob'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# --------------------------------------------------------------------------
|
|
5
|
+
#
|
|
6
|
+
# Copyright 2002-2026, OpenNebula Project, OpenNebula Systems
|
|
7
|
+
#
|
|
8
|
+
#
|
|
9
|
+
#
|
|
10
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
11
|
+
#
|
|
12
|
+
# not use this file except in compliance with the License. You may obtain
|
|
13
|
+
#
|
|
14
|
+
# a copy of the License at
|
|
15
|
+
#
|
|
16
|
+
#
|
|
17
|
+
#
|
|
18
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
+
#
|
|
20
|
+
#
|
|
21
|
+
#
|
|
22
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
#
|
|
24
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
25
|
+
#
|
|
26
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
|
+
#
|
|
28
|
+
# See the License for the specific language governing permissions and
|
|
29
|
+
#
|
|
30
|
+
# limitations under the License.
|
|
31
|
+
#
|
|
32
|
+
# --------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
require 'grpc'
|
|
35
|
+
require 'backupjob_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Backupjob
|
|
39
|
+
module BackupJobService
|
|
40
|
+
class Service
|
|
41
|
+
|
|
42
|
+
include ::GRPC::GenericService
|
|
43
|
+
|
|
44
|
+
self.marshal_class_method = :encode
|
|
45
|
+
self.unmarshal_class_method = :decode
|
|
46
|
+
self.service_name = 'one.backupjob.BackupJobService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Backupjob::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Backupjob::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Backupjob::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Backupjob::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Rename, ::One::Backupjob::RenameRequest, ::One::ResponseID
|
|
53
|
+
rpc :Chmod, ::One::Backupjob::ChmodRequest, ::One::ResponseID
|
|
54
|
+
rpc :Chown, ::One::Backupjob::ChownRequest, ::One::ResponseID
|
|
55
|
+
rpc :Lock, ::One::Backupjob::LockRequest, ::One::ResponseID
|
|
56
|
+
rpc :Unlock, ::One::Backupjob::UnlockRequest, ::One::ResponseID
|
|
57
|
+
rpc :Backup, ::One::Backupjob::BackupRequest, ::One::ResponseID
|
|
58
|
+
rpc :Cancel, ::One::Backupjob::CancelRequest, ::One::ResponseID
|
|
59
|
+
rpc :Retry, ::One::Backupjob::RetryRequest, ::One::ResponseID
|
|
60
|
+
rpc :Priority, ::One::Backupjob::PriorityRequest, ::One::ResponseID
|
|
61
|
+
rpc :SchedAdd, ::One::Backupjob::SchedAddRequest, ::One::ResponseID
|
|
62
|
+
rpc :SchedDel, ::One::Backupjob::SchedDelRequest, ::One::ResponseID
|
|
63
|
+
rpc :SchedUpdate, ::One::Backupjob::SchedUpdateRequest, ::One::ResponseID
|
|
64
|
+
rpc :PoolInfo, ::One::Backupjob::PoolInfoRequest, ::One::ResponseXML
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
Stub = Service.rpc_stub_class
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|