aserto-directory 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9936f4804f9a1da3f8fd97d2573858373cabda0b4694e57b35e44ae73d27596e
4
- data.tar.gz: d74309666b92efb1e400f60ab4c3c8d46cb463d3538de986045fbd9dea7df8e1
3
+ metadata.gz: 17e731d46e5731b59f4521637fea9eb527ff5faf1c5ce9cf6a9cfef3dad7d983
4
+ data.tar.gz: 301d1cc0b3426ce1ff60ce06070b6facd44bb67f3c9bc9d1d4adceb285933cd9
5
5
  SHA512:
6
- metadata.gz: 9505730807279f9562a439ba990c604d0293a6749b062e2d8d99af8134cdd12f6fa957f4c69f92965a752f58e23d53e0265da5c40d0fa465c3c53fe3424867e9
7
- data.tar.gz: '011393bf3180b7c5bd62d71b2c90a93842f81711797b7d1603e5354693037fe76cb43e162f8b55d992b84f9d7d38cd6f7cdc01039d584584c835d9d5f0f4397b'
6
+ metadata.gz: '0851ceaa8a651adb14d366df5e1a4d5b9bc977d60dfceb766c57b5ee4780bd8fcc69aac9c4ad23e5c39112c65cee351d32b7709fc7f4eaa98b42e936963a14ba'
7
+ data.tar.gz: cbd0eb89d89d5f439ae6962ca06fb8eda0f5674074278ff0b01291bdaf8456e11ffec935a7051963871b399aeb87e27f9b2fe1913101d8b4171e62e85f405177
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/directory/common/v2/common.proto
3
4
 
