otdf-python 0.1.10__py3-none-any.whl → 0.3.0__py3-none-any.whl

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.
Files changed (144) hide show
  1. otdf_python/__init__.py +25 -0
  2. otdf_python/__main__.py +12 -0
  3. otdf_python/address_normalizer.py +84 -0
  4. otdf_python/aesgcm.py +55 -0
  5. otdf_python/assertion_config.py +84 -0
  6. otdf_python/asym_crypto.py +85 -0
  7. otdf_python/asym_decryption.py +53 -0
  8. otdf_python/asym_encryption.py +75 -0
  9. otdf_python/auth_headers.py +21 -0
  10. otdf_python/autoconfigure_utils.py +113 -0
  11. otdf_python/cli.py +570 -0
  12. otdf_python/collection_store.py +41 -0
  13. otdf_python/collection_store_impl.py +22 -0
  14. otdf_python/config.py +69 -0
  15. otdf_python/connect_client.py +0 -0
  16. otdf_python/constants.py +1 -0
  17. otdf_python/crypto_utils.py +78 -0
  18. otdf_python/dpop.py +81 -0
  19. otdf_python/ecc_mode.py +32 -0
  20. otdf_python/eckeypair.py +75 -0
  21. otdf_python/header.py +143 -0
  22. otdf_python/invalid_zip_exception.py +8 -0
  23. otdf_python/kas_client.py +603 -0
  24. otdf_python/kas_connect_rpc_client.py +207 -0
  25. otdf_python/kas_info.py +25 -0
  26. otdf_python/kas_key_cache.py +52 -0
  27. otdf_python/key_type.py +31 -0
  28. otdf_python/key_type_constants.py +43 -0
  29. otdf_python/manifest.py +215 -0
  30. otdf_python/nanotdf.py +553 -0
  31. otdf_python/nanotdf_ecdsa_struct.py +132 -0
  32. otdf_python/nanotdf_type.py +43 -0
  33. otdf_python/policy_binding_serializer.py +39 -0
  34. otdf_python/policy_info.py +78 -0
  35. otdf_python/policy_object.py +22 -0
  36. otdf_python/policy_stub.py +2 -0
  37. otdf_python/resource_locator.py +44 -0
  38. otdf_python/sdk.py +528 -0
  39. otdf_python/sdk_builder.py +448 -0
  40. otdf_python/sdk_exceptions.py +16 -0
  41. otdf_python/symmetric_and_payload_config.py +30 -0
  42. otdf_python/tdf.py +479 -0
  43. otdf_python/tdf_reader.py +153 -0
  44. otdf_python/tdf_writer.py +23 -0
  45. otdf_python/token_source.py +34 -0
  46. otdf_python/version.py +57 -0
  47. otdf_python/zip_reader.py +47 -0
  48. otdf_python/zip_writer.py +70 -0
  49. otdf_python-0.3.0.dist-info/METADATA +231 -0
  50. otdf_python-0.3.0.dist-info/RECORD +137 -0
  51. {otdf_python-0.1.10.dist-info → otdf_python-0.3.0.dist-info}/WHEEL +1 -2
  52. {otdf_python-0.1.10.dist-info → otdf_python-0.3.0.dist-info/licenses}/LICENSE +1 -1
  53. otdf_python_proto/__init__.py +37 -0
  54. otdf_python_proto/authorization/__init__.py +1 -0
  55. otdf_python_proto/authorization/authorization_pb2.py +80 -0
  56. otdf_python_proto/authorization/authorization_pb2.pyi +161 -0
  57. otdf_python_proto/authorization/authorization_pb2_connect.py +191 -0
  58. otdf_python_proto/authorization/v2/authorization_pb2.py +105 -0
  59. otdf_python_proto/authorization/v2/authorization_pb2.pyi +134 -0
  60. otdf_python_proto/authorization/v2/authorization_pb2_connect.py +233 -0
  61. otdf_python_proto/common/__init__.py +1 -0
  62. otdf_python_proto/common/common_pb2.py +52 -0
  63. otdf_python_proto/common/common_pb2.pyi +61 -0
  64. otdf_python_proto/entity/__init__.py +1 -0
  65. otdf_python_proto/entity/entity_pb2.py +47 -0
  66. otdf_python_proto/entity/entity_pb2.pyi +50 -0
  67. otdf_python_proto/entityresolution/__init__.py +1 -0
  68. otdf_python_proto/entityresolution/entity_resolution_pb2.py +57 -0
  69. otdf_python_proto/entityresolution/entity_resolution_pb2.pyi +55 -0
  70. otdf_python_proto/entityresolution/entity_resolution_pb2_connect.py +149 -0
  71. otdf_python_proto/entityresolution/v2/entity_resolution_pb2.py +55 -0
  72. otdf_python_proto/entityresolution/v2/entity_resolution_pb2.pyi +55 -0
  73. otdf_python_proto/entityresolution/v2/entity_resolution_pb2_connect.py +149 -0
  74. otdf_python_proto/kas/__init__.py +9 -0
  75. otdf_python_proto/kas/kas_pb2.py +103 -0
  76. otdf_python_proto/kas/kas_pb2.pyi +170 -0
  77. otdf_python_proto/kas/kas_pb2_connect.py +192 -0
  78. otdf_python_proto/legacy_grpc/__init__.py +1 -0
  79. otdf_python_proto/legacy_grpc/authorization/authorization_pb2_grpc.py +163 -0
  80. otdf_python_proto/legacy_grpc/authorization/v2/authorization_pb2_grpc.py +206 -0
  81. otdf_python_proto/legacy_grpc/common/common_pb2_grpc.py +4 -0
  82. otdf_python_proto/legacy_grpc/entity/entity_pb2_grpc.py +4 -0
  83. otdf_python_proto/legacy_grpc/entityresolution/entity_resolution_pb2_grpc.py +122 -0
  84. otdf_python_proto/legacy_grpc/entityresolution/v2/entity_resolution_pb2_grpc.py +120 -0
  85. otdf_python_proto/legacy_grpc/kas/kas_pb2_grpc.py +172 -0
  86. otdf_python_proto/legacy_grpc/logger/audit/test_pb2_grpc.py +4 -0
  87. otdf_python_proto/legacy_grpc/policy/actions/actions_pb2_grpc.py +249 -0
  88. otdf_python_proto/legacy_grpc/policy/attributes/attributes_pb2_grpc.py +873 -0
  89. otdf_python_proto/legacy_grpc/policy/kasregistry/key_access_server_registry_pb2_grpc.py +602 -0
  90. otdf_python_proto/legacy_grpc/policy/keymanagement/key_management_pb2_grpc.py +251 -0
  91. otdf_python_proto/legacy_grpc/policy/namespaces/namespaces_pb2_grpc.py +427 -0
  92. otdf_python_proto/legacy_grpc/policy/objects_pb2_grpc.py +4 -0
  93. otdf_python_proto/legacy_grpc/policy/registeredresources/registered_resources_pb2_grpc.py +524 -0
  94. otdf_python_proto/legacy_grpc/policy/resourcemapping/resource_mapping_pb2_grpc.py +516 -0
  95. otdf_python_proto/legacy_grpc/policy/selectors_pb2_grpc.py +4 -0
  96. otdf_python_proto/legacy_grpc/policy/subjectmapping/subject_mapping_pb2_grpc.py +551 -0
  97. otdf_python_proto/legacy_grpc/policy/unsafe/unsafe_pb2_grpc.py +485 -0
  98. otdf_python_proto/legacy_grpc/wellknownconfiguration/wellknown_configuration_pb2_grpc.py +77 -0
  99. otdf_python_proto/logger/__init__.py +1 -0
  100. otdf_python_proto/logger/audit/test_pb2.py +43 -0
  101. otdf_python_proto/logger/audit/test_pb2.pyi +45 -0
  102. otdf_python_proto/policy/__init__.py +1 -0
  103. otdf_python_proto/policy/actions/actions_pb2.py +75 -0
  104. otdf_python_proto/policy/actions/actions_pb2.pyi +87 -0
  105. otdf_python_proto/policy/actions/actions_pb2_connect.py +275 -0
  106. otdf_python_proto/policy/attributes/attributes_pb2.py +234 -0
  107. otdf_python_proto/policy/attributes/attributes_pb2.pyi +328 -0
  108. otdf_python_proto/policy/attributes/attributes_pb2_connect.py +863 -0
  109. otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2.py +266 -0
  110. otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2.pyi +450 -0
  111. otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2_connect.py +611 -0
  112. otdf_python_proto/policy/keymanagement/key_management_pb2.py +79 -0
  113. otdf_python_proto/policy/keymanagement/key_management_pb2.pyi +87 -0
  114. otdf_python_proto/policy/keymanagement/key_management_pb2_connect.py +275 -0
  115. otdf_python_proto/policy/namespaces/namespaces_pb2.py +117 -0
  116. otdf_python_proto/policy/namespaces/namespaces_pb2.pyi +147 -0
  117. otdf_python_proto/policy/namespaces/namespaces_pb2_connect.py +443 -0
  118. otdf_python_proto/policy/objects_pb2.py +150 -0
  119. otdf_python_proto/policy/objects_pb2.pyi +464 -0
  120. otdf_python_proto/policy/registeredresources/registered_resources_pb2.py +139 -0
  121. otdf_python_proto/policy/registeredresources/registered_resources_pb2.pyi +196 -0
  122. otdf_python_proto/policy/registeredresources/registered_resources_pb2_connect.py +527 -0
  123. otdf_python_proto/policy/resourcemapping/resource_mapping_pb2.py +139 -0
  124. otdf_python_proto/policy/resourcemapping/resource_mapping_pb2.pyi +194 -0
  125. otdf_python_proto/policy/resourcemapping/resource_mapping_pb2_connect.py +527 -0
  126. otdf_python_proto/policy/selectors_pb2.py +57 -0
  127. otdf_python_proto/policy/selectors_pb2.pyi +90 -0
  128. otdf_python_proto/policy/subjectmapping/subject_mapping_pb2.py +127 -0
  129. otdf_python_proto/policy/subjectmapping/subject_mapping_pb2.pyi +189 -0
  130. otdf_python_proto/policy/subjectmapping/subject_mapping_pb2_connect.py +569 -0
  131. otdf_python_proto/policy/unsafe/unsafe_pb2.py +113 -0
  132. otdf_python_proto/policy/unsafe/unsafe_pb2.pyi +145 -0
  133. otdf_python_proto/policy/unsafe/unsafe_pb2_connect.py +485 -0
  134. otdf_python_proto/wellknownconfiguration/__init__.py +1 -0
  135. otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2.py +51 -0
  136. otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2.pyi +32 -0
  137. otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2_connect.py +107 -0
  138. otdf_python/_gotdf_python.cpython-312-darwin.so +0 -0
  139. otdf_python/build.py +0 -190
  140. otdf_python/go.py +0 -1478
  141. otdf_python/gotdf_python.py +0 -383
  142. otdf_python-0.1.10.dist-info/METADATA +0 -149
  143. otdf_python-0.1.10.dist-info/RECORD +0 -10
  144. otdf_python-0.1.10.dist-info/top_level.txt +0 -1
