aserto-authorizer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 913834d0efbf3b501d9329fafae23621ef46034f3f251230ff06b572fa85bdf0
4
- data.tar.gz: c0495c8a1d1bc63517581765c01171f8b0dc2cc2f79404ff3404b7ee90d9a1fa
3
+ metadata.gz: 0d35cb125e8edf12d02b89867dd00dca35a9948a717b3aa2fd1e581b3cba42c1
4
+ data.tar.gz: c27a3ef2288e4dc7efea04234a1b7fbc56e5db70af4507fd159217e60d3b9a15
5
5
  SHA512:
6
- metadata.gz: 8744ccc2f8220a235fdddf0bf87db9b432fcf1d5f2395589fd58c5f541c66ab9c532a27b193b727944ed1f38ee4caa88f7419ec7ff0fa87784379a91edb983dc
7
- data.tar.gz: 8ee0729689666355bd38efbc91a78ebc2bcf64ec61d522f873d4ef54022fd95dbecfd058fefbfec44e53df5e3e5b882990ac4a0cd8931cb74e375ce6937257be
6
+ metadata.gz: cbdeaf23acdc0406127f7a4673c38e2684dfdf66cbbf5e28721f5c615e93c6f8263bfd46fbd7529da3f114e0a549438b42b95ac177812bddc8d8e98441caedf2
7
+ data.tar.gz: 22dfdbcb2c6e651ff448bb3de738f63e1de083b43c14bce3ea2e89418e17ce681b70ea86f7aa70dd843d224cfed9aea4a1f9a149e8ff6cc0a924b2e28bbf5e0a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/authorizer/v2/api/decision_logs.proto
3
4
 
@@ -9,33 +10,36 @@ require 'aserto/authorizer/v2/api/policy_context_pb'
9
10
  require 'aserto/authorizer/v2/api/identity_context_pb'
10
11
  require 'aserto/authorizer/v2/api/policy_instance_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("aserto/authorizer/v2/api/decision_logs.proto", :syntax => :proto3) do
