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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: document.proto for package 'one.document'
|
|
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 'document_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Document
|
|
39
|
+
module DocumentService
|
|
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.document.DocumentService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Document::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Document::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Document::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Document::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Rename, ::One::Document::RenameRequest, ::One::ResponseID
|
|
53
|
+
rpc :Chmod, ::One::Document::ChmodRequest, ::One::ResponseID
|
|
54
|
+
rpc :Chown, ::One::Document::ChownRequest, ::One::ResponseID
|
|
55
|
+
rpc :Lock, ::One::Document::LockRequest, ::One::ResponseID
|
|
56
|
+
rpc :Unlock, ::One::Document::UnlockRequest, ::One::ResponseID
|
|
57
|
+
rpc :Clone, ::One::Document::CloneRequest, ::One::ResponseID
|
|
58
|
+
rpc :PoolInfo, ::One::Document::PoolInfoRequest, ::One::ResponseXML
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
Stub = Service.rpc_stub_class
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: group.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x0bgroup.proto\x12\tone.group\x1a\x0cshared.proto\"4\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\r\n\x05gname\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\"C\n\x0f\x41\x64\x64\x41\x64minRequest\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(\x05\"C\n\x0f\x44\x65lAdminRequest\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(\x05\">\n\x0cQuotaRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05quota\x18\x03 \x01(\t\">\n\x19\x44\x65\x66\x61ultQuotaUpdateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\r\n\x05quota\x18\x02 \x01(\t\"%\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t2\xd2\x04\n\x0cGroupService\x12\x37\n\x08\x41llocate\x12\x1a.one.group.AllocateRequest\x1a\x0f.one.ResponseID\x12\x33\n\x06\x44\x65lete\x12\x18.one.group.DeleteRequest\x1a\x0f.one.ResponseID\x12\x30\n\x04Info\x12\x16.one.group.InfoRequest\x1a\x10.one.ResponseXML\x12\x33\n\x06Update\x12\x18.one.group.UpdateRequest\x1a\x0f.one.ResponseID\x12\x31\n\x05Quota\x12\x17.one.group.QuotaRequest\x1a\x0f.one.ResponseID\x12\x37\n\x08\x41\x64\x64\x41\x64min\x12\x1a.one.group.AddAdminRequest\x1a\x0f.one.ResponseID\x12\x37\n\x08\x44\x65lAdmin\x12\x1a.one.group.DelAdminRequest\x1a\x0f.one.ResponseID\x12@\n\x10\x44\x65\x66\x61ultQuotaInfo\x12\x1a.one.group.PoolInfoRequest\x1a\x10.one.ResponseXML\x12L\n\x12\x44\x65\x66\x61ultQuotaUpdate\x12$.one.group.DefaultQuotaUpdateRequest\x1a\x10.one.ResponseXML\x12\x38\n\x08PoolInfo\x12\x1a.one.group.PoolInfoRequest\x1a\x10.one.ResponseXMLB9Z7github.com/OpenNebula/one/src/oca/go/src/goca/api/groupb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Group
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.UpdateRequest").msgclass
|
|
21
|
+
AddAdminRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.AddAdminRequest").msgclass
|
|
22
|
+
DelAdminRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.DelAdminRequest").msgclass
|
|
23
|
+
QuotaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.QuotaRequest").msgclass
|
|
24
|
+
DefaultQuotaUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.DefaultQuotaUpdateRequest").msgclass
|
|
25
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.group.PoolInfoRequest").msgclass
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: group.proto for package 'one.group'
|
|
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 'group_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Group
|
|
39
|
+
module GroupService
|
|
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.group.GroupService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Group::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Group::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Group::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Group::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Quota, ::One::Group::QuotaRequest, ::One::ResponseID
|
|
53
|
+
rpc :AddAdmin, ::One::Group::AddAdminRequest, ::One::ResponseID
|
|
54
|
+
rpc :DelAdmin, ::One::Group::DelAdminRequest, ::One::ResponseID
|
|
55
|
+
rpc :DefaultQuotaInfo, ::One::Group::PoolInfoRequest, ::One::ResponseXML
|
|
56
|
+
rpc :DefaultQuotaUpdate, ::One::Group::DefaultQuotaUpdateRequest, ::One::ResponseXML
|
|
57
|
+
rpc :PoolInfo, ::One::Group::PoolInfoRequest, ::One::ResponseXML
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
Stub = Service.rpc_stub_class
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: hook.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\nhook.proto\x12\x08one.hook\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\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\"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\"B\n\x0cRetryRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x11\n\thk_exe_id\x18\x03 \x01(\x05\"%\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\"f\n\x0eLogInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0e\n\x06min_ts\x18\x02 \x01(\x05\x12\x0e\n\x06max_ts\x18\x03 \x01(\x05\x12\x0f\n\x07hook_id\x18\x04 \x01(\x05\x12\x0f\n\x07rc_hook\x18\x05 \x01(\x05\x32\x98\x04\n\x0bHookService\x12\x36\n\x08\x41llocate\x12\x19.one.hook.AllocateRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06\x44\x65lete\x12\x17.one.hook.DeleteRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06Update\x12\x17.one.hook.UpdateRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06Rename\x12\x17.one.hook.RenameRequest\x1a\x0f.one.ResponseID\x12.\n\x04Lock\x12\x15.one.hook.LockRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06Unlock\x12\x17.one.hook.UnlockRequest\x1a\x0f.one.ResponseID\x12\x30\n\x05Retry\x12\x16.one.hook.RetryRequest\x1a\x0f.one.ResponseID\x12/\n\x04Info\x12\x15.one.hook.InfoRequest\x1a\x10.one.ResponseXML\x12\x37\n\x08PoolInfo\x12\x19.one.hook.PoolInfoRequest\x1a\x10.one.ResponseXML\x12\x35\n\x07LogInfo\x12\x18.one.hook.LogInfoRequest\x1a\x10.one.ResponseXMLB8Z6github.com/OpenNebula/one/src/oca/go/src/goca/api/hookb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Hook
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.RenameRequest").msgclass
|
|
22
|
+
LockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.LockRequest").msgclass
|
|
23
|
+
UnlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.UnlockRequest").msgclass
|
|
24
|
+
RetryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.RetryRequest").msgclass
|
|
25
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.PoolInfoRequest").msgclass
|
|
26
|
+
LogInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.hook.LogInfoRequest").msgclass
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: hook.proto for package 'one.hook'
|
|
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 'hook_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Hook
|
|
39
|
+
module HookService
|
|
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.hook.HookService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Hook::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Hook::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Update, ::One::Hook::UpdateRequest, ::One::ResponseID
|
|
51
|
+
rpc :Rename, ::One::Hook::RenameRequest, ::One::ResponseID
|
|
52
|
+
rpc :Lock, ::One::Hook::LockRequest, ::One::ResponseID
|
|
53
|
+
rpc :Unlock, ::One::Hook::UnlockRequest, ::One::ResponseID
|
|
54
|
+
rpc :Retry, ::One::Hook::RetryRequest, ::One::ResponseID
|
|
55
|
+
rpc :Info, ::One::Hook::InfoRequest, ::One::ResponseXML
|
|
56
|
+
rpc :PoolInfo, ::One::Hook::PoolInfoRequest, ::One::ResponseXML
|
|
57
|
+
rpc :LogInfo, ::One::Hook::LogInfoRequest, ::One::ResponseXML
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
Stub = Service.rpc_stub_class
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: host.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\nhost.proto\x12\x08one.host\x1a\x0cshared.proto\"g\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06im_mad\x18\x03 \x01(\t\x12\x0e\n\x06vm_mad\x18\x04 \x01(\t\x12\x12\n\ncluster_id\x18\x05 \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\"@\n\rStatusRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0e\n\x06status\x18\x03 \x01(\x05\"4\n\x11MonitoringRequest\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(\t\"<\n\x15PoolMonitoringRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0f\n\x07seconds\x18\x02 \x01(\x05\x32\x81\x04\n\x0bHostService\x12\x36\n\x08\x41llocate\x12\x19.one.host.AllocateRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06\x44\x65lete\x12\x17.one.host.DeleteRequest\x1a\x0f.one.ResponseID\x12/\n\x04Info\x12\x15.one.host.InfoRequest\x1a\x10.one.ResponseXML\x12\x32\n\x06Update\x12\x17.one.host.UpdateRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06Rename\x12\x17.one.host.RenameRequest\x1a\x0f.one.ResponseID\x12\x32\n\x06Status\x12\x17.one.host.StatusRequest\x1a\x0f.one.ResponseID\x12;\n\nMonitoring\x12\x1b.one.host.MonitoringRequest\x1a\x10.one.ResponseXML\x12\x37\n\x08PoolInfo\x12\x19.one.host.PoolInfoRequest\x1a\x10.one.ResponseXML\x12\x43\n\x0ePoolMonitoring\x12\x1f.one.host.PoolMonitoringRequest\x1a\x10.one.ResponseXMLB8Z6github.com/OpenNebula/one/src/oca/go/src/goca/api/hostb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Host
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.RenameRequest").msgclass
|
|
22
|
+
StatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.StatusRequest").msgclass
|
|
23
|
+
MonitoringRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.MonitoringRequest").msgclass
|
|
24
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.PoolInfoRequest").msgclass
|
|
25
|
+
PoolMonitoringRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.host.PoolMonitoringRequest").msgclass
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: host.proto for package 'one.host'
|
|
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 'host_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Host
|
|
39
|
+
module HostService
|
|
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.host.HostService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Host::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Host::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Host::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Host::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Rename, ::One::Host::RenameRequest, ::One::ResponseID
|
|
53
|
+
rpc :Status, ::One::Host::StatusRequest, ::One::ResponseID
|
|
54
|
+
rpc :Monitoring, ::One::Host::MonitoringRequest, ::One::ResponseXML
|
|
55
|
+
rpc :PoolInfo, ::One::Host::PoolInfoRequest, ::One::ResponseXML
|
|
56
|
+
rpc :PoolMonitoring, ::One::Host::PoolMonitoringRequest, ::One::ResponseXML
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
Stub = Service.rpc_stub_class
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: image.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x0bimage.proto\x12\tone.image\x1a\x0cshared.proto\"c\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08template\x18\x02 \x01(\t\x12\r\n\x05\x64s_id\x18\x03 \x01(\x05\x12\x1b\n\x13skip_capacity_check\x18\x04 \x01(\x08\"?\n\rDeleteRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\"?\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\"L\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\x12\r\n\x05\x64s_id\x18\x04 \x01(\x05\"@\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\"H\n\x11PersistentRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x12\n\npersistent\x18\x03 \x01(\x08\">\n\rChtypeRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0c\n\x04type\x18\x03 \x01(\t\"M\n\x15SnapshotDeleteRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\x05\"M\n\x15SnapshotRevertRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\x05\"N\n\x16SnapshotFlattenRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\x05\"R\n\x0eRestoreRequest\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\x12\x10\n\x08opt_tmpl\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\x81\x08\n\x0cImageService\x12\x37\n\x08\x41llocate\x12\x1a.one.image.AllocateRequest\x1a\x0f.one.ResponseID\x12\x33\n\x06\x44\x65lete\x12\x18.one.image.DeleteRequest\x1a\x0f.one.ResponseID\x12\x30\n\x04Info\x12\x16.one.image.InfoRequest\x1a\x10.one.ResponseXML\x12\x33\n\x06Update\x12\x18.one.image.UpdateRequest\x1a\x0f.one.ResponseID\x12\x33\n\x06Rename\x12\x18.one.image.RenameRequest\x1a\x0f.one.ResponseID\x12\x31\n\x05\x43hmod\x12\x17.one.image.ChmodRequest\x1a\x0f.one.ResponseID\x12\x31\n\x05\x43hown\x12\x17.one.image.ChownRequest\x1a\x0f.one.ResponseID\x12/\n\x04Lock\x12\x16.one.image.LockRequest\x1a\x0f.one.ResponseID\x12\x33\n\x06Unlock\x12\x18.one.image.UnlockRequest\x1a\x0f.one.ResponseID\x12\x31\n\x05\x43lone\x12\x17.one.image.CloneRequest\x1a\x0f.one.ResponseID\x12\x33\n\x06\x45nable\x12\x18.one.image.EnableRequest\x1a\x0f.one.ResponseID\x12;\n\nPersistent\x12\x1c.one.image.PersistentRequest\x1a\x0f.one.ResponseID\x12\x33\n\x06\x43htype\x12\x18.one.image.ChtypeRequest\x1a\x0f.one.ResponseID\x12\x43\n\x0eSnapshotDelete\x12 .one.image.SnapshotDeleteRequest\x1a\x0f.one.ResponseID\x12\x43\n\x0eSnapshotRevert\x12 .one.image.SnapshotRevertRequest\x1a\x0f.one.ResponseID\x12\x45\n\x0fSnapshotFlatten\x12!.one.image.SnapshotFlattenRequest\x1a\x0f.one.ResponseID\x12\x36\n\x07Restore\x12\x19.one.image.RestoreRequest\x1a\x10.one.ResponseXML\x12\x38\n\x08PoolInfo\x12\x1a.one.image.PoolInfoRequest\x1a\x10.one.ResponseXMLB9Z7github.com/OpenNebula/one/src/oca/go/src/goca/api/imageb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Image
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.RenameRequest").msgclass
|
|
22
|
+
ChmodRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.ChmodRequest").msgclass
|
|
23
|
+
ChownRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.ChownRequest").msgclass
|
|
24
|
+
LockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.LockRequest").msgclass
|
|
25
|
+
UnlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.UnlockRequest").msgclass
|
|
26
|
+
CloneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.CloneRequest").msgclass
|
|
27
|
+
EnableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.EnableRequest").msgclass
|
|
28
|
+
PersistentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.PersistentRequest").msgclass
|
|
29
|
+
ChtypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.ChtypeRequest").msgclass
|
|
30
|
+
SnapshotDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.SnapshotDeleteRequest").msgclass
|
|
31
|
+
SnapshotRevertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.SnapshotRevertRequest").msgclass
|
|
32
|
+
SnapshotFlattenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.SnapshotFlattenRequest").msgclass
|
|
33
|
+
RestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.RestoreRequest").msgclass
|
|
34
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.image.PoolInfoRequest").msgclass
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: image.proto for package 'one.image'
|
|
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 'image_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Image
|
|
39
|
+
module ImageService
|
|
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.image.ImageService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Image::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Image::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Image::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Image::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Rename, ::One::Image::RenameRequest, ::One::ResponseID
|
|
53
|
+
rpc :Chmod, ::One::Image::ChmodRequest, ::One::ResponseID
|
|
54
|
+
rpc :Chown, ::One::Image::ChownRequest, ::One::ResponseID
|
|
55
|
+
rpc :Lock, ::One::Image::LockRequest, ::One::ResponseID
|
|
56
|
+
rpc :Unlock, ::One::Image::UnlockRequest, ::One::ResponseID
|
|
57
|
+
rpc :Clone, ::One::Image::CloneRequest, ::One::ResponseID
|
|
58
|
+
rpc :Enable, ::One::Image::EnableRequest, ::One::ResponseID
|
|
59
|
+
rpc :Persistent, ::One::Image::PersistentRequest, ::One::ResponseID
|
|
60
|
+
rpc :Chtype, ::One::Image::ChtypeRequest, ::One::ResponseID
|
|
61
|
+
rpc :SnapshotDelete, ::One::Image::SnapshotDeleteRequest, ::One::ResponseID
|
|
62
|
+
rpc :SnapshotRevert, ::One::Image::SnapshotRevertRequest, ::One::ResponseID
|
|
63
|
+
rpc :SnapshotFlatten, ::One::Image::SnapshotFlattenRequest, ::One::ResponseID
|
|
64
|
+
rpc :Restore, ::One::Image::RestoreRequest, ::One::ResponseXML
|
|
65
|
+
rpc :PoolInfo, ::One::Image::PoolInfoRequest, ::One::ResponseXML
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
Stub = Service.rpc_stub_class
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: marketplace.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x11marketplace.proto\x12\none.market\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\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\"4\n\x11\x41llocateDBRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03xml\x18\x02 \x01(\t\"?\n\x0fUpdateDBRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0b\n\x03xml\x18\x03 \x01(\t\"%\n\x0fPoolInfoRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t2\xf4\x04\n\x12MarketPlaceService\x12\x38\n\x08\x41llocate\x12\x1b.one.market.AllocateRequest\x1a\x0f.one.ResponseID\x12\x34\n\x06\x44\x65lete\x12\x19.one.market.DeleteRequest\x1a\x0f.one.ResponseID\x12\x31\n\x04Info\x12\x17.one.market.InfoRequest\x1a\x10.one.ResponseXML\x12\x34\n\x06Update\x12\x19.one.market.UpdateRequest\x1a\x0f.one.ResponseID\x12\x34\n\x06Rename\x12\x19.one.market.RenameRequest\x1a\x0f.one.ResponseID\x12\x32\n\x05\x43hmod\x12\x18.one.market.ChmodRequest\x1a\x0f.one.ResponseID\x12\x32\n\x05\x43hown\x12\x18.one.market.ChownRequest\x1a\x0f.one.ResponseID\x12\x34\n\x06\x45nable\x12\x19.one.market.EnableRequest\x1a\x0f.one.ResponseID\x12<\n\nAllocateDB\x12\x1d.one.market.AllocateDBRequest\x1a\x0f.one.ResponseID\x12\x38\n\x08UpdateDB\x12\x1b.one.market.UpdateDBRequest\x1a\x0f.one.ResponseID\x12\x39\n\x08PoolInfo\x12\x1b.one.market.PoolInfoRequest\x1a\x10.one.ResponseXMLB?Z=github.com/OpenNebula/one/src/oca/go/src/goca/api/marketplaceb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Market
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.RenameRequest").msgclass
|
|
22
|
+
ChmodRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.ChmodRequest").msgclass
|
|
23
|
+
ChownRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.ChownRequest").msgclass
|
|
24
|
+
EnableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.EnableRequest").msgclass
|
|
25
|
+
AllocateDBRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.AllocateDBRequest").msgclass
|
|
26
|
+
UpdateDBRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.UpdateDBRequest").msgclass
|
|
27
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.market.PoolInfoRequest").msgclass
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: marketplace.proto for package 'one.market'
|
|
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 'marketplace_pb'
|
|
36
|
+
|
|
37
|
+
module One
|
|
38
|
+
module Market
|
|
39
|
+
module MarketPlaceService
|
|
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.market.MarketPlaceService'
|
|
47
|
+
|
|
48
|
+
rpc :Allocate, ::One::Market::AllocateRequest, ::One::ResponseID
|
|
49
|
+
rpc :Delete, ::One::Market::DeleteRequest, ::One::ResponseID
|
|
50
|
+
rpc :Info, ::One::Market::InfoRequest, ::One::ResponseXML
|
|
51
|
+
rpc :Update, ::One::Market::UpdateRequest, ::One::ResponseID
|
|
52
|
+
rpc :Rename, ::One::Market::RenameRequest, ::One::ResponseID
|
|
53
|
+
rpc :Chmod, ::One::Market::ChmodRequest, ::One::ResponseID
|
|
54
|
+
rpc :Chown, ::One::Market::ChownRequest, ::One::ResponseID
|
|
55
|
+
rpc :Enable, ::One::Market::EnableRequest, ::One::ResponseID
|
|
56
|
+
rpc :AllocateDB, ::One::Market::AllocateDBRequest, ::One::ResponseID
|
|
57
|
+
rpc :UpdateDB, ::One::Market::UpdateDBRequest, ::One::ResponseID
|
|
58
|
+
rpc :PoolInfo, ::One::Market::PoolInfoRequest, ::One::ResponseXML
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
Stub = Service.rpc_stub_class
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: marketplaceapp.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'shared_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x14marketplaceapp.proto\x12\rone.marketapp\x1a\x0cshared.proto\"J\n\x0f\x41llocateRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x10\n\x08template\x18\x02 \x01(\t\x12\x11\n\tmarket_id\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\"@\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\"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\"4\n\x11\x41llocateDBRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03xml\x18\x02 \x01(\t\"?\n\x0fUpdateDBRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\x12\x0b\n\x03xml\x18\x03 \x01(\t\"0\n\rDropDBRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\x12\x0b\n\x03oid\x18\x02 \x01(\x05\"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\xbf\x06\n\x15MarketPlaceAppService\x12;\n\x08\x41llocate\x12\x1e.one.marketapp.AllocateRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x44\x65lete\x12\x1c.one.marketapp.DeleteRequest\x1a\x0f.one.ResponseID\x12\x34\n\x04Info\x12\x1a.one.marketapp.InfoRequest\x1a\x10.one.ResponseXML\x12\x37\n\x06Update\x12\x1c.one.marketapp.UpdateRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06Rename\x12\x1c.one.marketapp.RenameRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05\x43hmod\x12\x1b.one.marketapp.ChmodRequest\x1a\x0f.one.ResponseID\x12\x35\n\x05\x43hown\x12\x1b.one.marketapp.ChownRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x45nable\x12\x1c.one.marketapp.EnableRequest\x1a\x0f.one.ResponseID\x12\x33\n\x04Lock\x12\x1a.one.marketapp.LockRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06Unlock\x12\x1c.one.marketapp.UnlockRequest\x1a\x0f.one.ResponseID\x12?\n\nAllocateDB\x12 .one.marketapp.AllocateDBRequest\x1a\x0f.one.ResponseID\x12;\n\x08UpdateDB\x12\x1e.one.marketapp.UpdateDBRequest\x1a\x0f.one.ResponseID\x12\x37\n\x06\x44ropDB\x12\x1c.one.marketapp.DropDBRequest\x1a\x0f.one.ResponseID\x12<\n\x08PoolInfo\x12\x1e.one.marketapp.PoolInfoRequest\x1a\x10.one.ResponseXMLBBZ@github.com/OpenNebula/one/src/oca/go/src/goca/api/marketplaceappb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module One
|
|
16
|
+
module Marketapp
|
|
17
|
+
AllocateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.AllocateRequest").msgclass
|
|
18
|
+
DeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.DeleteRequest").msgclass
|
|
19
|
+
InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.InfoRequest").msgclass
|
|
20
|
+
UpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.UpdateRequest").msgclass
|
|
21
|
+
RenameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.RenameRequest").msgclass
|
|
22
|
+
ChmodRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.ChmodRequest").msgclass
|
|
23
|
+
ChownRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.ChownRequest").msgclass
|
|
24
|
+
EnableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.EnableRequest").msgclass
|
|
25
|
+
LockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.LockRequest").msgclass
|
|
26
|
+
UnlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.UnlockRequest").msgclass
|
|
27
|
+
AllocateDBRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.AllocateDBRequest").msgclass
|
|
28
|
+
UpdateDBRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.UpdateDBRequest").msgclass
|
|
29
|
+
DropDBRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.DropDBRequest").msgclass
|
|
30
|
+
PoolInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("one.marketapp.PoolInfoRequest").msgclass
|
|
31
|
+
end
|
|
32
|
+
end
|