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
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/openapi/v3/openapi.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'protoc-gen-openapiv2/options/annotations_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n)aserto/directory/openapi/v3/openapi.proto\x12\x13\x61serto.directory.v3\x1a.protoc-gen-openapiv2/options/annotations.protoB\xea\x04\n\x17\x63om.aserto.directory.v3B\x0cOpenapiProtoP\x01Z@github.com/aserto-dev/go-directory/aserto/directory/v3;directory\xa2\x02\x03\x41\x44X\xaa\x02\x13\x41serto.Directory.V3\xca\x02\x14\x41serto\\Directory_\\V3\xe2\x02 Aserto\\Directory_\\V3\\GPBMetadata\xea\x02\x15\x41serto::Directory::V3\x92\x41\x8d\x03\x12\xbc\x01\n\x11\x44irectory Service\"N\n\x0c\x41serto, Inc.\x12*https://github.com/aserto-dev/pb-directory\x1a\x12support@aserto.com*R\n\x12\x41pache 2.0 License\x12<https://github.com/aserto-dev/pb-directory/blob/main/LICENSE2\x03\x33.0*\x03\x01\x02\x04\x32\x10\x61pplication/json:\x10\x61pplication/jsonZL\n&\n\x0f\x44irectoryAPIKey\x12\x13\x08\x02\x1a\rauthorization \x02\n\"\n\x08TenantID\x12\x16\x08\x02\x1a\x10\x61serto-tenant-id \x02\x62#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00r0\n\x15\x41serto API Reference.\x12\x17https://docs.aserto.comb\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
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
|
+
end
|
35
|
+
|
36
|
+
module Aserto
|
37
|
+
module Directory
|
38
|
+
module V3
|
39
|
+
end
|
40
|
+
end
|
41
|
+
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/reader/v2/reader.proto
|
3
4
|
|
@@ -5,118 +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
|
-
proto3_optional :with_objects, :bool, 2, json_name: "withObjects"
|
60
|
-
end
|
61
|
-
add_message "aserto.directory.reader.v2.GetRelationResponse" do
|
62
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Relation", json_name: "results"
|
63
|
-
map :objects, :string, :message, 2, "aserto.directory.common.v2.Object"
|
64
|
-
end
|
65
|
-
add_message "aserto.directory.reader.v2.GetRelationsRequest" do
|
66
|
-
optional :param, :message, 1, "aserto.directory.common.v2.RelationIdentifier", json_name: "param"
|
67
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
|
68
|
-
end
|
69
|
-
add_message "aserto.directory.reader.v2.GetRelationsResponse" do
|
70
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Relation", json_name: "results"
|
71
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
|
72
|
-
end
|
73
|
-
add_message "aserto.directory.reader.v2.GetPermissionRequest" do
|
74
|
-
optional :param, :message, 1, "aserto.directory.common.v2.PermissionIdentifier", json_name: "param"
|
75
|
-
end
|
76
|
-
add_message "aserto.directory.reader.v2.GetPermissionResponse" do
|
77
|
-
optional :result, :message, 1, "aserto.directory.common.v2.Permission", json_name: "result"
|
78
|
-
end
|
79
|
-
add_message "aserto.directory.reader.v2.GetPermissionsRequest" do
|
80
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
|
81
|
-
end
|
82
|
-
add_message "aserto.directory.reader.v2.GetPermissionsResponse" do
|
83
|
-
repeated :results, :message, 1, "aserto.directory.common.v2.Permission", json_name: "results"
|
84
|
-
optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
|
85
|
-
end
|
86
|
-
add_message "aserto.directory.reader.v2.CheckPermissionRequest" do
|
87
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
88
|
-
optional :permission, :message, 2, "aserto.directory.common.v2.PermissionIdentifier", json_name: "permission"
|
89
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
90
|
-
optional :trace, :bool, 7, json_name: "trace"
|
91
|
-
end
|
92
|
-
add_message "aserto.directory.reader.v2.CheckPermissionResponse" do
|
93
|
-
optional :check, :bool, 1, json_name: "check"
|
94
|
-
repeated :trace, :string, 2, json_name: "trace"
|
95
|
-
end
|
96
|
-
add_message "aserto.directory.reader.v2.CheckRelationRequest" do
|
97
|
-
optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
98
|
-
optional :relation, :message, 2, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
|
99
|
-
optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
100
|
-
optional :trace, :bool, 7, json_name: "trace"
|
101
|
-
end
|
102
|
-
add_message "aserto.directory.reader.v2.CheckRelationResponse" do
|
103
|
-
optional :check, :bool, 1, json_name: "check"
|
104
|
-
repeated :trace, :string, 2, json_name: "trace"
|
105
|
-
end
|
106
|
-
add_message "aserto.directory.reader.v2.CheckResponse" do
|
107
|
-
optional :check, :bool, 1, json_name: "check"
|
108
|
-
repeated :trace, :string, 2, json_name: "trace"
|
109
|
-
end
|
110
|
-
add_message "aserto.directory.reader.v2.GetGraphRequest" do
|
111
|
-
optional :anchor, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "anchor"
|
112
|
-
optional :subject, :message, 2, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
|
113
|
-
optional :relation, :message, 3, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
|
114
|
-
optional :object, :message, 4, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
|
115
|
-
end
|
116
|
-
add_message "aserto.directory.reader.v2.GetGraphResponse" do
|
117
|
-
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\"\xd8\x01\n\x10GetObjectRequest\x12\x42\n\x05param\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\x12*\n\x0ewith_relations\x18\x02 \x01(\x08H\x00R\rwithRelations\x88\x01\x01\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04pageB\x11\n\x0f_with_relations\"\xf7\x01\n\x11GetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\x12\x42\n\trelations\x18\x04 \x03(\x0b\x32$.aserto.directory.common.v2.RelationR\trelations\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04pageJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04R\x08incomingR\x08outgoing\"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
|
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}"
|
118
31
|
end
|
119
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."
|
120
35
|
end
|
121
36
|
|
122
37
|
module Aserto
|
@@ -33,8 +33,9 @@ module Aserto
|
|
33
33
|
# relation methods
|
34
34
|
rpc :GetRelation, ::Aserto::Directory::Reader::V2::GetRelationRequest, ::Aserto::Directory::Reader::V2::GetRelationResponse
|
35
35
|
rpc :GetRelations, ::Aserto::Directory::Reader::V2::GetRelationsRequest, ::Aserto::Directory::Reader::V2::GetRelationsResponse
|
36
|
-
# check
|
36
|
+
# check permission method
|
37
37
|
rpc :CheckPermission, ::Aserto::Directory::Reader::V2::CheckPermissionRequest, ::Aserto::Directory::Reader::V2::CheckPermissionResponse
|
38
|
+
# check relation method
|
38
39
|
rpc :CheckRelation, ::Aserto::Directory::Reader::V2::CheckRelationRequest, ::Aserto::Directory::Reader::V2::CheckRelationResponse
|
39
40
|
# graph methods
|
40
41
|
rpc :GetGraph, ::Aserto::Directory::Reader::V2::GetGraphRequest, ::Aserto::Directory::Reader::V2::GetGraphResponse
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/reader/v3/reader.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'protoc-gen-openapiv2/options/annotations_pb'
|
10
|
+
require 'buf/validate/validate_pb'
|
11
|
+
require 'aserto/directory/common/v3/common_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n\'aserto/directory/reader/v3/reader.proto\x12\x1a\x61serto.directory.reader.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1b\x62uf/validate/validate.proto\x1a\'aserto/directory/common/v3/common.proto\"\xb2\x04\n\x10GetObjectRequest\x12\x8f\x02\n\x0bobject_type\x18\x01 \x01(\tB\xed\x01\xe2\x41\x01\x02\xbaH\xe5\x01r\x02\x18@\xba\x01\xda\x01\n\x16get_object.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\x95\x01\n\tobject_id\x18\x02 \x01(\tBx\xbaHur\x03\x18\x80\x02\xba\x01j\n\x14get_object.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12+\n\x0ewith_relations\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\rwithRelations\x12G\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v3.PaginationRequestB\x04\xe2\x41\x01\x01R\x04page\"\xdd\x01\n\x11GetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v3.ObjectR\x06result\x12\x42\n\trelations\x18\x04 \x03(\x0b\x32$.aserto.directory.common.v3.RelationR\trelations\x12H\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v3.PaginationResponseB\x04\xe2\x41\x01\x03R\x04page\"`\n\x14GetObjectManyRequest\x12H\n\x05param\x18\x01 \x03(\x0b\x32,.aserto.directory.common.v3.ObjectIdentifierB\x04\xe2\x41\x01\x02R\x05param\"U\n\x15GetObjectManyResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32\".aserto.directory.common.v3.ObjectR\x07results\"\xef\x02\n\x11GetObjectsRequest\x12\x90\x02\n\x0bobject_type\x18\x01 \x01(\tB\xee\x01\xe2\x41\x01\x01\xbaH\xe6\x01r\x02\x18@\xba\x01\xdb\x01\n\x17get_objects.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]$\')\xd0\x01\x01R\nobjectType\x12G\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v3.PaginationRequestB\x04\xe2\x41\x01\x01R\x04page\"\x9c\x01\n\x12GetObjectsResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32\".aserto.directory.common.v3.ObjectR\x07results\x12H\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v3.PaginationResponseB\x04\xe2\x41\x01\x03R\x04page\"\x84\x10\n\x12GetRelationRequest\x12\x91\x02\n\x0bobject_type\x18\x01 \x01(\tB\xef\x01\xe2\x41\x01\x02\xbaH\xe7\x01r\x02\x18@\xba\x01\xdc\x01\n\x18get_relation.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]$\')\xd0\x01\x01R\nobjectType\x12\x9b\x01\n\tobject_id\x18\x02 \x01(\tB~\xe2\x41\x01\x02\xbaHwr\x03\x18\x80\x02\xba\x01l\n\x16get_relation.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xd0\x01\x01R\x08objectId\x12\x89\x02\n\x08relation\x18\x03 \x01(\tB\xec\x01\xe2\x41\x01\x02\xbaH\xe4\x01r\x02\x18@\xba\x01\xd9\x01\n\x15get_relation.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\x08relation\x12\x94\x02\n\x0csubject_type\x18\x04 \x01(\tB\xf0\x01\xe2\x41\x01\x02\xbaH\xe8\x01r\x02\x18@\xba\x01\xdd\x01\n\x19get_relation.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]$\')\xd0\x01\x01R\x0bsubjectType\x12\x9e\x01\n\nsubject_id\x18\x05 \x01(\tB\x7f\xe2\x41\x01\x02\xbaHxr\x03\x18\x80\x02\xba\x01m\n\x17get_relation.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xd0\x01\x01R\tsubjectId\x12\xa0\x02\n\x10subject_relation\x18\x06 \x01(\tB\xf4\x01\xe2\x41\x01\x01\xbaH\xec\x01r\x02\x18@\xba\x01\xe1\x01\n\x1dget_relation.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\x0cwith_objects\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0bwithObjects:\xab\x04\xbaH\xa7\x04\x1a\x8c\x02\n get_relation.object_id_with_type\x12Mwhen an object_id is specified, the accompanying object_type must be provided\x1a\x98\x01(this.object_type == \'\' && this.object_id == \'\') || (this.object_type != \'\' && this.object_id == \'\') || (this.object_type != \'\' && this.object_id != \'\')\x1a\x95\x02\n!get_relation.subject_id_with_type\x12Owhen an subject_id is specified, the accompanying subject_type must be provided\x1a\x9e\x01(this.subject_type == \'\' && this.subject_id == \'\') || (this.subject_type != \'\' && this.subject_id == \'\') || (this.subject_type != \'\' && this.subject_id != \'\')\"\x8b\x02\n\x13GetRelationResponse\x12<\n\x06result\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v3.RelationR\x06result\x12V\n\x07objects\x18\x02 \x03(\x0b\x32<.aserto.directory.reader.v3.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.v3.ObjectR\x05value:\x02\x38\x01\"\xd7\x10\n\x13GetRelationsRequest\x12\x92\x02\n\x0bobject_type\x18\x01 \x01(\tB\xf0\x01\xe2\x41\x01\x01\xbaH\xe8\x01r\x02\x18@\xba\x01\xdd\x01\n\x19get_relations.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]$\')\xd0\x01\x01R\nobjectType\x12\x9c\x01\n\tobject_id\x18\x02 \x01(\tB\x7f\xe2\x41\x01\x01\xbaHxr\x03\x18\x80\x02\xba\x01m\n\x17get_relations.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xd0\x01\x01R\x08objectId\x12\x8a\x02\n\x08relation\x18\x03 \x01(\tB\xed\x01\xe2\x41\x01\x01\xbaH\xe5\x01r\x02\x18@\xba\x01\xda\x01\n\x16get_relations.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\x08relation\x12\x95\x02\n\x0csubject_type\x18\x04 \x01(\tB\xf1\x01\xe2\x41\x01\x01\xbaH\xe9\x01r\x02\x18@\xba\x01\xde\x01\n\x1aget_relations.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]$\')\xd0\x01\x01R\x0bsubjectType\x12\xa0\x01\n\nsubject_id\x18\x05 \x01(\tB\x80\x01\xe2\x41\x01\x01\xbaHyr\x03\x18\x80\x02\xba\x01n\n\x18get_relations.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xd0\x01\x01R\tsubjectId\x12\xa1\x02\n\x10subject_relation\x18\x06 \x01(\tB\xf5\x01\xe2\x41\x01\x01\xbaH\xed\x01r\x02\x18@\xba\x01\xe2\x01\n\x1eget_relations.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\x0cwith_objects\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0bwithObjects\x12G\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v3.PaginationRequestB\x04\xe2\x41\x01\x01R\x04page:\xad\x04\xbaH\xa9\x04\x1a\x8d\x02\n!get_relations.object_id_with_type\x12Mwhen an object_id is specified, the accompanying object_type must be provided\x1a\x98\x01(this.object_type == \'\' && this.object_id == \'\') || (this.object_type != \'\' && this.object_id == \'\') || (this.object_type != \'\' && this.object_id != \'\')\x1a\x96\x02\n\"get_relations.subject_id_with_type\x12Owhen an subject_id is specified, the accompanying subject_type must be provided\x1a\x9e\x01(this.subject_type == \'\' && this.subject_id == \'\') || (this.subject_type != \'\' && this.subject_id == \'\') || (this.subject_type != \'\' && this.subject_id != \'\')\"\xd9\x02\n\x14GetRelationsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.aserto.directory.common.v3.RelationR\x07results\x12W\n\x07objects\x18\x02 \x03(\x0b\x32=.aserto.directory.reader.v3.GetRelationsResponse.ObjectsEntryR\x07objects\x12H\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v3.PaginationResponseB\x04\xe2\x41\x01\x03R\x04page\x1a^\n\x0cObjectsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32\".aserto.directory.common.v3.ObjectR\x05value:\x02\x38\x01\"\x8d\x08\n\x0c\x43heckRequest\x12\x8a\x02\n\x0bobject_type\x18\x01 \x01(\tB\xe8\x01\xe2\x41\x01\x02\xbaH\xe0\x01r\x02\x18@\xba\x01\xd5\x01\n\x11\x63heck.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\x94\x01\n\tobject_id\x18\x02 \x01(\tBw\xe2\x41\x01\x02\xbaHpr\x03\x18\x80\x02\xba\x01\x65\n\x0f\x63heck.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12\x92\x01\n\x08relation\x18\x03 \x01(\tBv\xe2\x41\x01\x02\xbaHor\x03\x18\x80\x02\xba\x01\x64\n\x0e\x63heck.relation\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08relation\x12\x8d\x02\n\x0csubject_type\x18\x04 \x01(\tB\xe9\x01\xe2\x41\x01\x02\xbaH\xe1\x01r\x02\x18@\xba\x01\xd6\x01\n\x12\x63heck.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\x97\x01\n\nsubject_id\x18\x05 \x01(\tBx\xe2\x41\x01\x02\xbaHqr\x03\x18\x80\x02\xba\x01\x66\n\x10\x63heck.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\tsubjectId\x12\x1a\n\x05trace\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x05trace\";\n\rCheckResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\"\xd7\x08\n\x16\x43heckPermissionRequest\x12\x95\x02\n\x0bobject_type\x18\x01 \x01(\tB\xf3\x01\xe2\x41\x01\x02\xbaH\xeb\x01r\x02\x18@\xba\x01\xe0\x01\n\x1c\x63heck_permission.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\xa0\x01\n\tobject_id\x18\x02 \x01(\tB\x82\x01\xe2\x41\x01\x02\xbaH{r\x03\x18\x80\x02\xba\x01p\n\x1a\x63heck_permission.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12\xa4\x01\n\npermission\x18\x03 \x01(\tB\x83\x01\xe2\x41\x01\x02\xbaH|r\x03\x18\x80\x02\xba\x01q\n\x1b\x63heck_permission.permission\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\npermission\x12\x98\x02\n\x0csubject_type\x18\x04 \x01(\tB\xf4\x01\xe2\x41\x01\x02\xbaH\xec\x01r\x02\x18@\xba\x01\xe1\x01\n\x1d\x63heck_permission.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\xa3\x01\n\nsubject_id\x18\x05 \x01(\tB\x83\x01\xe2\x41\x01\x02\xbaH|r\x03\x18\x80\x02\xba\x01q\n\x1b\x63heck_permission.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\tsubjectId\x12\x1a\n\x05trace\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01R\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\"\xb4\t\n\x14\x43heckRelationRequest\x12\x93\x02\n\x0bobject_type\x18\x01 \x01(\tB\xf1\x01\xe2\x41\x01\x02\xbaH\xe9\x01r\x02\x18@\xba\x01\xde\x01\n\x1a\x63heck_relation.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\x9e\x01\n\tobject_id\x18\x02 \x01(\tB\x80\x01\xe2\x41\x01\x02\xbaHyr\x03\x18\x80\x02\xba\x01n\n\x18\x63heck_relation.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12\x8b\x02\n\x08relation\x18\x03 \x01(\tB\xee\x01\xe2\x41\x01\x02\xbaH\xe6\x01r\x02\x18@\xba\x01\xdb\x01\n\x17\x63heck_relation.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\x96\x02\n\x0csubject_type\x18\x04 \x01(\tB\xf2\x01\xe2\x41\x01\x02\xbaH\xea\x01r\x02\x18@\xba\x01\xdf\x01\n\x1b\x63heck_relation.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\xa1\x01\n\nsubject_id\x18\x05 \x01(\tB\x81\x01\xe2\x41\x01\x02\xbaHzr\x03\x18\x80\x02\xba\x01o\n\x19\x63heck_relation.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\tsubjectId\x12\x1a\n\x05trace\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x01R\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\"\xed\x10\n\x0fGetGraphRequest\x12\x8e\x02\n\x0b\x61nchor_type\x18\x01 \x01(\tB\xec\x01\xe2\x41\x01\x02\xbaH\xe4\x01r\x02\x18@\xba\x01\xd9\x01\n\x15get_graph.anchor_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\nanchorType\x12\x98\x01\n\tanchor_id\x18\x02 \x01(\tB{\xe2\x41\x01\x02\xbaHtr\x03\x18\x80\x02\xba\x01i\n\x13get_graph.anchor_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08\x61nchorId\x12\x8e\x02\n\x0bobject_type\x18\x03 \x01(\tB\xec\x01\xe2\x41\x01\x01\xbaH\xe4\x01r\x02\x18@\xba\x01\xd9\x01\n\x15get_graph.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]$\')\xd0\x01\x01R\nobjectType\x12\x98\x01\n\tobject_id\x18\x04 \x01(\tB{\xe2\x41\x01\x01\xbaHtr\x03\x18\x80\x02\xba\x01i\n\x13get_graph.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xd0\x01\x01R\x08objectId\x12\x86\x02\n\x08relation\x18\x05 \x01(\tB\xe9\x01\xe2\x41\x01\x01\xbaH\xe1\x01r\x02\x18@\xba\x01\xd6\x01\n\x12get_graph.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\x08relation\x12\x91\x02\n\x0csubject_type\x18\x06 \x01(\tB\xed\x01\xe2\x41\x01\x01\xbaH\xe5\x01r\x02\x18@\xba\x01\xda\x01\n\x16get_graph.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]$\')\xd0\x01\x01R\x0bsubjectType\x12\x9b\x01\n\nsubject_id\x18\x07 \x01(\tB|\xe2\x41\x01\x01\xbaHur\x03\x18\x80\x02\xba\x01j\n\x14get_graph.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xd0\x01\x01R\tsubjectId\x12\x9d\x02\n\x10subject_relation\x18\x08 \x01(\tB\xf1\x01\xe2\x41\x01\x01\xbaH\xe9\x01r\x02\x18@\xba\x01\xde\x01\n\x1aget_graph.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:\xa6\x02\xbaH\xa2\x02\x1a\x9f\x02\n\x14graph.directionality\x12janchor.(type+id) must match either subject.(type+id) or object.(type+id) to determine graph directionality\x1a\x9a\x01(this.anchor_type == this.object_type && this.anchor_id == this.object_id) || (this.anchor_type == this.subject_type && this.anchor_id == this.subject_id)\"Z\n\x10GetGraphResponse\x12\x46\n\x07results\x18\x01 \x03(\x0b\x32,.aserto.directory.common.v3.ObjectDependencyR\x07results2\xb7\x13\n\x06Reader\x12\xc3\x02\n\tGetObject\x12,.aserto.directory.reader.v3.GetObjectRequest\x1a-.aserto.directory.reader.v3.GetObjectResponse\"\xd8\x01\x92\x41\x9a\x01\n\tdirectory\x12\x13Get object instance\x1a:Returns single object instance, optionally with relations.*\x17\x64irectory.v3.object.getb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x34\x12\x32/api/v3/directory/object/{object_type}/{object_id}\x12v\n\rGetObjectMany\x12\x30.aserto.directory.reader.v3.GetObjectManyRequest\x1a\x31.aserto.directory.reader.v3.GetObjectManyResponse\"\x00\x12\x98\x02\n\nGetObjects\x12-.aserto.directory.reader.v3.GetObjectsRequest\x1a..aserto.directory.reader.v3.GetObjectsResponse\"\xaa\x01\x92\x41\x85\x01\n\tdirectory\x12\x15List object instances\x1a!Returns list of object instances.*\x19\x64irectory.v3.objects.listb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v3/directory/objects\x12\xb5\x02\n\x0bGetRelation\x12..aserto.directory.reader.v3.GetRelationRequest\x1a/.aserto.directory.reader.v3.GetRelationResponse\"\xc4\x01\x92\x41\x9e\x01\n\tdirectory\x12\x15Get relation instance\x1a:Returns single relation instance, optionally with objects.*\x19\x64irectory.v3.relation.getb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/v3/directory/relation\x12\xa7\x02\n\x0cGetRelations\x12/.aserto.directory.reader.v3.GetRelationsRequest\x1a\x30.aserto.directory.reader.v3.GetRelationsResponse\"\xb3\x01\x92\x41\x8c\x01\n\tdirectory\x12\x18List relations instances\x1a#Returns list of relation instances.*\x1b\x64irectory.v3.relations.listb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v3/directory/relations\x12\xe7\x01\n\x05\x43heck\x12(.aserto.directory.reader.v3.CheckRequest\x1a).aserto.directory.reader.v3.CheckResponse\"\x88\x01\x92\x41\x63\n\tdirectory\x12\x05\x43heck\x1a\x16Returns check outcome.*\x12\x64irectory.v3.checkb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1c\"\x17/api/v3/directory/check:\x01*\x12\xb2\x02\n\x0f\x43heckPermission\x12\x32.aserto.directory.reader.v3.CheckPermissionRequest\x1a\x33.aserto.directory.reader.v3.CheckPermissionResponse\"\xb5\x01\x92\x41\x84\x01\n\tdirectory\x12\x10\x43heck permission\x1a!Returns check permission outcome.*\x1d\x64irectory.v3.check.permissionb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\'\"\"/api/v3/directory/check/permission:\x01*\x12\xa3\x02\n\rCheckRelation\x12\x30.aserto.directory.reader.v3.CheckRelationRequest\x1a\x31.aserto.directory.reader.v3.CheckRelationResponse\"\xac\x01\x92\x41~\n\tdirectory\x12\x0e\x43heck relation\x1a\x1fReturns check relation outcome.*\x1b\x64irectory.v3.check.relationb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02%\" /api/v3/directory/check/relation:\x01*\x12\xac\x02\n\x08GetGraph\x12+.aserto.directory.reader.v3.GetGraphRequest\x1a,.aserto.directory.reader.v3.GetGraphResponse\"\xc4\x01\x92\x41\x87\x01\n\tdirectory\x12\tGet graph\x1a\x36Returns object graph from anchor to subject or object.*\x12\x64irectory.v3.graphb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x33\x12\x31/api/v3/directory/graph/{anchor_type}/{anchor_id}B\x80\x02\n\x1e\x63om.aserto.directory.reader.v3B\x0bReaderProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/reader/v3;reader\xa2\x02\x03\x41\x44R\xaa\x02\x1a\x41serto.Directory.Reader.V3\xca\x02\x1b\x41serto\\Directory_\\Reader\\V3\xe2\x02\'Aserto\\Directory_\\Reader\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Reader::V3b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["aserto.directory.common.v3.PaginationRequest", "aserto/directory/common/v3/common.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 Reader
|
44
|
+
module V3
|
45
|
+
GetObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetObjectRequest").msgclass
|
46
|
+
GetObjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetObjectResponse").msgclass
|
47
|
+
GetObjectManyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetObjectManyRequest").msgclass
|
48
|
+
GetObjectManyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetObjectManyResponse").msgclass
|
49
|
+
GetObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetObjectsRequest").msgclass
|
50
|
+
GetObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetObjectsResponse").msgclass
|
51
|
+
GetRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetRelationRequest").msgclass
|
52
|
+
GetRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetRelationResponse").msgclass
|
53
|
+
GetRelationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetRelationsRequest").msgclass
|
54
|
+
GetRelationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetRelationsResponse").msgclass
|
55
|
+
CheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.CheckRequest").msgclass
|
56
|
+
CheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.CheckResponse").msgclass
|
57
|
+
CheckPermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.CheckPermissionRequest").msgclass
|
58
|
+
CheckPermissionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.CheckPermissionResponse").msgclass
|
59
|
+
CheckRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.CheckRelationRequest").msgclass
|
60
|
+
CheckRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.CheckRelationResponse").msgclass
|
61
|
+
GetGraphRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetGraphRequest").msgclass
|
62
|
+
GetGraphResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v3.GetGraphResponse").msgclass
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: aserto/directory/reader/v3/reader.proto for package 'Aserto.Directory.Reader.V3'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'aserto/directory/reader/v3/reader_pb'
|
6
|
+
|
7
|
+
module Aserto
|
8
|
+
module Directory
|
9
|
+
module Reader
|
10
|
+
module V3
|
11
|
+
module Reader
|
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.reader.v3.Reader'
|
19
|
+
|
20
|
+
# object methods
|
21
|
+
rpc :GetObject, ::Aserto::Directory::Reader::V3::GetObjectRequest, ::Aserto::Directory::Reader::V3::GetObjectResponse
|
22
|
+
rpc :GetObjectMany, ::Aserto::Directory::Reader::V3::GetObjectManyRequest, ::Aserto::Directory::Reader::V3::GetObjectManyResponse
|
23
|
+
rpc :GetObjects, ::Aserto::Directory::Reader::V3::GetObjectsRequest, ::Aserto::Directory::Reader::V3::GetObjectsResponse
|
24
|
+
# relation methods
|
25
|
+
rpc :GetRelation, ::Aserto::Directory::Reader::V3::GetRelationRequest, ::Aserto::Directory::Reader::V3::GetRelationResponse
|
26
|
+
rpc :GetRelations, ::Aserto::Directory::Reader::V3::GetRelationsRequest, ::Aserto::Directory::Reader::V3::GetRelationsResponse
|
27
|
+
# check method
|
28
|
+
rpc :Check, ::Aserto::Directory::Reader::V3::CheckRequest, ::Aserto::Directory::Reader::V3::CheckResponse
|
29
|
+
# check permission method
|
30
|
+
rpc :CheckPermission, ::Aserto::Directory::Reader::V3::CheckPermissionRequest, ::Aserto::Directory::Reader::V3::CheckPermissionResponse
|
31
|
+
# check relation method
|
32
|
+
rpc :CheckRelation, ::Aserto::Directory::Reader::V3::CheckRelationRequest, ::Aserto::Directory::Reader::V3::CheckRelationResponse
|
33
|
+
# graph methods
|
34
|
+
rpc :GetGraph, ::Aserto::Directory::Reader::V3::GetGraphRequest, ::Aserto::Directory::Reader::V3::GetGraphResponse
|
35
|
+
end
|
36
|
+
|
37
|
+
Stub = Service.rpc_stub_class
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -1,14 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/schema/v2/group.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
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}"
|
10
28
|
end
|
11
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."
|
12
32
|
end
|
13
33
|
|
14
34
|
module Aserto
|
@@ -1,26 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/schema/v2/identity.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
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}"
|
22
28
|
end
|
23
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."
|
24
32
|
end
|
25
33
|
|
26
34
|
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/schema/v2/tenant.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/struct_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\'aserto/directory/schema/v2/tenant.proto\x12\x1a\x61serto.directory.schema.v2\x1a\x1cgoogle/protobuf/struct.proto\"\xf7\x01\n\x10TenantProperties\x12:\n\x04kind\x18\x01 \x01(\x0e\x32&.aserto.directory.schema.v2.TenantKindR\x04kind\x12!\n\x0c\x64irectory_v2\x18\x02 \x01(\x08R\x0b\x64irectoryV2\x12*\n\x11\x64irectory_v2_only\x18\x03 \x01(\x08R\x0f\x64irectoryV2Only\x12L\n\x07\x61\x63\x63ount\x18\x04 \x01(\x0b\x32-.aserto.directory.schema.v2.AccountPropertiesH\x00R\x07\x61\x63\x63ount\x88\x01\x01\x42\n\n\x08_account\"\xc4\x01\n\x11\x41\x63\x63ountProperties\x12\x19\n\x08max_orgs\x18\x01 \x01(\x05R\x07maxOrgs\x12T\n\x0fgetting_started\x18\x03 \x01(\x0b\x32&.aserto.directory.schema.v2.GuideStateH\x00R\x0egettingStarted\x88\x01\x01\x12*\n\x11\x64\x65\x66\x61ult_tenant_id\x18\x04 \x01(\tR\x0f\x64\x65\x66\x61ultTenantIdB\x12\n\x10_getting_started\"O\n\nGuideState\x12\x12\n\x04show\x18\x01 \x01(\x08R\x04show\x12-\n\x05steps\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x05steps*\\\n\nTenantKind\x12\x17\n\x13TENANT_KIND_UNKNOWN\x10\x00\x12\x1c\n\x18TENANT_KIND_ORGANIZATION\x10\x01\x12\x17\n\x13TENANT_KIND_ACCOUNT\x10\x02\x42\x80\x02\n\x1e\x63om.aserto.directory.schema.v2B\x0bTenantProtoP\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"
|
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
|
+
["google.protobuf.Struct", "google/protobuf/struct.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 Schema
|
40
|
+
module V2
|
41
|
+
TenantProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.TenantProperties").msgclass
|
42
|
+
AccountProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.AccountProperties").msgclass
|
43
|
+
GuideState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.GuideState").msgclass
|
44
|
+
TenantKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.TenantKind").enummodule
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -1,29 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: aserto/directory/schema/v2/user.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
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}"
|
25
28
|
end
|
26
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."
|
27
32
|
end
|
28
33
|
|
29
34
|
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/v3/group.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n&aserto/directory/schema/v3/group.proto\x12\x1a\x61serto.directory.schema.v3\"6\n\x0fGroupProperties\x12#\n\rconnection_id\x18\x01 \x01(\tR\x0c\x63onnectionIdB\xff\x01\n\x1e\x63om.aserto.directory.schema.v3B\nGroupProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v3;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V3\xca\x02\x1b\x41serto\\Directory_\\Schema\\V3\xe2\x02\'Aserto\\Directory_\\Schema\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V3b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
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 V3
|
38
|
+
GroupProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.GroupProperties").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|