@@ -6,100 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/struct_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("aserto/directory/common/v2/common.proto", :syntax => :proto3) do
11
- add_message "aserto.directory.common.v2.ObjectType" do
12
- optional :name, :string, 2, json_name: "name"
13
- optional :display_name, :string, 3, json_name: "displayName"
14
- optional :is_subject, :bool, 4, json_name: "isSubject"
15
- optional :ordinal, :int32, 5, json_name: "ordinal"
16
- optional :status, :uint32, 6, json_name: "status"
17
- optional :schema, :message, 10, "google.protobuf.Struct", json_name: "schema"
18
- optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
19
- optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
20
- optional :hash, :string, 23, json_name: "hash"
21
- end
22
- add_message "aserto.directory.common.v2.Permission" do
23
- optional :name, :string, 2, json_name: "name"
24
- optional :display_name, :string, 3, json_name: "displayName"
25
- optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
26
- optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
27
- optional :hash, :string, 23, json_name: "hash"
28
- end
29
- add_message "aserto.directory.common.v2.RelationType" do
30
- optional :name, :string, 2, json_name: "name"
31
- optional :object_type, :string, 3, json_name: "objectType"
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 => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
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
@@ -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
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("aserto/directory/exporter/v2/exporter.proto", :syntax => :proto3) do
11
- add_message "aserto.directory.exporter.v2.ExportRequest" do
12
- optional :options, :uint32, 1, json_name: "options"
13
- optional :start_from, :message, 20, "google.protobuf.Timestamp", json_name: "startFrom"
14
- end
15
- add_message "aserto.directory.exporter.v2.ExportResponse" do
16
- oneof :msg do
17
- optional :object, :message, 2, "aserto.directory.common.v2.Object", json_name: "object"
18
- optional :object_type, :message, 3, "aserto.directory.common.v2.ObjectType", json_name: "objectType"
19
- optional :relation, :message, 4, "aserto.directory.common.v2.Relation", json_name: "relation"
20
- optional :relation_type, :message, 5, "aserto.directory.common.v2.RelationType", json_name: "relationType"
21
- optional :permission, :message, 6, "aserto.directory.common.v2.Permission", json_name: "permission"
22
- end
23
- end
24
- add_enum "aserto.directory.exporter.v2.Option" do
25
- value :OPTION_UNKNOWN, 0
26
- value :OPTION_METADATA_OBJECT_TYPES, 1
27
- value :OPTION_METADATA_RELATION_TYPES, 2
28
- value :OPTION_METADATA_PERMISSIONS, 4
29
- value :OPTION_METADATA, 7
30
- value :OPTION_DATA_OBJECTS, 8
31
- value :OPTION_DATA_RELATIONS, 16
32
- value :OPTION_DATA_RELATIONS_WITH_KEYS, 32
33
- value :OPTION_DATA, 24
34
- value :OPTION_DATA_WITH_KEYS, 40
35
- value :OPTION_ALL, 31
36
- value :OPTION_ALL_WITH_KEYS, 47
10
+
11
+ descriptor_data = "\n+aserto/directory/exporter/v2/exporter.proto\x12\x1c\x61serto.directory.exporter.v2\x1a\'aserto/directory/common/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"d\n\rExportRequest\x12\x18\n\x07options\x18\x01 \x01(\rR\x07options\x12\x39\n\nstart_from\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartFrom\"\xff\x02\n\x0e\x45xportResponse\x12<\n\x06object\x18\x02 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectH\x00R\x06object\x12I\n\x0bobject_type\x18\x03 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeH\x00R\nobjectType\x12\x42\n\x08relation\x18\x04 \x01(\x0b\x32$.aserto.directory.common.v2.RelationH\x00R\x08relation\x12O\n\rrelation_type\x18\x05 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeH\x00R\x0crelationType\x12H\n\npermission\x18\x06 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionH\x00R\npermissionB\x05\n\x03msg*\xc7\x02\n\x06Option\x12\x12\n\x0eOPTION_UNKNOWN\x10\x00\x12 \n\x1cOPTION_METADATA_OBJECT_TYPES\x10\x01\x12\"\n\x1eOPTION_METADATA_RELATION_TYPES\x10\x02\x12\x1f\n\x1bOPTION_METADATA_PERMISSIONS\x10\x04\x12\x13\n\x0fOPTION_METADATA\x10\x07\x12\x17\n\x13OPTION_DATA_OBJECTS\x10\x08\x12\x19\n\x15OPTION_DATA_RELATIONS\x10\x10\x12#\n\x1fOPTION_DATA_RELATIONS_WITH_KEYS\x10 \x12\x0f\n\x0bOPTION_DATA\x10\x18\x12\x19\n\x15OPTION_DATA_WITH_KEYS\x10(\x12\x0e\n\nOPTION_ALL\x10\x1f\x12\x18\n\x14OPTION_ALL_WITH_KEYS\x10/2s\n\x08\x45xporter\x12g\n\x06\x45xport\x12+.aserto.directory.exporter.v2.ExportRequest\x1a,.aserto.directory.exporter.v2.ExportResponse\"\x00\x30\x01\x42\x90\x02\n com.aserto.directory.exporter.v2B\rExporterProtoP\x01ZHgithub.com/aserto-dev/go-directory/aserto/directory/exporter/v2;exporter\xa2\x02\x03\x41\x44\x45\xaa\x02\x1c\x41serto.Directory.Exporter.V2\xca\x02\x1d\x41serto\\Directory_\\Exporter\\V2\xe2\x02)Aserto\\Directory_\\Exporter\\V2\\GPBMetadata\xea\x02\x1f\x41serto::Directory::Exporter::V2b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["aserto.directory.common.v2.Object", "aserto/directory/common/v2/common.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
33
  end
38
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
39
37
  end
40
38
 
41
39
  module Aserto
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/directory/importer/v2/importer.proto
3
4
 
@@ -5,37 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'aserto/directory/common/v2/common_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("aserto/directory/importer/v2/importer.proto", :syntax => :proto3) do
10
- add_message "aserto.directory.importer.v2.ImportRequest" do
11
- optional :op_code, :enum, 1, "aserto.directory.importer.v2.Opcode", json_name: "opCode"
12
- oneof :msg do
13
- optional :object_type, :message, 2, "aserto.directory.common.v2.ObjectType", json_name: "objectType"
14
- optional :permission, :message, 3, "aserto.directory.common.v2.Permission", json_name: "permission"
15
- optional :relation_type, :message, 4, "aserto.directory.common.v2.RelationType", json_name: "relationType"
16
- optional :object, :message, 5, "aserto.directory.common.v2.Object", json_name: "object"
17
- optional :relation, :message, 6, "aserto.directory.common.v2.Relation", json_name: "relation"
18
- end
19
- end
20
- add_message "aserto.directory.importer.v2.ImportResponse" do
21
- optional :object_type, :message, 1, "aserto.directory.importer.v2.ImportCounter", json_name: "objectType"
22
- optional :permission, :message, 2, "aserto.directory.importer.v2.ImportCounter", json_name: "permission"
23
- optional :relation_type, :message, 3, "aserto.directory.importer.v2.ImportCounter", json_name: "relationType"
24
- optional :object, :message, 4, "aserto.directory.importer.v2.ImportCounter", json_name: "object"
25
- optional :relation, :message, 5, "aserto.directory.importer.v2.ImportCounter", json_name: "relation"
26
- end
27
- add_message "aserto.directory.importer.v2.ImportCounter" do
28
- optional :recv, :uint64, 1, json_name: "recv"
29
- optional :set, :uint64, 2, json_name: "set"
30
- optional :delete, :uint64, 3, json_name: "delete"
31
- optional :error, :uint64, 4, json_name: "error"
32
- end
33
- add_enum "aserto.directory.importer.v2.Opcode" do
34
- value :OPCODE_UNKNOWN, 0
35
- value :OPCODE_SET, 1
36
- value :OPCODE_DELETE, 2
9
+
10
+ descriptor_data = "\n+aserto/directory/importer/v2/importer.proto\x12\x1c\x61serto.directory.importer.v2\x1a\'aserto/directory/common/v2/common.proto\"\xbd\x03\n\rImportRequest\x12=\n\x07op_code\x18\x01 \x01(\x0e\x32$.aserto.directory.importer.v2.OpcodeR\x06opCode\x12I\n\x0bobject_type\x18\x02 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeH\x00R\nobjectType\x12H\n\npermission\x18\x03 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionH\x00R\npermission\x12O\n\rrelation_type\x18\x04 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeH\x00R\x0crelationType\x12<\n\x06object\x18\x05 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectH\x00R\x06object\x12\x42\n\x08relation\x18\x06 \x01(\x0b\x32$.aserto.directory.common.v2.RelationH\x00R\x08relationB\x05\n\x03msg\"\x8b\x03\n\x0eImportResponse\x12L\n\x0bobject_type\x18\x01 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\nobjectType\x12K\n\npermission\x18\x02 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\npermission\x12P\n\rrelation_type\x18\x03 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\x0crelationType\x12\x43\n\x06object\x18\x04 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\x06object\x12G\n\x08relation\x18\x05 \x01(\x0b\x32+.aserto.directory.importer.v2.ImportCounterR\x08relation\"c\n\rImportCounter\x12\x12\n\x04recv\x18\x01 \x01(\x04R\x04recv\x12\x10\n\x03set\x18\x02 \x01(\x04R\x03set\x12\x16\n\x06\x64\x65lete\x18\x03 \x01(\x04R\x06\x64\x65lete\x12\x14\n\x05\x65rror\x18\x04 \x01(\x04R\x05\x65rror*?\n\x06Opcode\x12\x12\n\x0eOPCODE_UNKNOWN\x10\x00\x12\x0e\n\nOPCODE_SET\x10\x01\x12\x11\n\rOPCODE_DELETE\x10\x02\x32u\n\x08Importer\x12i\n\x06Import\x12+.aserto.directory.importer.v2.ImportRequest\x1a,.aserto.directory.importer.v2.ImportResponse\"\x00(\x01\x30\x01\x42\x90\x02\n com.aserto.directory.importer.v2B\rImporterProtoP\x01ZHgithub.com/aserto-dev/go-directory/aserto/directory/importer/v2;importer\xa2\x02\x03\x41\x44I\xaa\x02\x1c\x41serto.Directory.Importer.V2\xca\x02\x1d\x41serto\\Directory_\\Importer\\V2\xe2\x02)Aserto\\Directory_\\Importer\\V2\\GPBMetadata\xea\x02\x1f\x41serto::Directory::Importer::V2b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["aserto.directory.common.v2.ObjectType", "aserto/directory/common/v2/common.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
31
  end
38
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
39
35
  end
40
36
 
41
37
  module Aserto
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/directory/reader/v2/reader.proto
3
4
 
@@ -5,118 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'aserto/directory/common/v2/common_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("aserto/directory/reader/v2/reader.proto", :syntax => :proto3) do
10
- add_message "aserto.directory.reader.v2.GetObjectTypeRequest" do
11
- optional :param, :message, 1, "aserto.directory.common.v2.ObjectTypeIdentifier", json_name: "param"
12
- end
13
- add_message "aserto.directory.reader.v2.GetObjectTypeResponse" do
14
- optional :result, :message, 1, "aserto.directory.common.v2.ObjectType", json_name: "result"
15
- end
16
- add_message "aserto.directory.reader.v2.GetObjectTypesRequest" do
17
- optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
18
- end
19
- add_message "aserto.directory.reader.v2.GetObjectTypesResponse" do
20
- repeated :results, :message, 1, "aserto.directory.common.v2.ObjectType", json_name: "results"
21
- optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
22
- end
23
- add_message "aserto.directory.reader.v2.GetRelationTypeRequest" do
24
- optional :param, :message, 1, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "param"
25
- end
26
- add_message "aserto.directory.reader.v2.GetRelationTypeResponse" do
27
- optional :result, :message, 1, "aserto.directory.common.v2.RelationType", json_name: "result"
28
- end
29
- add_message "aserto.directory.reader.v2.GetRelationTypesRequest" do
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\"V\n\x10GetObjectRequest\x12\x42\n\x05param\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\"O\n\x11GetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\"Z\n\x14GetObjectManyRequest\x12\x42\n\x05param\x18\x01 \x03(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\"U\n\x15GetObjectManyResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32\".aserto.directory.common.v2.ObjectR\x07results\"\x9e\x01\n\x11GetObjectsRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x96\x01\n\x12GetObjectsResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32\".aserto.directory.common.v2.ObjectR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"\x93\x01\n\x12GetRelationRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\x12&\n\x0cwith_objects\x18\x02 \x01(\x08H\x00R\x0bwithObjects\x88\x01\x01\x42\x0f\n\r_with_objects\"\x8d\x02\n\x13GetRelationResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.aserto.directory.common.v2.RelationR\x07results\x12V\n\x07objects\x18\x02 \x03(\x0b\x32<.aserto.directory.reader.v2.GetRelationResponse.ObjectsEntryR\x07objects\x1a^\n\x0cObjectsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x05value:\x02\x38\x01\"\x9e\x01\n\x13GetRelationsRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x9a\x01\n\x14GetRelationsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.aserto.directory.common.v2.RelationR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"^\n\x14GetPermissionRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\x05param\"W\n\x15GetPermissionResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\x06result\"Z\n\x15GetPermissionsRequest\x12\x41\n\x04page\x18\t \x01(\x0b\x32-.aserto.directory.common.v2.PaginationRequestR\x04page\"\x9e\x01\n\x16GetPermissionsResponse\x12@\n\x07results\x18\x01 \x03(\x0b\x32&.aserto.directory.common.v2.PermissionR\x07results\x12\x42\n\x04page\x18\t \x01(\x0b\x32..aserto.directory.common.v2.PaginationResponseR\x04page\"\x8e\x02\n\x16\x43heckPermissionRequest\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12P\n\npermission\x18\x02 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\npermission\x12\x44\n\x06object\x18\x03 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\x12\x14\n\x05trace\x18\x07 \x01(\x08R\x05trace\"E\n\x17\x43heckPermissionResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\"\x8a\x02\n\x14\x43heckRelationRequest\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12N\n\x08relation\x18\x02 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x08relation\x12\x44\n\x06object\x18\x03 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\x12\x14\n\x05trace\x18\x07 \x01(\x08R\x05trace\"C\n\x15\x43heckRelationResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\";\n\rCheckResponse\x12\x14\n\x05\x63heck\x18\x01 \x01(\x08R\x05\x63heck\x12\x14\n\x05trace\x18\x02 \x03(\tR\x05trace\"\xb5\x02\n\x0fGetGraphRequest\x12\x44\n\x06\x61nchor\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06\x61nchor\x12\x46\n\x07subject\x18\x02 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x07subject\x12N\n\x08relation\x18\x03 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x08relation\x12\x44\n\x06object\x18\x04 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x06object\"Z\n\x10GetGraphResponse\x12\x46\n\x07results\x18\x01 \x03(\x0b\x32,.aserto.directory.common.v2.ObjectDependencyR\x07results2\x86\r\n\x06Reader\x12v\n\rGetObjectType\x12\x30.aserto.directory.reader.v2.GetObjectTypeRequest\x1a\x31.aserto.directory.reader.v2.GetObjectTypeResponse\"\x00\x12y\n\x0eGetObjectTypes\x12\x31.aserto.directory.reader.v2.GetObjectTypesRequest\x1a\x32.aserto.directory.reader.v2.GetObjectTypesResponse\"\x00\x12|\n\x0fGetRelationType\x12\x32.aserto.directory.reader.v2.GetRelationTypeRequest\x1a\x33.aserto.directory.reader.v2.GetRelationTypeResponse\"\x00\x12\x7f\n\x10GetRelationTypes\x12\x33.aserto.directory.reader.v2.GetRelationTypesRequest\x1a\x34.aserto.directory.reader.v2.GetRelationTypesResponse\"\x00\x12v\n\rGetPermission\x12\x30.aserto.directory.reader.v2.GetPermissionRequest\x1a\x31.aserto.directory.reader.v2.GetPermissionResponse\"\x00\x12y\n\x0eGetPermissions\x12\x31.aserto.directory.reader.v2.GetPermissionsRequest\x1a\x32.aserto.directory.reader.v2.GetPermissionsResponse\"\x00\x12j\n\tGetObject\x12,.aserto.directory.reader.v2.GetObjectRequest\x1a-.aserto.directory.reader.v2.GetObjectResponse\"\x00\x12v\n\rGetObjectMany\x12\x30.aserto.directory.reader.v2.GetObjectManyRequest\x1a\x31.aserto.directory.reader.v2.GetObjectManyResponse\"\x00\x12m\n\nGetObjects\x12-.aserto.directory.reader.v2.GetObjectsRequest\x1a..aserto.directory.reader.v2.GetObjectsResponse\"\x00\x12p\n\x0bGetRelation\x12..aserto.directory.reader.v2.GetRelationRequest\x1a/.aserto.directory.reader.v2.GetRelationResponse\"\x00\x12s\n\x0cGetRelations\x12/.aserto.directory.reader.v2.GetRelationsRequest\x1a\x30.aserto.directory.reader.v2.GetRelationsResponse\"\x00\x12|\n\x0f\x43heckPermission\x12\x32.aserto.directory.reader.v2.CheckPermissionRequest\x1a\x33.aserto.directory.reader.v2.CheckPermissionResponse\"\x00\x12v\n\rCheckRelation\x12\x30.aserto.directory.reader.v2.CheckRelationRequest\x1a\x31.aserto.directory.reader.v2.CheckRelationResponse\"\x00\x12g\n\x08GetGraph\x12+.aserto.directory.reader.v2.GetGraphRequest\x1a,.aserto.directory.reader.v2.GetGraphResponse\"\x00\x42\x80\x02\n\x1e\x63om.aserto.directory.reader.v2B\x0bReaderProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/reader/v2;reader\xa2\x02\x03\x41\x44R\xaa\x02\x1a\x41serto.Directory.Reader.V2\xca\x02\x1b\x41serto\\Directory_\\Reader\\V2\xe2\x02\'Aserto\\Directory_\\Reader\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Reader::V2b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["aserto.directory.common.v2.ObjectTypeIdentifier", "aserto/directory/common/v2/common.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
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
@@ -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
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("aserto/directory/schema/v2/group.proto", :syntax => :proto3) do
8
- add_message "aserto.directory.schema.v2.GroupProperties" do
9
- optional :connection_id, :string, 1, json_name: "connectionId"
7
+
8
+ descriptor_data = "\n&aserto/directory/schema/v2/group.proto\x12\x1a\x61serto.directory.schema.v2\"6\n\x0fGroupProperties\x12#\n\rconnection_id\x18\x01 \x01(\tR\x0c\x63onnectionIdB\xff\x01\n\x1e\x63om.aserto.directory.schema.v2B\nGroupProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
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
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("aserto/directory/schema/v2/identity.proto", :syntax => :proto3) do
8
- add_message "aserto.directory.schema.v2.IdentityProperties" do
9
- optional :kind, :enum, 1, "aserto.directory.schema.v2.IdentityKind", json_name: "kind"
10
- optional :provider, :string, 2, json_name: "provider"
11
- optional :verified, :bool, 3, json_name: "verified"
12
- proto3_optional :connection_id, :string, 4, json_name: "connectionId"
13
- end
14
- add_enum "aserto.directory.schema.v2.IdentityKind" do
15
- value :IDENTITY_KIND_UNKNOWN, 0
16
- value :IDENTITY_KIND_PID, 1
17
- value :IDENTITY_KIND_EMAIL, 2
18
- value :IDENTITY_KIND_USERNAME, 3
19
- value :IDENTITY_KIND_DN, 4
20
- value :IDENTITY_KIND_PHONE, 5
21
- value :IDENTITY_KIND_EMPID, 6
7
+
8
+ descriptor_data = "\n)aserto/directory/schema/v2/identity.proto\x12\x1a\x61serto.directory.schema.v2\"\xc6\x01\n\x12IdentityProperties\x12<\n\x04kind\x18\x01 \x01(\x0e\x32(.aserto.directory.schema.v2.IdentityKindR\x04kind\x12\x1a\n\x08provider\x18\x02 \x01(\tR\x08provider\x12\x1a\n\x08verified\x18\x03 \x01(\x08R\x08verified\x12(\n\rconnection_id\x18\x04 \x01(\tH\x00R\x0c\x63onnectionId\x88\x01\x01\x42\x10\n\x0e_connection_id*\xbd\x01\n\x0cIdentityKind\x12\x19\n\x15IDENTITY_KIND_UNKNOWN\x10\x00\x12\x15\n\x11IDENTITY_KIND_PID\x10\x01\x12\x17\n\x13IDENTITY_KIND_EMAIL\x10\x02\x12\x1a\n\x16IDENTITY_KIND_USERNAME\x10\x03\x12\x14\n\x10IDENTITY_KIND_DN\x10\x04\x12\x17\n\x13IDENTITY_KIND_PHONE\x10\x05\x12\x17\n\x13IDENTITY_KIND_EMPID\x10\x06\x42\x82\x02\n\x1e\x63om.aserto.directory.schema.v2B\rIdentityProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
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
@@ -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
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("aserto/directory/schema/v2/user.proto", :syntax => :proto3) do
8
- add_message "aserto.directory.schema.v2.UserProperties" do
9
- optional :email, :string, 1, json_name: "email"
10
- optional :picture, :string, 2, json_name: "picture"
11
- optional :status, :enum, 3, "aserto.directory.schema.v2.UserStatus", json_name: "status"
12
- optional :enabled, :bool, 4, json_name: "enabled"
13
- optional :connection_id, :string, 5, json_name: "connectionId"
14
- end
15
- add_enum "aserto.directory.schema.v2.UserStatus" do
16
- value :USER_STATUS_UNKNOWN, 0
17
- value :USER_STATUS_STAGED, 1
18
- value :USER_STATUS_PROVISIONED, 2
19
- value :USER_STATUS_ACTIVE, 3
20
- value :USER_STATUS_RECOVERY, 4
21
- value :USER_STATUS_PASSWORD_EXPIRED, 5
22
- value :USER_STATUS_LOCKED_OUT, 6
23
- value :USER_STATUS_SUSPENDED, 7
24
- value :USER_STATUS_DEPROVISIONED, 8
7
+
8
+ descriptor_data = "\n%aserto/directory/schema/v2/user.proto\x12\x1a\x61serto.directory.schema.v2\"\xbf\x01\n\x0eUserProperties\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x02 \x01(\tR\x07picture\x12>\n\x06status\x18\x03 \x01(\x0e\x32&.aserto.directory.schema.v2.UserStatusR\x06status\x12\x18\n\x07\x65nabled\x18\x04 \x01(\x08R\x07\x65nabled\x12#\n\rconnection_id\x18\x05 \x01(\tR\x0c\x63onnectionId*\x84\x02\n\nUserStatus\x12\x17\n\x13USER_STATUS_UNKNOWN\x10\x00\x12\x16\n\x12USER_STATUS_STAGED\x10\x01\x12\x1b\n\x17USER_STATUS_PROVISIONED\x10\x02\x12\x16\n\x12USER_STATUS_ACTIVE\x10\x03\x12\x18\n\x14USER_STATUS_RECOVERY\x10\x04\x12 \n\x1cUSER_STATUS_PASSWORD_EXPIRED\x10\x05\x12\x1a\n\x16USER_STATUS_LOCKED_OUT\x10\x06\x12\x19\n\x15USER_STATUS_SUSPENDED\x10\x07\x12\x1d\n\x19USER_STATUS_DEPROVISIONED\x10\x08\x42\xfe\x01\n\x1e\x63om.aserto.directory.schema.v2B\tUserProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
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
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/directory/writer/v2/writer.proto
3
4
 
@@ -6,69 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/empty_pb'
7
8
  require 'aserto/directory/common/v2/common_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("aserto/directory/writer/v2/writer.proto", :syntax => :proto3) do
11
- add_message "aserto.directory.writer.v2.SetObjectTypeRequest" do
12
- optional :object_type, :message, 1, "aserto.directory.common.v2.ObjectType", json_name: "objectType"
13
- end
14
- add_message "aserto.directory.writer.v2.SetObjectTypeResponse" do
15
- optional :result, :message, 1, "aserto.directory.common.v2.ObjectType", json_name: "result"
16
- end
17
- add_message "aserto.directory.writer.v2.DeleteObjectTypeRequest" do
18
- optional :param, :message, 1, "aserto.directory.common.v2.ObjectTypeIdentifier", json_name: "param"
19
- end
20
- add_message "aserto.directory.writer.v2.DeleteObjectTypeResponse" do
21
- optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
22
- end
23
- add_message "aserto.directory.writer.v2.SetRelationTypeRequest" do
24
- optional :relation_type, :message, 1, "aserto.directory.common.v2.RelationType", json_name: "relationType"
25
- end
26
- add_message "aserto.directory.writer.v2.SetRelationTypeResponse" do
27
- optional :result, :message, 1, "aserto.directory.common.v2.RelationType", json_name: "result"
28
- end
29
- add_message "aserto.directory.writer.v2.DeleteRelationTypeRequest" do
30
- optional :param, :message, 1, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "param"
31
- end
32
- add_message "aserto.directory.writer.v2.DeleteRelationTypeResponse" do
33
- optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
34
- end
35
- add_message "aserto.directory.writer.v2.SetPermissionRequest" do
36
- optional :permission, :message, 1, "aserto.directory.common.v2.Permission", json_name: "permission"
37
- end
38
- add_message "aserto.directory.writer.v2.SetPermissionResponse" do
39
- optional :result, :message, 1, "aserto.directory.common.v2.Permission", json_name: "result"
40
- end
41
- add_message "aserto.directory.writer.v2.DeletePermissionRequest" do
42
- optional :param, :message, 1, "aserto.directory.common.v2.PermissionIdentifier", json_name: "param"
43
- end
44
- add_message "aserto.directory.writer.v2.DeletePermissionResponse" do
45
- optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
46
- end
47
- add_message "aserto.directory.writer.v2.SetObjectRequest" do
48
- optional :object, :message, 1, "aserto.directory.common.v2.Object", json_name: "object"
49
- end
50
- add_message "aserto.directory.writer.v2.SetObjectResponse" do
51
- optional :result, :message, 1, "aserto.directory.common.v2.Object", json_name: "result"
52
- end
53
- add_message "aserto.directory.writer.v2.DeleteObjectRequest" do
54
- optional :param, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "param"
55
- end
56
- add_message "aserto.directory.writer.v2.DeleteObjectResponse" do
57
- optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
58
- end
59
- add_message "aserto.directory.writer.v2.SetRelationRequest" do
60
- optional :relation, :message, 1, "aserto.directory.common.v2.Relation", json_name: "relation"
61
- end
62
- add_message "aserto.directory.writer.v2.SetRelationResponse" do
63
- optional :result, :message, 1, "aserto.directory.common.v2.Relation", json_name: "result"
64
- end
65
- add_message "aserto.directory.writer.v2.DeleteRelationRequest" do
66
- optional :param, :message, 1, "aserto.directory.common.v2.RelationIdentifier", json_name: "param"
67
- end
68
- add_message "aserto.directory.writer.v2.DeleteRelationResponse" do
69
- optional :result, :message, 1, "google.protobuf.Empty", json_name: "result"
10
+
11
+ descriptor_data = "\n\'aserto/directory/writer/v2/writer.proto\x12\x1a\x61serto.directory.writer.v2\x1a\x1bgoogle/protobuf/empty.proto\x1a\'aserto/directory/common/v2/common.proto\"_\n\x14SetObjectTypeRequest\x12G\n\x0bobject_type\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\nobjectType\"W\n\x15SetObjectTypeResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\x06result\"a\n\x17\x44\x65leteObjectTypeRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\"J\n\x18\x44\x65leteObjectTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"g\n\x16SetRelationTypeRequest\x12M\n\rrelation_type\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x0crelationType\"[\n\x17SetRelationTypeResponse\x12@\n\x06result\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x06result\"e\n\x19\x44\x65leteRelationTypeRequest\x12H\n\x05param\x18\x01 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x05param\"L\n\x1a\x44\x65leteRelationTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"^\n\x14SetPermissionRequest\x12\x46\n\npermission\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\npermission\"W\n\x15SetPermissionResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\x06result\"a\n\x17\x44\x65letePermissionRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\x05param\"J\n\x18\x44\x65letePermissionResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"N\n\x10SetObjectRequest\x12:\n\x06object\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06object\"O\n\x11SetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\"Y\n\x13\x44\x65leteObjectRequest\x12\x42\n\x05param\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\"F\n\x14\x44\x65leteObjectResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"V\n\x12SetRelationRequest\x12@\n\x08relation\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v2.RelationR\x08relation\"S\n\x13SetRelationResponse\x12<\n\x06result\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v2.RelationR\x06result\"]\n\x15\x44\x65leteRelationRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\"H\n\x16\x44\x65leteRelationResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result2\xce\t\n\x06Writer\x12v\n\rSetObjectType\x12\x30.aserto.directory.writer.v2.SetObjectTypeRequest\x1a\x31.aserto.directory.writer.v2.SetObjectTypeResponse\"\x00\x12\x7f\n\x10\x44\x65leteObjectType\x12\x33.aserto.directory.writer.v2.DeleteObjectTypeRequest\x1a\x34.aserto.directory.writer.v2.DeleteObjectTypeResponse\"\x00\x12|\n\x0fSetRelationType\x12\x32.aserto.directory.writer.v2.SetRelationTypeRequest\x1a\x33.aserto.directory.writer.v2.SetRelationTypeResponse\"\x00\x12\x85\x01\n\x12\x44\x65leteRelationType\x12\x35.aserto.directory.writer.v2.DeleteRelationTypeRequest\x1a\x36.aserto.directory.writer.v2.DeleteRelationTypeResponse\"\x00\x12v\n\rSetPermission\x12\x30.aserto.directory.writer.v2.SetPermissionRequest\x1a\x31.aserto.directory.writer.v2.SetPermissionResponse\"\x00\x12\x7f\n\x10\x44\x65letePermission\x12\x33.aserto.directory.writer.v2.DeletePermissionRequest\x1a\x34.aserto.directory.writer.v2.DeletePermissionResponse\"\x00\x12j\n\tSetObject\x12,.aserto.directory.writer.v2.SetObjectRequest\x1a-.aserto.directory.writer.v2.SetObjectResponse\"\x00\x12s\n\x0c\x44\x65leteObject\x12/.aserto.directory.writer.v2.DeleteObjectRequest\x1a\x30.aserto.directory.writer.v2.DeleteObjectResponse\"\x00\x12p\n\x0bSetRelation\x12..aserto.directory.writer.v2.SetRelationRequest\x1a/.aserto.directory.writer.v2.SetRelationResponse\"\x00\x12y\n\x0e\x44\x65leteRelation\x12\x31.aserto.directory.writer.v2.DeleteRelationRequest\x1a\x32.aserto.directory.writer.v2.DeleteRelationResponse\"\x00\x42\x80\x02\n\x1e\x63om.aserto.directory.writer.v2B\x0bWriterProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/writer/v2;writer\xa2\x02\x03\x41\x44W\xaa\x02\x1a\x41serto.Directory.Writer.V2\xca\x02\x1b\x41serto\\Directory_\\Writer\\V2\xe2\x02\'Aserto\\Directory_\\Writer\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Writer::V2b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["aserto.directory.common.v2.ObjectType", "aserto/directory/common/v2/common.proto"],
27
+ ["google.protobuf.Empty", "google/protobuf/empty.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
70
33
  end
71
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
72
37
  end
73
38
 
74
39
  module Aserto
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aserto-directory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aserto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-10 00:00:00.000000000 Z
11
+ date: 2023-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -24,68 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.46'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.15.0
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '3.0'
37
- type: :development
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.15.0
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: grpc_mock
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.4'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.4'
61
- - !ruby/object:Gem::Dependency
62
- name: rspec
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '3.0'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '3.0'
75
- - !ruby/object:Gem::Dependency
76
- name: rubocop-rspec
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '2.11'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '2.11'
89
27
  description: Ruby generated GRPC client for Aserto Directory
90
28
  email:
91
29
  - aserto@aserto.com
@@ -128,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
66
  requirements:
129
67
  - - ">="
130
68
  - !ruby/object:Gem::Version
131
- version: 2.7.0
69
+ version: 3.0.0
132
70
  required_rubygems_version: !ruby/object:Gem::Requirement
133
71
  requirements:
134
72
  - - ">="
135
73
  - !ruby/object:Gem::Version
136
74
  version: '0'
137
75
  requirements: []
138
- rubygems_version: 3.4.10
76
+ rubygems_version: 3.3.26
139
77
  signing_key:
140
78
  specification_version: 4
141
79
  summary: Aserto Directory GRPC Client