14
- add_message "aserto.authorizer.v2.api.Decision" do
15
- optional :id, :string, 1, json_name: "id"
16
- optional :timestamp, :message, 2, "google.protobuf.Timestamp", json_name: "timestamp"
17
- optional :path, :string, 3, json_name: "path"
18
- optional :user, :message, 4, "aserto.authorizer.v2.api.DecisionUser", json_name: "user"
19
- optional :policy, :message, 5, "aserto.authorizer.v2.api.DecisionPolicy", json_name: "policy"
20
- map :outcomes, :string, :bool, 6
21
- optional :resource, :message, 7, "google.protobuf.Struct", json_name: "resource"
22
- map :annotations, :string, :string, 8
23
- proto3_optional :tenant_id, :string, 9, json_name: "tenantId"
24
- end
25
- add_message "aserto.authorizer.v2.api.DecisionUser" do
26
- optional :context, :message, 1, "aserto.authorizer.v2.api.IdentityContext", json_name: "context"
27
- optional :id, :string, 2, json_name: "id"
28
- optional :email, :string, 3, json_name: "email"
29
- end
30
- add_message "aserto.authorizer.v2.api.DecisionPolicy" do
31
- optional :context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "context"
32
- optional :registry_service, :string, 2, json_name: "registryService"
33
- optional :registry_image, :string, 3, json_name: "registryImage"
34
- optional :registry_tag, :string, 4, json_name: "registryTag"
35
- optional :registry_digest, :string, 5, json_name: "registryDigest"
36
- optional :policy_instance, :message, 6, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
13
+
14
+ descriptor_data = "\n,aserto/authorizer/v2/api/decision_logs.proto\x12\x18\x61serto.authorizer.v2.api\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-aserto/authorizer/v2/api/policy_context.proto\x1a/aserto/authorizer/v2/api/identity_context.proto\x1a.aserto/authorizer/v2/api/policy_instance.proto\"\xed\x04\n\x08\x44\x65\x63ision\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x38\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\x12:\n\x04user\x18\x04 \x01(\x0b\x32&.aserto.authorizer.v2.api.DecisionUserR\x04user\x12@\n\x06policy\x18\x05 \x01(\x0b\x32(.aserto.authorizer.v2.api.DecisionPolicyR\x06policy\x12L\n\x08outcomes\x18\x06 \x03(\x0b\x32\x30.aserto.authorizer.v2.api.Decision.OutcomesEntryR\x08outcomes\x12\x33\n\x08resource\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x08resource\x12U\n\x0b\x61nnotations\x18\x08 \x03(\x0b\x32\x33.aserto.authorizer.v2.api.Decision.AnnotationsEntryR\x0b\x61nnotations\x12 \n\ttenant_id\x18\t \x01(\tH\x00R\x08tenantId\x88\x01\x01\x1a;\n\rOutcomesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x08R\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0c\n\n_tenant_id\"y\n\x0c\x44\x65\x63isionUser\x12\x43\n\x07\x63ontext\x18\x01 \x01(\x0b\x32).aserto.authorizer.v2.api.IdentityContextR\x07\x63ontext\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\"\xc4\x02\n\x0e\x44\x65\x63isionPolicy\x12\x41\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.aserto.authorizer.v2.api.PolicyContextR\x07\x63ontext\x12)\n\x10registry_service\x18\x02 \x01(\tR\x0fregistryService\x12%\n\x0eregistry_image\x18\x03 \x01(\tR\rregistryImage\x12!\n\x0cregistry_tag\x18\x04 \x01(\tR\x0bregistryTag\x12\'\n\x0fregistry_digest\x18\x05 \x01(\tR\x0eregistryDigest\x12Q\n\x0fpolicy_instance\x18\x06 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceR\x0epolicyInstanceB\xf7\x01\n\x1c\x63om.aserto.authorizer.v2.apiB\x11\x44\x65\x63isionLogsProtoP\x01Z@github.com/aserto-dev/go-authorizer/aserto/authorizer/v2/api;api\xa2\x02\x04\x41\x41VA\xaa\x02\x18\x41serto.Authorizer.V2.Api\xca\x02\x18\x41serto\\Authorizer\\V2\\Api\xe2\x02$Aserto\\Authorizer\\V2\\Api\\GPBMetadata\xea\x02\x1b\x41serto::Authorizer::V2::Apib\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
31
+ ["aserto.authorizer.v2.api.IdentityContext", "aserto/authorizer/v2/api/identity_context.proto"],
32
+ ["aserto.authorizer.v2.api.PolicyContext", "aserto/authorizer/v2/api/policy_context.proto"],
33
+ ["aserto.authorizer.v2.api.PolicyInstance", "aserto/authorizer/v2/api/policy_instance.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
39
  end
38
40
  end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
39
43
  end
40
44
 
41
45
  module Aserto
@@ -1,21 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/authorizer/v2/api/identity_context.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
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
7
+
8
+ descriptor_data = "\n/aserto/authorizer/v2/api/identity_context.proto\x12\x18\x61serto.authorizer.v2.api\"i\n\x0fIdentityContext\x12\x1a\n\x08identity\x18\x01 \x01(\tR\x08identity\x12:\n\x04type\x18\x02 \x01(\x0e\x32&.aserto.authorizer.v2.api.IdentityTypeR\x04type*o\n\x0cIdentityType\x12\x19\n\x15IDENTITY_TYPE_UNKNOWN\x10\x00\x12\x16\n\x12IDENTITY_TYPE_NONE\x10\x01\x12\x15\n\x11IDENTITY_TYPE_SUB\x10\x02\x12\x15\n\x11IDENTITY_TYPE_JWT\x10\x03\x42\xfa\x01\n\x1c\x63om.aserto.authorizer.v2.apiB\x14IdentityContextProtoP\x01Z@github.com/aserto-dev/go-authorizer/aserto/authorizer/v2/api;api\xa2\x02\x04\x41\x41VA\xaa\x02\x18\x41serto.Authorizer.V2.Api\xca\x02\x18\x41serto\\Authorizer\\V2\\Api\xe2\x02$Aserto\\Authorizer\\V2\\Api\\GPBMetadata\xea\x02\x1b\x41serto::Authorizer::V2::Apib\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
28
  end
18
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
19
32
  end
20
33
 
21
34
  module Aserto
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/authorizer/v2/api/module.proto
3
4
 
@@ -5,16 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/struct_pb'
7
8
 
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
- proto3_optional :package_root, :string, 5, json_name: "packageRoot"
9
+
10
+ descriptor_data = "\n%aserto/authorizer/v2/api/module.proto\x12\x18\x61serto.authorizer.v2.api\x1a\x1cgoogle/protobuf/struct.proto\"\xec\x01\n\x06Module\x12\x13\n\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12\x15\n\x03raw\x18\x02 \x01(\tH\x01R\x03raw\x88\x01\x01\x12&\n\x0cpackage_path\x18\x03 \x01(\tH\x02R\x0bpackagePath\x88\x01\x01\x12-\n\x03\x61st\x18\x04 \x01(\x0b\x32\x16.google.protobuf.ValueH\x03R\x03\x61st\x88\x01\x01\x12&\n\x0cpackage_root\x18\x05 \x01(\tH\x04R\x0bpackageRoot\x88\x01\x01\x42\x05\n\x03_idB\x06\n\x04_rawB\x0f\n\r_package_pathB\x06\n\x04_astB\x0f\n\r_package_rootB\xf1\x01\n\x1c\x63om.aserto.authorizer.v2.apiB\x0bModuleProtoP\x01Z@github.com/aserto-dev/go-authorizer/aserto/authorizer/v2/api;api\xa2\x02\x04\x41\x41VA\xaa\x02\x18\x41serto.Authorizer.V2.Api\xca\x02\x18\x41serto\\Authorizer\\V2\\Api\xe2\x02$Aserto\\Authorizer\\V2\\Api\\GPBMetadata\xea\x02\x1b\x41serto::Authorizer::V2::Apib\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
16
31
  end
17
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
18
35
  end
19
36
 
20
37
  module Aserto
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/authorizer/v2/api/policy_context.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
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 :path, :string, 1, json_name: "path"
10
- repeated :decisions, :string, 2, json_name: "decisions"
7
+
8
+ descriptor_data = "\n-aserto/authorizer/v2/api/policy_context.proto\x12\x18\x61serto.authorizer.v2.api\"A\n\rPolicyContext\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x1c\n\tdecisions\x18\x02 \x03(\tR\tdecisionsB\xf8\x01\n\x1c\x63om.aserto.authorizer.v2.apiB\x12PolicyContextProtoP\x01Z@github.com/aserto-dev/go-authorizer/aserto/authorizer/v2/api;api\xa2\x02\x04\x41\x41VA\xaa\x02\x18\x41serto.Authorizer.V2.Api\xca\x02\x18\x41serto\\Authorizer\\V2\\Api\xe2\x02$Aserto\\Authorizer\\V2\\Api\\GPBMetadata\xea\x02\x1b\x41serto::Authorizer::V2::Apib\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Aserto
@@ -1,15 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/authorizer/v2/api/policy_instance.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("aserto/authorizer/v2/api/policy_instance.proto", :syntax => :proto3) do
8
- add_message "aserto.authorizer.v2.api.PolicyInstance" do
9
- optional :name, :string, 1, json_name: "name"
10
- optional :instance_label, :string, 2, json_name: "instanceLabel"
7
+
8
+ descriptor_data = "\n.aserto/authorizer/v2/api/policy_instance.proto\x12\x18\x61serto.authorizer.v2.api\"K\n\x0ePolicyInstance\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12%\n\x0einstance_label\x18\x02 \x01(\tR\rinstanceLabelB\xf9\x01\n\x1c\x63om.aserto.authorizer.v2.apiB\x13PolicyInstanceProtoP\x01Z@github.com/aserto-dev/go-authorizer/aserto/authorizer/v2/api;api\xa2\x02\x04\x41\x41VA\xaa\x02\x18\x41serto.Authorizer.V2.Api\xca\x02\x18\x41serto\\Authorizer\\V2\\Api\xe2\x02$Aserto\\Authorizer\\V2\\Api\\GPBMetadata\xea\x02\x1b\x41serto::Authorizer::V2::Apib\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
11
28
  end
12
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
13
32
  end
14
33
 
15
34
  module Aserto
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: aserto/authorizer/v2/authorizer.proto
3
4
 
@@ -12,110 +13,37 @@ require 'aserto/authorizer/v2/api/policy_context_pb'
12
13
  require 'aserto/authorizer/v2/api/module_pb'
13
14
  require 'aserto/authorizer/v2/api/policy_instance_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("aserto/authorizer/v2/authorizer.proto", :syntax => :proto3) do
17
- add_message "aserto.authorizer.v2.InfoRequest" do
18
- end
19
- add_message "aserto.authorizer.v2.InfoResponse" do
20
- optional :version, :string, 1, json_name: "version"
21
- optional :commit, :string, 2, json_name: "commit"
22
- optional :date, :string, 3, json_name: "date"
23
- optional :os, :string, 4, json_name: "os"
24
- optional :arch, :string, 5, json_name: "arch"
25
- end
26
- add_message "aserto.authorizer.v2.GetPolicyRequest" do
27
- optional :id, :string, 1, json_name: "id"
28
- optional :field_mask, :message, 2, "google.protobuf.FieldMask", json_name: "fieldMask"
29
- proto3_optional :policy_instance, :message, 3, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
30
- end
31
- add_message "aserto.authorizer.v2.GetPolicyResponse" do
32
- optional :result, :message, 1, "aserto.authorizer.v2.api.Module", json_name: "result"
33
- end
34
- add_message "aserto.authorizer.v2.ListPoliciesRequest" do
35
- optional :field_mask, :message, 1, "google.protobuf.FieldMask", json_name: "fieldMask"
36
- proto3_optional :policy_instance, :message, 2, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
37
- end
38
- add_message "aserto.authorizer.v2.ListPoliciesResponse" do
39
- repeated :result, :message, 1, "aserto.authorizer.v2.api.Module", json_name: "result"
40
- end
41
- add_message "aserto.authorizer.v2.DecisionTreeRequest" do
42
- optional :policy_context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
43
- optional :identity_context, :message, 2, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
44
- optional :options, :message, 3, "aserto.authorizer.v2.DecisionTreeOptions", json_name: "options"
45
- optional :resource_context, :message, 4, "google.protobuf.Struct", json_name: "resourceContext"
46
- proto3_optional :policy_instance, :message, 5, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
47
- end
48
- add_message "aserto.authorizer.v2.DecisionTreeOptions" do
49
- optional :path_separator, :enum, 1, "aserto.authorizer.v2.PathSeparator", json_name: "pathSeparator"
50
- end
51
- add_message "aserto.authorizer.v2.DecisionTreeResponse" do
52
- optional :path_root, :string, 1, json_name: "pathRoot"
53
- optional :path, :message, 3, "google.protobuf.Struct", json_name: "path"
54
- end
55
- add_message "aserto.authorizer.v2.IsRequest" do
56
- optional :policy_context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
57
- optional :identity_context, :message, 2, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
58
- optional :resource_context, :message, 3, "google.protobuf.Struct", json_name: "resourceContext"
59
- proto3_optional :policy_instance, :message, 4, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
60
- end
61
- add_message "aserto.authorizer.v2.Decision" do
62
- optional :decision, :string, 1, json_name: "decision"
63
- optional :is, :bool, 2, json_name: "is"
64
- end
65
- add_message "aserto.authorizer.v2.IsResponse" do
66
- repeated :decisions, :message, 1, "aserto.authorizer.v2.Decision", json_name: "decisions"
67
- end
68
- add_message "aserto.authorizer.v2.QueryOptions" do
69
- optional :metrics, :bool, 1, json_name: "metrics"
70
- optional :instrument, :bool, 2, json_name: "instrument"
71
- optional :trace, :enum, 3, "aserto.authorizer.v2.TraceLevel", json_name: "trace"
72
- optional :trace_summary, :bool, 4, json_name: "traceSummary"
73
- end
74
- add_message "aserto.authorizer.v2.QueryRequest" do
75
- optional :query, :string, 1, json_name: "query"
76
- optional :input, :string, 2, json_name: "input"
77
- proto3_optional :options, :message, 3, "aserto.authorizer.v2.QueryOptions", json_name: "options"
78
- proto3_optional :policy_context, :message, 4, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
79
- proto3_optional :identity_context, :message, 5, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
80
- proto3_optional :resource_context, :message, 6, "google.protobuf.Struct", json_name: "resourceContext"
81
- proto3_optional :policy_instance, :message, 7, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
82
- end
83
- add_message "aserto.authorizer.v2.CompileRequest" do
84
- optional :query, :string, 1, json_name: "query"
85
- optional :input, :string, 2, json_name: "input"
86
- repeated :unknowns, :string, 3, json_name: "unknowns"
87
- repeated :disable_inlining, :string, 4, json_name: "disableInlining"
88
- proto3_optional :options, :message, 5, "aserto.authorizer.v2.QueryOptions", json_name: "options"
89
- proto3_optional :policy_context, :message, 6, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
90
- proto3_optional :identity_context, :message, 7, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
91
- proto3_optional :resource_context, :message, 8, "google.protobuf.Struct", json_name: "resourceContext"
92
- proto3_optional :policy_instance, :message, 9, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
93
- end
94
- add_message "aserto.authorizer.v2.CompileResponse" do
95
- optional :result, :message, 1, "google.protobuf.Struct", json_name: "result"
96
- optional :metrics, :message, 2, "google.protobuf.Struct", json_name: "metrics"
97
- repeated :trace, :message, 3, "google.protobuf.Struct", json_name: "trace"
98
- repeated :trace_summary, :string, 4, json_name: "traceSummary"
99
- end
100
- add_message "aserto.authorizer.v2.QueryResponse" do
101
- optional :response, :message, 1, "google.protobuf.Struct", json_name: "response"
102
- optional :metrics, :message, 2, "google.protobuf.Struct", json_name: "metrics"
103
- repeated :trace, :message, 3, "google.protobuf.Struct", json_name: "trace"
104
- repeated :trace_summary, :string, 4, json_name: "traceSummary"
105
- end
106
- add_enum "aserto.authorizer.v2.PathSeparator" do
107
- value :PATH_SEPARATOR_UNKNOWN, 0
108
- value :PATH_SEPARATOR_DOT, 1
109
- value :PATH_SEPARATOR_SLASH, 2
110
- end
111
- add_enum "aserto.authorizer.v2.TraceLevel" do
112
- value :TRACE_LEVEL_UNKNOWN, 0
113
- value :TRACE_LEVEL_OFF, 1
114
- value :TRACE_LEVEL_FULL, 2
115
- value :TRACE_LEVEL_NOTES, 3
116
- value :TRACE_LEVEL_FAILS, 4
16
+
17
+ descriptor_data = "\n%aserto/authorizer/v2/authorizer.proto\x12\x14\x61serto.authorizer.v2\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a google/protobuf/field_mask.proto\x1a/aserto/authorizer/v2/api/identity_context.proto\x1a-aserto/authorizer/v2/api/policy_context.proto\x1a%aserto/authorizer/v2/api/module.proto\x1a.aserto/authorizer/v2/api/policy_instance.proto\"\r\n\x0bInfoRequest\"x\n\x0cInfoResponse\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12\x16\n\x06\x63ommit\x18\x02 \x01(\tR\x06\x63ommit\x12\x12\n\x04\x64\x61te\x18\x03 \x01(\tR\x04\x64\x61te\x12\x0e\n\x02os\x18\x04 \x01(\tR\x02os\x12\x12\n\x04\x61rch\x18\x05 \x01(\tR\x04\x61rch\"\xc9\x01\n\x10GetPolicyRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x39\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\tfieldMask\x12V\n\x0fpolicy_instance\x18\x03 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceH\x00R\x0epolicyInstance\x88\x01\x01\x42\x12\n\x10_policy_instance\"M\n\x11GetPolicyResponse\x12\x38\n\x06result\x18\x01 \x01(\x0b\x32 .aserto.authorizer.v2.api.ModuleR\x06result\"\xbc\x01\n\x13ListPoliciesRequest\x12\x39\n\nfield_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\tfieldMask\x12V\n\x0fpolicy_instance\x18\x02 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceH\x00R\x0epolicyInstance\x88\x01\x01\x42\x12\n\x10_policy_instance\"P\n\x14ListPoliciesResponse\x12\x38\n\x06result\x18\x01 \x03(\x0b\x32 .aserto.authorizer.v2.api.ModuleR\x06result\"\xb0\x03\n\x13\x44\x65\x63isionTreeRequest\x12N\n\x0epolicy_context\x18\x01 \x01(\x0b\x32\'.aserto.authorizer.v2.api.PolicyContextR\rpolicyContext\x12T\n\x10identity_context\x18\x02 \x01(\x0b\x32).aserto.authorizer.v2.api.IdentityContextR\x0fidentityContext\x12\x43\n\x07options\x18\x03 \x01(\x0b\x32).aserto.authorizer.v2.DecisionTreeOptionsR\x07options\x12\x42\n\x10resource_context\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructR\x0fresourceContext\x12V\n\x0fpolicy_instance\x18\x05 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceH\x00R\x0epolicyInstance\x88\x01\x01\x42\x12\n\x10_policy_instance\"g\n\x13\x44\x65\x63isionTreeOptions\x12J\n\x0epath_separator\x18\x01 \x01(\x0e\x32#.aserto.authorizer.v2.PathSeparatorR\rpathSeparatorJ\x04\x08\x02\x10\x03\"f\n\x14\x44\x65\x63isionTreeResponse\x12\x1b\n\tpath_root\x18\x01 \x01(\tR\x08pathRoot\x12+\n\x04path\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructR\x04pathJ\x04\x08\x02\x10\x03\"\xe1\x02\n\tIsRequest\x12N\n\x0epolicy_context\x18\x01 \x01(\x0b\x32\'.aserto.authorizer.v2.api.PolicyContextR\rpolicyContext\x12T\n\x10identity_context\x18\x02 \x01(\x0b\x32).aserto.authorizer.v2.api.IdentityContextR\x0fidentityContext\x12\x42\n\x10resource_context\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructR\x0fresourceContext\x12V\n\x0fpolicy_instance\x18\x04 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceH\x00R\x0epolicyInstance\x88\x01\x01\x42\x12\n\x10_policy_instance\"6\n\x08\x44\x65\x63ision\x12\x1a\n\x08\x64\x65\x63ision\x18\x01 \x01(\tR\x08\x64\x65\x63ision\x12\x0e\n\x02is\x18\x02 \x01(\x08R\x02is\"J\n\nIsResponse\x12<\n\tdecisions\x18\x01 \x03(\x0b\x32\x1e.aserto.authorizer.v2.DecisionR\tdecisions\"\xa5\x01\n\x0cQueryOptions\x12\x18\n\x07metrics\x18\x01 \x01(\x08R\x07metrics\x12\x1e\n\ninstrument\x18\x02 \x01(\x08R\ninstrument\x12\x36\n\x05trace\x18\x03 \x01(\x0e\x32 .aserto.authorizer.v2.TraceLevelR\x05trace\x12#\n\rtrace_summary\x18\x04 \x01(\x08R\x0ctraceSummary\"\xab\x04\n\x0cQueryRequest\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n\x05input\x18\x02 \x01(\tR\x05input\x12\x41\n\x07options\x18\x03 \x01(\x0b\x32\".aserto.authorizer.v2.QueryOptionsH\x00R\x07options\x88\x01\x01\x12S\n\x0epolicy_context\x18\x04 \x01(\x0b\x32\'.aserto.authorizer.v2.api.PolicyContextH\x01R\rpolicyContext\x88\x01\x01\x12Y\n\x10identity_context\x18\x05 \x01(\x0b\x32).aserto.authorizer.v2.api.IdentityContextH\x02R\x0fidentityContext\x88\x01\x01\x12G\n\x10resource_context\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructH\x03R\x0fresourceContext\x88\x01\x01\x12V\n\x0fpolicy_instance\x18\x07 \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceH\x04R\x0epolicyInstance\x88\x01\x01\x42\n\n\x08_optionsB\x11\n\x0f_policy_contextB\x13\n\x11_identity_contextB\x13\n\x11_resource_contextB\x12\n\x10_policy_instance\"\xf4\x04\n\x0e\x43ompileRequest\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n\x05input\x18\x02 \x01(\tR\x05input\x12\x1a\n\x08unknowns\x18\x03 \x03(\tR\x08unknowns\x12)\n\x10\x64isable_inlining\x18\x04 \x03(\tR\x0f\x64isableInlining\x12\x41\n\x07options\x18\x05 \x01(\x0b\x32\".aserto.authorizer.v2.QueryOptionsH\x00R\x07options\x88\x01\x01\x12S\n\x0epolicy_context\x18\x06 \x01(\x0b\x32\'.aserto.authorizer.v2.api.PolicyContextH\x01R\rpolicyContext\x88\x01\x01\x12Y\n\x10identity_context\x18\x07 \x01(\x0b\x32).aserto.authorizer.v2.api.IdentityContextH\x02R\x0fidentityContext\x88\x01\x01\x12G\n\x10resource_context\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructH\x03R\x0fresourceContext\x88\x01\x01\x12V\n\x0fpolicy_instance\x18\t \x01(\x0b\x32(.aserto.authorizer.v2.api.PolicyInstanceH\x04R\x0epolicyInstance\x88\x01\x01\x42\n\n\x08_optionsB\x11\n\x0f_policy_contextB\x13\n\x11_identity_contextB\x13\n\x11_resource_contextB\x12\n\x10_policy_instance\"\xc9\x01\n\x0f\x43ompileResponse\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x06result\x12\x31\n\x07metrics\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x07metrics\x12-\n\x05trace\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructR\x05trace\x12#\n\rtrace_summary\x18\x04 \x03(\tR\x0ctraceSummary\"\xcb\x01\n\rQueryResponse\x12\x33\n\x08response\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x08response\x12\x31\n\x07metrics\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x07metrics\x12-\n\x05trace\x18\x03 \x03(\x0b\x32\x17.google.protobuf.StructR\x05trace\x12#\n\rtrace_summary\x18\x04 \x03(\tR\x0ctraceSummary*]\n\rPathSeparator\x12\x1a\n\x16PATH_SEPARATOR_UNKNOWN\x10\x00\x12\x16\n\x12PATH_SEPARATOR_DOT\x10\x01\x12\x18\n\x14PATH_SEPARATOR_SLASH\x10\x02*~\n\nTraceLevel\x12\x17\n\x13TRACE_LEVEL_UNKNOWN\x10\x00\x12\x13\n\x0fTRACE_LEVEL_OFF\x10\x01\x12\x14\n\x10TRACE_LEVEL_FULL\x10\x02\x12\x15\n\x11TRACE_LEVEL_NOTES\x10\x03\x12\x15\n\x11TRACE_LEVEL_FAILS\x10\x04\x32\x89\x0e\n\nAuthorizer\x12\x9f\x02\n\x0c\x44\x65\x63isionTree\x12).aserto.authorizer.v2.DecisionTreeRequest\x1a*.aserto.authorizer.v2.DecisionTreeResponse\"\xb7\x01\x92\x41\x8e\x01\n\nAuthorizer\x12\rDecision tree\x1a\x31Returns decision tree for given identity context.*\x18\x61uthorizer.decision_treeb$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v2/authz/decisiontree\x12\x9d\x02\n\x02Is\x12\x1f.aserto.authorizer.v2.IsRequest\x1a .aserto.authorizer.v2.IsResponse\"\xd3\x01\x92\x41\xb4\x01\n\nAuthorizer\x12\x0fIs (authorized)\x1a`Determines if identity context is authorized to access the resource guarded by the given policy.*\rauthorizer.isb$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/v2/authz/is\x12\x82\x02\n\x05Query\x12\".aserto.authorizer.v2.QueryRequest\x1a#.aserto.authorizer.v2.QueryResponse\"\xaf\x01\x92\x41\x8d\x01\n\nAuthorizer\x12\x12Query (authorized)\x1a\x33\x45xecutes a rego query on the loaded policy runtime.*\x10\x61uthorizer.queryb$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v2/authz/query\x12\x91\x02\n\x07\x43ompile\x12$.aserto.authorizer.v2.CompileRequest\x1a%.aserto.authorizer.v2.CompileResponse\"\xb8\x01\x92\x41\x94\x01\n\nAuthorizer\x12\x14\x43ompile (authorized)\x1a\x36\x45xecutes a partial query on the loaded policy runtime.*\x12\x61uthorizer.compileb$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v2/authz/compile\x12\x80\x02\n\x0cListPolicies\x12).aserto.authorizer.v2.ListPoliciesRequest\x1a*.aserto.authorizer.v2.ListPoliciesResponse\"\x98\x01\x92\x41}\n\x06Policy\x12\rList Policies\x1a/Lists the policy modules for the policy bundle.*\rpolicies.listb$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v2/policies\x12\xfe\x01\n\tGetPolicy\x12&.aserto.authorizer.v2.GetPolicyRequest\x1a\'.aserto.authorizer.v2.GetPolicyResponse\"\x9f\x01\x92\x41z\n\x06Policy\x12\nGet Policy\x1a\x30Gets the policy modules for the given module Id.*\x0cpolicies.getb$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/v2/policies/{id=*/**}\x12\x9b\x01\n\x04Info\x12!.aserto.authorizer.v2.InfoRequest\x1a\".aserto.authorizer.v2.InfoResponse\"L\x92\x41\x35\n\x04Info\x12\x04Info\x1a\x1bReturn version information.*\x08info.getb\x00\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v2/infoB\x82\x03\n\x18\x63om.aserto.authorizer.v2B\x0f\x41uthorizerProtoP\x01ZCgithub.com/aserto-dev/go-authorizer/aserto/authorizer/v2;authorizer\xa2\x02\x03\x41\x41X\xaa\x02\x14\x41serto.Authorizer.V2\xca\x02\x14\x41serto\\Authorizer\\V2\xe2\x02 Aserto\\Authorizer\\V2\\GPBMetadata\xea\x02\x16\x41serto::Authorizer::V2\x92\x41\x9c\x01*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonZM\n\'\n\x10\x41uthorizerAPIKey\x12\x13\x08\x02\x1a\rauthorization \x02\n\"\n\x08TenantID\x12\x16\x08\x02\x1a\x10\x61serto-tenant-id \x02\x62$\n\x14\n\x10\x41uthorizerAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x62\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
33
+ ["aserto.authorizer.v2.api.PolicyInstance", "aserto/authorizer/v2/api/policy_instance.proto"],
34
+ ["aserto.authorizer.v2.api.Module", "aserto/authorizer/v2/api/module.proto"],
35
+ ["aserto.authorizer.v2.api.PolicyContext", "aserto/authorizer/v2/api/policy_context.proto"],
36
+ ["aserto.authorizer.v2.api.IdentityContext", "aserto/authorizer/v2/api/identity_context.proto"],
37
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
38
+ ]
39
+ imports.each do |type_name, expected_filename|
40
+ import_file = pool.lookup(type_name).file_descriptor
41
+ if import_file.name != expected_filename
42
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
117
43
  end
