aserto-directory 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 37021d4105b4f800b9fb64d2cbb444eeb6e155c0594b6323eff87761020afba3
4
+ data.tar.gz: b9711bcfa3cd8b1d6b11196deccb8f5f037401fe58bf6c2645d59214a8ddd7aa
5
+ SHA512:
6
+ metadata.gz: 03ccb761560706cf2d3871c3f1603b54613de25d9c5fcfb1d82b551542caa67f9e7e2d52bbe3995833329025b785836e0ffa46c07e6a0d739a09ea1569a524ec
7
+ data.tar.gz: 7730c2e5f1320329703ddbacf69f4e80f82f465d79b5302a6493a8714340daaaa7fe39f1d62d85cdf3979dd7fd9553178201f287bc4d674f462271aced1428bf
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # Aserto::directory
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/aserto-directory.svg)](https://badge.fury.io/rb/aserto-directory)
4
+ [![ci](https://github.com/aserto-dev/ruby-directory/actions/workflows/ci.yaml/badge.svg)](https://github.com/aserto-dev/ruby-directory/actions/workflows/ci.yaml)
5
+ [![slack](https://img.shields.io/badge/slack-Aserto%20Community-brightgreen)](https://asertocommunity.slack.com
6
+ )
7
+
8
+ Ruby generated GRPC client for Aserto directory
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'aserto-directory'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle install
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install aserto-directory
25
+
26
+ ## Usage
27
+ ```ruby
28
+ require 'aserto/directory'
29
+
30
+ request = Aserto::Directory::Reader::V2::GetRelationTypesRequest.new
31
+
32
+ client = Aserto::Directory::Reader::V2::Reader::Stub.new(
33
+ "directory.eng.aserto.com:8443",
34
+ GRPC::Core::ChannelCredentials.new
35
+ )
36
+
37
+ begin
38
+ resp = client.get_relation_types(
39
+ request,
40
+ {
41
+ metadata: {
42
+ "authorization": 'my-bearer-token',
43
+ "aserto-tenant-id": 'my-tenant-id'
44
+ }
45
+ }
46
+ )
47
+
48
+ # use response
49
+ puts resp.inspect
50
+ rescue GRPC::BadStatus => e
51
+ # handle error
52
+ puts e.inspect
53
+ end
54
+ ```
55
+
56
+ ## Development
57
+ Prerequisites:
58
+
59
+ - go >= 1.17 to generate Ruby code
60
+ - Ruby >= 2.7.0 to run the code
61
+
62
+ After checking out the repo, run `mage generate` to generate Ruby code.
63
+
64
+ Run `bundle install` to install dependencies. Then, run `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
65
+
66
+
67
+ ## Contributing
68
+
69
+ Bug reports and pull requests are welcome on GitHub at https://github.com/aserto-dev/ruby-directory. This project is intended to be a safe, welcoming space for collaboration.
70
+
71
+ ## License
72
+
73
+ The gem is available as open source under the terms of the [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
@@ -0,0 +1,141 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/directory/common/v2/common.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+
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 :id, :int32, 1, json_name: "id"
13
+ optional :name, :string, 2, json_name: "name"
14
+ optional :display_name, :string, 3, json_name: "displayName"
15
+ optional :is_subject, :bool, 4, json_name: "isSubject"
16
+ optional :ordinal, :int32, 5, json_name: "ordinal"
17
+ optional :status, :uint32, 6, json_name: "status"
18
+ optional :schema, :message, 10, "google.protobuf.Struct", json_name: "schema"
19
+ optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
20
+ optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
21
+ optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
22
+ optional :hash, :string, 23, json_name: "hash"
23
+ end
24
+ add_message "aserto.directory.common.v2.Permission" do
25
+ optional :id, :string, 1, json_name: "id"
26
+ optional :name, :string, 2, json_name: "name"
27
+ optional :display_name, :string, 3, json_name: "displayName"
28
+ optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
29
+ optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
30
+ optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
31
+ optional :hash, :string, 23, json_name: "hash"
32
+ end
33
+ add_message "aserto.directory.common.v2.RelationType" do
34
+ optional :id, :int32, 1, json_name: "id"
35
+ optional :name, :string, 2, json_name: "name"
36
+ optional :object_type, :string, 3, json_name: "objectType"
37
+ optional :display_name, :string, 4, json_name: "displayName"
38
+ optional :ordinal, :int32, 5, json_name: "ordinal"
39
+ optional :status, :uint32, 6, json_name: "status"
40
+ repeated :unions, :string, 7, json_name: "unions"
41
+ repeated :permissions, :string, 8, json_name: "permissions"
42
+ optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
43
+ optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
44
+ optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
45
+ optional :hash, :string, 23, json_name: "hash"
46
+ end
47
+ add_message "aserto.directory.common.v2.Object" do
48
+ optional :id, :string, 1, json_name: "id"
49
+ optional :key, :string, 2, json_name: "key"
50
+ optional :type, :string, 3, json_name: "type"
51
+ optional :display_name, :string, 4, json_name: "displayName"
52
+ optional :properties, :message, 5, "google.protobuf.Struct", json_name: "properties"
53
+ optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
54
+ optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
55
+ optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
56
+ optional :hash, :string, 23, json_name: "hash"
57
+ end
58
+ add_message "aserto.directory.common.v2.Relation" do
59
+ optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
60
+ optional :relation, :string, 2, json_name: "relation"
61
+ optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
62
+ optional :created_at, :message, 20, "google.protobuf.Timestamp", json_name: "createdAt"
63
+ optional :updated_at, :message, 21, "google.protobuf.Timestamp", json_name: "updatedAt"
64
+ optional :deleted_at, :message, 22, "google.protobuf.Timestamp", json_name: "deletedAt"
65
+ optional :hash, :string, 23, json_name: "hash"
66
+ end
67
+ add_message "aserto.directory.common.v2.ObjectDependency" do
68
+ optional :object_type, :string, 1, json_name: "objectType"
69
+ optional :object_id, :string, 3, json_name: "objectId"
70
+ optional :object_key, :string, 4, json_name: "objectKey"
71
+ optional :relation, :string, 5, json_name: "relation"
72
+ optional :subject_type, :string, 7, json_name: "subjectType"
73
+ optional :subject_id, :string, 9, json_name: "subjectId"
74
+ optional :subject_key, :string, 10, json_name: "subjectKey"
75
+ optional :depth, :int32, 11, json_name: "depth"
76
+ optional :is_cycle, :bool, 12, json_name: "isCycle"
77
+ repeated :path, :string, 13, json_name: "path"
78
+ end
79
+ add_message "aserto.directory.common.v2.ObjectTypeIdentifier" do
80
+ proto3_optional :id, :int32, 1, json_name: "id"
81
+ proto3_optional :name, :string, 2, json_name: "name"
82
+ end
83
+ add_message "aserto.directory.common.v2.PermissionIdentifier" do
84
+ proto3_optional :id, :string, 1, json_name: "id"
85
+ proto3_optional :name, :string, 2, json_name: "name"
86
+ end
87
+ add_message "aserto.directory.common.v2.RelationTypeIdentifier" do
88
+ proto3_optional :id, :int32, 1, json_name: "id"
89
+ proto3_optional :name, :string, 2, json_name: "name"
90
+ proto3_optional :object_type, :string, 3, json_name: "objectType"
91
+ end
92
+ add_message "aserto.directory.common.v2.ObjectIdentifier" do
93
+ proto3_optional :type, :string, 1, json_name: "type"
94
+ proto3_optional :id, :string, 2, json_name: "id"
95
+ proto3_optional :key, :string, 3, json_name: "key"
96
+ end
97
+ add_message "aserto.directory.common.v2.RelationIdentifier" do
98
+ optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
99
+ optional :relation, :message, 2, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
100
+ optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
101
+ end
102
+ add_message "aserto.directory.common.v2.PaginationRequest" do
103
+ optional :size, :int32, 1, json_name: "size"
104
+ optional :token, :string, 2, json_name: "token"
105
+ end
106
+ add_message "aserto.directory.common.v2.PaginationResponse" do
107
+ optional :next_token, :string, 1, json_name: "nextToken"
108
+ optional :result_size, :int32, 2, json_name: "resultSize"
109
+ end
110
+ add_enum "aserto.directory.common.v2.Flag" do
111
+ value :FLAG_UNKNOWN, 0
112
+ value :FLAG_HIDDEN, 1
113
+ value :FLAG_READONLY, 2
114
+ value :FLAG_SYSTEM, 4
115
+ value :FLAG_SHADOW, 8
116
+ end
117
+ end
118
+ end
119
+
120
+ module Aserto
121
+ module Directory
122
+ module Common
123
+ module V2
124
+ ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.ObjectType").msgclass
125
+ Permission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.Permission").msgclass
126
+ RelationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.RelationType").msgclass
127
+ Object = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.Object").msgclass
128
+ Relation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.Relation").msgclass
129
+ ObjectDependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.ObjectDependency").msgclass
130
+ ObjectTypeIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.ObjectTypeIdentifier").msgclass
131
+ PermissionIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.PermissionIdentifier").msgclass
132
+ RelationTypeIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.RelationTypeIdentifier").msgclass
133
+ ObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.ObjectIdentifier").msgclass
134
+ RelationIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.RelationIdentifier").msgclass
135
+ PaginationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.PaginationRequest").msgclass
136
+ PaginationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.PaginationResponse").msgclass
137
+ Flag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.common.v2.Flag").enummodule
138
+ end
139
+ end
140
+ end
141
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/directory/exporter/v2/exporter.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'aserto/directory/common/v2/common_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+
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
37
+ end
38
+ end
39
+ end
40
+
41
+ module Aserto
42
+ module Directory
43
+ module Exporter
44
+ module V2
45
+ ExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.exporter.v2.ExportRequest").msgclass
46
+ ExportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.exporter.v2.ExportResponse").msgclass
47
+ Option = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.exporter.v2.Option").enummodule
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: aserto/directory/exporter/v2/exporter.proto for package 'Aserto.Directory.Exporter.V2'
3
+
4
+ require 'grpc'
5
+ require 'aserto/directory/exporter/v2/exporter_pb'
6
+
7
+ module Aserto
8
+ module Directory
9
+ module Exporter
10
+ module V2
11
+ module Exporter
12
+ class Service
13
+
14
+ include ::GRPC::GenericService
15
+
16
+ self.marshal_class_method = :encode
17
+ self.unmarshal_class_method = :decode
18
+ self.service_name = 'aserto.directory.exporter.v2.Exporter'
19
+
20
+ rpc :Export, ::Aserto::Directory::Exporter::V2::ExportRequest, stream(::Aserto::Directory::Exporter::V2::ExportResponse)
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,52 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/directory/importer/v2/importer.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'aserto/directory/common/v2/common_pb'
7
+
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
37
+ end
38
+ end
39
+ end
40
+
41
+ module Aserto
42
+ module Directory
43
+ module Importer
44
+ module V2
45
+ ImportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v2.ImportRequest").msgclass
46
+ ImportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v2.ImportResponse").msgclass
47
+ ImportCounter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v2.ImportCounter").msgclass
48
+ Opcode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.importer.v2.Opcode").enummodule
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: aserto/directory/importer/v2/importer.proto for package 'Aserto.Directory.Importer.V2'
3
+
4
+ require 'grpc'
5
+ require 'aserto/directory/importer/v2/importer_pb'
6
+
7
+ module Aserto
8
+ module Directory
9
+ module Importer
10
+ module V2
11
+ module Importer
12
+ class Service
13
+
14
+ include ::GRPC::GenericService
15
+
16
+ self.marshal_class_method = :encode
17
+ self.unmarshal_class_method = :decode
18
+ self.service_name = 'aserto.directory.importer.v2.Importer'
19
+
20
+ rpc :Import, stream(::Aserto::Directory::Importer::V2::ImportRequest), stream(::Aserto::Directory::Importer::V2::ImportResponse)
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,156 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/directory/reader/v2/reader.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'aserto/directory/common/v2/common_pb'
7
+
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
+ end
60
+ add_message "aserto.directory.reader.v2.GetRelationResponse" do
61
+ repeated :results, :message, 1, "aserto.directory.common.v2.Relation", json_name: "results"
62
+ end
63
+ add_message "aserto.directory.reader.v2.GetRelationsRequest" do
64
+ optional :param, :message, 1, "aserto.directory.common.v2.RelationIdentifier", json_name: "param"
65
+ optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
66
+ end
67
+ add_message "aserto.directory.reader.v2.GetRelationsResponse" do
68
+ repeated :results, :message, 1, "aserto.directory.common.v2.Relation", json_name: "results"
69
+ optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
70
+ end
71
+ add_message "aserto.directory.reader.v2.GetPermissionRequest" do
72
+ optional :param, :message, 1, "aserto.directory.common.v2.PermissionIdentifier", json_name: "param"
73
+ end
74
+ add_message "aserto.directory.reader.v2.GetPermissionResponse" do
75
+ optional :result, :message, 1, "aserto.directory.common.v2.Permission", json_name: "result"
76
+ end
77
+ add_message "aserto.directory.reader.v2.GetPermissionsRequest" do
78
+ optional :page, :message, 9, "aserto.directory.common.v2.PaginationRequest", json_name: "page"
79
+ end
80
+ add_message "aserto.directory.reader.v2.GetPermissionsResponse" do
81
+ repeated :results, :message, 1, "aserto.directory.common.v2.Permission", json_name: "results"
82
+ optional :page, :message, 9, "aserto.directory.common.v2.PaginationResponse", json_name: "page"
83
+ end
84
+ add_message "aserto.directory.reader.v2.CheckPermissionRequest" do
85
+ optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
86
+ optional :permission, :message, 2, "aserto.directory.common.v2.PermissionIdentifier", json_name: "permission"
87
+ optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
88
+ optional :trace, :bool, 7, json_name: "trace"
89
+ end
90
+ add_message "aserto.directory.reader.v2.CheckPermissionResponse" do
91
+ optional :check, :bool, 1, json_name: "check"
92
+ repeated :trace, :string, 2, json_name: "trace"
93
+ end
94
+ add_message "aserto.directory.reader.v2.CheckRelationRequest" do
95
+ optional :subject, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
96
+ optional :relation, :message, 2, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
97
+ optional :object, :message, 3, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
98
+ optional :trace, :bool, 7, json_name: "trace"
99
+ end
100
+ add_message "aserto.directory.reader.v2.CheckRelationResponse" do
101
+ optional :check, :bool, 1, json_name: "check"
102
+ repeated :trace, :string, 2, json_name: "trace"
103
+ end
104
+ add_message "aserto.directory.reader.v2.CheckResponse" do
105
+ optional :check, :bool, 1, json_name: "check"
106
+ repeated :trace, :string, 2, json_name: "trace"
107
+ end
108
+ add_message "aserto.directory.reader.v2.GetGraphRequest" do
109
+ optional :anchor, :message, 1, "aserto.directory.common.v2.ObjectIdentifier", json_name: "anchor"
110
+ optional :subject, :message, 2, "aserto.directory.common.v2.ObjectIdentifier", json_name: "subject"
111
+ optional :relation, :message, 3, "aserto.directory.common.v2.RelationTypeIdentifier", json_name: "relation"
112
+ optional :object, :message, 4, "aserto.directory.common.v2.ObjectIdentifier", json_name: "object"
113
+ end
114
+ add_message "aserto.directory.reader.v2.GetGraphResponse" do
115
+ repeated :results, :message, 1, "aserto.directory.common.v2.ObjectDependency", json_name: "results"
116
+ end
117
+ end
118
+ end
119
+
120
+ module Aserto
121
+ module Directory
122
+ module Reader
123
+ module V2
124
+ GetObjectTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectTypeRequest").msgclass
125
+ GetObjectTypeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectTypeResponse").msgclass
126
+ GetObjectTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectTypesRequest").msgclass
127
+ GetObjectTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectTypesResponse").msgclass
128
+ GetRelationTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationTypeRequest").msgclass
129
+ GetRelationTypeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationTypeResponse").msgclass
130
+ GetRelationTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationTypesRequest").msgclass
131
+ GetRelationTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationTypesResponse").msgclass
132
+ GetObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectRequest").msgclass
133
+ GetObjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectResponse").msgclass
134
+ GetObjectManyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectManyRequest").msgclass
135
+ GetObjectManyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectManyResponse").msgclass
136
+ GetObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectsRequest").msgclass
137
+ GetObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetObjectsResponse").msgclass
138
+ GetRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationRequest").msgclass
139
+ GetRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationResponse").msgclass
140
+ GetRelationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationsRequest").msgclass
141
+ GetRelationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetRelationsResponse").msgclass
142
+ GetPermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetPermissionRequest").msgclass
143
+ GetPermissionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetPermissionResponse").msgclass
144
+ GetPermissionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetPermissionsRequest").msgclass
145
+ GetPermissionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetPermissionsResponse").msgclass
146
+ CheckPermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.CheckPermissionRequest").msgclass
147
+ CheckPermissionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.CheckPermissionResponse").msgclass
148
+ CheckRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.CheckRelationRequest").msgclass
149
+ CheckRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.CheckRelationResponse").msgclass
150
+ CheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.CheckResponse").msgclass
151
+ GetGraphRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetGraphRequest").msgclass
152
+ GetGraphResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.reader.v2.GetGraphResponse").msgclass
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: aserto/directory/reader/v2/reader.proto for package 'Aserto.Directory.Reader.V2'
3
+
4
+ require 'grpc'
5
+ require 'aserto/directory/reader/v2/reader_pb'
6
+
7
+ module Aserto
8
+ module Directory
9
+ module Reader
10
+ module V2
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.v2.Reader'
19
+
20
+ # object type metadata methods
21
+ rpc :GetObjectType, ::Aserto::Directory::Reader::V2::GetObjectTypeRequest, ::Aserto::Directory::Reader::V2::GetObjectTypeResponse
22
+ rpc :GetObjectTypes, ::Aserto::Directory::Reader::V2::GetObjectTypesRequest, ::Aserto::Directory::Reader::V2::GetObjectTypesResponse
23
+ # relation type metadata methods
24
+ rpc :GetRelationType, ::Aserto::Directory::Reader::V2::GetRelationTypeRequest, ::Aserto::Directory::Reader::V2::GetRelationTypeResponse
25
+ rpc :GetRelationTypes, ::Aserto::Directory::Reader::V2::GetRelationTypesRequest, ::Aserto::Directory::Reader::V2::GetRelationTypesResponse
26
+ # permission metadata methods
27
+ rpc :GetPermission, ::Aserto::Directory::Reader::V2::GetPermissionRequest, ::Aserto::Directory::Reader::V2::GetPermissionResponse
28
+ rpc :GetPermissions, ::Aserto::Directory::Reader::V2::GetPermissionsRequest, ::Aserto::Directory::Reader::V2::GetPermissionsResponse
29
+ # object methods
30
+ rpc :GetObject, ::Aserto::Directory::Reader::V2::GetObjectRequest, ::Aserto::Directory::Reader::V2::GetObjectResponse
31
+ rpc :GetObjectMany, ::Aserto::Directory::Reader::V2::GetObjectManyRequest, ::Aserto::Directory::Reader::V2::GetObjectManyResponse
32
+ rpc :GetObjects, ::Aserto::Directory::Reader::V2::GetObjectsRequest, ::Aserto::Directory::Reader::V2::GetObjectsResponse
33
+ # relation methods
34
+ rpc :GetRelation, ::Aserto::Directory::Reader::V2::GetRelationRequest, ::Aserto::Directory::Reader::V2::GetRelationResponse
35
+ rpc :GetRelations, ::Aserto::Directory::Reader::V2::GetRelationsRequest, ::Aserto::Directory::Reader::V2::GetRelationsResponse
36
+ # check methods
37
+ rpc :CheckPermission, ::Aserto::Directory::Reader::V2::CheckPermissionRequest, ::Aserto::Directory::Reader::V2::CheckPermissionResponse
38
+ rpc :CheckRelation, ::Aserto::Directory::Reader::V2::CheckRelationRequest, ::Aserto::Directory::Reader::V2::CheckRelationResponse
39
+ # graph methods
40
+ rpc :GetGraph, ::Aserto::Directory::Reader::V2::GetGraphRequest, ::Aserto::Directory::Reader::V2::GetGraphResponse
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,101 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/directory/writer/v2/writer.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/empty_pb'
7
+ require 'aserto/directory/common/v2/common_pb'
8
+
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"
70
+ end
71
+ end
72
+ end
73
+
74
+ module Aserto
75
+ module Directory
76
+ module Writer
77
+ module V2
78
+ SetObjectTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetObjectTypeRequest").msgclass
79
+ SetObjectTypeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetObjectTypeResponse").msgclass
80
+ DeleteObjectTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteObjectTypeRequest").msgclass
81
+ DeleteObjectTypeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteObjectTypeResponse").msgclass
82
+ SetRelationTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetRelationTypeRequest").msgclass
83
+ SetRelationTypeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetRelationTypeResponse").msgclass
84
+ DeleteRelationTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteRelationTypeRequest").msgclass
85
+ DeleteRelationTypeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteRelationTypeResponse").msgclass
86
+ SetPermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetPermissionRequest").msgclass
87
+ SetPermissionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetPermissionResponse").msgclass
88
+ DeletePermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeletePermissionRequest").msgclass
89
+ DeletePermissionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeletePermissionResponse").msgclass
90
+ SetObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetObjectRequest").msgclass
91
+ SetObjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetObjectResponse").msgclass
92
+ DeleteObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteObjectRequest").msgclass
93
+ DeleteObjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteObjectResponse").msgclass
94
+ SetRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetRelationRequest").msgclass
95
+ SetRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.SetRelationResponse").msgclass
96
+ DeleteRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteRelationRequest").msgclass
97
+ DeleteRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v2.DeleteRelationResponse").msgclass
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,42 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: aserto/directory/writer/v2/writer.proto for package 'Aserto.Directory.Writer.V2'
3
+
4
+ require 'grpc'
5
+ require 'aserto/directory/writer/v2/writer_pb'
6
+
7
+ module Aserto
8
+ module Directory
9
+ module Writer
10
+ module V2
11
+ module Writer
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.writer.v2.Writer'
19
+
20
+ # object type metadata methods
21
+ rpc :SetObjectType, ::Aserto::Directory::Writer::V2::SetObjectTypeRequest, ::Aserto::Directory::Writer::V2::SetObjectTypeResponse
22
+ rpc :DeleteObjectType, ::Aserto::Directory::Writer::V2::DeleteObjectTypeRequest, ::Aserto::Directory::Writer::V2::DeleteObjectTypeResponse
23
+ # relation type metadata methods
24
+ rpc :SetRelationType, ::Aserto::Directory::Writer::V2::SetRelationTypeRequest, ::Aserto::Directory::Writer::V2::SetRelationTypeResponse
25
+ rpc :DeleteRelationType, ::Aserto::Directory::Writer::V2::DeleteRelationTypeRequest, ::Aserto::Directory::Writer::V2::DeleteRelationTypeResponse
26
+ # permission metadata methods
27
+ rpc :SetPermission, ::Aserto::Directory::Writer::V2::SetPermissionRequest, ::Aserto::Directory::Writer::V2::SetPermissionResponse
28
+ rpc :DeletePermission, ::Aserto::Directory::Writer::V2::DeletePermissionRequest, ::Aserto::Directory::Writer::V2::DeletePermissionResponse
29
+ # object methods
30
+ rpc :SetObject, ::Aserto::Directory::Writer::V2::SetObjectRequest, ::Aserto::Directory::Writer::V2::SetObjectResponse
31
+ rpc :DeleteObject, ::Aserto::Directory::Writer::V2::DeleteObjectRequest, ::Aserto::Directory::Writer::V2::DeleteObjectResponse
32
+ # relation methods
33
+ rpc :SetRelation, ::Aserto::Directory::Writer::V2::SetRelationRequest, ::Aserto::Directory::Writer::V2::SetRelationResponse
34
+ rpc :DeleteRelation, ::Aserto::Directory::Writer::V2::DeleteRelationRequest, ::Aserto::Directory::Writer::V2::DeleteRelationResponse
35
+ end
36
+
37
+ Stub = Service.rpc_stub_class
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aserto
4
+ module Directory
5
+ VERSION = File.read(
6
+ File.join(__dir__, "..", "..", "..", "VERSION")
7
+ ).chomp
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "directory/version"
4
+ require_relative "../../generated/aserto/directory/reader/v2/reader_services_pb"
5
+ require_relative "../../generated/aserto/directory/writer/v2/writer_services_pb"
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aserto-directory
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Aserto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: grpc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.46'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
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
+ description: Ruby generated GRPC client for Aserto Directory
90
+ email:
91
+ - aserto@aserto.com
92
+ executables: []
93
+ extensions: []
94
+ extra_rdoc_files: []
95
+ files:
96
+ - LICENSE
97
+ - README.md
98
+ - VERSION
99
+ - generated/aserto/directory/common/v2/common_pb.rb
100
+ - generated/aserto/directory/exporter/v2/exporter_pb.rb
101
+ - generated/aserto/directory/exporter/v2/exporter_services_pb.rb
102
+ - generated/aserto/directory/importer/v2/importer_pb.rb
103
+ - generated/aserto/directory/importer/v2/importer_services_pb.rb
104
+ - generated/aserto/directory/reader/v2/reader_pb.rb
105
+ - generated/aserto/directory/reader/v2/reader_services_pb.rb
106
+ - generated/aserto/directory/writer/v2/writer_pb.rb
107
+ - generated/aserto/directory/writer/v2/writer_services_pb.rb
108
+ - lib/aserto/directory.rb
109
+ - lib/aserto/directory/version.rb
110
+ homepage: https://www.aserto.com
111
+ licenses:
112
+ - Apache-2.0
113
+ metadata:
114
+ allowed_push_host: https://rubygems.org
115
+ homepage_uri: https://www.aserto.com
116
+ source_code_uri: https://github.com/aserto-dev/ruby-directory
117
+ changelog_uri: https://github.com/aserto-dev/ruby-directory
118
+ rubygems_mfa_required: 'true'
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ - generated
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 2.7.0
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubygems_version: 3.3.7
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Aserto Directory GRPC Client
139
+ test_files: []