cerbos 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/cerbos/protobuf/cerbos/engine/v1/engine_pb.rb +0 -127
- data/lib/cerbos/protobuf/cerbos/request/v1/request_pb.rb +0 -90
- data/lib/cerbos/protobuf/cerbos/response/v1/response_pb.rb +0 -99
- data/lib/cerbos/protobuf/cerbos/schema/v1/schema_pb.rb +0 -9
- data/lib/cerbos/protobuf/cerbos/svc/v1/svc_pb.rb +2 -0
- data/lib/cerbos/protobuf/cerbos/svc/v1/svc_services_pb.rb +0 -43
- data/lib/cerbos/protobuf/google/api/http_pb.rb +0 -5
- data/lib/cerbos/protobuf/protoc-gen-openapiv2/options/openapiv2_pb.rb +6 -0
- data/lib/cerbos/version.rb +1 -1
- metadata +4 -9
- data/lib/cerbos/protobuf/cerbos/audit/v1/audit_pb.rb +0 -64
- data/lib/cerbos/protobuf/cerbos/policy/v1/policy_pb.rb +0 -247
- data/lib/cerbos/protobuf/cerbos/telemetry/v1/telemetry_pb.rb +0 -123
- data/lib/cerbos/protobuf/google/api/expr/v1alpha1/checked_pb.rb +0 -117
- data/lib/cerbos/protobuf/google/api/expr/v1alpha1/syntax_pb.rb +0 -113
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66a450c22c146b4372b0ebd4cfd1e950d3824c78e8d24209275ee41020aa3d1
|
4
|
+
data.tar.gz: 5f3d5aeb480e91d3918ad3065badb211d9572991b7e729ea4847732655d6bf30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de09b89a42c31f5a5283adf91ac8f1af0cfde2d660a8a47443ac6a28fb814a658991fbbd74a5bebcf95dd2382bfd0215b5dac6c27343cac0ad5345211bf38cf
|
7
|
+
data.tar.gz: 88a4ce5be4f53fcd7df994494e4190b49587159d2a93ae2ee828afa557c3ace338731c21c27f99c5eb69fff9592ef90c1e7fb0e2e7b5b76c82787b06fdc0f4e9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
No notable changes.
|
3
3
|
|
4
|
+
## [0.6.1] - 2023-03-23
|
5
|
+
### Removed
|
6
|
+
- Unused generated code ([#83](https://github.com/cerbos/cerbos-sdk-ruby/pull/83))
|
7
|
+
|
4
8
|
## [0.6.0] - 2022-07-01
|
5
9
|
### Added
|
6
10
|
- Support for schema validation in `Cerbos::Client#plan_resources` ([#32](https://github.com/cerbos/cerbos-sdk-ruby/pull/32))
|
@@ -36,7 +40,8 @@ No notable changes.
|
|
36
40
|
### Added
|
37
41
|
- Initial implementation of `Cerbos::Client` ([#2](https://github.com/cerbos/cerbos-sdk-ruby/pull/2))
|
38
42
|
|
39
|
-
[Unreleased]: https://github.com/cerbos/cerbos-sdk-ruby/compare/v0.6.
|
43
|
+
[Unreleased]: https://github.com/cerbos/cerbos-sdk-ruby/compare/v0.6.1...HEAD
|
44
|
+
[0.6.1]: https://github.com/cerbos/cerbos-sdk-ruby/compare/v0.6.0...v0.6.1
|
40
45
|
[0.6.0]: https://github.com/cerbos/cerbos-sdk-ruby/compare/v0.5.0...v0.6.0
|
41
46
|
[0.5.0]: https://github.com/cerbos/cerbos-sdk-ruby/compare/v0.4.0...v0.5.0
|
42
47
|
[0.4.0]: https://github.com/cerbos/cerbos-sdk-ruby/compare/v0.3.0...v0.4.0
|
@@ -3,23 +3,12 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'cerbos/protobuf/cerbos/effect/v1/effect_pb'
|
7
|
-
require 'cerbos/protobuf/cerbos/schema/v1/schema_pb'
|
8
|
-
require 'cerbos/protobuf/google/api/expr/v1alpha1/checked_pb'
|
9
|
-
require 'cerbos/protobuf/google/api/field_behavior_pb'
|
10
6
|
require 'google/protobuf/struct_pb'
|
11
7
|
require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
|
12
|
-
require 'cerbos/protobuf/validate/validate_pb'
|
13
8
|
|
14
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
10
|
add_file("cerbos/engine/v1/engine.proto", :syntax => :proto3) do
|
16
11
|
add_message "cerbos.engine.v1.PlanResourcesInput" do
|
17
|
-
optional :request_id, :string, 1, json_name: "requestId"
|
18
|
-
optional :action, :string, 2, json_name: "action"
|
19
|
-
optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
|
20
|
-
optional :resource, :message, 4, "cerbos.engine.v1.PlanResourcesInput.Resource", json_name: "resource"
|
21
|
-
optional :aux_data, :message, 5, "cerbos.engine.v1.AuxData", json_name: "auxData"
|
22
|
-
optional :include_meta, :bool, 6, json_name: "includeMeta"
|
23
12
|
end
|
24
13
|
add_message "cerbos.engine.v1.PlanResourcesInput.Resource" do
|
25
14
|
optional :kind, :string, 1, json_name: "kind"
|
@@ -27,25 +16,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
16
|
optional :policy_version, :string, 3, json_name: "policyVersion"
|
28
17
|
optional :scope, :string, 4, json_name: "scope"
|
29
18
|
end
|
30
|
-
add_message "cerbos.engine.v1.PlanResourcesAst" do
|
31
|
-
optional :filter_ast, :message, 1, "cerbos.engine.v1.PlanResourcesAst.Node", json_name: "filterAst"
|
32
|
-
end
|
33
|
-
add_message "cerbos.engine.v1.PlanResourcesAst.Node" do
|
34
|
-
oneof :node do
|
35
|
-
optional :logical_operation, :message, 1, "cerbos.engine.v1.PlanResourcesAst.LogicalOperation", json_name: "logicalOperation"
|
36
|
-
optional :expression, :message, 2, "google.api.expr.v1alpha1.CheckedExpr", json_name: "expression"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
add_message "cerbos.engine.v1.PlanResourcesAst.LogicalOperation" do
|
40
|
-
optional :operator, :enum, 1, "cerbos.engine.v1.PlanResourcesAst.LogicalOperation.Operator", json_name: "operator"
|
41
|
-
repeated :nodes, :message, 2, "cerbos.engine.v1.PlanResourcesAst.Node", json_name: "nodes"
|
42
|
-
end
|
43
|
-
add_enum "cerbos.engine.v1.PlanResourcesAst.LogicalOperation.Operator" do
|
44
|
-
value :OPERATOR_UNSPECIFIED, 0
|
45
|
-
value :OPERATOR_AND, 1
|
46
|
-
value :OPERATOR_OR, 2
|
47
|
-
value :OPERATOR_NOT, 3
|
48
|
-
end
|
49
19
|
add_message "cerbos.engine.v1.PlanResourcesFilter" do
|
50
20
|
optional :kind, :enum, 1, "cerbos.engine.v1.PlanResourcesFilter.Kind", json_name: "kind"
|
51
21
|
optional :condition, :message, 2, "cerbos.engine.v1.PlanResourcesFilter.Expression.Operand", json_name: "condition"
|
@@ -67,35 +37,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
67
37
|
value :KIND_ALWAYS_DENIED, 2
|
68
38
|
value :KIND_CONDITIONAL, 3
|
69
39
|
end
|
70
|
-
add_message "cerbos.engine.v1.PlanResourcesOutput" do
|
71
|
-
optional :request_id, :string, 1, json_name: "requestId"
|
72
|
-
optional :action, :string, 2, json_name: "action"
|
73
|
-
optional :kind, :string, 3, json_name: "kind"
|
74
|
-
optional :policy_version, :string, 4, json_name: "policyVersion"
|
75
|
-
optional :scope, :string, 5, json_name: "scope"
|
76
|
-
optional :filter, :message, 6, "cerbos.engine.v1.PlanResourcesFilter", json_name: "filter"
|
77
|
-
optional :filter_debug, :string, 7, json_name: "filterDebug"
|
78
|
-
repeated :validation_errors, :message, 8, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
|
79
|
-
end
|
80
|
-
add_message "cerbos.engine.v1.CheckInput" do
|
81
|
-
optional :request_id, :string, 1, json_name: "requestId"
|
82
|
-
optional :resource, :message, 2, "cerbos.engine.v1.Resource", json_name: "resource"
|
83
|
-
optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
|
84
|
-
repeated :actions, :string, 4, json_name: "actions"
|
85
|
-
optional :aux_data, :message, 5, "cerbos.engine.v1.AuxData", json_name: "auxData"
|
86
|
-
end
|
87
|
-
add_message "cerbos.engine.v1.CheckOutput" do
|
88
|
-
optional :request_id, :string, 1, json_name: "requestId"
|
89
|
-
optional :resource_id, :string, 2, json_name: "resourceId"
|
90
|
-
map :actions, :string, :message, 3, "cerbos.engine.v1.CheckOutput.ActionEffect"
|
91
|
-
repeated :effective_derived_roles, :string, 4, json_name: "effectiveDerivedRoles"
|
92
|
-
repeated :validation_errors, :message, 5, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
|
93
|
-
end
|
94
|
-
add_message "cerbos.engine.v1.CheckOutput.ActionEffect" do
|
95
|
-
optional :effect, :enum, 1, "cerbos.effect.v1.Effect", json_name: "effect"
|
96
|
-
optional :policy, :string, 2, json_name: "policy"
|
97
|
-
optional :scope, :string, 3, json_name: "scope"
|
98
|
-
end
|
99
40
|
add_message "cerbos.engine.v1.Resource" do
|
100
41
|
optional :kind, :string, 1, json_name: "kind"
|
101
42
|
optional :policy_version, :string, 2, json_name: "policyVersion"
|
@@ -110,59 +51,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
110
51
|
map :attr, :string, :message, 4, "google.protobuf.Value"
|
111
52
|
optional :scope, :string, 5, json_name: "scope"
|
112
53
|
end
|
113
|
-
add_message "cerbos.engine.v1.AuxData" do
|
114
|
-
map :jwt, :string, :message, 1, "google.protobuf.Value"
|
115
|
-
end
|
116
|
-
add_message "cerbos.engine.v1.Trace" do
|
117
|
-
repeated :components, :message, 1, "cerbos.engine.v1.Trace.Component", json_name: "components"
|
118
|
-
optional :event, :message, 2, "cerbos.engine.v1.Trace.Event", json_name: "event"
|
119
|
-
end
|
120
|
-
add_message "cerbos.engine.v1.Trace.Component" do
|
121
|
-
optional :kind, :enum, 1, "cerbos.engine.v1.Trace.Component.Kind", json_name: "kind"
|
122
|
-
oneof :details do
|
123
|
-
optional :action, :string, 2, json_name: "action"
|
124
|
-
optional :derived_role, :string, 3, json_name: "derivedRole"
|
125
|
-
optional :expr, :string, 4, json_name: "expr"
|
126
|
-
optional :index, :uint32, 5, json_name: "index"
|
127
|
-
optional :policy, :string, 6, json_name: "policy"
|
128
|
-
optional :resource, :string, 7, json_name: "resource"
|
129
|
-
optional :rule, :string, 8, json_name: "rule"
|
130
|
-
optional :scope, :string, 9, json_name: "scope"
|
131
|
-
optional :variable, :message, 10, "cerbos.engine.v1.Trace.Component.Variable", json_name: "variable"
|
132
|
-
end
|
133
|
-
end
|
134
|
-
add_message "cerbos.engine.v1.Trace.Component.Variable" do
|
135
|
-
optional :name, :string, 1, json_name: "name"
|
136
|
-
optional :expr, :string, 2, json_name: "expr"
|
137
|
-
end
|
138
|
-
add_enum "cerbos.engine.v1.Trace.Component.Kind" do
|
139
|
-
value :KIND_UNSPECIFIED, 0
|
140
|
-
value :KIND_ACTION, 1
|
141
|
-
value :KIND_CONDITION_ALL, 2
|
142
|
-
value :KIND_CONDITION_ANY, 3
|
143
|
-
value :KIND_CONDITION_NONE, 4
|
144
|
-
value :KIND_CONDITION, 5
|
145
|
-
value :KIND_DERIVED_ROLE, 6
|
146
|
-
value :KIND_EXPR, 7
|
147
|
-
value :KIND_POLICY, 8
|
148
|
-
value :KIND_RESOURCE, 9
|
149
|
-
value :KIND_RULE, 10
|
150
|
-
value :KIND_SCOPE, 11
|
151
|
-
value :KIND_VARIABLE, 12
|
152
|
-
value :KIND_VARIABLES, 13
|
153
|
-
end
|
154
|
-
add_message "cerbos.engine.v1.Trace.Event" do
|
155
|
-
optional :status, :enum, 1, "cerbos.engine.v1.Trace.Event.Status", json_name: "status"
|
156
|
-
optional :effect, :enum, 2, "cerbos.effect.v1.Effect", json_name: "effect"
|
157
|
-
optional :error, :string, 3, json_name: "error"
|
158
|
-
optional :message, :string, 4, json_name: "message"
|
159
|
-
optional :result, :message, 5, "google.protobuf.Value", json_name: "result"
|
160
|
-
end
|
161
|
-
add_enum "cerbos.engine.v1.Trace.Event.Status" do
|
162
|
-
value :STATUS_UNSPECIFIED, 0
|
163
|
-
value :STATUS_ACTIVATED, 1
|
164
|
-
value :STATUS_SKIPPED, 2
|
165
|
-
end
|
166
54
|
end
|
167
55
|
end
|
168
56
|
|
@@ -171,27 +59,12 @@ module Cerbos::Protobuf::Cerbos
|
|
171
59
|
module V1
|
172
60
|
PlanResourcesInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesInput").msgclass
|
173
61
|
PlanResourcesInput::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesInput.Resource").msgclass
|
174
|
-
PlanResourcesAst = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesAst").msgclass
|
175
|
-
PlanResourcesAst::Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesAst.Node").msgclass
|
176
|
-
PlanResourcesAst::LogicalOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesAst.LogicalOperation").msgclass
|
177
|
-
PlanResourcesAst::LogicalOperation::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesAst.LogicalOperation.Operator").enummodule
|
178
62
|
PlanResourcesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesFilter").msgclass
|
179
63
|
PlanResourcesFilter::Expression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesFilter.Expression").msgclass
|
180
64
|
PlanResourcesFilter::Expression::Operand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesFilter.Expression.Operand").msgclass
|
181
65
|
PlanResourcesFilter::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesFilter.Kind").enummodule
|
182
|
-
PlanResourcesOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.PlanResourcesOutput").msgclass
|
183
|
-
CheckInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.CheckInput").msgclass
|
184
|
-
CheckOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.CheckOutput").msgclass
|
185
|
-
CheckOutput::ActionEffect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.CheckOutput.ActionEffect").msgclass
|
186
66
|
Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Resource").msgclass
|
187
67
|
Principal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Principal").msgclass
|
188
|
-
AuxData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.AuxData").msgclass
|
189
|
-
Trace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Trace").msgclass
|
190
|
-
Trace::Component = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Trace.Component").msgclass
|
191
|
-
Trace::Component::Variable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Trace.Component.Variable").msgclass
|
192
|
-
Trace::Component::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Trace.Component.Kind").enummodule
|
193
|
-
Trace::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Trace.Event").msgclass
|
194
|
-
Trace::Event::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.engine.v1.Trace.Event.Status").enummodule
|
195
68
|
end
|
196
69
|
end
|
197
70
|
end
|
@@ -4,12 +4,8 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'cerbos/protobuf/cerbos/engine/v1/engine_pb'
|
7
|
-
require 'cerbos/protobuf/cerbos/policy/v1/policy_pb'
|
8
|
-
require 'cerbos/protobuf/cerbos/schema/v1/schema_pb'
|
9
7
|
require 'cerbos/protobuf/google/api/field_behavior_pb'
|
10
|
-
require 'google/protobuf/duration_pb'
|
11
8
|
require 'google/protobuf/struct_pb'
|
12
|
-
require 'google/protobuf/timestamp_pb'
|
13
9
|
require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
|
14
10
|
require 'cerbos/protobuf/validate/validate_pb'
|
15
11
|
|
@@ -68,78 +64,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
68
64
|
optional :token, :string, 1, json_name: "token"
|
69
65
|
optional :key_set_id, :string, 2, json_name: "keySetId"
|
70
66
|
end
|
71
|
-
add_message "cerbos.request.v1.File" do
|
72
|
-
optional :file_name, :string, 1, json_name: "fileName"
|
73
|
-
optional :contents, :bytes, 2, json_name: "contents"
|
74
|
-
end
|
75
|
-
add_message "cerbos.request.v1.PlaygroundValidateRequest" do
|
76
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
77
|
-
repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
|
78
|
-
end
|
79
|
-
add_message "cerbos.request.v1.PlaygroundTestRequest" do
|
80
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
81
|
-
repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
|
82
|
-
end
|
83
|
-
add_message "cerbos.request.v1.PlaygroundEvaluateRequest" do
|
84
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
85
|
-
repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
|
86
|
-
optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
|
87
|
-
optional :resource, :message, 4, "cerbos.engine.v1.Resource", json_name: "resource"
|
88
|
-
repeated :actions, :string, 5, json_name: "actions"
|
89
|
-
optional :aux_data, :message, 6, "cerbos.request.v1.AuxData", json_name: "auxData"
|
90
|
-
end
|
91
|
-
add_message "cerbos.request.v1.PlaygroundProxyRequest" do
|
92
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
93
|
-
repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
|
94
|
-
oneof :proxy_request do
|
95
|
-
optional :check_resource_set, :message, 3, "cerbos.request.v1.CheckResourceSetRequest", json_name: "checkResourceSet"
|
96
|
-
optional :check_resource_batch, :message, 4, "cerbos.request.v1.CheckResourceBatchRequest", json_name: "checkResourceBatch"
|
97
|
-
optional :plan_resources, :message, 5, "cerbos.request.v1.PlanResourcesRequest", json_name: "planResources"
|
98
|
-
optional :check_resources, :message, 6, "cerbos.request.v1.CheckResourcesRequest", json_name: "checkResources"
|
99
|
-
end
|
100
|
-
end
|
101
|
-
add_message "cerbos.request.v1.AddOrUpdatePolicyRequest" do
|
102
|
-
repeated :policies, :message, 1, "cerbos.policy.v1.Policy", json_name: "policies"
|
103
|
-
end
|
104
|
-
add_message "cerbos.request.v1.ListAuditLogEntriesRequest" do
|
105
|
-
optional :kind, :enum, 1, "cerbos.request.v1.ListAuditLogEntriesRequest.Kind", json_name: "kind"
|
106
|
-
oneof :filter do
|
107
|
-
optional :tail, :uint32, 2, json_name: "tail"
|
108
|
-
optional :between, :message, 3, "cerbos.request.v1.ListAuditLogEntriesRequest.TimeRange", json_name: "between"
|
109
|
-
optional :since, :message, 4, "google.protobuf.Duration", json_name: "since"
|
110
|
-
optional :lookup, :string, 5, json_name: "lookup"
|
111
|
-
end
|
112
|
-
end
|
113
|
-
add_message "cerbos.request.v1.ListAuditLogEntriesRequest.TimeRange" do
|
114
|
-
optional :start, :message, 1, "google.protobuf.Timestamp", json_name: "start"
|
115
|
-
optional :end, :message, 2, "google.protobuf.Timestamp", json_name: "end"
|
116
|
-
end
|
117
|
-
add_enum "cerbos.request.v1.ListAuditLogEntriesRequest.Kind" do
|
118
|
-
value :KIND_UNSPECIFIED, 0
|
119
|
-
value :KIND_ACCESS, 1
|
120
|
-
value :KIND_DECISION, 2
|
121
|
-
end
|
122
67
|
add_message "cerbos.request.v1.ServerInfoRequest" do
|
123
68
|
end
|
124
|
-
add_message "cerbos.request.v1.ListPoliciesRequest" do
|
125
|
-
end
|
126
|
-
add_message "cerbos.request.v1.GetPolicyRequest" do
|
127
|
-
repeated :id, :string, 1, json_name: "id"
|
128
|
-
end
|
129
|
-
add_message "cerbos.request.v1.AddOrUpdateSchemaRequest" do
|
130
|
-
repeated :schemas, :message, 1, "cerbos.schema.v1.Schema", json_name: "schemas"
|
131
|
-
end
|
132
|
-
add_message "cerbos.request.v1.ListSchemasRequest" do
|
133
|
-
end
|
134
|
-
add_message "cerbos.request.v1.GetSchemaRequest" do
|
135
|
-
repeated :id, :string, 1, json_name: "id"
|
136
|
-
end
|
137
|
-
add_message "cerbos.request.v1.DeleteSchemaRequest" do
|
138
|
-
repeated :id, :string, 1, json_name: "id"
|
139
|
-
end
|
140
|
-
add_message "cerbos.request.v1.ReloadStoreRequest" do
|
141
|
-
optional :wait, :bool, 1, json_name: "wait"
|
142
|
-
end
|
143
69
|
end
|
144
70
|
end
|
145
71
|
|
@@ -156,23 +82,7 @@ module Cerbos::Protobuf::Cerbos
|
|
156
82
|
CheckResourcesRequest::ResourceEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.CheckResourcesRequest.ResourceEntry").msgclass
|
157
83
|
AuxData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AuxData").msgclass
|
158
84
|
AuxData::JWT = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AuxData.JWT").msgclass
|
159
|
-
File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.File").msgclass
|
160
|
-
PlaygroundValidateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundValidateRequest").msgclass
|
161
|
-
PlaygroundTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundTestRequest").msgclass
|
162
|
-
PlaygroundEvaluateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundEvaluateRequest").msgclass
|
163
|
-
PlaygroundProxyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundProxyRequest").msgclass
|
164
|
-
AddOrUpdatePolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AddOrUpdatePolicyRequest").msgclass
|
165
|
-
ListAuditLogEntriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListAuditLogEntriesRequest").msgclass
|
166
|
-
ListAuditLogEntriesRequest::TimeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListAuditLogEntriesRequest.TimeRange").msgclass
|
167
|
-
ListAuditLogEntriesRequest::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListAuditLogEntriesRequest.Kind").enummodule
|
168
85
|
ServerInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ServerInfoRequest").msgclass
|
169
|
-
ListPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListPoliciesRequest").msgclass
|
170
|
-
GetPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.GetPolicyRequest").msgclass
|
171
|
-
AddOrUpdateSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AddOrUpdateSchemaRequest").msgclass
|
172
|
-
ListSchemasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListSchemasRequest").msgclass
|
173
|
-
GetSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.GetSchemaRequest").msgclass
|
174
|
-
DeleteSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.DeleteSchemaRequest").msgclass
|
175
|
-
ReloadStoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ReloadStoreRequest").msgclass
|
176
86
|
end
|
177
87
|
end
|
178
88
|
end
|
@@ -3,12 +3,9 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'cerbos/protobuf/cerbos/audit/v1/audit_pb'
|
7
6
|
require 'cerbos/protobuf/cerbos/effect/v1/effect_pb'
|
8
7
|
require 'cerbos/protobuf/cerbos/engine/v1/engine_pb'
|
9
|
-
require 'cerbos/protobuf/cerbos/policy/v1/policy_pb'
|
10
8
|
require 'cerbos/protobuf/cerbos/schema/v1/schema_pb'
|
11
|
-
require 'google/protobuf/empty_pb'
|
12
9
|
require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
|
13
10
|
|
14
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -79,89 +76,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
79
76
|
optional :matched_policy, :string, 1, json_name: "matchedPolicy"
|
80
77
|
optional :matched_scope, :string, 2, json_name: "matchedScope"
|
81
78
|
end
|
82
|
-
add_message "cerbos.response.v1.PlaygroundFailure" do
|
83
|
-
repeated :errors, :message, 1, "cerbos.response.v1.PlaygroundFailure.Error", json_name: "errors"
|
84
|
-
end
|
85
|
-
add_message "cerbos.response.v1.PlaygroundFailure.Error" do
|
86
|
-
optional :file, :string, 1, json_name: "file"
|
87
|
-
optional :error, :string, 2, json_name: "error"
|
88
|
-
end
|
89
|
-
add_message "cerbos.response.v1.PlaygroundValidateResponse" do
|
90
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
91
|
-
oneof :outcome do
|
92
|
-
optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
|
93
|
-
optional :success, :message, 3, "google.protobuf.Empty", json_name: "success"
|
94
|
-
end
|
95
|
-
end
|
96
|
-
add_message "cerbos.response.v1.PlaygroundTestResponse" do
|
97
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
98
|
-
oneof :outcome do
|
99
|
-
optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
|
100
|
-
optional :success, :message, 3, "cerbos.response.v1.PlaygroundTestResponse.TestResults", json_name: "success"
|
101
|
-
end
|
102
|
-
end
|
103
|
-
add_message "cerbos.response.v1.PlaygroundTestResponse.TestResults" do
|
104
|
-
optional :results, :message, 1, "cerbos.policy.v1.TestResults", json_name: "results"
|
105
|
-
end
|
106
|
-
add_message "cerbos.response.v1.PlaygroundEvaluateResponse" do
|
107
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
108
|
-
oneof :outcome do
|
109
|
-
optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
|
110
|
-
optional :success, :message, 3, "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList", json_name: "success"
|
111
|
-
end
|
112
|
-
end
|
113
|
-
add_message "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult" do
|
114
|
-
optional :action, :string, 1, json_name: "action"
|
115
|
-
optional :effect, :enum, 2, "cerbos.effect.v1.Effect", json_name: "effect"
|
116
|
-
optional :policy, :string, 3, json_name: "policy"
|
117
|
-
repeated :effective_derived_roles, :string, 4, json_name: "effectiveDerivedRoles"
|
118
|
-
repeated :validation_errors, :message, 5, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
|
119
|
-
end
|
120
|
-
add_message "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList" do
|
121
|
-
repeated :results, :message, 1, "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult", json_name: "results"
|
122
|
-
end
|
123
|
-
add_message "cerbos.response.v1.PlaygroundProxyResponse" do
|
124
|
-
optional :playground_id, :string, 1, json_name: "playgroundId"
|
125
|
-
oneof :outcome do
|
126
|
-
optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
|
127
|
-
optional :check_resource_set, :message, 3, "cerbos.response.v1.CheckResourceSetResponse", json_name: "checkResourceSet"
|
128
|
-
optional :check_resource_batch, :message, 4, "cerbos.response.v1.CheckResourceBatchResponse", json_name: "checkResourceBatch"
|
129
|
-
optional :plan_resources, :message, 5, "cerbos.response.v1.PlanResourcesResponse", json_name: "planResources"
|
130
|
-
optional :check_resources, :message, 6, "cerbos.response.v1.CheckResourcesResponse", json_name: "checkResources"
|
131
|
-
end
|
132
|
-
end
|
133
|
-
add_message "cerbos.response.v1.AddOrUpdatePolicyResponse" do
|
134
|
-
optional :success, :message, 1, "google.protobuf.Empty", json_name: "success"
|
135
|
-
end
|
136
|
-
add_message "cerbos.response.v1.ListAuditLogEntriesResponse" do
|
137
|
-
oneof :entry do
|
138
|
-
optional :access_log_entry, :message, 1, "cerbos.audit.v1.AccessLogEntry", json_name: "accessLogEntry"
|
139
|
-
optional :decision_log_entry, :message, 2, "cerbos.audit.v1.DecisionLogEntry", json_name: "decisionLogEntry"
|
140
|
-
end
|
141
|
-
end
|
142
79
|
add_message "cerbos.response.v1.ServerInfoResponse" do
|
143
80
|
optional :version, :string, 1, json_name: "version"
|
144
81
|
optional :commit, :string, 2, json_name: "commit"
|
145
82
|
optional :build_date, :string, 3, json_name: "buildDate"
|
146
83
|
end
|
147
|
-
add_message "cerbos.response.v1.ListPoliciesResponse" do
|
148
|
-
repeated :policy_ids, :string, 1, json_name: "policyIds"
|
149
|
-
end
|
150
|
-
add_message "cerbos.response.v1.GetPolicyResponse" do
|
151
|
-
repeated :policies, :message, 1, "cerbos.policy.v1.Policy", json_name: "policies"
|
152
|
-
end
|
153
|
-
add_message "cerbos.response.v1.AddOrUpdateSchemaResponse" do
|
154
|
-
end
|
155
|
-
add_message "cerbos.response.v1.ListSchemasResponse" do
|
156
|
-
repeated :schema_ids, :string, 1, json_name: "schemaIds"
|
157
|
-
end
|
158
|
-
add_message "cerbos.response.v1.GetSchemaResponse" do
|
159
|
-
repeated :schemas, :message, 1, "cerbos.schema.v1.Schema", json_name: "schemas"
|
160
|
-
end
|
161
|
-
add_message "cerbos.response.v1.DeleteSchemaResponse" do
|
162
|
-
end
|
163
|
-
add_message "cerbos.response.v1.ReloadStoreResponse" do
|
164
|
-
end
|
165
84
|
end
|
166
85
|
end
|
167
86
|
|
@@ -182,25 +101,7 @@ module Cerbos::Protobuf::Cerbos
|
|
182
101
|
CheckResourcesResponse::ResultEntry::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Resource").msgclass
|
183
102
|
CheckResourcesResponse::ResultEntry::Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta").msgclass
|
184
103
|
CheckResourcesResponse::ResultEntry::Meta::EffectMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta.EffectMeta").msgclass
|
185
|
-
PlaygroundFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundFailure").msgclass
|
186
|
-
PlaygroundFailure::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundFailure.Error").msgclass
|
187
|
-
PlaygroundValidateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundValidateResponse").msgclass
|
188
|
-
PlaygroundTestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundTestResponse").msgclass
|
189
|
-
PlaygroundTestResponse::TestResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundTestResponse.TestResults").msgclass
|
190
|
-
PlaygroundEvaluateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse").msgclass
|
191
|
-
PlaygroundEvaluateResponse::EvalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult").msgclass
|
192
|
-
PlaygroundEvaluateResponse::EvalResultList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList").msgclass
|
193
|
-
PlaygroundProxyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundProxyResponse").msgclass
|
194
|
-
AddOrUpdatePolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.AddOrUpdatePolicyResponse").msgclass
|
195
|
-
ListAuditLogEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListAuditLogEntriesResponse").msgclass
|
196
104
|
ServerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ServerInfoResponse").msgclass
|
197
|
-
ListPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListPoliciesResponse").msgclass
|
198
|
-
GetPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.GetPolicyResponse").msgclass
|
199
|
-
AddOrUpdateSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.AddOrUpdateSchemaResponse").msgclass
|
200
|
-
ListSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListSchemasResponse").msgclass
|
201
|
-
GetSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.GetSchemaResponse").msgclass
|
202
|
-
DeleteSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.DeleteSchemaResponse").msgclass
|
203
|
-
ReloadStoreResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ReloadStoreResponse").msgclass
|
204
105
|
end
|
205
106
|
end
|
206
107
|
end
|
@@ -3,10 +3,6 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'cerbos/protobuf/google/api/field_behavior_pb'
|
7
|
-
require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
|
8
|
-
require 'cerbos/protobuf/validate/validate_pb'
|
9
|
-
|
10
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
7
|
add_file("cerbos/schema/v1/schema.proto", :syntax => :proto3) do
|
12
8
|
add_message "cerbos.schema.v1.ValidationError" do
|
@@ -19,10 +15,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
15
|
value :SOURCE_PRINCIPAL, 1
|
20
16
|
value :SOURCE_RESOURCE, 2
|
21
17
|
end
|
22
|
-
add_message "cerbos.schema.v1.Schema" do
|
23
|
-
optional :id, :string, 1, json_name: "id"
|
24
|
-
optional :definition, :bytes, 2, json_name: "definition"
|
25
|
-
end
|
26
18
|
end
|
27
19
|
end
|
28
20
|
|
@@ -31,7 +23,6 @@ module Cerbos::Protobuf::Cerbos
|
|
31
23
|
module V1
|
32
24
|
ValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.ValidationError").msgclass
|
33
25
|
ValidationError::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.ValidationError.Source").enummodule
|
34
|
-
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.Schema").msgclass
|
35
26
|
end
|
36
27
|
end
|
37
28
|
end
|
@@ -7,6 +7,8 @@ require 'cerbos/protobuf/cerbos/request/v1/request_pb'
|
|
7
7
|
require 'cerbos/protobuf/cerbos/response/v1/response_pb'
|
8
8
|
require 'cerbos/protobuf/google/api/annotations_pb'
|
9
9
|
require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
|
10
|
+
require 'cerbos/protobuf/validate/validate_pb'
|
11
|
+
require 'cerbos/protobuf/google/api/field_behavior_pb'
|
10
12
|
|
11
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
14
|
add_file("cerbos/svc/v1/svc.proto", :syntax => :proto3) do
|
@@ -1,9 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: cerbos/svc/v1/svc.proto for package 'cerbos.svc.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2021-2022 Zenauth Ltd.
|
5
|
-
# SPDX-License-Identifier: Apache-2.0
|
6
|
-
#
|
7
3
|
|
8
4
|
require 'grpc'
|
9
5
|
require 'cerbos/protobuf/cerbos/svc/v1/svc_pb'
|
@@ -27,45 +23,6 @@ module Cerbos::Protobuf::Cerbos
|
|
27
23
|
rpc :PlanResources, ::Cerbos::Protobuf::Cerbos::Request::V1::PlanResourcesRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlanResourcesResponse
|
28
24
|
end
|
29
25
|
|
30
|
-
Stub = Service.rpc_stub_class
|
31
|
-
end
|
32
|
-
module CerbosAdminService
|
33
|
-
class Service
|
34
|
-
|
35
|
-
include ::GRPC::GenericService
|
36
|
-
|
37
|
-
self.marshal_class_method = :encode
|
38
|
-
self.unmarshal_class_method = :decode
|
39
|
-
self.service_name = 'cerbos.svc.v1.CerbosAdminService'
|
40
|
-
|
41
|
-
rpc :AddOrUpdatePolicy, ::Cerbos::Protobuf::Cerbos::Request::V1::AddOrUpdatePolicyRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::AddOrUpdatePolicyResponse
|
42
|
-
rpc :ListPolicies, ::Cerbos::Protobuf::Cerbos::Request::V1::ListPoliciesRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ListPoliciesResponse
|
43
|
-
rpc :GetPolicy, ::Cerbos::Protobuf::Cerbos::Request::V1::GetPolicyRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::GetPolicyResponse
|
44
|
-
rpc :ListAuditLogEntries, ::Cerbos::Protobuf::Cerbos::Request::V1::ListAuditLogEntriesRequest, stream(::Cerbos::Protobuf::Cerbos::Response::V1::ListAuditLogEntriesResponse)
|
45
|
-
rpc :AddOrUpdateSchema, ::Cerbos::Protobuf::Cerbos::Request::V1::AddOrUpdateSchemaRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::AddOrUpdateSchemaResponse
|
46
|
-
rpc :ListSchemas, ::Cerbos::Protobuf::Cerbos::Request::V1::ListSchemasRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ListSchemasResponse
|
47
|
-
rpc :GetSchema, ::Cerbos::Protobuf::Cerbos::Request::V1::GetSchemaRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::GetSchemaResponse
|
48
|
-
rpc :DeleteSchema, ::Cerbos::Protobuf::Cerbos::Request::V1::DeleteSchemaRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::DeleteSchemaResponse
|
49
|
-
rpc :ReloadStore, ::Cerbos::Protobuf::Cerbos::Request::V1::ReloadStoreRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ReloadStoreResponse
|
50
|
-
end
|
51
|
-
|
52
|
-
Stub = Service.rpc_stub_class
|
53
|
-
end
|
54
|
-
module CerbosPlaygroundService
|
55
|
-
class Service
|
56
|
-
|
57
|
-
include ::GRPC::GenericService
|
58
|
-
|
59
|
-
self.marshal_class_method = :encode
|
60
|
-
self.unmarshal_class_method = :decode
|
61
|
-
self.service_name = 'cerbos.svc.v1.CerbosPlaygroundService'
|
62
|
-
|
63
|
-
rpc :PlaygroundValidate, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundValidateRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundValidateResponse
|
64
|
-
rpc :PlaygroundTest, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundTestRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundTestResponse
|
65
|
-
rpc :PlaygroundEvaluate, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundEvaluateRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundEvaluateResponse
|
66
|
-
rpc :PlaygroundProxy, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundProxyRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundProxyResponse
|
67
|
-
end
|
68
|
-
|
69
26
|
Stub = Service.rpc_stub_class
|
70
27
|
end
|
71
28
|
end
|
@@ -5,10 +5,6 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
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
8
|
add_message "google.api.HttpRule" do
|
13
9
|
optional :selector, :string, 1, json_name: "selector"
|
14
10
|
optional :body, :string, 7, json_name: "body"
|
@@ -32,7 +28,6 @@ end
|
|
32
28
|
|
33
29
|
module Cerbos::Protobuf::Google
|
34
30
|
module Api
|
35
|
-
Http = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
|
36
31
|
HttpRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
|
37
32
|
CustomHttpPattern = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
|
38
33
|
end
|
@@ -103,6 +103,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
103
|
repeated :type, :enum, 35, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", json_name: "type"
|
104
104
|
optional :format, :string, 36, json_name: "format"
|
105
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"
|
106
111
|
end
|
107
112
|
add_enum "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes" do
|
108
113
|
value :UNKNOWN, 0
|
@@ -183,6 +188,7 @@ module Cerbos::Protobuf::Grpc
|
|
183
188
|
ExternalDocumentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation").msgclass
|
184
189
|
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Schema").msgclass
|
185
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
|
186
192
|
JSONSchema::JSONSchemaSimpleTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes").enummodule
|
187
193
|
Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Tag").msgclass
|
188
194
|
SecurityDefinitions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions").msgclass
|
data/lib/cerbos/version.rb
CHANGED