118
44
  end
45
+ warn "Each proto file must use a consistent fully-qualified name."
46
+ warn "This will become an error in the next major version."
119
47
  end
120
48
 
121
49
  module Aserto
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/annotations.proto
3
4
 
@@ -6,9 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/http_pb'
7
8
  require 'google/protobuf/descriptor_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/api/annotations.proto", :syntax => :proto3) do
10
+
11
+ descriptor_data = "\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:K\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleR\x04httpB\xae\x01\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.api.HttpRule", "google/api/http.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
11
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
12
36
  end
13
37
 
14
38
  module Google
@@ -1,33 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/http.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
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"
7
+
8
+ descriptor_data = "\n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRuleR\x05rules\x12\x45\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08R\x1c\x66ullyDecodeReservedExpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12\x12\n\x03get\x18\x02 \x01(\tH\x00R\x03get\x12\x12\n\x03put\x18\x03 \x01(\tH\x00R\x03put\x12\x14\n\x04post\x18\x04 \x01(\tH\x00R\x04post\x12\x18\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00R\x06\x64\x65lete\x12\x16\n\x05patch\x18\x06 \x01(\tH\x00R\x05patch\x12\x37\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00R\x06\x63ustom\x12\x12\n\x04\x62ody\x18\x07 \x01(\tR\x04\x62ody\x12#\n\rresponse_body\x18\x0c \x01(\tR\x0cresponseBody\x12\x45\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleR\x12\x61\x64\x64itionalBindingsB\t\n\x07pattern\";\n\x11\x43ustomHttpPattern\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n\x04path\x18\x02 \x01(\tR\x04pathB\xaa\x01\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
29
28
  end
