aserto-directory 0.0.2 → 0.30.0
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 -92
- data/generated/aserto/directory/common/v3/common_pb.rb +55 -0
- data/generated/aserto/directory/exporter/v2/exporter_pb.rb +26 -28
- data/generated/aserto/directory/exporter/v3/exporter_pb.rb +49 -0
- data/generated/aserto/directory/exporter/v3/exporter_services_pb.rb +28 -0
- data/generated/aserto/directory/importer/v2/importer_pb.rb +25 -29
- data/generated/aserto/directory/importer/v3/importer_pb.rb +48 -0
- data/generated/aserto/directory/importer/v3/importer_services_pb.rb +28 -0
- data/generated/aserto/directory/model/v3/model_pb.rb +60 -0
- data/generated/aserto/directory/model/v3/model_services_pb.rb +32 -0
- data/generated/aserto/directory/openapi/v3/openapi_pb.rb +41 -0
- data/generated/aserto/directory/reader/v2/reader_pb.rb +25 -110
- data/generated/aserto/directory/reader/v2/reader_services_pb.rb +2 -1
- data/generated/aserto/directory/reader/v3/reader_pb.rb +66 -0
- data/generated/aserto/directory/reader/v3/reader_services_pb.rb +42 -0
- data/generated/aserto/directory/schema/v2/group_pb.rb +24 -4
- data/generated/aserto/directory/schema/v2/identity_pb.rb +24 -16
- data/generated/aserto/directory/schema/v2/tenant_pb.rb +48 -0
- data/generated/aserto/directory/schema/v2/user_pb.rb +24 -19
- data/generated/aserto/directory/schema/v3/group_pb.rb +42 -0
- data/generated/aserto/directory/schema/v3/identity_pb.rb +43 -0
- data/generated/aserto/directory/schema/v3/tenant_pb.rb +48 -0
- data/generated/aserto/directory/schema/v3/user_pb.rb +43 -0
- data/generated/aserto/directory/writer/v2/writer_pb.rb +26 -61
- data/generated/aserto/directory/writer/v3/writer_pb.rb +58 -0
- data/generated/aserto/directory/writer/v3/writer_services_pb.rb +33 -0
- data/generated/google/api/annotations_pb.rb +41 -0
- data/generated/google/api/field_behavior_pb.rb +40 -0
- data/generated/google/api/http_pb.rb +40 -0
- data/generated/protoc-gen-openapiv2/options/annotations_pb.rb +45 -0
- data/generated/protoc-gen-openapiv2/options/openapiv2_pb.rb +69 -0
- metadata +28 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f21aab2c02df378321950898cc7025004ee56e9f8a5c0ed1ecccfac9a2e82e4c
|
4
|
+
data.tar.gz: 4723909ec62f6d128c8835ef3f91019c9464b8dadc21ac62537f877d67e37393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f495ccd21d95eee8e2ca68589b25628bf6f38de6141b6b019a1ddfa337609b37068932d3640986c5c20f27b229306c9202ae8d8e514abcd268c7fac548a2086
|
7
|
+
data.tar.gz: 4c329c6f4b9efe20c41a323f8d613b6c09177c1d217ce0e8bb01ad58f556e86b7b380018001a93d418046fd67d3a7681871f89912481fb913dfdabf6cbd97ea5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.30.0
|
@@ -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,100 +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
|
-
optional :display_name, :string, 4, json_name: "displayName"
|
33
|
-
optional :ordinal, :int32, 5, json_name: "ordinal"
|
34
|
-
optional :status, :uint32, 6, json_name: "status"
|
35
|
-
repeated :unions, :string, 7, json_name: "unions"
|
36
|
-
repeated :permissions, :string, 8, json_name: "permissions"
|
37
|
-
optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
|
38
|
-
optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
|
39
|
-
optional :hash, :string, 23, json_name: "hash"
|
40
|
-
end
|
41
|
-
add_message "aserto.directory.common.v2.Object" do
|
42
|
-
optional :key, :string, 2, json_name: "key"
|
43
|
-
optional :type, :string, 3, json_name: "type"
|
44
|
-
optional :display_name, :string, 4, json_name: "displayName"
|
45
|
-
optional :properties, :message, 5, "google.protobuf.Struct", json_name: "properties"
|
46
|
-
optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
|
47
|
-
optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
|
48
|
-
optional :hash, :string, 23, json_name: "hash"
|
49
|
-
end
|
50
|
-
add_message "aserto.directory.common.v2.Relation" do
|
51
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
52
|
-
optional :relation, :string, 2, json_name: "relation"
|
53
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
54
|
-
optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
|
55
|
-
optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
|
56
|
-
optional :hash, :string, 23, json_name: "hash"
|
57
|
-
end
|
58
|
-
add_message "aserto.directory.common.v2.ObjectDependency" do
|
59
|
-
optional :object_type, :string, 1, json_name: "objectType"
|
60
|
-
optional :object_key, :string, 4, json_name: "objectKey"
|
61
|
-
optional :relation, :string, 5, json_name: "relation"
|
62
|
-
optional :subject_type, :string, 7, json_name: "subjectType"
|
63
|
-
optional :subject_key, :string, 10, json_name: "subjectKey"
|
64
|
-
optional :depth, :int32, 11, json_name: "depth"
|
65
|
-
optional :is_cycle, :bool, 12, json_name: "isCycle"
|
66
|
-
repeated :path, :string, 13, json_name: "path"
|
67
|
-
end
|
68
|
-
add_message "aserto.directory.common.v2.ObjectTypeIdentifier" do
|
69
|
-
proto3_optional :name, :string, 2, json_name: "name"
|
70
|
-
end
|
71
|
-
add_message "aserto.directory.common.v2.PermissionIdentifier" do
|
72
|
-
proto3_optional :name, :string, 2, json_name: "name"
|
73
|
-
end
|
74
|
-
add_message "aserto.directory.common.v2.RelationTypeIdentifier" do
|
75
|
-
proto3_optional :name, :string, 2, json_name: "name"
|
76
|
-
proto3_optional :object_type, :string, 3, json_name: "objectType"
|
77
|
-
end
|
78
|
-
add_message "aserto.directory.common.v2.ObjectIdentifier" do
|
79
|
-
proto3_optional :type, :string, 1, json_name: "type"
|
80
|
-
proto3_optional :key, :string, 3, json_name: "key"
|
81
|
-
end
|
82
|
-
add_message "aserto.directory.common.v2.RelationIdentifier" do
|
83
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
84
|
-
optional :relation, :message, 2, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
|
85
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
86
|
-
end
|
87
|
-
add_message "aserto.directory.common.v2.PaginationRequest" do
|
88
|
-
optional :size, :int32, 1, json_name: "size"
|
89
|
-
optional :token, :string, 2, json_name: "token"
|
90
|
-
end
|
91
|
-
add_message "aserto.directory.common.v2.PaginationResponse" do
|
92
|
-
optional :next_token, :string, 1, json_name: "nextToken"
|
93
|
-
optional :result_size, :int32, 2, json_name: "resultSize"
|
94
|
-
end
|
95
|
-
add_enum "aserto.directory.common.v2.Flag" do
|
96
|
-
value :FLAG_UNKNOWN, 0
|
97
|
-
value :FLAG_HIDDEN, 1
|
98
|
-
value :FLAG_READONLY, 2
|
99
|
-
value :FLAG_SYSTEM, 4
|
100
|
-
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
|
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}"
|
101
33
|
end
|
102
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."
|
103
37
|
end
|
104
38
|
|
105
39
|
module Aserto
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/common/v3/common.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/protobuf/struct_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'buf/validate/validate_pb'
|
11
|
+
|
12
|
+
|
13
|
+
descriptor_data = "\n\'aserto/directory/common/v3/common.proto\x12\x1a\x61serto.directory.common.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1b\x62uf/validate/validate.proto\"\x8a\x05\n\x06Object\x12\xf7\x01\n\x04type\x18\x01 \x01(\tB\xe2\x01\xe2\x41\x01\x02\xbaH\xda\x01r\x02\x18@\xba\x01\xcf\x01\n\x0bobject.type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\x04type\x12\x81\x01\n\x02id\x18\x02 \x01(\tBq\xe2\x41\x01\x02\xbaHjr\x03\x18\x80\x02\xba\x01_\n\tobject.id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x02id\x12\'\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01R\x0b\x64isplayName\x12=\n\nproperties\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x04\xe2\x41\x01\x01R\nproperties\x12?\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\tcreatedAt\x12?\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\tupdatedAt\x12\x18\n\x04\x65tag\x18\x17 \x01(\tB\x04\xe2\x41\x01\x01R\x04\x65tag\"\xa7\x0c\n\x08Relation\x12\x8d\x02\n\x0bobject_type\x18\x01 \x01(\tB\xeb\x01\xe2\x41\x01\x02\xbaH\xe3\x01r\x02\x18@\xba\x01\xd8\x01\n\x14relation.object_type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\nobjectType\x12\x97\x01\n\tobject_id\x18\x02 \x01(\tBz\xe2\x41\x01\x02\xbaHsr\x03\x18\x80\x02\xba\x01h\n\x12relation.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12\x85\x02\n\x08relation\x18\x03 \x01(\tB\xe8\x01\xe2\x41\x01\x02\xbaH\xe0\x01r\x02\x18@\xba\x01\xd5\x01\n\x11relation.relation\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\x08relation\x12\x90\x02\n\x0csubject_type\x18\x04 \x01(\tB\xec\x01\xe2\x41\x01\x02\xbaH\xe4\x01r\x02\x18@\xba\x01\xd9\x01\n\x15relation.subject_type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\x0bsubjectType\x12\x9a\x01\n\nsubject_id\x18\x05 \x01(\tB{\xe2\x41\x01\x02\xbaHtr\x03\x18\x80\x02\xba\x01i\n\x13relation.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\tsubjectId\x12\x9c\x02\n\x10subject_relation\x18\x06 \x01(\tB\xf0\x01\xe2\x41\x01\x01\xbaH\xe8\x01r\x02\x18@\xba\x01\xdd\x01\n\x19relation.subject_relation\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xd0\x01\x01R\x0fsubjectRelation\x12?\n\ncreated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\tcreatedAt\x12?\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\tupdatedAt\x12\x18\n\x04\x65tag\x18\x17 \x01(\tB\x04\xe2\x41\x01\x01R\x04\x65tag\"\xd4\x02\n\x10ObjectDependency\x12%\n\x0bobject_type\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\nobjectType\x12!\n\tobject_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03R\x08objectId\x12 \n\x08relation\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03R\x08relation\x12\'\n\x0csubject_type\x18\x04 \x01(\tB\x04\xe2\x41\x01\x03R\x0bsubjectType\x12#\n\nsubject_id\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\tsubjectId\x12/\n\x10subject_relation\x18\x06 \x01(\tB\x04\xe2\x41\x01\x03R\x0fsubjectRelation\x12\x1a\n\x05\x64\x65pth\x18\x07 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x05\x64\x65pth\x12\x1f\n\x08is_cycle\x18\x08 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x07isCycle\x12\x18\n\x04path\x18\t \x03(\tB\x04\xe2\x41\x01\x03R\x04path\"\xcf\x03\n\x10ObjectIdentifier\x12\x96\x02\n\x0bobject_type\x18\x01 \x01(\tB\xf4\x01\xe2\x41\x01\x02\xbaH\xec\x01r\x02\x18@\xba\x01\xe1\x01\n\x1dobject_identifier.object_type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\nobjectType\x12\xa1\x01\n\tobject_id\x18\x02 \x01(\tB\x83\x01\xe2\x41\x01\x02\xbaH|r\x03\x18\x80\x02\xba\x01q\n\x1bobject_identifier.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\"R\n\x11PaginationRequest\x12!\n\x04size\x18\x01 \x01(\x05\x42\r\xe2\x41\x01\x01\xbaH\x06\x1a\x04\x18\x64(\x01R\x04size\x12\x1a\n\x05token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\x05token\"9\n\x12PaginationResponse\x12#\n\nnext_token\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\tnextToken\"r\n\nObjectType\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\x12\"\n\trelations\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01R\trelations\x12&\n\x0bpermissions\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01R\x0bpermissionsB\x80\x02\n\x1e\x63om.aserto.directory.common.v3B\x0b\x43ommonProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/common/v3;common\xa2\x02\x03\x41\x44\x43\xaa\x02\x1a\x41serto.Directory.Common.V3\xca\x02\x1b\x41serto\\Directory_\\Common\\V3\xe2\x02\'Aserto\\Directory_\\Common\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Common::V3b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Aserto
|
42
|
+
module Directory
|
43
|
+
module Common
|
44
|
+
module V3
|
45
|
+
Object = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.Object").msgclass
|
46
|
+
Relation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.Relation").msgclass
|
47
|
+
ObjectDependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.ObjectDependency").msgclass
|
48
|
+
ObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.ObjectIdentifier").msgclass
|
49
|
+
PaginationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.PaginationRequest").msgclass
|
50
|
+
PaginationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.PaginationResponse").msgclass
|
51
|
+
ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v3.ObjectType").msgclass
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
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/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
|
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
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/exporter/v3/exporter.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'aserto/directory/common/v3/common_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n+aserto/directory/exporter/v3/exporter.proto\x12\x1c\x61serto.directory.exporter.v3\x1a\'aserto/directory/common/v3/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\"\x99\x01\n\x0e\x45xportResponse\x12<\n\x06object\x18\x02 \x01(\x0b\x32\".aserto.directory.common.v3.ObjectH\x00R\x06object\x12\x42\n\x08relation\x18\x04 \x01(\x0b\x32$.aserto.directory.common.v3.RelationH\x00R\x08relationB\x05\n\x03msg*a\n\x06Option\x12\x12\n\x0eOPTION_UNKNOWN\x10\x00\x12\x17\n\x13OPTION_DATA_OBJECTS\x10\x08\x12\x19\n\x15OPTION_DATA_RELATIONS\x10\x10\x12\x0f\n\x0bOPTION_DATA\x10\x18\x32s\n\x08\x45xporter\x12g\n\x06\x45xport\x12+.aserto.directory.exporter.v3.ExportRequest\x1a,.aserto.directory.exporter.v3.ExportResponse\"\x00\x30\x01\x42\x90\x02\n com.aserto.directory.exporter.v3B\rExporterProtoP\x01ZHgithub.com/aserto-dev/go-directory/aserto/directory/exporter/v3;exporter\xa2\x02\x03\x41\x44\x45\xaa\x02\x1c\x41serto.Directory.Exporter.V3\xca\x02\x1d\x41serto\\Directory_\\Exporter\\V3\xe2\x02)Aserto\\Directory_\\Exporter\\V3\\GPBMetadata\xea\x02\x1f\x41serto::Directory::Exporter::V3b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
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.v3.Object", "aserto/directory/common/v3/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}"
|
33
|
+
end
|
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."
|
37
|
+
end
|
38
|
+
|
39
|
+
module Aserto
|
40
|
+
module Directory
|
41
|
+
module Exporter
|
42
|
+
module V3
|
43
|
+
ExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.exporter.v3.ExportRequest").msgclass
|
44
|
+
ExportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.exporter.v3.ExportResponse").msgclass
|
45
|
+
Option = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.exporter.v3.Option").enummodule
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: aserto/directory/exporter/v3/exporter.proto for package 'Aserto.Directory.Exporter.V3'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'aserto/directory/exporter/v3/exporter_pb'
|
6
|
+
|
7
|
+
module Aserto
|
8
|
+
module Directory
|
9
|
+
module Exporter
|
10
|
+
module V3
|
11
|
+
module Exporter
|
12
|
+
class Service
|
13
|
+
|
14
|
+
include ::GRPC::GenericService
|
15
|
+
|
16
|
+
self.marshal_class_method = :encode
|
17
|
+
self.unmarshal_class_method = :decode
|
18
|
+
self.service_name = 'aserto.directory.exporter.v3.Exporter'
|
19
|
+
|
20
|
+
rpc :Export, ::Aserto::Directory::Exporter::V3::ExportRequest, stream(::Aserto::Directory::Exporter::V3::ExportResponse)
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
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/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
|
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
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/importer/v3/importer.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'aserto/directory/common/v3/common_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n+aserto/directory/importer/v3/importer.proto\x12\x1c\x61serto.directory.importer.v3\x1a\'aserto/directory/common/v3/common.proto\"\xd7\x01\n\rImportRequest\x12=\n\x07op_code\x18\x01 \x01(\x0e\x32$.aserto.directory.importer.v3.OpcodeR\x06opCode\x12<\n\x06object\x18\x05 \x01(\x0b\x32\".aserto.directory.common.v3.ObjectH\x00R\x06object\x12\x42\n\x08relation\x18\x06 \x01(\x0b\x32$.aserto.directory.common.v3.RelationH\x00R\x08relationB\x05\n\x03msg\"\x9e\x01\n\x0eImportResponse\x12\x43\n\x06object\x18\x01 \x01(\x0b\x32+.aserto.directory.importer.v3.ImportCounterR\x06object\x12G\n\x08relation\x18\x02 \x01(\x0b\x32+.aserto.directory.importer.v3.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.v3.ImportRequest\x1a,.aserto.directory.importer.v3.ImportResponse\"\x00(\x01\x30\x01\x42\x90\x02\n com.aserto.directory.importer.v3B\rImporterProtoP\x01ZHgithub.com/aserto-dev/go-directory/aserto/directory/importer/v3;importer\xa2\x02\x03\x41\x44I\xaa\x02\x1c\x41serto.Directory.Importer.V3\xca\x02\x1d\x41serto\\Directory_\\Importer\\V3\xe2\x02)Aserto\\Directory_\\Importer\\V3\\GPBMetadata\xea\x02\x1f\x41serto::Directory::Importer::V3b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
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.v3.Object", "aserto/directory/common/v3/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}"
|
31
|
+
end
|
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."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Aserto
|
38
|
+
module Directory
|
39
|
+
module Importer
|
40
|
+
module V3
|
41
|
+
ImportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v3.ImportRequest").msgclass
|
42
|
+
ImportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v3.ImportResponse").msgclass
|
43
|
+
ImportCounter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v3.ImportCounter").msgclass
|
44
|
+
Opcode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v3.Opcode").enummodule
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: aserto/directory/importer/v3/importer.proto for package 'Aserto.Directory.Importer.V3'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'aserto/directory/importer/v3/importer_pb'
|
6
|
+
|
7
|
+
module Aserto
|
8
|
+
module Directory
|
9
|
+
module Importer
|
10
|
+
module V3
|
11
|
+
module Importer
|
12
|
+
class Service
|
13
|
+
|
14
|
+
include ::GRPC::GenericService
|
15
|
+
|
16
|
+
self.marshal_class_method = :encode
|
17
|
+
self.unmarshal_class_method = :decode
|
18
|
+
self.service_name = 'aserto.directory.importer.v3.Importer'
|
19
|
+
|
20
|
+
rpc :Import, stream(::Aserto::Directory::Importer::V3::ImportRequest), stream(::Aserto::Directory::Importer::V3::ImportResponse)
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/model/v3/model.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/protobuf/empty_pb'
|
10
|
+
require 'google/protobuf/struct_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'protoc-gen-openapiv2/options/annotations_pb'
|
13
|
+
require 'buf/validate/validate_pb'
|
14
|
+
|
15
|
+
|
16
|
+
descriptor_data = "\n%aserto/directory/model/v3/model.proto\x12\x19\x61serto.directory.model.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1b\x62uf/validate/validate.proto\"B\n\x12GetManifestRequest\x12,\n\x05\x65mpty\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x05\x65mpty\"\xc7\x01\n\x13GetManifestResponse\x12\x41\n\x08metadata\x18\x01 \x01(\x0b\x32#.aserto.directory.model.v3.MetadataH\x00R\x08metadata\x12\x35\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1f.aserto.directory.model.v3.BodyH\x00R\x04\x62ody\x12/\n\x05model\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x05modelB\x05\n\x03msg\"R\n\x12SetManifestRequest\x12\x35\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x1f.aserto.directory.model.v3.BodyH\x00R\x04\x62odyB\x05\n\x03msg\"E\n\x13SetManifestResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"E\n\x15\x44\x65leteManifestRequest\x12,\n\x05\x65mpty\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x05\x65mpty\"H\n\x16\x44\x65leteManifestResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"e\n\x08Metadata\x12?\n\nupdated_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\tupdatedAt\x12\x18\n\x04\x65tag\x18\x17 \x01(\tB\x04\xe2\x41\x01\x01R\x04\x65tag\"%\n\x04\x42ody\x12\x1d\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\t\xbaH\x06z\x04\x18\x80\x80\x04R\x04\x64\x61ta2\x88\x04\n\x05Model\x12v\n\x0bGetManifest\x12-.aserto.directory.model.v3.GetManifestRequest\x1a..aserto.directory.model.v3.GetManifestResponse\"\x06\x82\xd3\xe4\x93\x02\x00\x30\x01\x12v\n\x0bSetManifest\x12-.aserto.directory.model.v3.SetManifestRequest\x1a..aserto.directory.model.v3.SetManifestResponse\"\x06\x82\xd3\xe4\x93\x02\x00(\x01\x12\x8e\x02\n\x0e\x44\x65leteManifest\x12\x30.aserto.directory.model.v3.DeleteManifestRequest\x1a\x31.aserto.directory.model.v3.DeleteManifestResponse\"\x96\x01\x92\x41q\n\tdirectory\x12\x0f\x44\x65lete manifest\x1a\x10\x44\x65lete manifest.*\x1c\x64irectory.v3.manifest.deleteb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1c*\x1a/api/v3/directory/manifestB\xf8\x01\n\x1d\x63om.aserto.directory.model.v3B\nModelProtoP\x01ZBgithub.com/aserto-dev/go-directory/aserto/directory/model/v3;model\xa2\x02\x03\x41\x44M\xaa\x02\x19\x41serto.Directory.Model.V3\xca\x02\x1a\x41serto\\Directory_\\Model\\V3\xe2\x02&Aserto\\Directory_\\Model\\V3\\GPBMetadata\xea\x02\x1c\x41serto::Directory::Model::V3b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.protobuf.Empty", "google/protobuf/empty.proto"],
|
32
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
43
|
+
end
|
44
|
+
|
45
|
+
module Aserto
|
46
|
+
module Directory
|
47
|
+
module Model
|
48
|
+
module V3
|
49
|
+
GetManifestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.GetManifestRequest").msgclass
|
50
|
+
GetManifestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.GetManifestResponse").msgclass
|
51
|
+
SetManifestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.SetManifestRequest").msgclass
|
52
|
+
SetManifestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.SetManifestResponse").msgclass
|
53
|
+
DeleteManifestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.DeleteManifestRequest").msgclass
|
54
|
+
DeleteManifestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.DeleteManifestResponse").msgclass
|
55
|
+
Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.Metadata").msgclass
|
56
|
+
Body = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.model.v3.Body").msgclass
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: aserto/directory/model/v3/model.proto for package 'Aserto.Directory.Model.V3'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'aserto/directory/model/v3/model_pb'
|
6
|
+
|
7
|
+
module Aserto
|
8
|
+
module Directory
|
9
|
+
module Model
|
10
|
+
module V3
|
11
|
+
module Model
|
12
|
+
# import "aserto/directory/common/v3/common.proto";
|
13
|
+
#
|
14
|
+
class Service
|
15
|
+
|
16
|
+
include ::GRPC::GenericService
|
17
|
+
|
18
|
+
self.marshal_class_method = :encode
|
19
|
+
self.unmarshal_class_method = :decode
|
20
|
+
self.service_name = 'aserto.directory.model.v3.Model'
|
21
|
+
|
22
|
+
rpc :GetManifest, ::Aserto::Directory::Model::V3::GetManifestRequest, stream(::Aserto::Directory::Model::V3::GetManifestResponse)
|
23
|
+
rpc :SetManifest, stream(::Aserto::Directory::Model::V3::SetManifestRequest), ::Aserto::Directory::Model::V3::SetManifestResponse
|
24
|
+
rpc :DeleteManifest, ::Aserto::Directory::Model::V3::DeleteManifestRequest, ::Aserto::Directory::Model::V3::DeleteManifestResponse
|
25
|
+
end
|
26
|
+
|
27
|
+
Stub = Service.rpc_stub_class
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|