aserto-authorizer 0.20.1 → 0.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7df5f1f772a12b671439e920e614094c735b3b2733313a10b975679c7d212ea
4
- data.tar.gz: 555dbb56bcd76f12986af707264dc5a9a3b616a798c2e824d7a9a29c3f733ea9
3
+ metadata.gz: 829f709407d3c910b0df232c70a965530ab6874bd0abe0a2cbc2fc17993e0728
4
+ data.tar.gz: 2a1edc47815cbcf7a8d33d06897d5d60ad40af53fcc7ca197d5f3c4f29881716
5
5
  SHA512:
6
- metadata.gz: 69cb88db3c54c8ed8ef9511ceae25731896dfa5d0ad8ada95896e7a7fe83d98f58ac2846f766859253b44e0781252f2db095bed2556194929c487112260aad29
7
- data.tar.gz: bcd5b0e955a47289abbbdf11f473404a9d56388b8e7db5bf2a3cc5e43cf3c4f2e6841c5f17f46dc56b52199e753e679e00867024582b45a5e6d818b40f9fcd93
6
+ metadata.gz: d78ea935dc6f8a5ee0e1ed51b7e08a80f0b8947809d72a4b3dea500fe331ee4df9b7f0a3ed03ec09d6d710537368ec790d2525a1b707c77b26f85c19bf1954e0
7
+ data.tar.gz: ca029f369043302a1694d3a4e8713451077a8167b170420e109eba6662cba785cafe0639f74976a2471e343249e60f1778d9645391511a1c025c3926d82a9202
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.20.1
1
+ 0.20.2
@@ -14,33 +14,7 @@ require 'aserto/authorizer/v2/api/policy_instance_pb'
14
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
15
 
16
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}"
39
- end
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."
43
- end
17
+ pool.add_serialized_file(descriptor_data)
44
18
 
45
19
  module Aserto
46
20
  module Authorizer
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
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*\x89\x01\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\x12\x18\n\x14IDENTITY_TYPE_MANUAL\x10\x04\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
9
 
10
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}"
28
- end
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."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Aserto
35
14
  module Authorizer
@@ -10,29 +10,7 @@ require 'google/protobuf/struct_pb'
10
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
11
 
12
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}"
31
- end
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."
35
- end
13
+ pool.add_serialized_file(descriptor_data)
36
14
 
37
15
  module Aserto
38
16
  module Authorizer
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
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
9
 
10
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}"
28
- end
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."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Aserto
35
14
  module Authorizer
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
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
9
 
10
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}"
28
- end
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."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Aserto
35
14
  module Authorizer
@@ -14,37 +14,10 @@ require 'aserto/authorizer/v2/api/module_pb'
14
14
  require 'aserto/authorizer/v2/api/policy_instance_pb'
15
15
 
16
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\"\x1a/api/v2/authz/decisiontree:\x01*\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\"\x10/api/v2/authz/is:\x01*\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\"\x13/api/v2/authz/query:\x01*\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\"\x15/api/v2/authz/compile:\x01*\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"
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\xef\r\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\"\x1a/api/v2/authz/decisiontree:\x01*\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\"\x10/api/v2/authz/is:\x01*\x12\xf5\x01\n\x05Query\x12\".aserto.authorizer.v2.QueryRequest\x1a#.aserto.authorizer.v2.QueryResponse\"\xa2\x01\x92\x41\x80\x01\n\nAuthorizer\x12\x05Query\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\"\x13/api/v2/authz/query:\x01*\x12\x84\x02\n\x07\x43ompile\x12$.aserto.authorizer.v2.CompileRequest\x1a%.aserto.authorizer.v2.CompileResponse\"\xab\x01\x92\x41\x87\x01\n\nAuthorizer\x12\x07\x43ompile\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\"\x15/api/v2/authz/compile:\x01*\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
18
 
19
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}"
43
- end
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."
47
- end
20
+ pool.add_serialized_file(descriptor_data)
48
21
 
49
22
  module Aserto
50
23
  module Authorizer
@@ -11,29 +11,7 @@ require 'google/protobuf/descriptor_pb'
11
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
12
 
13
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
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."
36
- end
14
+ pool.add_serialized_file(descriptor_data)
37
15
 
38
16
  module Google
39
17
  module Api
@@ -8,28 +8,7 @@ require 'google/protobuf'
8
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
9
 
10
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}"
28
- end
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."
32
- end
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Google
35
14
  module Api
@@ -11,29 +11,7 @@ require 'protoc-gen-openapiv2/options/openapiv2_pb'
11
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
12
 
13
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
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."
36
- end
14
+ pool.add_serialized_file(descriptor_data)
37
15
 
38
16
  module Grpc
39
17
  module Gateway
@@ -10,29 +10,7 @@ require 'google/protobuf/struct_pb'
10
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
11
 
12
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}"
31
- end
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."
35
- end
13
+ pool.add_serialized_file(descriptor_data)
36
14
 
37
15
  module Grpc
38
16
  module Gateway
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.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aserto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.4.10
75
+ rubygems_version: 3.5.9
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Aserto Authorizer GRPC Client