30
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
31
32
  end
32
33
 
33
34
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: protoc-gen-openapiv2/options/annotations.proto
3
4
 
@@ -6,9 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/descriptor_pb'
7
8
  require 'protoc-gen-openapiv2/options/openapiv2_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("protoc-gen-openapiv2/options/annotations.proto", :syntax => :proto3) do
10
+
11
+ descriptor_data = "\n.protoc-gen-openapiv2/options/annotations.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a google/protobuf/descriptor.proto\x1a,protoc-gen-openapiv2/options/openapiv2.proto:~\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.SwaggerR\x10openapiv2Swagger:\x86\x01\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x34.grpc.gateway.protoc_gen_openapiv2.options.OperationR\x12openapiv2Operation:~\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.SchemaR\x0fopenapiv2Schema:u\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.TagR\x0copenapiv2Tag:~\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaR\x0eopenapiv2FieldB\xc9\x02\n-com.grpc.gateway.protoc_gen_openapiv2.optionsB\x10\x41nnotationsProtoP\x01ZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options\xa2\x02\x04GGPO\xaa\x02\'Grpc.Gateway.ProtocGenOpenapiv2.Options\xca\x02\'Grpc\\Gateway\\ProtocGenOpenapiv2\\Options\xe2\x02\x33Grpc\\Gateway\\ProtocGenOpenapiv2\\Options\\GPBMetadata\xea\x02*Grpc::Gateway::ProtocGenOpenapiv2::Optionsb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["grpc.gateway.protoc_gen_openapiv2.options.Swagger", "protoc-gen-openapiv2/options/openapiv2.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
11
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
12
36
  end
