aserto-directory 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/generated/aserto/directory/common/v2/common_pb.rb +26 -107
- data/generated/aserto/directory/exporter/v2/exporter_pb.rb +26 -28
- data/generated/aserto/directory/importer/v2/importer_pb.rb +25 -29
- data/generated/aserto/directory/reader/v2/reader_pb.rb +25 -108
- data/generated/aserto/directory/schema/v2/group_pb.rb +42 -0
- data/generated/aserto/directory/schema/v2/identity_pb.rb +43 -0
- data/generated/aserto/directory/schema/v2/user_pb.rb +43 -0
- data/generated/aserto/directory/writer/v2/writer_pb.rb +26 -61
- metadata +7 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e731d46e5731b59f4521637fea9eb527ff5faf1c5ce9cf6a9cfef3dad7d983
|
4
|
+
data.tar.gz: 301d1cc0b3426ce1ff60ce06070b6facd44bb67f3c9bc9d1d4adceb285933cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0851ceaa8a651adb14d366df5e1a4d5b9bc977d60dfceb766c57b5ee4780bd8fcc69aac9c4ad23e5c39112c65cee351d32b7709fc7f4eaa98b42e936963a14ba'
|
7
|
+
data.tar.gz: cbd0eb89d89d5f439ae6962ca06fb8eda0f5674074278ff0b01291bdaf8456e11ffec935a7051963871b399aeb87e27f9b2fe1913101d8b4171e62e85f405177
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/common/v2/common.proto
|
3
4
|
|
@@ -6,115 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/protobuf/struct_pb'
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
add_message "aserto.directory.common.v2.RelationType" do
|
34
|
-
optional :id, :int32, 1, json_name: "id"
|
35
|
-
optional :name, :string, 2, json_name: "name"
|
36
|
-
optional :object_type, :string, 3, json_name: "objectType"
|
37
|
-
optional :display_name, :string, 4, json_name: "displayName"
|
38
|
-
optional :ordinal, :int32, 5, json_name: "ordinal"
|
39
|
-
optional :status, :uint32, 6, json_name: "status"
|
40
|
-
repeated :unions, :string, 7, json_name: "unions"
|
41
|
-
repeated :permissions, :string, 8, json_name: "permissions"
|
42
|
-
optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
|
43
|
-
optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
|
44
|
-
optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
|
45
|
-
optional :hash, :string, 23, json_name: "hash"
|
46
|
-
end
|
47
|
-
add_message "aserto.directory.common.v2.Object" do
|
48
|
-
optional :id, :string, 1, json_name: "id"
|
49
|
-
optional :key, :string, 2, json_name: "key"
|
50
|
-
optional :type, :string, 3, json_name: "type"
|
51
|
-
optional :display_name, :string, 4, json_name: "displayName"
|
52
|
-
optional :properties, :message, 5, "google.protobuf.Struct", json_name: "properties"
|
53
|
-
optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
|
54
|
-
optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
|
55
|
-
optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
|
56
|
-
optional :hash, :string, 23, json_name: "hash"
|
57
|
-
end
|
58
|
-
add_message "aserto.directory.common.v2.Relation" do
|
59
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
60
|
-
optional :relation, :string, 2, json_name: "relation"
|
61
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
62
|
-
optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
|
63
|
-
optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
|
64
|
-
optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
|
65
|
-
optional :hash, :string, 23, json_name: "hash"
|
66
|
-
end
|
67
|
-
add_message "aserto.directory.common.v2.ObjectDependency" do
|
68
|
-
optional :object_type, :string, 1, json_name: "objectType"
|
69
|
-
optional :object_id, :string, 3, json_name: "objectId"
|
70
|
-
optional :object_key, :string, 4, json_name: "objectKey"
|
71
|
-
optional :relation, :string, 5, json_name: "relation"
|
72
|
-
optional :subject_type, :string, 7, json_name: "subjectType"
|
73
|
-
optional :subject_id, :string, 9, json_name: "subjectId"
|
74
|
-
optional :subject_key, :string, 10, json_name: "subjectKey"
|
75
|
-
optional :depth, :int32, 11, json_name: "depth"
|
76
|
-
optional :is_cycle, :bool, 12, json_name: "isCycle"
|
77
|
-
repeated :path, :string, 13, json_name: "path"
|
78
|
-
end
|
79
|
-
add_message "aserto.directory.common.v2.ObjectTypeIdentifier" do
|
80
|
-
proto3_optional :id, :int32, 1, json_name: "id"
|
81
|
-
proto3_optional :name, :string, 2, json_name: "name"
|
82
|
-
end
|
83
|
-
add_message "aserto.directory.common.v2.PermissionIdentifier" do
|
84
|
-
proto3_optional :id, :string, 1, json_name: "id"
|
85
|
-
proto3_optional :name, :string, 2, json_name: "name"
|
86
|
-
end
|
87
|
-
add_message "aserto.directory.common.v2.RelationTypeIdentifier" do
|
88
|
-
proto3_optional :id, :int32, 1, json_name: "id"
|
89
|
-
proto3_optional :name, :string, 2, json_name: "name"
|
90
|
-
proto3_optional :object_type, :string, 3, json_name: "objectType"
|
91
|
-
end
|
92
|
-
add_message "aserto.directory.common.v2.ObjectIdentifier" do
|
93
|
-
proto3_optional :type, :string, 1, json_name: "type"
|
94
|
-
proto3_optional :id, :string, 2, json_name: "id"
|
95
|
-
proto3_optional :key, :string, 3, json_name: "key"
|
96
|
-
end
|
97
|
-
add_message "aserto.directory.common.v2.RelationIdentifier" do
|
98
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
99
|
-
optional :relation, :message, 2, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
|
100
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
101
|
-
end
|
102
|
-
add_message "aserto.directory.common.v2.PaginationRequest" do
|
103
|
-
optional :size, :int32, 1, json_name: "size"
|
104
|
-
optional :token, :string, 2, json_name: "token"
|
105
|
-
end
|
106
|
-
add_message "aserto.directory.common.v2.PaginationResponse" do
|
107
|
-
optional :next_token, :string, 1, json_name: "nextToken"
|
108
|
-
optional :result_size, :int32, 2, json_name: "resultSize"
|
109
|
-
end
|
110
|
-
add_enum "aserto.directory.common.v2.Flag" do
|
111
|
-
value :FLAG_UNKNOWN, 0
|
112
|
-
value :FLAG_HIDDEN, 1
|
113
|
-
value :FLAG_READONLY, 2
|
114
|
-
value :FLAG_SYSTEM, 4
|
115
|
-
value :FLAG_SHADOW, 8
|
10
|
+
|
11
|
+
descriptor_data = "\n\'aserto/directory/common/v2/common.proto\x12\x1a\x61serto.directory.common.v2\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xeb\x02\n\nObjectType\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12!\n\x0c\x64isplay_name\x18\x03 \x01(\tR\x0b\x64isplayName\x12\x1d\n\nis_subject\x18\x04 \x01(\x08R\tisSubject\x12\x18\n\x07ordinal\x18\x05 \x01(\x05R\x07ordinal\x12\x16\n\x06status\x18\x06 \x01(\rR\x06status\x12/\n\x06schema\x18\n \x01(\x0b\x32\x17.google.protobuf.StructR\x06schema\x12\x39\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x12\n\x04hash\x18\x17 \x01(\tR\x04hashJ\x04\x08\x01\x10\x02J\x04\x08\x16\x10\x17R\x02idR\ndeleted_at\"\xe9\x01\n\nPermission\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12!\n\x0c\x64isplay_name\x18\x03 \x01(\tR\x0b\x64isplayName\x12\x39\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x12\n\x04hash\x18\x17 \x01(\tR\x04hashJ\x04\x08\x01\x10\x02J\x04\x08\x16\x10\x17R\x02idR\ndeleted_at\"\xf8\x02\n\x0cRelationType\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1f\n\x0bobject_type\x18\x03 \x01(\tR\nobjectType\x12!\n\x0c\x64isplay_name\x18\x04 \x01(\tR\x0b\x64isplayName\x12\x18\n\x07ordinal\x18\x05 \x01(\x05R\x07ordinal\x12\x16\n\x06status\x18\x06 \x01(\rR\x06status\x12\x16\n\x06unions\x18\x07 \x03(\tR\x06unions\x12 \n\x0bpermissions\x18\x08 \x03(\tR\x0bpermissions\x12\x39\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x12\n\x04hash\x18\x17 \x01(\tR\x04hashJ\x04\x08\x01\x10\x02J\x04\x08\x16\x10\x17R\x02idR\ndeleted_at\"\xb0\x02\n\x06Object\x12\x10\n\x03key\x18\x02 \x01(\tR\x03key\x12\x12\n\x04type\x18\x03 \x01(\tR\x04type\x12!\n\x0c\x64isplay_name\x18\x04 \x01(\tR\x0b\x64isplayName\x12\x37\n\nproperties\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructR\nproperties\x12\x39\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x12\n\x04hash\x18\x17 \x01(\tR\x04hashJ\x04\x08\x01\x10\x02J\x04\x08\x16\x10\x17R\x02idR\ndeleted_at\"\xd0\x02\n\x08Relation\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12\x1a\n\x08relation\x18\x02 \x01(\tR\x08relation\x12\x44\n\x06object\x18\x03 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\x12\x39\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x12\n\x04hash\x18\x17 \x01(\tR\x04hashJ\x04\x08\x16\x10\x17R\ndeleted_at\"\x9a\x02\n\x10ObjectDependency\x12\x1f\n\x0bobject_type\x18\x01 \x01(\tR\nobjectType\x12\x1d\n\nobject_key\x18\x04 \x01(\tR\tobjectKey\x12\x1a\n\x08relation\x18\x05 \x01(\tR\x08relation\x12!\n\x0csubject_type\x18\x07 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bsubject_key\x18\n \x01(\tR\nsubjectKey\x12\x14\n\x05\x64\x65pth\x18\x0b \x01(\x05R\x05\x64\x65pth\x12\x19\n\x08is_cycle\x18\x0c \x01(\x08R\x07isCycle\x12\x12\n\x04path\x18\r \x03(\tR\x04pathJ\x04\x08\x03\x10\x04J\x04\x08\t\x10\nR\tobject_idR\nsubject_id\"B\n\x14ObjectTypeIdentifier\x12\x17\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x42\x07\n\x05_nameJ\x04\x08\x01\x10\x02R\x02id\"B\n\x14PermissionIdentifier\x12\x17\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x42\x07\n\x05_nameJ\x04\x08\x01\x10\x02R\x02id\"z\n\x16RelationTypeIdentifier\x12\x17\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12$\n\x0bobject_type\x18\x03 \x01(\tH\x01R\nobjectType\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_object_typeJ\x04\x08\x01\x10\x02R\x02id\"]\n\x10ObjectIdentifier\x12\x17\n\x04type\x18\x01 \x01(\tH\x00R\x04type\x88\x01\x01\x12\x15\n\x03key\x18\x03 \x01(\tH\x01R\x03key\x88\x01\x01\x42\x07\n\x05_typeB\x06\n\x04_keyJ\x04\x08\x02\x10\x03R\x02id\"\xf2\x01\n\x12RelationIdentifier\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12N\n\x08relation\x18\x02 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x08relation\x12\x44\n\x06object\x18\x03 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\"=\n\x11PaginationRequest\x12\x12\n\x04size\x18\x01 \x01(\x05R\x04size\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"T\n\x12PaginationResponse\x12\x1d\n\nnext_token\x18\x01 \x01(\tR\tnextToken\x12\x1f\n\x0bresult_size\x18\x02 \x01(\x05R\nresultSize*^\n\x04\x46lag\x12\x10\n\x0c\x46LAG_UNKNOWN\x10\x00\x12\x0f\n\x0b\x46LAG_HIDDEN\x10\x01\x12\x11\n\rFLAG_READONLY\x10\x02\x12\x0f\n\x0b\x46LAG_SYSTEM\x10\x04\x12\x0f\n\x0b\x46LAG_SHADOW\x10\x08\x42\x80\x02\n\x1e\x63om.aserto.directory.common.v2B\x0b\x43ommonProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/common/v2;common\xa2\x02\x03\x41\x44\x43\xaa\x02\x1a\x41serto.Directory.Common.V2\xca\x02\x1b\x41serto\\Directory_\\Common\\V2\xe2\x02\'Aserto\\Directory_\\Common\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Common::V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
116
33
|
end
|
117
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
118
37
|
end
|
119
38
|
|
120
39
|
module Aserto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/exporter/v2/exporter.proto
|
3
4
|
|
@@ -6,36 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'aserto/directory/common/v2/common_pb'
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
value :OPTION_DATA_RELATIONS_WITH_KEYS, 32
|
33
|
-
value :OPTION_DATA, 24
|
34
|
-
value :OPTION_DATA_WITH_KEYS, 40
|
35
|
-
value :OPTION_ALL, 31
|
36
|
-
value :OPTION_ALL_WITH_KEYS, 47
|
10
|
+
|
11
|
+
descriptor_data = "\n+aserto/directory/exporter/v2/exporter.proto\x12\x1c\x61serto.directory.exporter.v2\x1a\'aserto/directory/common/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"d\n\rExportRequest\x12\x18\n\x07options\x18\x01 \x01(\rR\x07options\x12\x39\n\nstart_from\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartFrom\"\xff\x02\n\x0e\x45xportResponse\x12<\n\x06object\x18\x02 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectH\x00R\x06object\x12I\n\x0bobject_type\x18\x03 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeH\x00R\nobjectType\x12\x42\n\x08relation\x18\x04 \x01(\x0b\x32$.aserto.directory.common.v2.RelationH\x00R\x08relation\x12O\n\rrelation_type\x18\x05 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeH\x00R\x0crelationType\x12H\n\npermission\x18\x06 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionH\x00R\npermissionB\x05\n\x03msg*\xc7\x02\n\x06Option\x12\x12\n\x0eOPTION_UNKNOWN\x10\x00\x12 \n\x1cOPTION_METADATA_OBJECT_TYPES\x10\x01\x12\"\n\x1eOPTION_METADATA_RELATION_TYPES\x10\x02\x12\x1f\n\x1bOPTION_METADATA_PERMISSIONS\x10\x04\x12\x13\n\x0fOPTION_METADATA\x10\x07\x12\x17\n\x13OPTION_DATA_OBJECTS\x10\x08\x12\x19\n\x15OPTION_DATA_RELATIONS\x10\x10\x12#\n\x1fOPTION_DATA_RELATIONS_WITH_KEYS\x10 \x12\x0f\n\x0bOPTION_DATA\x10\x18\x12\x19\n\x15OPTION_DATA_WITH_KEYS\x10(\x12\x0e\n\nOPTION_ALL\x10\x1f\x12\x18\n\x14OPTION_ALL_WITH_KEYS\x10/2s\n\x08\x45xporter\x12g\n\x06\x45xport\x12+.aserto.directory.exporter.v2.ExportRequest\x1a,.aserto.directory.exporter.v2.ExportResponse\"\x00\x30\x01\x42\x90\x02\n com.aserto.directory.exporter.v2B\rExporterProtoP\x01ZHgithub.com/aserto-dev/go-directory/aserto/directory/exporter/v2;exporter\xa2\x02\x03\x41\x44\x45\xaa\x02\x1c\x41serto.Directory.Exporter.V2\xca\x02\x1d\x41serto\\Directory_\\Exporter\\V2\xe2\x02)Aserto\\Directory_\\Exporter\\V2\\GPBMetadata\xea\x02\x1f\x41serto::Directory::Exporter::V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
27
|
+
["aserto.directory.common.v2.Object", "aserto/directory/common/v2/common.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
33
|
end
|
38
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
39
37
|
end
|
40
38
|
|
41
39
|
module Aserto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/importer/v2/importer.proto
|
3
4
|
|
@@ -5,37 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'aserto/directory/common/v2/common_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
optional :delete, :uint64, 3, json_name: "delete"
|
31
|
-
optional :error, :uint64, 4, json_name: "error"
|
32
|
-
end
|
33
|
-
add_enum "aserto.directory.importer.v2.Opcode" do
|
34
|
-
value :OPCODE_UNKNOWN, 0
|
35
|
-
value :OPCODE_SET, 1
|
36
|
-
value :OPCODE_DELETE, 2
|
9
|
+
|
10
|
+
descriptor_data = "\n+aserto/directory/importer/v2/importer.proto\x12\x1c\x61serto.directory.importer.v2\x1a\'aserto/directory/common/v2/common.proto\"\xbd\x03\n\rImportRequest\x12=\n\x07op_code\x18\x01 \x01(\x0e\x32$.aserto.directory.importer.v2.OpcodeR\x06opCode\x12I\n\x0bobject_type\x18\x02 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeH\x00R\nobjectType\x12H\n\npermission\x18\x03 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionH\x00R\npermission\x12O\n\rrelation_type\x18\x04 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeH\x00R\x0crelationType\x12<\n\x06object\x18\x05 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectH\x00R\x06object\x12\x42\n\x08relation\x18\x06 \x01(\x0b\x32$.aserto.directory.common.v2.RelationH\x00R\x08relationB\x05\n\x03msg\"\x8b\x03\n\x0eImportResponse\x12L\n\x0bobject_type\x18\x01 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\nobjectType\x12K\n\npermission\x18\x02 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\npermission\x12P\n\rrelation_type\x18\x03 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\x0crelationType\x12\x43\n\x06object\x18\x04 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\x06object\x12G\n\x08relation\x18\x05 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\x08relation\"c\n\rImportCounter\x12\x12\n\x04recv\x18\x01 \x01(\x04R\x04recv\x12\x10\n\x03set\x18\x02 \x01(\x04R\x03set\x12\x16\n\x06\x64\x65lete\x18\x03 \x01(\x04R\x06\x64\x65lete\x12\x14\n\x05\x65rror\x18\x04 \x01(\x04R\x05\x65rror*?\n\x06Opcode\x12\x12\n\x0eOPCODE_UNKNOWN\x10\x00\x12\x0e\n\nOPCODE_SET\x10\x01\x12\x11\n\rOPCODE_DELETE\x10\x02\x32u\n\x08Importer\x12i\n\x06Import\x12+.aserto.directory.importer.v2.ImportRequest\x1a,.aserto.directory.importer.v2.ImportResponse\"\x00(\x01\x30\x01\x42\x90\x02\n com.aserto.directory.importer.v2B\rImporterProtoP\x01ZHgithub.com/aserto-dev/go-directory/aserto/directory/importer/v2;importer\xa2\x02\x03\x41\x44I\xaa\x02\x1c\x41serto.Directory.Importer.V2\xca\x02\x1d\x41serto\\Directory_\\Importer\\V2\xe2\x02)Aserto\\Directory_\\Importer\\V2\\GPBMetadata\xea\x02\x1f\x41serto::Directory::Importer::V2b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["aserto.directory.common.v2.ObjectType", "aserto/directory/common/v2/common.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
31
|
end
|
38
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
39
35
|
end
|
40
36
|
|
41
37
|
module Aserto
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/reader/v2/reader.proto
|
3
4
|
|
@@ -5,116 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'aserto/directory/common/v2/common_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
optional :param, :message, 1, "aserto.directory.common.v2.ObjectTypeIdentifier", json_name: "param"
|
31
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
|
32
|
-
end
|
33
|
-
add_message "aserto.directory.reader.v2.GetRelationTypesResponse" do
|
34
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.RelationType", json_name: "results"
|
35
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
|
36
|
-
end
|
37
|
-
add_message "aserto.directory.reader.v2.GetObjectRequest" do
|
38
|
-
optional :param, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "param"
|
39
|
-
end
|
40
|
-
add_message "aserto.directory.reader.v2.GetObjectResponse" do
|
41
|
-
optional :result, :message, 1, "aserto.directory.common.v2.Object", json_name: "result"
|
42
|
-
end
|
43
|
-
add_message "aserto.directory.reader.v2.GetObjectManyRequest" do
|
44
|
-
repeated :param, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "param"
|
45
|
-
end
|
46
|
-
add_message "aserto.directory.reader.v2.GetObjectManyResponse" do
|
47
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Object", json_name: "results"
|
48
|
-
end
|
49
|
-
add_message "aserto.directory.reader.v2.GetObjectsRequest" do
|
50
|
-
optional :param, :message, 1, "aserto.directory.common.v2.ObjectTypeIdentifier", json_name: "param"
|
51
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
|
52
|
-
end
|
53
|
-
add_message "aserto.directory.reader.v2.GetObjectsResponse" do
|
54
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Object", json_name: "results"
|
55
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
|
56
|
-
end
|
57
|
-
add_message "aserto.directory.reader.v2.GetRelationRequest" do
|
58
|
-
optional :param, :message, 1, "aserto.directory.common.v2.RelationIdentifier", json_name: "param"
|
59
|
-
end
|
60
|
-
add_message "aserto.directory.reader.v2.GetRelationResponse" do
|
61
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Relation", json_name: "results"
|
62
|
-
end
|
63
|
-
add_message "aserto.directory.reader.v2.GetRelationsRequest" do
|
64
|
-
optional :param, :message, 1, "aserto.directory.common.v2.RelationIdentifier", json_name: "param"
|
65
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
|
66
|
-
end
|
67
|
-
add_message "aserto.directory.reader.v2.GetRelationsResponse" do
|
68
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Relation", json_name: "results"
|
69
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
|
70
|
-
end
|
71
|
-
add_message "aserto.directory.reader.v2.GetPermissionRequest" do
|
72
|
-
optional :param, :message, 1, "aserto.directory.common.v2.PermissionIdentifier", json_name: "param"
|
73
|
-
end
|
74
|
-
add_message "aserto.directory.reader.v2.GetPermissionResponse" do
|
75
|
-
optional :result, :message, 1, "aserto.directory.common.v2.Permission", json_name: "result"
|
76
|
-
end
|
77
|
-
add_message "aserto.directory.reader.v2.GetPermissionsRequest" do
|
78
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
|
79
|
-
end
|
80
|
-
add_message "aserto.directory.reader.v2.GetPermissionsResponse" do
|
81
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Permission", json_name: "results"
|
82
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
|
83
|
-
end
|
84
|
-
add_message "aserto.directory.reader.v2.CheckPermissionRequest" do
|
85
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
86
|
-
optional :permission, :message, 2, "aserto.directory.common.v2.PermissionIdentifier", json_name: "permission"
|
87
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
88
|
-
optional :trace, :bool, 7, json_name: "trace"
|
89
|
-
end
|
90
|
-
add_message "aserto.directory.reader.v2.CheckPermissionResponse" do
|
91
|
-
optional :check, :bool, 1, json_name: "check"
|
92
|
-
repeated :trace, :string, 2, json_name: "trace"
|
93
|
-
end
|
94
|
-
add_message "aserto.directory.reader.v2.CheckRelationRequest" do
|
95
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
96
|
-
optional :relation, :message, 2, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
|
97
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
98
|
-
optional :trace, :bool, 7, json_name: "trace"
|
99
|
-
end
|
100
|
-
add_message "aserto.directory.reader.v2.CheckRelationResponse" do
|
101
|
-
optional :check, :bool, 1, json_name: "check"
|
102
|
-
repeated :trace, :string, 2, json_name: "trace"
|
103
|
-
end
|
104
|
-
add_message "aserto.directory.reader.v2.CheckResponse" do
|
105
|
-
optional :check, :bool, 1, json_name: "check"
|
106
|
-
repeated :trace, :string, 2, json_name: "trace"
|
107
|
-
end
|
108
|
-
add_message "aserto.directory.reader.v2.GetGraphRequest" do
|
109
|
-
optional :anchor, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "anchor"
|
110
|
-
optional :subject, :message, 2, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
111
|
-
optional :relation, :message, 3, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
|
112
|
-
optional :object, :message, 4, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
113
|
-
end
|
114
|
-
add_message "aserto.directory.reader.v2.GetGraphResponse" do
|
115
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.ObjectDependency", json_name: "results"
|
9
|
+
|
10
|
+
descriptor_data = "\n\'aserto/directory/reader/v2/reader.proto\x12\x1a\x61serto.directory.reader.v2\x1a\'aserto/directory/common/v2/common.proto\"^\n\x14GetObjectTypeRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\"W\n\x15GetObjectTypeResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\x06result\"Z\n\x15GetObjectTypesRequest\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x9e\x01\n\x16GetObjectTypesResponse\x12@\n\x07results\x18\x01 \x03(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"b\n\x16GetRelationTypeRequest\x12H\n\x05param\x18\x01 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x05param\"[\n\x17GetRelationTypeResponse\x12@\n\x06result\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x06result\"\xa4\x01\n\x17GetRelationTypesRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\xa2\x01\n\x18GetRelationTypesResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"V\n\x10GetObjectRequest\x12\x42\n\x05param\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\"O\n\x11GetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\"Z\n\x14GetObjectManyRequest\x12\x42\n\x05param\x18\x01 \x03(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\"U\n\x15GetObjectManyResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32\".aserto.directory.common.v2.ObjectR\x07results\"\x9e\x01\n\x11GetObjectsRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x96\x01\n\x12GetObjectsResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32\".aserto.directory.common.v2.ObjectR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"\x93\x01\n\x12GetRelationRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\x12&\n\x0cwith_objects\x18\x02 \x01(\x08H\x00R\x0bwithObjects\x88\x01\x01\x42\x0f\n\r_with_objects\"\x8d\x02\n\x13GetRelationResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.aserto.directory.common.v2.RelationR\x07results\x12V\n\x07objects\x18\x02 \x03(\x0b\x32<.aserto.directory.reader.v2.GetRelationResponse.ObjectsEntryR\x07objects\x1a^\n\x0cObjectsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x05value:\x02\x38\x01\"\x9e\x01\n\x13GetRelationsRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x9a\x01\n\x14GetRelationsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.aserto.directory.common.v2.RelationR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"^\n\x14GetPermissionRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\x05param\"W\n\x15GetPermissionResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\x06result\"Z\n\x15GetPermissionsRequest\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x9e\x01\n\x16GetPermissionsResponse\x12@\n\x07results\x18\x01 \x03(\x0b\x32&.aserto.directory.common.v2.PermissionR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"\x8e\x02\n\x16\x43heckPermissionRequest\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12P\n\npermission\x18\x02 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\npermission\x12\x44\n\x06object\x18\x03 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\x12\x14\n\x05trace\x18\x07 \x01(\x08R\x05trace\"E\n\x17\x43heckPermissionResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\"\x8a\x02\n\x14\x43heckRelationRequest\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12N\n\x08relation\x18\x02 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x08relation\x12\x44\n\x06object\x18\x03 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\x12\x14\n\x05trace\x18\x07 \x01(\x08R\x05trace\"C\n\x15\x43heckRelationResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\";\n\rCheckResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\"\xb5\x02\n\x0fGetGraphRequest\x12\x44\n\x06\x61nchor\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06\x61nchor\x12\x46\n\x07subject\x18\x02 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12N\n\x08relation\x18\x03 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x08relation\x12\x44\n\x06object\x18\x04 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\"Z\n\x10GetGraphResponse\x12\x46\n\x07results\x18\x01 \x03(\x0b\x32,.aserto.directory.common.v2.ObjectDependencyR\x07results2\x86\r\n\x06Reader\x12v\n\rGetObjectType\x12\x30.aserto.directory.reader.v2.GetObjectTypeRequest\x1a\x31.aserto.directory.reader.v2.GetObjectTypeResponse\"\x00\x12y\n\x0eGetObjectTypes\x12\x31.aserto.directory.reader.v2.GetObjectTypesRequest\x1a\x32.aserto.directory.reader.v2.GetObjectTypesResponse\"\x00\x12|\n\x0fGetRelationType\x12\x32.aserto.directory.reader.v2.GetRelationTypeRequest\x1a\x33.aserto.directory.reader.v2.GetRelationTypeResponse\"\x00\x12\x7f\n\x10GetRelationTypes\x12\x33.aserto.directory.reader.v2.GetRelationTypesRequest\x1a\x34.aserto.directory.reader.v2.GetRelationTypesResponse\"\x00\x12v\n\rGetPermission\x12\x30.aserto.directory.reader.v2.GetPermissionRequest\x1a\x31.aserto.directory.reader.v2.GetPermissionResponse\"\x00\x12y\n\x0eGetPermissions\x12\x31.aserto.directory.reader.v2.GetPermissionsRequest\x1a\x32.aserto.directory.reader.v2.GetPermissionsResponse\"\x00\x12j\n\tGetObject\x12,.aserto.directory.reader.v2.GetObjectRequest\x1a-.aserto.directory.reader.v2.GetObjectResponse\"\x00\x12v\n\rGetObjectMany\x12\x30.aserto.directory.reader.v2.GetObjectManyRequest\x1a\x31.aserto.directory.reader.v2.GetObjectManyResponse\"\x00\x12m\n\nGetObjects\x12-.aserto.directory.reader.v2.GetObjectsRequest\x1a..aserto.directory.reader.v2.GetObjectsResponse\"\x00\x12p\n\x0bGetRelation\x12..aserto.directory.reader.v2.GetRelationRequest\x1a/.aserto.directory.reader.v2.GetRelationResponse\"\x00\x12s\n\x0cGetRelations\x12/.aserto.directory.reader.v2.GetRelationsRequest\x1a\x30.aserto.directory.reader.v2.GetRelationsResponse\"\x00\x12|\n\x0f\x43heckPermission\x12\x32.aserto.directory.reader.v2.CheckPermissionRequest\x1a\x33.aserto.directory.reader.v2.CheckPermissionResponse\"\x00\x12v\n\rCheckRelation\x12\x30.aserto.directory.reader.v2.CheckRelationRequest\x1a\x31.aserto.directory.reader.v2.CheckRelationResponse\"\x00\x12g\n\x08GetGraph\x12+.aserto.directory.reader.v2.GetGraphRequest\x1a,.aserto.directory.reader.v2.GetGraphResponse\"\x00\x42\x80\x02\n\x1e\x63om.aserto.directory.reader.v2B\x0bReaderProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/reader/v2;reader\xa2\x02\x03\x41\x44R\xaa\x02\x1a\x41serto.Directory.Reader.V2\xca\x02\x1b\x41serto\\Directory_\\Reader\\V2\xe2\x02\'Aserto\\Directory_\\Reader\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Reader::V2b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["aserto.directory.common.v2.ObjectTypeIdentifier", "aserto/directory/common/v2/common.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
116
31
|
end
|
117
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
118
35
|
end
|
119
36
|
|
120
37
|
module Aserto
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v2/group.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n&aserto/directory/schema/v2/group.proto\x12\x1a\x61serto.directory.schema.v2\"6\n\x0fGroupProperties\x12#\n\rconnection_id\x18\x01 \x01(\tR\x0c\x63onnectionIdB\xff\x01\n\x1e\x63om.aserto.directory.schema.v2B\nGroupProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module Aserto
|
35
|
+
module Directory
|
36
|
+
module Schema
|
37
|
+
module V2
|
38
|
+
GroupProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.GroupProperties").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v2/identity.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n)aserto/directory/schema/v2/identity.proto\x12\x1a\x61serto.directory.schema.v2\"\xc6\x01\n\x12IdentityProperties\x12<\n\x04kind\x18\x01 \x01(\x0e\x32(.aserto.directory.schema.v2.IdentityKindR\x04kind\x12\x1a\n\x08provider\x18\x02 \x01(\tR\x08provider\x12\x1a\n\x08verified\x18\x03 \x01(\x08R\x08verified\x12(\n\rconnection_id\x18\x04 \x01(\tH\x00R\x0c\x63onnectionId\x88\x01\x01\x42\x10\n\x0e_connection_id*\xbd\x01\n\x0cIdentityKind\x12\x19\n\x15IDENTITY_KIND_UNKNOWN\x10\x00\x12\x15\n\x11IDENTITY_KIND_PID\x10\x01\x12\x17\n\x13IDENTITY_KIND_EMAIL\x10\x02\x12\x1a\n\x16IDENTITY_KIND_USERNAME\x10\x03\x12\x14\n\x10IDENTITY_KIND_DN\x10\x04\x12\x17\n\x13IDENTITY_KIND_PHONE\x10\x05\x12\x17\n\x13IDENTITY_KIND_EMPID\x10\x06\x42\x82\x02\n\x1e\x63om.aserto.directory.schema.v2B\rIdentityProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module Aserto
|
35
|
+
module Directory
|
36
|
+
module Schema
|
37
|
+
module V2
|
38
|
+
IdentityProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.IdentityProperties").msgclass
|
39
|
+
IdentityKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.IdentityKind").enummodule
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v2/user.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n%aserto/directory/schema/v2/user.proto\x12\x1a\x61serto.directory.schema.v2\"\xbf\x01\n\x0eUserProperties\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x02 \x01(\tR\x07picture\x12>\n\x06status\x18\x03 \x01(\x0e\x32&.aserto.directory.schema.v2.UserStatusR\x06status\x12\x18\n\x07\x65nabled\x18\x04 \x01(\x08R\x07\x65nabled\x12#\n\rconnection_id\x18\x05 \x01(\tR\x0c\x63onnectionId*\x84\x02\n\nUserStatus\x12\x17\n\x13USER_STATUS_UNKNOWN\x10\x00\x12\x16\n\x12USER_STATUS_STAGED\x10\x01\x12\x1b\n\x17USER_STATUS_PROVISIONED\x10\x02\x12\x16\n\x12USER_STATUS_ACTIVE\x10\x03\x12\x18\n\x14USER_STATUS_RECOVERY\x10\x04\x12 \n\x1cUSER_STATUS_PASSWORD_EXPIRED\x10\x05\x12\x1a\n\x16USER_STATUS_LOCKED_OUT\x10\x06\x12\x19\n\x15USER_STATUS_SUSPENDED\x10\x07\x12\x1d\n\x19USER_STATUS_DEPROVISIONED\x10\x08\x42\xfe\x01\n\x1e\x63om.aserto.directory.schema.v2B\tUserProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module Aserto
|
35
|
+
module Directory
|
36
|
+
module Schema
|
37
|
+
module V2
|
38
|
+
UserProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.UserProperties").msgclass
|
39
|
+
UserStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.UserStatus").enummodule
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/writer/v2/writer.proto
|
3
4
|
|
@@ -6,69 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/protobuf/empty_pb'
|
7
8
|
require 'aserto/directory/common/v2/common_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
add_message "aserto.directory.writer.v2.DeleteRelationTypeResponse" do
|
33
|
-
optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
|
34
|
-
end
|
35
|
-
add_message "aserto.directory.writer.v2.SetPermissionRequest" do
|
36
|
-
optional :permission, :message, 1, "aserto.directory.common.v2.Permission", json_name: "permission"
|
37
|
-
end
|
38
|
-
add_message "aserto.directory.writer.v2.SetPermissionResponse" do
|
39
|
-
optional :result, :message, 1, "aserto.directory.common.v2.Permission", json_name: "result"
|
40
|
-
end
|
41
|
-
add_message "aserto.directory.writer.v2.DeletePermissionRequest" do
|
42
|
-
optional :param, :message, 1, "aserto.directory.common.v2.PermissionIdentifier", json_name: "param"
|
43
|
-
end
|
44
|
-
add_message "aserto.directory.writer.v2.DeletePermissionResponse" do
|
45
|
-
optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
|
46
|
-
end
|
47
|
-
add_message "aserto.directory.writer.v2.SetObjectRequest" do
|
48
|
-
optional :object, :message, 1, "aserto.directory.common.v2.Object", json_name: "object"
|
49
|
-
end
|
50
|
-
add_message "aserto.directory.writer.v2.SetObjectResponse" do
|
51
|
-
optional :result, :message, 1, "aserto.directory.common.v2.Object", json_name: "result"
|
52
|
-
end
|
53
|
-
add_message "aserto.directory.writer.v2.DeleteObjectRequest" do
|
54
|
-
optional :param, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "param"
|
55
|
-
end
|
56
|
-
add_message "aserto.directory.writer.v2.DeleteObjectResponse" do
|
57
|
-
optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
|
58
|
-
end
|
59
|
-
add_message "aserto.directory.writer.v2.SetRelationRequest" do
|
60
|
-
optional :relation, :message, 1, "aserto.directory.common.v2.Relation", json_name: "relation"
|
61
|
-
end
|
62
|
-
add_message "aserto.directory.writer.v2.SetRelationResponse" do
|
63
|
-
optional :result, :message, 1, "aserto.directory.common.v2.Relation", json_name: "result"
|
64
|
-
end
|
65
|
-
add_message "aserto.directory.writer.v2.DeleteRelationRequest" do
|
66
|
-
optional :param, :message, 1, "aserto.directory.common.v2.RelationIdentifier", json_name: "param"
|
67
|
-
end
|
68
|
-
add_message "aserto.directory.writer.v2.DeleteRelationResponse" do
|
69
|
-
optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
|
10
|
+
|
11
|
+
descriptor_data = "\n\'aserto/directory/writer/v2/writer.proto\x12\x1a\x61serto.directory.writer.v2\x1a\x1bgoogle/protobuf/empty.proto\x1a\'aserto/directory/common/v2/common.proto\"_\n\x14SetObjectTypeRequest\x12G\n\x0bobject_type\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\nobjectType\"W\n\x15SetObjectTypeResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\x06result\"a\n\x17\x44\x65leteObjectTypeRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\"J\n\x18\x44\x65leteObjectTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"g\n\x16SetRelationTypeRequest\x12M\n\rrelation_type\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x0crelationType\"[\n\x17SetRelationTypeResponse\x12@\n\x06result\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x06result\"e\n\x19\x44\x65leteRelationTypeRequest\x12H\n\x05param\x18\x01 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x05param\"L\n\x1a\x44\x65leteRelationTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"^\n\x14SetPermissionRequest\x12\x46\n\npermission\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\npermission\"W\n\x15SetPermissionResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\x06result\"a\n\x17\x44\x65letePermissionRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\x05param\"J\n\x18\x44\x65letePermissionResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"N\n\x10SetObjectRequest\x12:\n\x06object\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06object\"O\n\x11SetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\"Y\n\x13\x44\x65leteObjectRequest\x12\x42\n\x05param\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\"F\n\x14\x44\x65leteObjectResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"V\n\x12SetRelationRequest\x12@\n\x08relation\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v2.RelationR\x08relation\"S\n\x13SetRelationResponse\x12<\n\x06result\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v2.RelationR\x06result\"]\n\x15\x44\x65leteRelationRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\"H\n\x16\x44\x65leteRelationResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result2\xce\t\n\x06Writer\x12v\n\rSetObjectType\x12\x30.aserto.directory.writer.v2.SetObjectTypeRequest\x1a\x31.aserto.directory.writer.v2.SetObjectTypeResponse\"\x00\x12\x7f\n\x10\x44\x65leteObjectType\x12\x33.aserto.directory.writer.v2.DeleteObjectTypeRequest\x1a\x34.aserto.directory.writer.v2.DeleteObjectTypeResponse\"\x00\x12|\n\x0fSetRelationType\x12\x32.aserto.directory.writer.v2.SetRelationTypeRequest\x1a\x33.aserto.directory.writer.v2.SetRelationTypeResponse\"\x00\x12\x85\x01\n\x12\x44\x65leteRelationType\x12\x35.aserto.directory.writer.v2.DeleteRelationTypeRequest\x1a\x36.aserto.directory.writer.v2.DeleteRelationTypeResponse\"\x00\x12v\n\rSetPermission\x12\x30.aserto.directory.writer.v2.SetPermissionRequest\x1a\x31.aserto.directory.writer.v2.SetPermissionResponse\"\x00\x12\x7f\n\x10\x44\x65letePermission\x12\x33.aserto.directory.writer.v2.DeletePermissionRequest\x1a\x34.aserto.directory.writer.v2.DeletePermissionResponse\"\x00\x12j\n\tSetObject\x12,.aserto.directory.writer.v2.SetObjectRequest\x1a-.aserto.directory.writer.v2.SetObjectResponse\"\x00\x12s\n\x0c\x44\x65leteObject\x12/.aserto.directory.writer.v2.DeleteObjectRequest\x1a\x30.aserto.directory.writer.v2.DeleteObjectResponse\"\x00\x12p\n\x0bSetRelation\x12..aserto.directory.writer.v2.SetRelationRequest\x1a/.aserto.directory.writer.v2.SetRelationResponse\"\x00\x12y\n\x0e\x44\x65leteRelation\x12\x31.aserto.directory.writer.v2.DeleteRelationRequest\x1a\x32.aserto.directory.writer.v2.DeleteRelationResponse\"\x00\x42\x80\x02\n\x1e\x63om.aserto.directory.writer.v2B\x0bWriterProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/writer/v2;writer\xa2\x02\x03\x41\x44W\xaa\x02\x1a\x41serto.Directory.Writer.V2\xca\x02\x1b\x41serto\\Directory_\\Writer\\V2\xe2\x02\'Aserto\\Directory_\\Writer\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Writer::V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["aserto.directory.common.v2.ObjectType", "aserto/directory/common/v2/common.proto"],
|
27
|
+
["google.protobuf.Empty", "google/protobuf/empty.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
70
33
|
end
|
71
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
72
37
|
end
|
73
38
|
|
74
39
|
module Aserto
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aserto-directory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aserto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -24,68 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.46'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.15.0
|
34
|
-
- - "<"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '3.0'
|
37
|
-
type: :development
|
38
|
-
prerelease: false
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.15.0
|
44
|
-
- - "<"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '3.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: grpc_mock
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0.4'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '0.4'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rspec
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '3.0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rubocop-rspec
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '2.11'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '2.11'
|
89
27
|
description: Ruby generated GRPC client for Aserto Directory
|
90
28
|
email:
|
91
29
|
- aserto@aserto.com
|
@@ -103,6 +41,9 @@ files:
|
|
103
41
|
- generated/aserto/directory/importer/v2/importer_services_pb.rb
|
104
42
|
- generated/aserto/directory/reader/v2/reader_pb.rb
|
105
43
|
- generated/aserto/directory/reader/v2/reader_services_pb.rb
|
44
|
+
- generated/aserto/directory/schema/v2/group_pb.rb
|
45
|
+
- generated/aserto/directory/schema/v2/identity_pb.rb
|
46
|
+
- generated/aserto/directory/schema/v2/user_pb.rb
|
106
47
|
- generated/aserto/directory/writer/v2/writer_pb.rb
|
107
48
|
- generated/aserto/directory/writer/v2/writer_services_pb.rb
|
108
49
|
- lib/aserto/directory.rb
|
@@ -125,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
66
|
requirements:
|
126
67
|
- - ">="
|
127
68
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
69
|
+
version: 3.0.0
|
129
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
71
|
requirements:
|
131
72
|
- - ">="
|
132
73
|
- !ruby/object:Gem::Version
|
133
74
|
version: '0'
|
134
75
|
requirements: []
|
135
|
-
rubygems_version: 3.3.
|
76
|
+
rubygems_version: 3.3.26
|
136
77
|
signing_key:
|
137
78
|
specification_version: 4
|
138
79
|
summary: Aserto Directory GRPC Client
|