opennebula 7.0.2 → 7.1.80.pre
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 +1 -1
- data/lib/opennebula/acl.rb +11 -13
- data/lib/opennebula/cluster_pool.rb +2 -0
- data/lib/opennebula/datastore_pool.rb +2 -0
- data/lib/opennebula/document.rb +1 -1
- data/lib/opennebula/document_json.rb +1 -0
- data/lib/opennebula/document_pool_json.rb +2 -0
- data/lib/opennebula/error.rb +8 -2
- data/lib/opennebula/flow/service_pool.rb +2 -0
- data/lib/opennebula/flow/service_template.rb +1 -0
- data/lib/opennebula/group.rb +3 -0
- data/lib/opennebula/group_pool.rb +2 -0
- 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/host.rb +2 -0
- data/lib/opennebula/host_pool.rb +2 -0
- data/lib/opennebula/ldap_auth.rb +1 -1
- data/lib/opennebula/lockable_ext.rb +12 -23
- data/lib/opennebula/marketplaceapp_ext.rb +3 -0
- data/lib/opennebula/oneform_client.rb +320 -0
- data/lib/opennebula/pool.rb +2 -1
- data/lib/opennebula/pool_element.rb +8 -8
- data/lib/opennebula/saml_auth.rb +1 -1
- data/lib/opennebula/user_pool.rb +1 -0
- data/lib/opennebula/version.rb +22 -0
- data/lib/opennebula/virtual_machine.rb +34 -2
- data/lib/opennebula/virtual_machine_ext.rb +2 -0
- data/lib/opennebula/virtual_network_pool.rb +2 -0
- data/lib/opennebula/wait_ext.rb +1 -0
- data/lib/opennebula/xml_element.rb +1 -0
- data/lib/opennebula/xml_utils.rb +2 -2
- data/lib/opennebula/zone.rb +4 -3
- data/lib/opennebula.rb +2 -13
- metadata +51 -5
- 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: 0e549c5ab36da71475f6097664ebb982cc6e708a344ea7290af7800bbed9a9fa
|
|
4
|
+
data.tar.gz: 93edd1c487515529b659b765fbbdb4cc64007280a86be2a676e3ffcbb6170f63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca822b9ed85aaffcccb4313f124d8314d531a68e25577bbc5a8d2d6cd0a779e0c7d18d7cee2425a82204e68d462c92cb4777807b1182f8d31798536436c30972
|
|
7
|
+
data.tar.gz: 29685e750a5a0b1a282b017a83bec4616dbe86a93040ea28f760bf200e7fea283348fd1fbca734145b30c25ab73767471fea7b73aa392bf53181e4275621054f
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula/acl.rb
CHANGED
|
@@ -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/document.rb
CHANGED
data/lib/opennebula/error.rb
CHANGED
|
@@ -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
|
data/lib/opennebula/group.rb
CHANGED
|
@@ -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)
|
|
@@ -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-2025, 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-2025, 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
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: cluster.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\rcluster.proto\x12\x0bone.cluster\x1a\x0cshared.proto\"3\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04name\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\x12\x0f\n\x07\x64\x65\x63rypt\x18\x03 \x01(\x08\"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\"B\n\x0e\x41\x64\x64HostRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0f\n\x07host_id\x18\x03 \x01(\x05\"B\n\x0e\x44\x65lHostRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0f\n\x07host_id\x18\x03 \x01(\x05\"E\n\x13\x41\x64\x64\x44\x61tastoreRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05\x64s_id\x18\x03 \x01(\x05\"E\n\x13\x44\x65lDatastoreRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05\x64s_id\x18\x03 \x01(\x05\"B\n\x0e\x41\x64\x64VNetRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0f\n\x07vnet_id\x18\x03 \x01(\x05\"B\n\x0e\x44\x65lVNetRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0f\n\x07vnet_id\x18\x03 \x01(\x05\"2\n\x0fOptimizeRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"5\n\x12PlanExecuteRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"4\n\x11PlanDeleteRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"%\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t2\x85\x07\n\x0e\x43lusterService\x12\x39\n\x08\x41llocate\x12\x1c.one.cluster.AllocateRequest\x1a\x0f.one.ResponseID\x12\x35\n\x06\x44\x65lete\x12\x1a.one.cluster.DeleteRequest\x1a\x0f.one.ResponseID\x12\x32\n\x04Info\x12\x18.one.cluster.InfoRequest\x1a\x10.one.ResponseXML\x12\x35\n\x06Update\x12\x1a.one.cluster.UpdateRequest\x1a\x0f.one.ResponseID\x12\x35\n\x06Rename\x12\x1a.one.cluster.RenameRequest\x1a\x0f.one.ResponseID\x12\x37\n\x07\x41\x64\x64Host\x12\x1b.one.cluster.AddHostRequest\x1a\x0f.one.ResponseID\x12\x37\n\x07\x44\x65lHost\x12\x1b.one.cluster.DelHostRequest\x1a\x0f.one.ResponseID\x12\x41\n\x0c\x41\x64\x64\x44\x61tastore\x12 .one.cluster.AddDatastoreRequest\x1a\x0f.one.ResponseID\x12\x41\n\x0c\x44\x65lDatastore\x12 .one.cluster.DelDatastoreRequest\x1a\x0f.one.ResponseID\x12\x37\n\x07\x41\x64\x64VNet\x12\x1b.one.cluster.AddVNetRequest\x1a\x0f.one.ResponseID\x12\x37\n\x07\x44\x65lVNet\x12\x1b.one.cluster.DelVNetRequest\x1a\x0f.one.ResponseID\x12\x39\n\x08Optimize\x12\x1c.one.cluster.OptimizeRequest\x1a\x0f.one.ResponseID\x12?\n\x0bPlanExecute\x12\x1f.one.cluster.PlanExecuteRequest\x1a\x0f.one.ResponseID\x12=\n\nPlanDelete\x12\x1e.one.cluster.PlanDeleteRequest\x1a\x0f.one.ResponseID\x12:\n\x08PoolInfo\x12\x1c.one.cluster.PoolInfoRequest\x1a\x10.one.ResponseXMLB;Z9github.com/OpenNebula/one/src/oca/go/src/goca/api/clusterb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Cluster
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.RenameRequest").msgclass
|
|
22
|
+
AddHostRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.AddHostRequest").msgclass
|
|
23
|
+
DelHostRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.DelHostRequest").msgclass
|
|
24
|
+
AddDatastoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.AddDatastoreRequest").msgclass
|
|
25
|
+
DelDatastoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.DelDatastoreRequest").msgclass
|
|
26
|
+
AddVNetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.AddVNetRequest").msgclass
|
|
27
|
+
DelVNetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.DelVNetRequest").msgclass
|
|
28
|
+
OptimizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.OptimizeRequest").msgclass
|
|
29
|
+
PlanExecuteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.PlanExecuteRequest").msgclass
|
|
30
|
+
PlanDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.PlanDeleteRequest").msgclass
|
|
31
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.cluster.PoolInfoRequest").msgclass
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: cluster.proto for package 'one.cluster'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'cluster_pb'
|
|
6
|
+
|
|
7
|
+
module One
|
|
8
|
+
module Cluster
|
|
9
|
+
module ClusterService
|
|
10
|
+
class Service
|
|
11
|
+
|
|
12
|
+
include ::GRPC::GenericService
|
|
13
|
+
|
|
14
|
+
self.marshal_class_method = :encode
|
|
15
|
+
self.unmarshal_class_method = :decode
|
|
16
|
+
self.service_name = 'one.cluster.ClusterService'
|
|
17
|
+
|
|
18
|
+
rpc :Allocate, ::One::Cluster::AllocateRequest, ::One::ResponseID
|
|
19
|
+
rpc :Delete, ::One::Cluster::DeleteRequest, ::One::ResponseID
|
|
20
|
+
rpc :Info, ::One::Cluster::InfoRequest, ::One::ResponseXML
|
|
21
|
+
rpc :Update, ::One::Cluster::UpdateRequest, ::One::ResponseID
|
|
22
|
+
rpc :Rename, ::One::Cluster::RenameRequest, ::One::ResponseID
|
|
23
|
+
rpc :AddHost, ::One::Cluster::AddHostRequest, ::One::ResponseID
|
|
24
|
+
rpc :DelHost, ::One::Cluster::DelHostRequest, ::One::ResponseID
|
|
25
|
+
rpc :AddDatastore, ::One::Cluster::AddDatastoreRequest, ::One::ResponseID
|
|
26
|
+
rpc :DelDatastore, ::One::Cluster::DelDatastoreRequest, ::One::ResponseID
|
|
27
|
+
rpc :AddVNet, ::One::Cluster::AddVNetRequest, ::One::ResponseID
|
|
28
|
+
rpc :DelVNet, ::One::Cluster::DelVNetRequest, ::One::ResponseID
|
|
29
|
+
rpc :Optimize, ::One::Cluster::OptimizeRequest, ::One::ResponseID
|
|
30
|
+
rpc :PlanExecute, ::One::Cluster::PlanExecuteRequest, ::One::ResponseID
|
|
31
|
+
rpc :PlanDelete, ::One::Cluster::PlanDeleteRequest, ::One::ResponseID
|
|
32
|
+
rpc :PoolInfo, ::One::Cluster::PoolInfoRequest, ::One::ResponseXML
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Stub = Service.rpc_stub_class
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: datastore.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x0f\x64\x61tastore.proto\x12\rone.datastore\x1a\x0cshared.proto\"K\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08template\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\x11\"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\x12\x0f\n\x07\x64\x65\x63rypt\x18\x03 \x01(\x08\"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\"@\n\rEnableRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0e\n\x06\x65nable\x18\x03 \x01(\x08\"%\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t2\x95\x04\n\x10\x44\x61tastoreService\x12;\n\x08\x41llocate\x12\x1e.one.datastore.AllocateRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x44\x65lete\x12\x1c.one.datastore.DeleteRequest\x1a\x0f.one.ResponseID\x12\x34\n\x04Info\x12\x1a.one.datastore.InfoRequest\x1a\x10.one.ResponseXML\x12\x37\n\x06Update\x12\x1c.one.datastore.UpdateRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06Rename\x12\x1c.one.datastore.RenameRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05\x43hmod\x12\x1b.one.datastore.ChmodRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05\x43hown\x12\x1b.one.datastore.ChownRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x45nable\x12\x1c.one.datastore.EnableRequest\x1a\x0f.one.ResponseID\x12<\n\x08PoolInfo\x12\x1e.one.datastore.PoolInfoRequest\x1a\x10.one.ResponseXMLB=Z;github.com/OpenNebula/one/src/oca/go/src/goca/api/datastoreb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Datastore
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.RenameRequest").msgclass
|
|
22
|
+
ChmodRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.ChmodRequest").msgclass
|
|
23
|
+
ChownRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.ChownRequest").msgclass
|
|
24
|
+
EnableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.EnableRequest").msgclass
|
|
25
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.datastore.PoolInfoRequest").msgclass
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: datastore.proto for package 'one.datastore'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# --------------------------------------------------------------------------
|
|
5
|
+
#
|
|
6
|
+
# Copyright 2002-2025, 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 'datastore_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Datastore
|
|
39
|
+
module DatastoreService
|
|
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.datastore.DatastoreService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Datastore::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Datastore::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Datastore::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Datastore::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Rename, ::One::Datastore::RenameRequest, ::One::ResponseID
|
|
53
|
+
rpc :Chmod, ::One::Datastore::ChmodRequest, ::One::ResponseID
|
|
54
|
+
rpc :Chown, ::One::Datastore::ChownRequest, ::One::ResponseID
|
|
55
|
+
rpc :Enable, ::One::Datastore::EnableRequest, ::One::ResponseID
|
|
56
|
+
rpc :PoolInfo, ::One::Datastore::PoolInfoRequest, ::One::ResponseXML
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
Stub = Service.rpc_stub_class
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: document.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x0e\x64ocument.proto\x12\x0cone.document\x1a\x0cshared.proto\"E\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08template\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\x05\"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\x12\x0f\n\x07\x64\x65\x63rypt\x18\x03 \x01(\x08\"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\"=\n\x0c\x43loneRequest\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\"j\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x13\n\x0b\x66ilter_flag\x18\x02 \x01(\x05\x12\x10\n\x08start_id\x18\x03 \x01(\x05\x12\x0e\n\x06\x65nd_id\x18\x04 \x01(\x05\x12\x0c\n\x04type\x18\x05 \x01(\x05\x32\xf5\x04\n\x0f\x44ocumentService\x12:\n\x08\x41llocate\x12\x1d.one.document.AllocateRequest\x1a\x0f.one.ResponseID\x12\x36\n\x06\x44\x65lete\x12\x1b.one.document.DeleteRequest\x1a\x0f.one.ResponseID\x12\x33\n\x04Info\x12\x19.one.document.InfoRequest\x1a\x10.one.ResponseXML\x12\x36\n\x06Update\x12\x1b.one.document.UpdateRequest\x1a\x0f.one.ResponseID\x12\x36\n\x06Rename\x12\x1b.one.document.RenameRequest\x1a\x0f.one.ResponseID\x12\x34\n\x05\x43hmod\x12\x1a.one.document.ChmodRequest\x1a\x0f.one.ResponseID\x12\x34\n\x05\x43hown\x12\x1a.one.document.ChownRequest\x1a\x0f.one.ResponseID\x12\x32\n\x04Lock\x12\x19.one.document.LockRequest\x1a\x0f.one.ResponseID\x12\x36\n\x06Unlock\x12\x1b.one.document.UnlockRequest\x1a\x0f.one.ResponseID\x12\x34\n\x05\x43lone\x12\x1a.one.document.CloneRequest\x1a\x0f.one.ResponseID\x12;\n\x08PoolInfo\x12\x1d.one.document.PoolInfoRequest\x1a\x10.one.ResponseXMLB<Z:github.com/OpenNebula/one/src/oca/go/src/goca/api/documentb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Document
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.RenameRequest").msgclass
|
|
22
|
+
ChmodRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.ChmodRequest").msgclass
|
|
23
|
+
ChownRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.ChownRequest").msgclass
|
|
24
|
+
LockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.LockRequest").msgclass
|
|
25
|
+
UnlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.UnlockRequest").msgclass
|
|
26
|
+
CloneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.CloneRequest").msgclass
|
|
27
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.document.PoolInfoRequest").msgclass
|
|
28
|
+
end
|
|
29
|
+
end
|