13
37
 
14
38
  module Grpc
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: protoc-gen-openapiv2/options/openapiv2.proto
3
4
 
@@ -5,194 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/struct_pb'
7
8
 
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
- repeated :tags, :message, 13, "grpc.gateway.protoc_gen_openapiv2.options.Tag", json_name: "tags"
22
- optional :external_docs, :message, 14, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
23
- map :extensions, :string, :message, 15, "google.protobuf.Value"
24
- end
25
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Operation" do
26
- repeated :tags, :string, 1, json_name: "tags"
27
- optional :summary, :string, 2, json_name: "summary"
28
- optional :description, :string, 3, json_name: "description"
29
- optional :external_docs, :message, 4, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
30
- optional :operation_id, :string, 5, json_name: "operationId"
31
- repeated :consumes, :string, 6, json_name: "consumes"
32
- repeated :produces, :string, 7, json_name: "produces"
33
- map :responses, :string, :message, 9, "grpc.gateway.protoc_gen_openapiv2.options.Response"
34
- repeated :schemes, :enum, 10, "grpc.gateway.protoc_gen_openapiv2.options.Scheme", json_name: "schemes"
35
- optional :deprecated, :bool, 11, json_name: "deprecated"
36
- repeated :security, :message, 12, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", json_name: "security"
37
- map :extensions, :string, :message, 13, "google.protobuf.Value"
38
- optional :parameters, :message, 14, "grpc.gateway.protoc_gen_openapiv2.options.Parameters", json_name: "parameters"
39
- end
40
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Parameters" do
41
- repeated :headers, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter", json_name: "headers"
42
- end
43
- add_message "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter" do
44
- optional :name, :string, 1, json_name: "name"
45
- optional :description, :string, 2, json_name: "description"
46
- optional :type, :enum, 3, "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type", json_name: "type"
47
- optional :format, :string, 4, json_name: "format"
48
- optional :required, :bool, 5, json_name: "required"
49
- end
50
- add_enum "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type" do
51
- value :UNKNOWN, 0
52
- value :STRING, 1
53
- value :NUMBER, 2
54
- value :INTEGER, 3
55
- value :BOOLEAN, 4
56
- end
57
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Header" do
58
- optional :description, :string, 1, json_name: "description"
59
- optional :type, :string, 2, json_name: "type"
60
- optional :format, :string, 3, json_name: "format"
61
- optional :default, :string, 6, json_name: "default"
62
- optional :pattern, :string, 13, json_name: "pattern"
63
- end
64
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Response" do
65
- optional :description, :string, 1, json_name: "description"
66
- optional :schema, :message, 2, "grpc.gateway.protoc_gen_openapiv2.options.Schema", json_name: "schema"
67
- map :headers, :string, :message, 3, "grpc.gateway.protoc_gen_openapiv2.options.Header"
68
- map :examples, :string, :string, 4
69
- map :extensions, :string, :message, 5, "google.protobuf.Value"
70
- end
71
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Info" do
72
- optional :title, :string, 1, json_name: "title"
73
- optional :description, :string, 2, json_name: "description"
74
- optional :terms_of_service, :string, 3, json_name: "termsOfService"
75
- optional :contact, :message, 4, "grpc.gateway.protoc_gen_openapiv2.options.Contact", json_name: "contact"
76
- optional :license, :message, 5, "grpc.gateway.protoc_gen_openapiv2.options.License", json_name: "license"
77
- optional :version, :string, 6, json_name: "version"
78
- map :extensions, :string, :message, 7, "google.protobuf.Value"
79
- end
80
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Contact" do
81
- optional :name, :string, 1, json_name: "name"
82
- optional :url, :string, 2, json_name: "url"
83
- optional :email, :string, 3, json_name: "email"
84
- end
85
- add_message "grpc.gateway.protoc_gen_openapiv2.options.License" do
86
- optional :name, :string, 1, json_name: "name"
87
- optional :url, :string, 2, json_name: "url"
88
- end
89
- add_message "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" do
90
- optional :description, :string, 1, json_name: "description"
91
- optional :url, :string, 2, json_name: "url"
92
- end
93
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Schema" do
94
- optional :json_schema, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema", json_name: "jsonSchema"
95
- optional :discriminator, :string, 2, json_name: "discriminator"
96
- optional :read_only, :bool, 3, json_name: "readOnly"
97
- optional :external_docs, :message, 5, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
98
- optional :example, :string, 6, json_name: "example"
99
- end
100
- add_message "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema" do
101
- optional :ref, :string, 3, json_name: "ref"
102
- optional :title, :string, 5, json_name: "title"
103
- optional :description, :string, 6, json_name: "description"
104
- optional :default, :string, 7, json_name: "default"
105
- optional :read_only, :bool, 8, json_name: "readOnly"
106
- optional :example, :string, 9, json_name: "example"
107
- optional :multiple_of, :double, 10, json_name: "multipleOf"
108
- optional :maximum, :double, 11, json_name: "maximum"
109
- optional :exclusive_maximum, :bool, 12, json_name: "exclusiveMaximum"
110
- optional :minimum, :double, 13, json_name: "minimum"
111
- optional :exclusive_minimum, :bool, 14, json_name: "exclusiveMinimum"
112
- optional :max_length, :uint64, 15, json_name: "maxLength"
113
- optional :min_length, :uint64, 16, json_name: "minLength"
114
- optional :pattern, :string, 17, json_name: "pattern"
115
- optional :max_items, :uint64, 20, json_name: "maxItems"
116
- optional :min_items, :uint64, 21, json_name: "minItems"
117
- optional :unique_items, :bool, 22, json_name: "uniqueItems"
118
- optional :max_properties, :uint64, 24, json_name: "maxProperties"
119
- optional :min_properties, :uint64, 25, json_name: "minProperties"
120
- repeated :required, :string, 26, json_name: "required"
121
- repeated :array, :string, 34, json_name: "array"
122
- repeated :type, :enum, 35, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", json_name: "type"
123
- optional :format, :string, 36, json_name: "format"
124
- repeated :enum, :string, 46, json_name: "enum"
125
- optional :field_configuration, :message, 1001, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", json_name: "fieldConfiguration"
126
- map :extensions, :string, :message, 48, "google.protobuf.Value"
127
- end
128
- add_message "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration" do
129
- optional :path_param_name, :string, 47, json_name: "pathParamName"
130
- end
131
- add_enum "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes" do
132
- value :UNKNOWN, 0
133
- value :ARRAY, 1
134
- value :BOOLEAN, 2
135
- value :INTEGER, 3
136
- value :NULL, 4
137
- value :NUMBER, 5
138
- value :OBJECT, 6
139
- value :STRING, 7
140
- end
141
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Tag" do
142
- optional :name, :string, 1, json_name: "name"
143
- optional :description, :string, 2, json_name: "description"
144
- optional :external_docs, :message, 3, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
145
- map :extensions, :string, :message, 4, "google.protobuf.Value"
146
- end
147
- add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" do
148
- map :security, :string, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"
149
- end
150
- add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme" do
151
- optional :type, :enum, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type", json_name: "type"
152
- optional :description, :string, 2, json_name: "description"
153
- optional :name, :string, 3, json_name: "name"
154
- optional :in, :enum, 4, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", json_name: "in"
155
- optional :flow, :enum, 5, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", json_name: "flow"
156
- optional :authorization_url, :string, 6, json_name: "authorizationUrl"
157
- optional :token_url, :string, 7, json_name: "tokenUrl"
158
- optional :scopes, :message, 8, "grpc.gateway.protoc_gen_openapiv2.options.Scopes", json_name: "scopes"
159
- map :extensions, :string, :message, 9, "google.protobuf.Value"
160
- end
161
- add_enum "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type" do
162
- value :TYPE_INVALID, 0
163
- value :TYPE_BASIC, 1
164
- value :TYPE_API_KEY, 2
165
- value :TYPE_OAUTH2, 3
166
- end
167
- add_enum "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In" do
168
- value :IN_INVALID, 0
169
- value :IN_QUERY, 1
170
- value :IN_HEADER, 2
171
- end
172
- add_enum "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow" do
173
- value :FLOW_INVALID, 0
174
- value :FLOW_IMPLICIT, 1
175
- value :FLOW_PASSWORD, 2
176
- value :FLOW_APPLICATION, 3
177
- value :FLOW_ACCESS_CODE, 4
178
- end
179
- add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement" do
180
- map :security_requirement, :string, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue"
181
- end
182
- add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue" do
183
- repeated :scope, :string, 1, json_name: "scope"
184
- end
185
- add_message "grpc.gateway.protoc_gen_openapiv2.options.Scopes" do
186
- map :scope, :string, :string, 1
187
- end
188
- add_enum "grpc.gateway.protoc_gen_openapiv2.options.Scheme" do
189
- value :UNKNOWN, 0
190
- value :HTTP, 1
191
- value :HTTPS, 2
192
- value :WS, 3
193
- value :WSS, 4
9
+
10
+ descriptor_data = "\n,protoc-gen-openapiv2/options/openapiv2.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a\x1cgoogle/protobuf/struct.proto\"\xb3\x08\n\x07Swagger\x12\x18\n\x07swagger\x18\x01 \x01(\tR\x07swagger\x12\x43\n\x04info\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_openapiv2.options.InfoR\x04info\x12\x12\n\x04host\x18\x03 \x01(\tR\x04host\x12\x1b\n\tbase_path\x18\x04 \x01(\tR\x08\x62\x61sePath\x12K\n\x07schemes\x18\x05 \x03(\x0e\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.SchemeR\x07schemes\x12\x1a\n\x08\x63onsumes\x18\x06 \x03(\tR\x08\x63onsumes\x12\x1a\n\x08produces\x18\x07 \x03(\tR\x08produces\x12_\n\tresponses\x18\n \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntryR\tresponses\x12q\n\x14security_definitions\x18\x0b \x01(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitionsR\x13securityDefinitions\x12Z\n\x08security\x18\x0c \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementR\x08security\x12\x42\n\x04tags\x18\r \x03(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.TagR\x04tags\x12\x65\n\rexternal_docs\x18\x0e \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentationR\x0c\x65xternalDocs\x12\x62\n\nextensions\x18\x0f \x03(\x0b\x32\x42.grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntryR\nextensions\x1aq\n\x0eResponsesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12I\n\x05value\x18\x02 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_openapiv2.options.ResponseR\x05value:\x02\x38\x01\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01J\x04\x08\x08\x10\tJ\x04\x08\t\x10\n\"\xd6\x07\n\tOperation\x12\x12\n\x04tags\x18\x01 \x03(\tR\x04tags\x12\x18\n\x07summary\x18\x02 \x01(\tR\x07summary\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x65\n\rexternal_docs\x18\x04 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentationR\x0c\x65xternalDocs\x12!\n\x0coperation_id\x18\x05 \x01(\tR\x0boperationId\x12\x1a\n\x08\x63onsumes\x18\x06 \x03(\tR\x08\x63onsumes\x12\x1a\n\x08produces\x18\x07 \x03(\tR\x08produces\x12\x61\n\tresponses\x18\t \x03(\x0b\x32\x43.grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntryR\tresponses\x12K\n\x07schemes\x18\n \x03(\x0e\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.SchemeR\x07schemes\x12\x1e\n\ndeprecated\x18\x0b \x01(\x08R\ndeprecated\x12Z\n\x08security\x18\x0c \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementR\x08security\x12\x64\n\nextensions\x18\r \x03(\x0b\x32\x44.grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntryR\nextensions\x12U\n\nparameters\x18\x0e \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.ParametersR\nparameters\x1aq\n\x0eResponsesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12I\n\x05value\x18\x02 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_openapiv2.options.ResponseR\x05value:\x02\x38\x01\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01J\x04\x08\x08\x10\t\"b\n\nParameters\x12T\n\x07headers\x18\x01 \x03(\x0b\x32:.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameterR\x07headers\"\xa3\x02\n\x0fHeaderParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12S\n\x04type\x18\x03 \x01(\x0e\x32?.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.TypeR\x04type\x12\x16\n\x06\x66ormat\x18\x04 \x01(\tR\x06\x66ormat\x12\x1a\n\x08required\x18\x05 \x01(\x08R\x08required\"E\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06STRING\x10\x01\x12\n\n\x06NUMBER\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\xd8\x01\n\x06Header\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x16\n\x06\x66ormat\x18\x03 \x01(\tR\x06\x66ormat\x12\x18\n\x07\x64\x65\x66\x61ult\x18\x06 \x01(\tR\x07\x64\x65\x66\x61ult\x12\x18\n\x07pattern\x18\r \x01(\tR\x07patternJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0bJ\x04\x08\x0b\x10\x0cJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11J\x04\x08\x11\x10\x12J\x04\x08\x12\x10\x13\"\x9a\x05\n\x08Response\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12I\n\x06schema\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.SchemaR\x06schema\x12Z\n\x07headers\x18\x03 \x03(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntryR\x07headers\x12]\n\x08\x65xamples\x18\x04 \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntryR\x08\x65xamples\x12\x63\n\nextensions\x18\x05 \x03(\x0b\x32\x43.grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntryR\nextensions\x1am\n\x0cHeadersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.HeaderR\x05value:\x02\x38\x01\x1a;\n\rExamplesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01\"\xd6\x03\n\x04Info\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12(\n\x10terms_of_service\x18\x03 \x01(\tR\x0etermsOfService\x12L\n\x07\x63ontact\x18\x04 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.ContactR\x07\x63ontact\x12L\n\x07license\x18\x05 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.LicenseR\x07license\x12\x18\n\x07version\x18\x06 \x01(\tR\x07version\x12_\n\nextensions\x18\x07 \x03(\x0b\x32?.grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntryR\nextensions\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01\"E\n\x07\x43ontact\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\"/\n\x07License\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\"K\n\x15\x45xternalDocumentation\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\"\xaa\x02\n\x06Schema\x12V\n\x0bjson_schema\x18\x01 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaR\njsonSchema\x12$\n\rdiscriminator\x18\x02 \x01(\tR\rdiscriminator\x12\x1b\n\tread_only\x18\x03 \x01(\x08R\x08readOnly\x12\x65\n\rexternal_docs\x18\x05 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentationR\x0c\x65xternalDocs\x12\x18\n\x07\x65xample\x18\x06 \x01(\tR\x07\x65xampleJ\x04\x08\x04\x10\x05\"\xd7\n\n\nJSONSchema\x12\x10\n\x03ref\x18\x03 \x01(\tR\x03ref\x12\x14\n\x05title\x18\x05 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x06 \x01(\tR\x0b\x64\x65scription\x12\x18\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\tR\x07\x64\x65\x66\x61ult\x12\x1b\n\tread_only\x18\x08 \x01(\x08R\x08readOnly\x12\x18\n\x07\x65xample\x18\t \x01(\tR\x07\x65xample\x12\x1f\n\x0bmultiple_of\x18\n \x01(\x01R\nmultipleOf\x12\x18\n\x07maximum\x18\x0b \x01(\x01R\x07maximum\x12+\n\x11\x65xclusive_maximum\x18\x0c \x01(\x08R\x10\x65xclusiveMaximum\x12\x18\n\x07minimum\x18\r \x01(\x01R\x07minimum\x12+\n\x11\x65xclusive_minimum\x18\x0e \x01(\x08R\x10\x65xclusiveMinimum\x12\x1d\n\nmax_length\x18\x0f \x01(\x04R\tmaxLength\x12\x1d\n\nmin_length\x18\x10 \x01(\x04R\tminLength\x12\x18\n\x07pattern\x18\x11 \x01(\tR\x07pattern\x12\x1b\n\tmax_items\x18\x14 \x01(\x04R\x08maxItems\x12\x1b\n\tmin_items\x18\x15 \x01(\x04R\x08minItems\x12!\n\x0cunique_items\x18\x16 \x01(\x08R\x0buniqueItems\x12%\n\x0emax_properties\x18\x18 \x01(\x04R\rmaxProperties\x12%\n\x0emin_properties\x18\x19 \x01(\x04R\rminProperties\x12\x1a\n\x08required\x18\x1a \x03(\tR\x08required\x12\x14\n\x05\x61rray\x18\" \x03(\tR\x05\x61rray\x12_\n\x04type\x18# \x03(\x0e\x32K.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypesR\x04type\x12\x16\n\x06\x66ormat\x18$ \x01(\tR\x06\x66ormat\x12\x12\n\x04\x65num\x18. \x03(\tR\x04\x65num\x12z\n\x13\x66ield_configuration\x18\xe9\x07 \x01(\x0b\x32H.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfigurationR\x12\x66ieldConfiguration\x12\x65\n\nextensions\x18\x30 \x03(\x0b\x32\x45.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntryR\nextensions\x1a<\n\x12\x46ieldConfiguration\x12&\n\x0fpath_param_name\x18/ \x01(\tR\rpathParamName\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01\"w\n\x15JSONSchemaSimpleTypes\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41RRAY\x10\x01\x12\x0b\n\x07\x42OOLEAN\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x08\n\x04NULL\x10\x04\x12\n\n\x06NUMBER\x10\x05\x12\n\n\x06OBJECT\x10\x06\x12\n\n\x06STRING\x10\x07J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05J\x04\x08\x12\x10\x13J\x04\x08\x13\x10\x14J\x04\x08\x17\x10\x18J\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1eJ\x04\x08\x1e\x10\"J\x04\x08%\x10*J\x04\x08*\x10+J\x04\x08+\x10.\"\xd9\x02\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x65\n\rexternal_docs\x18\x03 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentationR\x0c\x65xternalDocs\x12^\n\nextensions\x18\x04 \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.Tag.ExtensionsEntryR\nextensions\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01\"\xf7\x01\n\x13SecurityDefinitions\x12h\n\x08security\x18\x01 \x03(\x0b\x32L.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntryR\x08security\x1av\n\rSecurityEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12O\n\x05value\x18\x02 \x01(\x0b\x32\x39.grpc.gateway.protoc_gen_openapiv2.options.SecuritySchemeR\x05value:\x02\x38\x01\"\xff\x06\n\x0eSecurityScheme\x12R\n\x04type\x18\x01 \x01(\x0e\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.TypeR\x04type\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12L\n\x02in\x18\x04 \x01(\x0e\x32<.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.InR\x02in\x12R\n\x04\x66low\x18\x05 \x01(\x0e\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.FlowR\x04\x66low\x12+\n\x11\x61uthorization_url\x18\x06 \x01(\tR\x10\x61uthorizationUrl\x12\x1b\n\ttoken_url\x18\x07 \x01(\tR\x08tokenUrl\x12I\n\x06scopes\x18\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.ScopesR\x06scopes\x12i\n\nextensions\x18\t \x03(\x0b\x32I.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntryR\nextensions\x1aU\n\x0f\x45xtensionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value:\x02\x38\x01\"K\n\x04Type\x12\x10\n\x0cTYPE_INVALID\x10\x00\x12\x0e\n\nTYPE_BASIC\x10\x01\x12\x10\n\x0cTYPE_API_KEY\x10\x02\x12\x0f\n\x0bTYPE_OAUTH2\x10\x03\"1\n\x02In\x12\x0e\n\nIN_INVALID\x10\x00\x12\x0c\n\x08IN_QUERY\x10\x01\x12\r\n\tIN_HEADER\x10\x02\"j\n\x04\x46low\x12\x10\n\x0c\x46LOW_INVALID\x10\x00\x12\x11\n\rFLOW_IMPLICIT\x10\x01\x12\x11\n\rFLOW_PASSWORD\x10\x02\x12\x14\n\x10\x46LOW_APPLICATION\x10\x03\x12\x14\n\x10\x46LOW_ACCESS_CODE\x10\x04\"\xf6\x02\n\x13SecurityRequirement\x12\x8a\x01\n\x14security_requirement\x18\x01 \x03(\x0b\x32W.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntryR\x13securityRequirement\x1a\x30\n\x18SecurityRequirementValue\x12\x14\n\x05scope\x18\x01 \x03(\tR\x05scope\x1a\x9f\x01\n\x18SecurityRequirementEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12m\n\x05value\x18\x02 \x01(\x0b\x32W.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValueR\x05value:\x02\x38\x01\"\x96\x01\n\x06Scopes\x12R\n\x05scope\x18\x01 \x03(\x0b\x32<.grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntryR\x05scope\x1a\x38\n\nScopeEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*;\n\x06Scheme\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\x12\x06\n\x02WS\x10\x03\x12\x07\n\x03WSS\x10\x04\x42\xc7\x02\n-com.grpc.gateway.protoc_gen_openapiv2.optionsB\x0eOpenapiv2ProtoP\x01ZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options\xa2\x02\x04GGPO\xaa\x02\'Grpc.Gateway.ProtocGenOpenapiv2.Options\xca\x02\'Grpc\\Gateway\\ProtocGenOpenapiv2\\Options\xe2\x02\x33Grpc\\Gateway\\ProtocGenOpenapiv2\\Options\\GPBMetadata\xea\x02*Grpc::Gateway::ProtocGenOpenapiv2::Optionsb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
194
31
  end
195
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
196
35
  end
197
36
 
198
37
  module Grpc
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aserto-authorizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aserto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -24,68 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.46'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.15.0
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '3.0'
37
- type: :development
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.15.0
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: grpc_mock
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.4'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.4'
61
- - !ruby/object:Gem::Dependency
62
- name: rspec
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '3.0'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '3.0'
75
- - !ruby/object:Gem::Dependency
76
- name: rubocop-rspec
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '2.11'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '2.11'
89
27
  description: Ruby generated GRPC client for Aserto Authorizer
90
28
  email:
91
29
  - aserto@aserto.com
@@ -127,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
65
  requirements:
128
66
  - - ">="
129
67
  - !ruby/object:Gem::Version
130
- version: 2.7.0
68
+ version: 3.0.0
131
69
  required_rubygems_version: !ruby/object:Gem::Requirement
132
70
  requirements:
133
71
  - - ">="