aserto-authorizer 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1e32471407d62a4980d843e819f6d8e87a44fff710bbe29d83cd24365dadf968
4
+ data.tar.gz: 9e4e8b8f674f95e920b2bfa385d682fe8dcc628161cf206843bcbfbbd0643d75
5
+ SHA512:
6
+ metadata.gz: 8f47e76eb3aabe4f315f29f2bd85f8703a99fd26fd39cad274625ef1e3e22a6feb56a5ac4dc4f4bce45ed32df4b014cedad4f98d1b8450f12e7cf4086f99d90d
7
+ data.tar.gz: ac81183aa160d1a02dc6e2c3729ad3ebbb9f9c10a7d93a8d32c0abfddb288e18e878625042b54426c07ce937f37c2eb5bce1f83ef6815881b7f631c437541217
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,79 @@
1
+ # Aserto::Authorizer
2
+
3
+ [![Gem Version](https://rubygems.org/gems/aserto-authorizer.svg)](https://rubygems.org/gems/aserto-authorizer)
4
+ [![ci](https://github.com/aserto-dev/ruby-authorizer/actions/workflows/ci.yaml/badge.svg)](https://github.com/aserto-dev/ruby-authorizer/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 Authorizer
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'aserto-authorizer'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle install
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install aserto-authorizer
25
+
26
+ ## Usage
27
+ ```ruby
28
+ require 'aserto/authorizer'
29
+
30
+ query_request = Aserto::Authorizer::V2::QueryRequest.new(
31
+ {
32
+ query: 'x=data',
33
+ policy_context: Aserto::Authorizer::V2::Api::PolicyContext.new(
34
+ { name: 'my-policy' }
35
+ )
36
+ }
37
+ )
38
+
39
+ client = Aserto::Authorizer::V2::Authorizer::Stub.new(
40
+ "authorizer.eng.aserto.com:8443",
41
+ GRPC::Core::ChannelCredentials.new
42
+ )
43
+
44
+ begin
45
+ resp = client.query(
46
+ query_request,
47
+ {
48
+ metadata: {
49
+ "authorization": 'my-bearer-token',
50
+ }
51
+ }
52
+ )
53
+
54
+ # use response
55
+ puts resp.inspect
56
+ rescue GRPC::BadStatus => e
57
+ # handle error
58
+ puts e.inspect
59
+ end
60
+ ```
61
+
62
+ ## Development
63
+ Prerequisites:
64
+
65
+ - go >= 1.17 to generate Ruby code
66
+ - Ruby >= 2.7.0 to run the code
67
+
68
+ After checking out the repo, run `mage generate` to generate Ruby code.
69
+
70
+ 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.
71
+
72
+
73
+ ## Contributing
74
+
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/aserto-dev/ruby-authorizer. This project is intended to be a safe, welcoming space for collaboration.
76
+
77
+ ## License
78
+
79
+ 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.2
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/authorizer/v2/api/decision_logs.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'aserto/authorizer/v2/api/policy_context_pb'
9
+ require 'aserto/authorizer/v2/api/identity_context_pb'
10
+
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("aserto/authorizer/v2/api/decision_logs.proto", :syntax => :proto3) do
13
+ add_message "aserto.authorizer.v2.api.Decision" do
14
+ optional :id, :string, 1, json_name: "id"
15
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp", json_name: "timestamp"
16
+ optional :path, :string, 3, json_name: "path"
17
+ optional :user, :message, 4, "aserto.authorizer.v2.api.DecisionUser", json_name: "user"
18
+ optional :policy, :message, 5, "aserto.authorizer.v2.api.DecisionPolicy", json_name: "policy"
19
+ map :outcomes, :string, :bool, 6
20
+ optional :resource, :message, 7, "google.protobuf.Struct", json_name: "resource"
21
+ map :annotations, :string, :string, 8
22
+ end
23
+ add_message "aserto.authorizer.v2.api.DecisionUser" do
24
+ optional :context, :message, 1, "aserto.authorizer.v2.api.IdentityContext", json_name: "context"
25
+ optional :id, :string, 2, json_name: "id"
26
+ optional :email, :string, 3, json_name: "email"
27
+ end
28
+ add_message "aserto.authorizer.v2.api.DecisionPolicy" do
29
+ optional :context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "context"
30
+ optional :registry_service, :string, 2, json_name: "registryService"
31
+ optional :registry_image, :string, 3, json_name: "registryImage"
32
+ optional :registry_tag, :string, 4, json_name: "registryTag"
33
+ optional :registry_digest, :string, 5, json_name: "registryDigest"
34
+ end
35
+ end
36
+ end
37
+
38
+ module Aserto
39
+ module Authorizer
40
+ module V2
41
+ module Api
42
+ Decision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.Decision").msgclass
43
+ DecisionUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.DecisionUser").msgclass
44
+ DecisionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.DecisionPolicy").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,30 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/authorizer/v2/api/identity_context.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("aserto/authorizer/v2/api/identity_context.proto", :syntax => :proto3) do
8
+ add_message "aserto.authorizer.v2.api.IdentityContext" do
9
+ optional :identity, :string, 1, json_name: "identity"
10
+ optional :type, :enum, 2, "aserto.authorizer.v2.api.IdentityType", json_name: "type"
11
+ end
12
+ add_enum "aserto.authorizer.v2.api.IdentityType" do
13
+ value :IDENTITY_TYPE_UNKNOWN, 0
14
+ value :IDENTITY_TYPE_NONE, 1
15
+ value :IDENTITY_TYPE_SUB, 2
16
+ value :IDENTITY_TYPE_JWT, 3
17
+ end
18
+ end
19
+ end
20
+
21
+ module Aserto
22
+ module Authorizer
23
+ module V2
24
+ module Api
25
+ IdentityContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.IdentityContext").msgclass
26
+ IdentityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.IdentityType").enummodule
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/authorizer/v2/api/module.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("aserto/authorizer/v2/api/module.proto", :syntax => :proto3) do
10
+ add_message "aserto.authorizer.v2.api.Module" do
11
+ proto3_optional :id, :string, 1, json_name: "id"
12
+ proto3_optional :raw, :string, 2, json_name: "raw"
13
+ proto3_optional :package_path, :string, 3, json_name: "packagePath"
14
+ proto3_optional :ast, :message, 4, "google.protobuf.Value", json_name: "ast"
15
+ end
16
+ end
17
+ end
18
+
19
+ module Aserto
20
+ module Authorizer
21
+ module V2
22
+ module Api
23
+ Module = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.Module").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/authorizer/v2/api/policy_context.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("aserto/authorizer/v2/api/policy_context.proto", :syntax => :proto3) do
8
+ add_message "aserto.authorizer.v2.api.PolicyContext" do
9
+ optional :name, :string, 1, json_name: "name"
10
+ optional :instance_label, :string, 2, json_name: "instanceLabel"
11
+ optional :path, :string, 3, json_name: "path"
12
+ repeated :decisions, :string, 4, json_name: "decisions"
13
+ end
14
+ end
15
+ end
16
+
17
+ module Aserto
18
+ module Authorizer
19
+ module V2
20
+ module Api
21
+ PolicyContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.PolicyContext").msgclass
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,127 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/authorizer/v2/authorizer.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'protoc-gen-openapiv2/options/annotations_pb'
8
+ require 'google/protobuf/struct_pb'
9
+ require 'google/protobuf/field_mask_pb'
10
+ require 'aserto/authorizer/v2/api/identity_context_pb'
11
+ require 'aserto/authorizer/v2/api/policy_context_pb'
12
+ require 'aserto/authorizer/v2/api/module_pb'
13
+
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("aserto/authorizer/v2/authorizer.proto", :syntax => :proto3) do
16
+ add_message "aserto.authorizer.v2.GetPolicyRequest" do
17
+ optional :id, :string, 1, json_name: "id"
18
+ optional :field_mask, :message, 2, "google.protobuf.FieldMask", json_name: "fieldMask"
19
+ end
20
+ add_message "aserto.authorizer.v2.GetPolicyResponse" do
21
+ optional :result, :message, 1, "aserto.authorizer.v2.api.Module", json_name: "result"
22
+ end
23
+ add_message "aserto.authorizer.v2.ListPoliciesRequest" do
24
+ optional :field_mask, :message, 1, "google.protobuf.FieldMask", json_name: "fieldMask"
25
+ end
26
+ add_message "aserto.authorizer.v2.ListPoliciesResponse" do
27
+ repeated :result, :message, 1, "aserto.authorizer.v2.api.Module", json_name: "result"
28
+ end
29
+ add_message "aserto.authorizer.v2.DecisionTreeRequest" do
30
+ optional :policy_context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
31
+ optional :identity_context, :message, 2, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
32
+ optional :options, :message, 3, "aserto.authorizer.v2.DecisionTreeOptions", json_name: "options"
33
+ optional :resource_context, :message, 4, "google.protobuf.Struct", json_name: "resourceContext"
34
+ end
35
+ add_message "aserto.authorizer.v2.DecisionTreeOptions" do
36
+ optional :path_separator, :enum, 1, "aserto.authorizer.v2.PathSeparator", json_name: "pathSeparator"
37
+ end
38
+ add_message "aserto.authorizer.v2.DecisionTreeResponse" do
39
+ optional :path_root, :string, 1, json_name: "pathRoot"
40
+ optional :path, :message, 3, "google.protobuf.Struct", json_name: "path"
41
+ end
42
+ add_message "aserto.authorizer.v2.IsRequest" do
43
+ optional :policy_context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
44
+ optional :identity_context, :message, 2, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
45
+ optional :resource_context, :message, 3, "google.protobuf.Struct", json_name: "resourceContext"
46
+ end
47
+ add_message "aserto.authorizer.v2.Decision" do
48
+ optional :decision, :string, 1, json_name: "decision"
49
+ optional :is, :bool, 2, json_name: "is"
50
+ end
51
+ add_message "aserto.authorizer.v2.IsResponse" do
52
+ repeated :decisions, :message, 1, "aserto.authorizer.v2.Decision", json_name: "decisions"
53
+ end
54
+ add_message "aserto.authorizer.v2.QueryOptions" do
55
+ optional :metrics, :bool, 1, json_name: "metrics"
56
+ optional :instrument, :bool, 2, json_name: "instrument"
57
+ optional :trace, :enum, 3, "aserto.authorizer.v2.TraceLevel", json_name: "trace"
58
+ optional :trace_summary, :bool, 4, json_name: "traceSummary"
59
+ end
60
+ add_message "aserto.authorizer.v2.QueryRequest" do
61
+ optional :query, :string, 1, json_name: "query"
62
+ optional :input, :string, 2, json_name: "input"
63
+ proto3_optional :options, :message, 3, "aserto.authorizer.v2.QueryOptions", json_name: "options"
64
+ proto3_optional :policy_context, :message, 4, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
65
+ proto3_optional :identity_context, :message, 5, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
66
+ proto3_optional :resource_context, :message, 6, "google.protobuf.Struct", json_name: "resourceContext"
67
+ end
68
+ add_message "aserto.authorizer.v2.CompileRequest" do
69
+ optional :query, :string, 1, json_name: "query"
70
+ optional :input, :string, 2, json_name: "input"
71
+ repeated :unknowns, :string, 3, json_name: "unknowns"
72
+ repeated :disable_inlining, :string, 4, json_name: "disableInlining"
73
+ proto3_optional :options, :message, 5, "aserto.authorizer.v2.QueryOptions", json_name: "options"
74
+ proto3_optional :policy_context, :message, 6, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
75
+ proto3_optional :identity_context, :message, 7, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
76
+ proto3_optional :resource_context, :message, 8, "google.protobuf.Struct", json_name: "resourceContext"
77
+ end
78
+ add_message "aserto.authorizer.v2.CompileResponse" do
79
+ optional :result, :message, 1, "google.protobuf.Struct", json_name: "result"
80
+ optional :metrics, :message, 2, "google.protobuf.Struct", json_name: "metrics"
81
+ repeated :trace, :message, 3, "google.protobuf.Struct", json_name: "trace"
82
+ repeated :trace_summary, :string, 4, json_name: "traceSummary"
83
+ end
84
+ add_message "aserto.authorizer.v2.QueryResponse" do
85
+ optional :response, :message, 1, "google.protobuf.Struct", json_name: "response"
86
+ optional :metrics, :message, 2, "google.protobuf.Struct", json_name: "metrics"
87
+ repeated :trace, :message, 3, "google.protobuf.Struct", json_name: "trace"
88
+ repeated :trace_summary, :string, 4, json_name: "traceSummary"
89
+ end
90
+ add_enum "aserto.authorizer.v2.PathSeparator" do
91
+ value :PATH_SEPARATOR_UNKNOWN, 0
92
+ value :PATH_SEPARATOR_DOT, 1
93
+ value :PATH_SEPARATOR_SLASH, 2
94
+ end
95
+ add_enum "aserto.authorizer.v2.TraceLevel" do
96
+ value :TRACE_LEVEL_UNKNOWN, 0
97
+ value :TRACE_LEVEL_OFF, 1
98
+ value :TRACE_LEVEL_FULL, 2
99
+ value :TRACE_LEVEL_NOTES, 3
100
+ value :TRACE_LEVEL_FAILS, 4
101
+ end
102
+ end
103
+ end
104
+
105
+ module Aserto
106
+ module Authorizer
107
+ module V2
108
+ GetPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.GetPolicyRequest").msgclass
109
+ GetPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.GetPolicyResponse").msgclass
110
+ ListPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.ListPoliciesRequest").msgclass
111
+ ListPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.ListPoliciesResponse").msgclass
112
+ DecisionTreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.DecisionTreeRequest").msgclass
113
+ DecisionTreeOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.DecisionTreeOptions").msgclass
114
+ DecisionTreeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.DecisionTreeResponse").msgclass
115
+ IsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.IsRequest").msgclass
116
+ Decision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.Decision").msgclass
117
+ IsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.IsResponse").msgclass
118
+ QueryOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.QueryOptions").msgclass
119
+ QueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.QueryRequest").msgclass
120
+ CompileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.CompileRequest").msgclass
121
+ CompileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.CompileResponse").msgclass
122
+ QueryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.QueryResponse").msgclass
123
+ PathSeparator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.PathSeparator").enummodule
124
+ TraceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.TraceLevel").enummodule
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: aserto/authorizer/v2/authorizer.proto for package 'Aserto.Authorizer.V2'
3
+
4
+ require 'grpc'
5
+ require 'aserto/authorizer/v2/authorizer_pb'
6
+
7
+ module Aserto
8
+ module Authorizer
9
+ module V2
10
+ module Authorizer
11
+ class Service
12
+
13
+ include ::GRPC::GenericService
14
+
15
+ self.marshal_class_method = :encode
16
+ self.unmarshal_class_method = :decode
17
+ self.service_name = 'aserto.authorizer.v2.Authorizer'
18
+
19
+ rpc :DecisionTree, ::Aserto::Authorizer::V2::DecisionTreeRequest, ::Aserto::Authorizer::V2::DecisionTreeResponse
20
+ rpc :Is, ::Aserto::Authorizer::V2::IsRequest, ::Aserto::Authorizer::V2::IsResponse
21
+ rpc :Query, ::Aserto::Authorizer::V2::QueryRequest, ::Aserto::Authorizer::V2::QueryResponse
22
+ rpc :Compile, ::Aserto::Authorizer::V2::CompileRequest, ::Aserto::Authorizer::V2::CompileResponse
23
+ rpc :ListPolicies, ::Aserto::Authorizer::V2::ListPoliciesRequest, ::Aserto::Authorizer::V2::ListPoliciesResponse
24
+ rpc :GetPolicy, ::Aserto::Authorizer::V2::GetPolicyRequest, ::Aserto::Authorizer::V2::GetPolicyResponse
25
+ end
26
+
27
+ Stub = Service.rpc_stub_class
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,17 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/annotations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/http_pb'
7
+ require 'google/protobuf/descriptor_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/api/annotations.proto", :syntax => :proto3) do
11
+ end
12
+ end
13
+
14
+ module Google
15
+ module Api
16
+ end
17
+ end
@@ -0,0 +1,39 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/http.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/api/http.proto", :syntax => :proto3) do
8
+ add_message "google.api.Http" do
9
+ repeated :rules, :message, 1, "google.api.HttpRule", json_name: "rules"
10
+ optional :fully_decode_reserved_expansion, :bool, 2, json_name: "fullyDecodeReservedExpansion"
11
+ end
12
+ add_message "google.api.HttpRule" do
13
+ optional :selector, :string, 1, json_name: "selector"
14
+ optional :body, :string, 7, json_name: "body"
15
+ optional :response_body, :string, 12, json_name: "responseBody"
16
+ repeated :additional_bindings, :message, 11, "google.api.HttpRule", json_name: "additionalBindings"
17
+ oneof :pattern do
18
+ optional :get, :string, 2, json_name: "get"
19
+ optional :put, :string, 3, json_name: "put"
20
+ optional :post, :string, 4, json_name: "post"
21
+ optional :delete, :string, 5, json_name: "delete"
22
+ optional :patch, :string, 6, json_name: "patch"
23
+ optional :custom, :message, 8, "google.api.CustomHttpPattern", json_name: "custom"
24
+ end
25
+ end
26
+ add_message "google.api.CustomHttpPattern" do
27
+ optional :kind, :string, 1, json_name: "kind"
28
+ optional :path, :string, 2, json_name: "path"
29
+ end
30
+ end
31
+ end
32
+
33
+ module Google
34
+ module Api
35
+ Http = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
36
+ HttpRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
37
+ CustomHttpPattern = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
38
+ end
39
+ end
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: protoc-gen-openapiv2/options/annotations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/descriptor_pb'
7
+ require 'protoc-gen-openapiv2/options/openapiv2_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("protoc-gen-openapiv2/options/annotations.proto", :syntax => :proto3) do
11
+ end
12
+ end
13
+
14
+ module Grpc
15
+ module Gateway
16
+ module ProtocGenOpenapiv2
17
+ module Options
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,206 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: protoc-gen-openapiv2/options/openapiv2.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/struct_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("protoc-gen-openapiv2/options/openapiv2.proto", :syntax => :proto3) do
10
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Swagger" do
11
+ optional :swagger, :string, 1, json_name: "swagger"
12
+ optional :info, :message, 2, "grpc.gateway.protoc_gen_openapiv2.options.Info", json_name: "info"
13
+ optional :host, :string, 3, json_name: "host"
14
+ optional :base_path, :string, 4, json_name: "basePath"
15
+ repeated :schemes, :enum, 5, "grpc.gateway.protoc_gen_openapiv2.options.Scheme", json_name: "schemes"
16
+ repeated :consumes, :string, 6, json_name: "consumes"
17
+ repeated :produces, :string, 7, json_name: "produces"
18
+ map :responses, :string, :message, 10, "grpc.gateway.protoc_gen_openapiv2.options.Response"
19
+ optional :security_definitions, :message, 11, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions", json_name: "securityDefinitions"
20
+ repeated :security, :message, 12, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", json_name: "security"
21
+ optional :external_docs, :message, 14, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
22
+ map :extensions, :string, :message, 15, "google.protobuf.Value"
23
+ end
24
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Operation" do
25
+ repeated :tags, :string, 1, json_name: "tags"
26
+ optional :summary, :string, 2, json_name: "summary"
27
+ optional :description, :string, 3, json_name: "description"
28
+ optional :external_docs, :message, 4, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
29
+ optional :operation_id, :string, 5, json_name: "operationId"
30
+ repeated :consumes, :string, 6, json_name: "consumes"
31
+ repeated :produces, :string, 7, json_name: "produces"
32
+ map :responses, :string, :message, 9, "grpc.gateway.protoc_gen_openapiv2.options.Response"
33
+ repeated :schemes, :enum, 10, "grpc.gateway.protoc_gen_openapiv2.options.Scheme", json_name: "schemes"
34
+ optional :deprecated, :bool, 11, json_name: "deprecated"
35
+ repeated :security, :message, 12, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", json_name: "security"
36
+ map :extensions, :string, :message, 13, "google.protobuf.Value"
37
+ end
38
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Header" do
39
+ optional :description, :string, 1, json_name: "description"
40
+ optional :type, :string, 2, json_name: "type"
41
+ optional :format, :string, 3, json_name: "format"
42
+ optional :default, :string, 6, json_name: "default"
43
+ optional :pattern, :string, 13, json_name: "pattern"
44
+ end
45
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Response" do
46
+ optional :description, :string, 1, json_name: "description"
47
+ optional :schema, :message, 2, "grpc.gateway.protoc_gen_openapiv2.options.Schema", json_name: "schema"
48
+ map :headers, :string, :message, 3, "grpc.gateway.protoc_gen_openapiv2.options.Header"
49
+ map :examples, :string, :string, 4
50
+ map :extensions, :string, :message, 5, "google.protobuf.Value"
51
+ end
52
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Info" do
53
+ optional :title, :string, 1, json_name: "title"
54
+ optional :description, :string, 2, json_name: "description"
55
+ optional :terms_of_service, :string, 3, json_name: "termsOfService"
56
+ optional :contact, :message, 4, "grpc.gateway.protoc_gen_openapiv2.options.Contact", json_name: "contact"
57
+ optional :license, :message, 5, "grpc.gateway.protoc_gen_openapiv2.options.License", json_name: "license"
58
+ optional :version, :string, 6, json_name: "version"
59
+ map :extensions, :string, :message, 7, "google.protobuf.Value"
60
+ end
61
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Contact" do
62
+ optional :name, :string, 1, json_name: "name"
63
+ optional :url, :string, 2, json_name: "url"
64
+ optional :email, :string, 3, json_name: "email"
65
+ end
66
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.License" do
67
+ optional :name, :string, 1, json_name: "name"
68
+ optional :url, :string, 2, json_name: "url"
69
+ end
70
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" do
71
+ optional :description, :string, 1, json_name: "description"
72
+ optional :url, :string, 2, json_name: "url"
73
+ end
74
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Schema" do
75
+ optional :json_schema, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema", json_name: "jsonSchema"
76
+ optional :discriminator, :string, 2, json_name: "discriminator"
77
+ optional :read_only, :bool, 3, json_name: "readOnly"
78
+ optional :external_docs, :message, 5, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
79
+ optional :example, :string, 6, json_name: "example"
80
+ end
81
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema" do
82
+ optional :ref, :string, 3, json_name: "ref"
83
+ optional :title, :string, 5, json_name: "title"
84
+ optional :description, :string, 6, json_name: "description"
85
+ optional :default, :string, 7, json_name: "default"
86
+ optional :read_only, :bool, 8, json_name: "readOnly"
87
+ optional :example, :string, 9, json_name: "example"
88
+ optional :multiple_of, :double, 10, json_name: "multipleOf"
89
+ optional :maximum, :double, 11, json_name: "maximum"
90
+ optional :exclusive_maximum, :bool, 12, json_name: "exclusiveMaximum"
91
+ optional :minimum, :double, 13, json_name: "minimum"
92
+ optional :exclusive_minimum, :bool, 14, json_name: "exclusiveMinimum"
93
+ optional :max_length, :uint64, 15, json_name: "maxLength"
94
+ optional :min_length, :uint64, 16, json_name: "minLength"
95
+ optional :pattern, :string, 17, json_name: "pattern"
96
+ optional :max_items, :uint64, 20, json_name: "maxItems"
97
+ optional :min_items, :uint64, 21, json_name: "minItems"
98
+ optional :unique_items, :bool, 22, json_name: "uniqueItems"
99
+ optional :max_properties, :uint64, 24, json_name: "maxProperties"
100
+ optional :min_properties, :uint64, 25, json_name: "minProperties"
101
+ repeated :required, :string, 26, json_name: "required"
102
+ repeated :array, :string, 34, json_name: "array"
103
+ repeated :type, :enum, 35, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", json_name: "type"
104
+ optional :format, :string, 36, json_name: "format"
105
+ repeated :enum, :string, 46, json_name: "enum"
106
+ optional :field_configuration, :message, 1001, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", json_name: "fieldConfiguration"
107
+ map :extensions, :string, :message, 48, "google.protobuf.Value"
108
+ end
109
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration" do
110
+ optional :path_param_name, :string, 47, json_name: "pathParamName"
111
+ end
112
+ add_enum "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes" do
113
+ value :UNKNOWN, 0
114
+ value :ARRAY, 1
115
+ value :BOOLEAN, 2
116
+ value :INTEGER, 3
117
+ value :NULL, 4
118
+ value :NUMBER, 5
119
+ value :OBJECT, 6
120
+ value :STRING, 7
121
+ end
122
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Tag" do
123
+ optional :description, :string, 2, json_name: "description"
124
+ optional :external_docs, :message, 3, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
125
+ end
126
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" do
127
+ map :security, :string, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"
128
+ end
129
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme" do
130
+ optional :type, :enum, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type", json_name: "type"
131
+ optional :description, :string, 2, json_name: "description"
132
+ optional :name, :string, 3, json_name: "name"
133
+ optional :in, :enum, 4, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", json_name: "in"
134
+ optional :flow, :enum, 5, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", json_name: "flow"
135
+ optional :authorization_url, :string, 6, json_name: "authorizationUrl"
136
+ optional :token_url, :string, 7, json_name: "tokenUrl"
137
+ optional :scopes, :message, 8, "grpc.gateway.protoc_gen_openapiv2.options.Scopes", json_name: "scopes"
138
+ map :extensions, :string, :message, 9, "google.protobuf.Value"
139
+ end
140
+ add_enum "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type" do
141
+ value :TYPE_INVALID, 0
142
+ value :TYPE_BASIC, 1
143
+ value :TYPE_API_KEY, 2
144
+ value :TYPE_OAUTH2, 3
145
+ end
146
+ add_enum "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In" do
147
+ value :IN_INVALID, 0
148
+ value :IN_QUERY, 1
149
+ value :IN_HEADER, 2
150
+ end
151
+ add_enum "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow" do
152
+ value :FLOW_INVALID, 0
153
+ value :FLOW_IMPLICIT, 1
154
+ value :FLOW_PASSWORD, 2
155
+ value :FLOW_APPLICATION, 3
156
+ value :FLOW_ACCESS_CODE, 4
157
+ end
158
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement" do
159
+ map :security_requirement, :string, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue"
160
+ end
161
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue" do
162
+ repeated :scope, :string, 1, json_name: "scope"
163
+ end
164
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Scopes" do
165
+ map :scope, :string, :string, 1
166
+ end
167
+ add_enum "grpc.gateway.protoc_gen_openapiv2.options.Scheme" do
168
+ value :UNKNOWN, 0
169
+ value :HTTP, 1
170
+ value :HTTPS, 2
171
+ value :WS, 3
172
+ value :WSS, 4
173
+ end
174
+ end
175
+ end
176
+
177
+ module Grpc
178
+ module Gateway
179
+ module ProtocGenOpenapiv2
180
+ module Options
181
+ Swagger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Swagger").msgclass
182
+ Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Operation").msgclass
183
+ Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Header").msgclass
184
+ Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Response").msgclass
185
+ Info = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Info").msgclass
186
+ Contact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Contact").msgclass
187
+ License = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.License").msgclass
188
+ ExternalDocumentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation").msgclass
189
+ Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Schema").msgclass
190
+ JSONSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema").msgclass
191
+ JSONSchema::FieldConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration").msgclass
192
+ JSONSchema::JSONSchemaSimpleTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes").enummodule
193
+ Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Tag").msgclass
194
+ SecurityDefinitions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions").msgclass
195
+ SecurityScheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme").msgclass
196
+ SecurityScheme::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type").enummodule
197
+ SecurityScheme::In = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In").enummodule
198
+ SecurityScheme::Flow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow").enummodule
199
+ SecurityRequirement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement").msgclass
200
+ SecurityRequirement::SecurityRequirementValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue").msgclass
201
+ Scopes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Scopes").msgclass
202
+ Scheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Scheme").enummodule
203
+ end
204
+ end
205
+ end
206
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aserto
4
+ module Authorizer
5
+ VERSION = File.read(
6
+ File.join(__dir__, "..", "..", "..", "VERSION")
7
+ ).chomp
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "authorizer/version"
4
+ require_relative "../../generated/aserto/authorizer/v2/authorizer_services_pb"
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aserto-authorizer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Aserto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-05 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 Authorizer
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/authorizer/v2/api/decision_logs_pb.rb
100
+ - generated/aserto/authorizer/v2/api/identity_context_pb.rb
101
+ - generated/aserto/authorizer/v2/api/module_pb.rb
102
+ - generated/aserto/authorizer/v2/api/policy_context_pb.rb
103
+ - generated/aserto/authorizer/v2/authorizer_pb.rb
104
+ - generated/aserto/authorizer/v2/authorizer_services_pb.rb
105
+ - generated/google/api/annotations_pb.rb
106
+ - generated/google/api/http_pb.rb
107
+ - generated/protoc-gen-openapiv2/options/annotations_pb.rb
108
+ - generated/protoc-gen-openapiv2/options/openapiv2_pb.rb
109
+ - lib/aserto/authorizer.rb
110
+ - lib/aserto/authorizer/version.rb
111
+ homepage: https://www.aserto.com
112
+ licenses:
113
+ - Apache-2.0
114
+ metadata:
115
+ allowed_push_host: https://rubygems.org
116
+ homepage_uri: https://www.aserto.com
117
+ source_code_uri: https://github.com/aserto-dev/ruby-authorizer
118
+ changelog_uri: https://github.com/aserto-dev/ruby-authorizer
119
+ rubygems_mfa_required: 'true'
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ - generated
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: 2.7.0
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubygems_version: 3.3.7
137
+ signing_key:
138
+ specification_version: 4
139
+ summary: Aserto Authorizer GRPC Client
140
+ test_files: []