@@ -0,0 +1,206 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from authorization.v2 import authorization_pb2 as authorization_dot_v2_dot_authorization__pb2
6
+
7
+
8
+ class AuthorizationServiceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.GetDecision = channel.unary_unary(
18
+ '/authorization.v2.AuthorizationService/GetDecision',
19
+ request_serializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionRequest.SerializeToString,
20
+ response_deserializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionResponse.FromString,
21
+ _registered_method=True)
22
+ self.GetDecisionMultiResource = channel.unary_unary(
23
+ '/authorization.v2.AuthorizationService/GetDecisionMultiResource',
24
+ request_serializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionMultiResourceRequest.SerializeToString,
25
+ response_deserializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionMultiResourceResponse.FromString,
26
+ _registered_method=True)
27
+ self.GetDecisionBulk = channel.unary_unary(
28
+ '/authorization.v2.AuthorizationService/GetDecisionBulk',
29
+ request_serializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionBulkRequest.SerializeToString,
30
+ response_deserializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionBulkResponse.FromString,
31
+ _registered_method=True)
32
+ self.GetEntitlements = channel.unary_unary(
33
+ '/authorization.v2.AuthorizationService/GetEntitlements',
34
+ request_serializer=authorization_dot_v2_dot_authorization__pb2.GetEntitlementsRequest.SerializeToString,
35
+ response_deserializer=authorization_dot_v2_dot_authorization__pb2.GetEntitlementsResponse.FromString,
36
+ _registered_method=True)
37
+
38
+
39
+ class AuthorizationServiceServicer(object):
40
+ """Missing associated documentation comment in .proto file."""
41
+
42
+ def GetDecision(self, request, context):
43
+ """Missing associated documentation comment in .proto file."""
44
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45
+ context.set_details('Method not implemented!')
46
+ raise NotImplementedError('Method not implemented!')
47
+
48
+ def GetDecisionMultiResource(self, request, context):
49
+ """Missing associated documentation comment in .proto file."""
50
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
51
+ context.set_details('Method not implemented!')
52
+ raise NotImplementedError('Method not implemented!')
53
+
54
+ def GetDecisionBulk(self, request, context):
55
+ """Missing associated documentation comment in .proto file."""
56
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
57
+ context.set_details('Method not implemented!')
58
+ raise NotImplementedError('Method not implemented!')
59
+
60
+ def GetEntitlements(self, request, context):
61
+ """Missing associated documentation comment in .proto file."""
62
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63
+ context.set_details('Method not implemented!')
64
+ raise NotImplementedError('Method not implemented!')
65
+
66
+
67
+ def add_AuthorizationServiceServicer_to_server(servicer, server):
68
+ rpc_method_handlers = {
69
+ 'GetDecision': grpc.unary_unary_rpc_method_handler(
70
+ servicer.GetDecision,
71
+ request_deserializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionRequest.FromString,
72
+ response_serializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionResponse.SerializeToString,
73
+ ),
74
+ 'GetDecisionMultiResource': grpc.unary_unary_rpc_method_handler(
75
+ servicer.GetDecisionMultiResource,
76
+ request_deserializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionMultiResourceRequest.FromString,
77
+ response_serializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionMultiResourceResponse.SerializeToString,
78
+ ),
79
+ 'GetDecisionBulk': grpc.unary_unary_rpc_method_handler(
80
+ servicer.GetDecisionBulk,
81
+ request_deserializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionBulkRequest.FromString,
82
+ response_serializer=authorization_dot_v2_dot_authorization__pb2.GetDecisionBulkResponse.SerializeToString,
83
+ ),
84
+ 'GetEntitlements': grpc.unary_unary_rpc_method_handler(
85
+ servicer.GetEntitlements,
86
+ request_deserializer=authorization_dot_v2_dot_authorization__pb2.GetEntitlementsRequest.FromString,
87
+ response_serializer=authorization_dot_v2_dot_authorization__pb2.GetEntitlementsResponse.SerializeToString,
88
+ ),
89
+ }
90
+ generic_handler = grpc.method_handlers_generic_handler(
91
+ 'authorization.v2.AuthorizationService', rpc_method_handlers)
92
+ server.add_generic_rpc_handlers((generic_handler,))
93
+ server.add_registered_method_handlers('authorization.v2.AuthorizationService', rpc_method_handlers)
94
+
95
+
96
+ # This class is part of an EXPERIMENTAL API.
97
+ class AuthorizationService(object):
98
+ """Missing associated documentation comment in .proto file."""
99
+
100
+ @staticmethod
101
+ def GetDecision(request,
102
+ target,
103
+ options=(),
104
+ channel_credentials=None,
105
+ call_credentials=None,
106
+ insecure=False,
107
+ compression=None,
108
+ wait_for_ready=None,
109
+ timeout=None,
110
+ metadata=None):
111
+ return grpc.experimental.unary_unary(
112
+ request,
113
+ target,
114
+ '/authorization.v2.AuthorizationService/GetDecision',
115
+ authorization_dot_v2_dot_authorization__pb2.GetDecisionRequest.SerializeToString,
116
+ authorization_dot_v2_dot_authorization__pb2.GetDecisionResponse.FromString,
117
+ options,
118
+ channel_credentials,
119
+ insecure,
120
+ call_credentials,
121
+ compression,
122
+ wait_for_ready,
123
+ timeout,
124
+ metadata,
125
+ _registered_method=True)
126
+
127
+ @staticmethod
128
+ def GetDecisionMultiResource(request,
129
+ target,
130
+ options=(),
131
+ channel_credentials=None,
132
+ call_credentials=None,
133
+ insecure=False,
134
+ compression=None,
135
+ wait_for_ready=None,
136
+ timeout=None,
137
+ metadata=None):
138
+ return grpc.experimental.unary_unary(
139
+ request,
140
+ target,
141
+ '/authorization.v2.AuthorizationService/GetDecisionMultiResource',
142
+ authorization_dot_v2_dot_authorization__pb2.GetDecisionMultiResourceRequest.SerializeToString,
143
+ authorization_dot_v2_dot_authorization__pb2.GetDecisionMultiResourceResponse.FromString,
144
+ options,
145
+ channel_credentials,
146
+ insecure,
147
+ call_credentials,
148
+ compression,
149
+ wait_for_ready,
150
+ timeout,
151
+ metadata,
152
+ _registered_method=True)
153
+
154
+ @staticmethod
155
+ def GetDecisionBulk(request,
156
+ target,
157
+ options=(),
158
+ channel_credentials=None,
159
+ call_credentials=None,
160
+ insecure=False,
161
+ compression=None,
162
+ wait_for_ready=None,
163
+ timeout=None,
164
+ metadata=None):
165
+ return grpc.experimental.unary_unary(
166
+ request,
167
+ target,
168
+ '/authorization.v2.AuthorizationService/GetDecisionBulk',
169
+ authorization_dot_v2_dot_authorization__pb2.GetDecisionBulkRequest.SerializeToString,
170
+ authorization_dot_v2_dot_authorization__pb2.GetDecisionBulkResponse.FromString,
171
+ options,
172
+ channel_credentials,
173
+ insecure,
174
+ call_credentials,
175
+ compression,
176
+ wait_for_ready,
177
+ timeout,
178
+ metadata,
179
+ _registered_method=True)
180
+
181
+ @staticmethod
182
+ def GetEntitlements(request,
183
+ target,
184
+ options=(),
185
+ channel_credentials=None,
186
+ call_credentials=None,
187
+ insecure=False,
188
+ compression=None,
189
+ wait_for_ready=None,
190
+ timeout=None,
191
+ metadata=None):
192
+ return grpc.experimental.unary_unary(
193
+ request,
194
+ target,
195
+ '/authorization.v2.AuthorizationService/GetEntitlements',
196
+ authorization_dot_v2_dot_authorization__pb2.GetEntitlementsRequest.SerializeToString,
197
+ authorization_dot_v2_dot_authorization__pb2.GetEntitlementsResponse.FromString,
198
+ options,
199
+ channel_credentials,
200
+ insecure,
201
+ call_credentials,
202
+ compression,
203
+ wait_for_ready,
204
+ timeout,
205
+ metadata,
206
+ _registered_method=True)
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,122 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from entityresolution import entity_resolution_pb2 as entityresolution_dot_entity__resolution__pb2
6
+
7
+
8
+ class EntityResolutionServiceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.ResolveEntities = channel.unary_unary(
18
+ '/entityresolution.EntityResolutionService/ResolveEntities',
19
+ request_serializer=entityresolution_dot_entity__resolution__pb2.ResolveEntitiesRequest.SerializeToString,
20
+ response_deserializer=entityresolution_dot_entity__resolution__pb2.ResolveEntitiesResponse.FromString,
21
+ _registered_method=True)
22
+ self.CreateEntityChainFromJwt = channel.unary_unary(
23
+ '/entityresolution.EntityResolutionService/CreateEntityChainFromJwt',
24
+ request_serializer=entityresolution_dot_entity__resolution__pb2.CreateEntityChainFromJwtRequest.SerializeToString,
25
+ response_deserializer=entityresolution_dot_entity__resolution__pb2.CreateEntityChainFromJwtResponse.FromString,
26
+ _registered_method=True)
27
+
28
+
29
+ class EntityResolutionServiceServicer(object):
30
+ """Missing associated documentation comment in .proto file."""
31
+
32
+ def ResolveEntities(self, request, context):
33
+ """Deprecated: use v2 ResolveEntities instead
34
+ """
35
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
36
+ context.set_details('Method not implemented!')
37
+ raise NotImplementedError('Method not implemented!')
38
+
39
+ def CreateEntityChainFromJwt(self, request, context):
40
+ """Deprecated: use v2 CreateEntityChainsFromTokens instead
41
+ """
42
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
43
+ context.set_details('Method not implemented!')
44
+ raise NotImplementedError('Method not implemented!')
45
+
46
+
47
+ def add_EntityResolutionServiceServicer_to_server(servicer, server):
48
+ rpc_method_handlers = {
49
+ 'ResolveEntities': grpc.unary_unary_rpc_method_handler(
50
+ servicer.ResolveEntities,
51
+ request_deserializer=entityresolution_dot_entity__resolution__pb2.ResolveEntitiesRequest.FromString,
52
+ response_serializer=entityresolution_dot_entity__resolution__pb2.ResolveEntitiesResponse.SerializeToString,
53
+ ),
54
+ 'CreateEntityChainFromJwt': grpc.unary_unary_rpc_method_handler(
55
+ servicer.CreateEntityChainFromJwt,
56
+ request_deserializer=entityresolution_dot_entity__resolution__pb2.CreateEntityChainFromJwtRequest.FromString,
57
+ response_serializer=entityresolution_dot_entity__resolution__pb2.CreateEntityChainFromJwtResponse.SerializeToString,
58
+ ),
59
+ }
60
+ generic_handler = grpc.method_handlers_generic_handler(
61
+ 'entityresolution.EntityResolutionService', rpc_method_handlers)
62
+ server.add_generic_rpc_handlers((generic_handler,))
63
+ server.add_registered_method_handlers('entityresolution.EntityResolutionService', rpc_method_handlers)
64
+
65
+
66
+ # This class is part of an EXPERIMENTAL API.
67
+ class EntityResolutionService(object):
68
+ """Missing associated documentation comment in .proto file."""
69
+
70
+ @staticmethod
71
+ def ResolveEntities(request,
72
+ target,
73
+ options=(),
74
+ channel_credentials=None,
75
+ call_credentials=None,
76
+ insecure=False,
77
+ compression=None,
78
+ wait_for_ready=None,
79
+ timeout=None,
80
+ metadata=None):
81
+ return grpc.experimental.unary_unary(
82
+ request,
83
+ target,
84
+ '/entityresolution.EntityResolutionService/ResolveEntities',
85
+ entityresolution_dot_entity__resolution__pb2.ResolveEntitiesRequest.SerializeToString,
86
+ entityresolution_dot_entity__resolution__pb2.ResolveEntitiesResponse.FromString,
87
+ options,
88
+ channel_credentials,
89
+ insecure,
90
+ call_credentials,
91
+ compression,
92
+ wait_for_ready,
93
+ timeout,
94
+ metadata,
95
+ _registered_method=True)
96
+
97
+ @staticmethod
98
+ def CreateEntityChainFromJwt(request,
99
+ target,
100
+ options=(),
101
+ channel_credentials=None,
102
+ call_credentials=None,
103
+ insecure=False,
104
+ compression=None,
105
+ wait_for_ready=None,
106
+ timeout=None,
107
+ metadata=None):
108
+ return grpc.experimental.unary_unary(
109
+ request,
110
+ target,
111
+ '/entityresolution.EntityResolutionService/CreateEntityChainFromJwt',
112
+ entityresolution_dot_entity__resolution__pb2.CreateEntityChainFromJwtRequest.SerializeToString,
113
+ entityresolution_dot_entity__resolution__pb2.CreateEntityChainFromJwtResponse.FromString,
114
+ options,
115
+ channel_credentials,
116
+ insecure,
117
+ call_credentials,
118
+ compression,
119
+ wait_for_ready,
120
+ timeout,
121
+ metadata,
122
+ _registered_method=True)
@@ -0,0 +1,120 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from entityresolution.v2 import entity_resolution_pb2 as entityresolution_dot_v2_dot_entity__resolution__pb2
6
+
7
+
8
+ class EntityResolutionServiceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.ResolveEntities = channel.unary_unary(
18
+ '/entityresolution.v2.EntityResolutionService/ResolveEntities',
19
+ request_serializer=entityresolution_dot_v2_dot_entity__resolution__pb2.ResolveEntitiesRequest.SerializeToString,
20
+ response_deserializer=entityresolution_dot_v2_dot_entity__resolution__pb2.ResolveEntitiesResponse.FromString,
21
+ _registered_method=True)
22
+ self.CreateEntityChainsFromTokens = channel.unary_unary(
23
+ '/entityresolution.v2.EntityResolutionService/CreateEntityChainsFromTokens',
24
+ request_serializer=entityresolution_dot_v2_dot_entity__resolution__pb2.CreateEntityChainsFromTokensRequest.SerializeToString,
25
+ response_deserializer=entityresolution_dot_v2_dot_entity__resolution__pb2.CreateEntityChainsFromTokensResponse.FromString,
26
+ _registered_method=True)
27
+
28
+
29
+ class EntityResolutionServiceServicer(object):
30
+ """Missing associated documentation comment in .proto file."""
31
+
32
+ def ResolveEntities(self, request, context):
33
+ """Missing associated documentation comment in .proto file."""
34
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
35
+ context.set_details('Method not implemented!')
36
+ raise NotImplementedError('Method not implemented!')
37
+
38
+ def CreateEntityChainsFromTokens(self, request, context):
39
+ """Missing associated documentation comment in .proto file."""
40
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
41
+ context.set_details('Method not implemented!')
42
+ raise NotImplementedError('Method not implemented!')
43
+
44
+
45
+ def add_EntityResolutionServiceServicer_to_server(servicer, server):
46
+ rpc_method_handlers = {
47
+ 'ResolveEntities': grpc.unary_unary_rpc_method_handler(
48
+ servicer.ResolveEntities,
49
+ request_deserializer=entityresolution_dot_v2_dot_entity__resolution__pb2.ResolveEntitiesRequest.FromString,
50
+ response_serializer=entityresolution_dot_v2_dot_entity__resolution__pb2.ResolveEntitiesResponse.SerializeToString,
51
+ ),
52
+ 'CreateEntityChainsFromTokens': grpc.unary_unary_rpc_method_handler(
53
+ servicer.CreateEntityChainsFromTokens,
54
+ request_deserializer=entityresolution_dot_v2_dot_entity__resolution__pb2.CreateEntityChainsFromTokensRequest.FromString,
55
+ response_serializer=entityresolution_dot_v2_dot_entity__resolution__pb2.CreateEntityChainsFromTokensResponse.SerializeToString,
56
+ ),
57
+ }
58
+ generic_handler = grpc.method_handlers_generic_handler(
59
+ 'entityresolution.v2.EntityResolutionService', rpc_method_handlers)
60
+ server.add_generic_rpc_handlers((generic_handler,))
61
+ server.add_registered_method_handlers('entityresolution.v2.EntityResolutionService', rpc_method_handlers)
62
+
63
+
64
+ # This class is part of an EXPERIMENTAL API.
65
+ class EntityResolutionService(object):
66
+ """Missing associated documentation comment in .proto file."""
67
+
68
+ @staticmethod
69
+ def ResolveEntities(request,
70
+ target,
71
+ options=(),
72
+ channel_credentials=None,
73
+ call_credentials=None,
74
+ insecure=False,
75
+ compression=None,
76
+ wait_for_ready=None,
77
+ timeout=None,
78
+ metadata=None):
79
+ return grpc.experimental.unary_unary(
80
+ request,
81
+ target,
82
+ '/entityresolution.v2.EntityResolutionService/ResolveEntities',
83
+ entityresolution_dot_v2_dot_entity__resolution__pb2.ResolveEntitiesRequest.SerializeToString,
84
+ entityresolution_dot_v2_dot_entity__resolution__pb2.ResolveEntitiesResponse.FromString,
85
+ options,
86
+ channel_credentials,
87
+ insecure,
88
+ call_credentials,
89
+ compression,
90
+ wait_for_ready,
91
+ timeout,
92
+ metadata,
93
+ _registered_method=True)
94
+
95
+ @staticmethod
96
+ def CreateEntityChainsFromTokens(request,
97
+ target,
98
+ options=(),
99
+ channel_credentials=None,
100
+ call_credentials=None,
101
+ insecure=False,
102
+ compression=None,
103
+ wait_for_ready=None,
104
+ timeout=None,
105
+ metadata=None):
106
+ return grpc.experimental.unary_unary(
107
+ request,
108
+ target,
109
+ '/entityresolution.v2.EntityResolutionService/CreateEntityChainsFromTokens',
110
+ entityresolution_dot_v2_dot_entity__resolution__pb2.CreateEntityChainsFromTokensRequest.SerializeToString,
111
+ entityresolution_dot_v2_dot_entity__resolution__pb2.CreateEntityChainsFromTokensResponse.FromString,
112
+ options,
113
+ channel_credentials,
114
+ insecure,
115
+ call_credentials,
116
+ compression,
117
+ wait_for_ready,
118
+ timeout,
119
+ metadata,
120
+ _registered_method=True)
@@ -0,0 +1,172 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
6
+ from kas import kas_pb2 as kas_dot_kas__pb2
7
+
8
+
9
+ class AccessServiceStub(object):
10
+ """Get app info from the root path
11
+ """
12
+
13
+ def __init__(self, channel):
14
+ """Constructor.
15
+
16
+ Args:
17
+ channel: A grpc.Channel.
18
+ """
19
+ self.PublicKey = channel.unary_unary(
20
+ '/kas.AccessService/PublicKey',
21
+ request_serializer=kas_dot_kas__pb2.PublicKeyRequest.SerializeToString,
22
+ response_deserializer=kas_dot_kas__pb2.PublicKeyResponse.FromString,
23
+ _registered_method=True)
24
+ self.LegacyPublicKey = channel.unary_unary(
25
+ '/kas.AccessService/LegacyPublicKey',
26
+ request_serializer=kas_dot_kas__pb2.LegacyPublicKeyRequest.SerializeToString,
27
+ response_deserializer=google_dot_protobuf_dot_wrappers__pb2.StringValue.FromString,
28
+ _registered_method=True)
29
+ self.Rewrap = channel.unary_unary(
30
+ '/kas.AccessService/Rewrap',
31
+ request_serializer=kas_dot_kas__pb2.RewrapRequest.SerializeToString,
32
+ response_deserializer=kas_dot_kas__pb2.RewrapResponse.FromString,
33
+ _registered_method=True)
34
+
35
+
36
+ class AccessServiceServicer(object):
37
+ """Get app info from the root path
38
+ """
39
+
40
+ def PublicKey(self, request, context):
41
+ """Missing associated documentation comment in .proto file."""
42
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
43
+ context.set_details('Method not implemented!')
44
+ raise NotImplementedError('Method not implemented!')
45
+
46
+ def LegacyPublicKey(self, request, context):
47
+ """Endpoint intended for gRPC Gateway's REST endpoint to provide v1 compatibility with older TDF clients
48
+
49
+ This endpoint is not recommended for use in new applications, prefer the v2 endpoint ('PublicKey') instead.
50
+
51
+ buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
52
+ """
53
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
54
+ context.set_details('Method not implemented!')
55
+ raise NotImplementedError('Method not implemented!')
56
+
57
+ def Rewrap(self, request, context):
58
+ """Missing associated documentation comment in .proto file."""
59
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
60
+ context.set_details('Method not implemented!')
61
+ raise NotImplementedError('Method not implemented!')
62
+
63
+
64
+ def add_AccessServiceServicer_to_server(servicer, server):
65
+ rpc_method_handlers = {
66
+ 'PublicKey': grpc.unary_unary_rpc_method_handler(
67
+ servicer.PublicKey,
68
+ request_deserializer=kas_dot_kas__pb2.PublicKeyRequest.FromString,
69
+ response_serializer=kas_dot_kas__pb2.PublicKeyResponse.SerializeToString,
70
+ ),
71
+ 'LegacyPublicKey': grpc.unary_unary_rpc_method_handler(
72
+ servicer.LegacyPublicKey,
73
+ request_deserializer=kas_dot_kas__pb2.LegacyPublicKeyRequest.FromString,
74
+ response_serializer=google_dot_protobuf_dot_wrappers__pb2.StringValue.SerializeToString,
75
+ ),
76
+ 'Rewrap': grpc.unary_unary_rpc_method_handler(
77
+ servicer.Rewrap,
78
+ request_deserializer=kas_dot_kas__pb2.RewrapRequest.FromString,
79
+ response_serializer=kas_dot_kas__pb2.RewrapResponse.SerializeToString,
80
+ ),
81
+ }
82
+ generic_handler = grpc.method_handlers_generic_handler(
83
+ 'kas.AccessService', rpc_method_handlers)
84
+ server.add_generic_rpc_handlers((generic_handler,))
85
+ server.add_registered_method_handlers('kas.AccessService', rpc_method_handlers)
86
+
87
+
88
+ # This class is part of an EXPERIMENTAL API.
89
+ class AccessService(object):
90
+ """Get app info from the root path
91
+ """
92
+
93
+ @staticmethod
94
+ def PublicKey(request,
95
+ target,
96
+ options=(),
97
+ channel_credentials=None,
98
+ call_credentials=None,
99
+ insecure=False,
100
+ compression=None,
101
+ wait_for_ready=None,
102
+ timeout=None,
103
+ metadata=None):
104
+ return grpc.experimental.unary_unary(
105
+ request,
106
+ target,
107
+ '/kas.AccessService/PublicKey',
108
+ kas_dot_kas__pb2.PublicKeyRequest.SerializeToString,
109
+ kas_dot_kas__pb2.PublicKeyResponse.FromString,
110
+ options,
111
+ channel_credentials,
112
+ insecure,
113
+ call_credentials,
114
+ compression,
115
+ wait_for_ready,
116
+ timeout,
117
+ metadata,
118
+ _registered_method=True)
119
+
120
+ @staticmethod
121
+ def LegacyPublicKey(request,
122
+ target,
123
+ options=(),
124
+ channel_credentials=None,
125
+ call_credentials=None,
126
+ insecure=False,
127
+ compression=None,
128
+ wait_for_ready=None,
129
+ timeout=None,
130
+ metadata=None):
131
+ return grpc.experimental.unary_unary(
132
+ request,
133
+ target,
134
+ '/kas.AccessService/LegacyPublicKey',
135
+ kas_dot_kas__pb2.LegacyPublicKeyRequest.SerializeToString,
136
+ google_dot_protobuf_dot_wrappers__pb2.StringValue.FromString,
137
+ options,
138
+ channel_credentials,
139
+ insecure,
140
+ call_credentials,
141
+ compression,
142
+ wait_for_ready,
143
+ timeout,
144
+ metadata,
145
+ _registered_method=True)
146
+
147
+ @staticmethod
148
+ def Rewrap(request,
149
+ target,
150
+ options=(),
151
+ channel_credentials=None,
152
+ call_credentials=None,
153
+ insecure=False,
154
+ compression=None,
155
+ wait_for_ready=None,
156
+ timeout=None,
157
+ metadata=None):
158
+ return grpc.experimental.unary_unary(
159
+ request,
160
+ target,
161
+ '/kas.AccessService/Rewrap',
162
+ kas_dot_kas__pb2.RewrapRequest.SerializeToString,
163
+ kas_dot_kas__pb2.RewrapResponse.FromString,
164
+ options,
165
+ channel_credentials,
166
+ insecure,
167
+ call_credentials,
168
+ compression,
169
+ wait_for_ready,
170
+ timeout,
171
+ metadata,
172
+ _registered_method=True)
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+