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,485 @@
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 policy.unsafe import unsafe_pb2 as policy_dot_unsafe_dot_unsafe__pb2
6
+
7
+
8
+ class UnsafeServiceStub(object):
9
+ """/
10
+ / Unsafe Service
11
+ /
12
+ """
13
+
14
+ def __init__(self, channel):
15
+ """Constructor.
16
+
17
+ Args:
18
+ channel: A grpc.Channel.
19
+ """
20
+ self.UnsafeUpdateNamespace = channel.unary_unary(
21
+ '/policy.unsafe.UnsafeService/UnsafeUpdateNamespace',
22
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateNamespaceRequest.SerializeToString,
23
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateNamespaceResponse.FromString,
24
+ _registered_method=True)
25
+ self.UnsafeReactivateNamespace = channel.unary_unary(
26
+ '/policy.unsafe.UnsafeService/UnsafeReactivateNamespace',
27
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateNamespaceRequest.SerializeToString,
28
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateNamespaceResponse.FromString,
29
+ _registered_method=True)
30
+ self.UnsafeDeleteNamespace = channel.unary_unary(
31
+ '/policy.unsafe.UnsafeService/UnsafeDeleteNamespace',
32
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteNamespaceRequest.SerializeToString,
33
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteNamespaceResponse.FromString,
34
+ _registered_method=True)
35
+ self.UnsafeUpdateAttribute = channel.unary_unary(
36
+ '/policy.unsafe.UnsafeService/UnsafeUpdateAttribute',
37
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeRequest.SerializeToString,
38
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeResponse.FromString,
39
+ _registered_method=True)
40
+ self.UnsafeReactivateAttribute = channel.unary_unary(
41
+ '/policy.unsafe.UnsafeService/UnsafeReactivateAttribute',
42
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeRequest.SerializeToString,
43
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeResponse.FromString,
44
+ _registered_method=True)
45
+ self.UnsafeDeleteAttribute = channel.unary_unary(
46
+ '/policy.unsafe.UnsafeService/UnsafeDeleteAttribute',
47
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeRequest.SerializeToString,
48
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeResponse.FromString,
49
+ _registered_method=True)
50
+ self.UnsafeUpdateAttributeValue = channel.unary_unary(
51
+ '/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue',
52
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeValueRequest.SerializeToString,
53
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeValueResponse.FromString,
54
+ _registered_method=True)
55
+ self.UnsafeReactivateAttributeValue = channel.unary_unary(
56
+ '/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue',
57
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeValueRequest.SerializeToString,
58
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeValueResponse.FromString,
59
+ _registered_method=True)
60
+ self.UnsafeDeleteAttributeValue = channel.unary_unary(
61
+ '/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue',
62
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeValueRequest.SerializeToString,
63
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeValueResponse.FromString,
64
+ _registered_method=True)
65
+ self.UnsafeDeleteKasKey = channel.unary_unary(
66
+ '/policy.unsafe.UnsafeService/UnsafeDeleteKasKey',
67
+ request_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteKasKeyRequest.SerializeToString,
68
+ response_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteKasKeyResponse.FromString,
69
+ _registered_method=True)
70
+
71
+
72
+ class UnsafeServiceServicer(object):
73
+ """/
74
+ / Unsafe Service
75
+ /
76
+ """
77
+
78
+ def UnsafeUpdateNamespace(self, request, context):
79
+ """--------------------------------------*
80
+ Namespace RPCs
81
+ ---------------------------------------
82
+ """
83
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
84
+ context.set_details('Method not implemented!')
85
+ raise NotImplementedError('Method not implemented!')
86
+
87
+ def UnsafeReactivateNamespace(self, request, context):
88
+ """Missing associated documentation comment in .proto file."""
89
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
90
+ context.set_details('Method not implemented!')
91
+ raise NotImplementedError('Method not implemented!')
92
+
93
+ def UnsafeDeleteNamespace(self, request, context):
94
+ """Missing associated documentation comment in .proto file."""
95
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
96
+ context.set_details('Method not implemented!')
97
+ raise NotImplementedError('Method not implemented!')
98
+
99
+ def UnsafeUpdateAttribute(self, request, context):
100
+ """--------------------------------------*
101
+ Attribute RPCs
102
+ ---------------------------------------
103
+ """
104
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
105
+ context.set_details('Method not implemented!')
106
+ raise NotImplementedError('Method not implemented!')
107
+
108
+ def UnsafeReactivateAttribute(self, request, context):
109
+ """Missing associated documentation comment in .proto file."""
110
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
111
+ context.set_details('Method not implemented!')
112
+ raise NotImplementedError('Method not implemented!')
113
+
114
+ def UnsafeDeleteAttribute(self, request, context):
115
+ """Missing associated documentation comment in .proto file."""
116
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
117
+ context.set_details('Method not implemented!')
118
+ raise NotImplementedError('Method not implemented!')
119
+
120
+ def UnsafeUpdateAttributeValue(self, request, context):
121
+ """--------------------------------------*
122
+ Value RPCs
123
+ ---------------------------------------
124
+ """
125
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
126
+ context.set_details('Method not implemented!')
127
+ raise NotImplementedError('Method not implemented!')
128
+
129
+ def UnsafeReactivateAttributeValue(self, request, context):
130
+ """Missing associated documentation comment in .proto file."""
131
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
132
+ context.set_details('Method not implemented!')
133
+ raise NotImplementedError('Method not implemented!')
134
+
135
+ def UnsafeDeleteAttributeValue(self, request, context):
136
+ """Missing associated documentation comment in .proto file."""
137
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
138
+ context.set_details('Method not implemented!')
139
+ raise NotImplementedError('Method not implemented!')
140
+
141
+ def UnsafeDeleteKasKey(self, request, context):
142
+ """--------------------------------------*
143
+ Kas Key RPCs
144
+ ---------------------------------------
145
+ """
146
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
147
+ context.set_details('Method not implemented!')
148
+ raise NotImplementedError('Method not implemented!')
149
+
150
+
151
+ def add_UnsafeServiceServicer_to_server(servicer, server):
152
+ rpc_method_handlers = {
153
+ 'UnsafeUpdateNamespace': grpc.unary_unary_rpc_method_handler(
154
+ servicer.UnsafeUpdateNamespace,
155
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateNamespaceRequest.FromString,
156
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateNamespaceResponse.SerializeToString,
157
+ ),
158
+ 'UnsafeReactivateNamespace': grpc.unary_unary_rpc_method_handler(
159
+ servicer.UnsafeReactivateNamespace,
160
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateNamespaceRequest.FromString,
161
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateNamespaceResponse.SerializeToString,
162
+ ),
163
+ 'UnsafeDeleteNamespace': grpc.unary_unary_rpc_method_handler(
164
+ servicer.UnsafeDeleteNamespace,
165
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteNamespaceRequest.FromString,
166
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteNamespaceResponse.SerializeToString,
167
+ ),
168
+ 'UnsafeUpdateAttribute': grpc.unary_unary_rpc_method_handler(
169
+ servicer.UnsafeUpdateAttribute,
170
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeRequest.FromString,
171
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeResponse.SerializeToString,
172
+ ),
173
+ 'UnsafeReactivateAttribute': grpc.unary_unary_rpc_method_handler(
174
+ servicer.UnsafeReactivateAttribute,
175
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeRequest.FromString,
176
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeResponse.SerializeToString,
177
+ ),
178
+ 'UnsafeDeleteAttribute': grpc.unary_unary_rpc_method_handler(
179
+ servicer.UnsafeDeleteAttribute,
180
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeRequest.FromString,
181
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeResponse.SerializeToString,
182
+ ),
183
+ 'UnsafeUpdateAttributeValue': grpc.unary_unary_rpc_method_handler(
184
+ servicer.UnsafeUpdateAttributeValue,
185
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeValueRequest.FromString,
186
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeValueResponse.SerializeToString,
187
+ ),
188
+ 'UnsafeReactivateAttributeValue': grpc.unary_unary_rpc_method_handler(
189
+ servicer.UnsafeReactivateAttributeValue,
190
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeValueRequest.FromString,
191
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeValueResponse.SerializeToString,
192
+ ),
193
+ 'UnsafeDeleteAttributeValue': grpc.unary_unary_rpc_method_handler(
194
+ servicer.UnsafeDeleteAttributeValue,
195
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeValueRequest.FromString,
196
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeValueResponse.SerializeToString,
197
+ ),
198
+ 'UnsafeDeleteKasKey': grpc.unary_unary_rpc_method_handler(
199
+ servicer.UnsafeDeleteKasKey,
200
+ request_deserializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteKasKeyRequest.FromString,
201
+ response_serializer=policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteKasKeyResponse.SerializeToString,
202
+ ),
203
+ }
204
+ generic_handler = grpc.method_handlers_generic_handler(
205
+ 'policy.unsafe.UnsafeService', rpc_method_handlers)
206
+ server.add_generic_rpc_handlers((generic_handler,))
207
+ server.add_registered_method_handlers('policy.unsafe.UnsafeService', rpc_method_handlers)
208
+
209
+
210
+ # This class is part of an EXPERIMENTAL API.
211
+ class UnsafeService(object):
212
+ """/
213
+ / Unsafe Service
214
+ /
215
+ """
216
+
217
+ @staticmethod
218
+ def UnsafeUpdateNamespace(request,
219
+ target,
220
+ options=(),
221
+ channel_credentials=None,
222
+ call_credentials=None,
223
+ insecure=False,
224
+ compression=None,
225
+ wait_for_ready=None,
226
+ timeout=None,
227
+ metadata=None):
228
+ return grpc.experimental.unary_unary(
229
+ request,
230
+ target,
231
+ '/policy.unsafe.UnsafeService/UnsafeUpdateNamespace',
232
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateNamespaceRequest.SerializeToString,
233
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateNamespaceResponse.FromString,
234
+ options,
235
+ channel_credentials,
236
+ insecure,
237
+ call_credentials,
238
+ compression,
239
+ wait_for_ready,
240
+ timeout,
241
+ metadata,
242
+ _registered_method=True)
243
+
244
+ @staticmethod
245
+ def UnsafeReactivateNamespace(request,
246
+ target,
247
+ options=(),
248
+ channel_credentials=None,
249
+ call_credentials=None,
250
+ insecure=False,
251
+ compression=None,
252
+ wait_for_ready=None,
253
+ timeout=None,
254
+ metadata=None):
255
+ return grpc.experimental.unary_unary(
256
+ request,
257
+ target,
258
+ '/policy.unsafe.UnsafeService/UnsafeReactivateNamespace',
259
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateNamespaceRequest.SerializeToString,
260
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateNamespaceResponse.FromString,
261
+ options,
262
+ channel_credentials,
263
+ insecure,
264
+ call_credentials,
265
+ compression,
266
+ wait_for_ready,
267
+ timeout,
268
+ metadata,
269
+ _registered_method=True)
270
+
271
+ @staticmethod
272
+ def UnsafeDeleteNamespace(request,
273
+ target,
274
+ options=(),
275
+ channel_credentials=None,
276
+ call_credentials=None,
277
+ insecure=False,
278
+ compression=None,
279
+ wait_for_ready=None,
280
+ timeout=None,
281
+ metadata=None):
282
+ return grpc.experimental.unary_unary(
283
+ request,
284
+ target,
285
+ '/policy.unsafe.UnsafeService/UnsafeDeleteNamespace',
286
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteNamespaceRequest.SerializeToString,
287
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteNamespaceResponse.FromString,
288
+ options,
289
+ channel_credentials,
290
+ insecure,
291
+ call_credentials,
292
+ compression,
293
+ wait_for_ready,
294
+ timeout,
295
+ metadata,
296
+ _registered_method=True)
297
+
298
+ @staticmethod
299
+ def UnsafeUpdateAttribute(request,
300
+ target,
301
+ options=(),
302
+ channel_credentials=None,
303
+ call_credentials=None,
304
+ insecure=False,
305
+ compression=None,
306
+ wait_for_ready=None,
307
+ timeout=None,
308
+ metadata=None):
309
+ return grpc.experimental.unary_unary(
310
+ request,
311
+ target,
312
+ '/policy.unsafe.UnsafeService/UnsafeUpdateAttribute',
313
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeRequest.SerializeToString,
314
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeResponse.FromString,
315
+ options,
316
+ channel_credentials,
317
+ insecure,
318
+ call_credentials,
319
+ compression,
320
+ wait_for_ready,
321
+ timeout,
322
+ metadata,
323
+ _registered_method=True)
324
+
325
+ @staticmethod
326
+ def UnsafeReactivateAttribute(request,
327
+ target,
328
+ options=(),
329
+ channel_credentials=None,
330
+ call_credentials=None,
331
+ insecure=False,
332
+ compression=None,
333
+ wait_for_ready=None,
334
+ timeout=None,
335
+ metadata=None):
336
+ return grpc.experimental.unary_unary(
337
+ request,
338
+ target,
339
+ '/policy.unsafe.UnsafeService/UnsafeReactivateAttribute',
340
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeRequest.SerializeToString,
341
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeResponse.FromString,
342
+ options,
343
+ channel_credentials,
344
+ insecure,
345
+ call_credentials,
346
+ compression,
347
+ wait_for_ready,
348
+ timeout,
349
+ metadata,
350
+ _registered_method=True)
351
+
352
+ @staticmethod
353
+ def UnsafeDeleteAttribute(request,
354
+ target,
355
+ options=(),
356
+ channel_credentials=None,
357
+ call_credentials=None,
358
+ insecure=False,
359
+ compression=None,
360
+ wait_for_ready=None,
361
+ timeout=None,
362
+ metadata=None):
363
+ return grpc.experimental.unary_unary(
364
+ request,
365
+ target,
366
+ '/policy.unsafe.UnsafeService/UnsafeDeleteAttribute',
367
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeRequest.SerializeToString,
368
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeResponse.FromString,
369
+ options,
370
+ channel_credentials,
371
+ insecure,
372
+ call_credentials,
373
+ compression,
374
+ wait_for_ready,
375
+ timeout,
376
+ metadata,
377
+ _registered_method=True)
378
+
379
+ @staticmethod
380
+ def UnsafeUpdateAttributeValue(request,
381
+ target,
382
+ options=(),
383
+ channel_credentials=None,
384
+ call_credentials=None,
385
+ insecure=False,
386
+ compression=None,
387
+ wait_for_ready=None,
388
+ timeout=None,
389
+ metadata=None):
390
+ return grpc.experimental.unary_unary(
391
+ request,
392
+ target,
393
+ '/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue',
394
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeValueRequest.SerializeToString,
395
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeUpdateAttributeValueResponse.FromString,
396
+ options,
397
+ channel_credentials,
398
+ insecure,
399
+ call_credentials,
400
+ compression,
401
+ wait_for_ready,
402
+ timeout,
403
+ metadata,
404
+ _registered_method=True)
405
+
406
+ @staticmethod
407
+ def UnsafeReactivateAttributeValue(request,
408
+ target,
409
+ options=(),
410
+ channel_credentials=None,
411
+ call_credentials=None,
412
+ insecure=False,
413
+ compression=None,
414
+ wait_for_ready=None,
415
+ timeout=None,
416
+ metadata=None):
417
+ return grpc.experimental.unary_unary(
418
+ request,
419
+ target,
420
+ '/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue',
421
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeValueRequest.SerializeToString,
422
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeReactivateAttributeValueResponse.FromString,
423
+ options,
424
+ channel_credentials,
425
+ insecure,
426
+ call_credentials,
427
+ compression,
428
+ wait_for_ready,
429
+ timeout,
430
+ metadata,
431
+ _registered_method=True)
432
+
433
+ @staticmethod
434
+ def UnsafeDeleteAttributeValue(request,
435
+ target,
436
+ options=(),
437
+ channel_credentials=None,
438
+ call_credentials=None,
439
+ insecure=False,
440
+ compression=None,
441
+ wait_for_ready=None,
442
+ timeout=None,
443
+ metadata=None):
444
+ return grpc.experimental.unary_unary(
445
+ request,
446
+ target,
447
+ '/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue',
448
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeValueRequest.SerializeToString,
449
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteAttributeValueResponse.FromString,
450
+ options,
451
+ channel_credentials,
452
+ insecure,
453
+ call_credentials,
454
+ compression,
455
+ wait_for_ready,
456
+ timeout,
457
+ metadata,
458
+ _registered_method=True)
459
+
460
+ @staticmethod
461
+ def UnsafeDeleteKasKey(request,
462
+ target,
463
+ options=(),
464
+ channel_credentials=None,
465
+ call_credentials=None,
466
+ insecure=False,
467
+ compression=None,
468
+ wait_for_ready=None,
469
+ timeout=None,
470
+ metadata=None):
471
+ return grpc.experimental.unary_unary(
472
+ request,
473
+ target,
474
+ '/policy.unsafe.UnsafeService/UnsafeDeleteKasKey',
475
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteKasKeyRequest.SerializeToString,
476
+ policy_dot_unsafe_dot_unsafe__pb2.UnsafeDeleteKasKeyResponse.FromString,
477
+ options,
478
+ channel_credentials,
479
+ insecure,
480
+ call_credentials,
481
+ compression,
482
+ wait_for_ready,
483
+ timeout,
484
+ metadata,
485
+ _registered_method=True)
@@ -0,0 +1,77 @@
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 wellknownconfiguration import wellknown_configuration_pb2 as wellknownconfiguration_dot_wellknown__configuration__pb2
6
+
7
+
8
+ class WellKnownServiceStub(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.GetWellKnownConfiguration = channel.unary_unary(
18
+ '/wellknownconfiguration.WellKnownService/GetWellKnownConfiguration',
19
+ request_serializer=wellknownconfiguration_dot_wellknown__configuration__pb2.GetWellKnownConfigurationRequest.SerializeToString,
20
+ response_deserializer=wellknownconfiguration_dot_wellknown__configuration__pb2.GetWellKnownConfigurationResponse.FromString,
21
+ _registered_method=True)
22
+
23
+
24
+ class WellKnownServiceServicer(object):
25
+ """Missing associated documentation comment in .proto file."""
26
+
27
+ def GetWellKnownConfiguration(self, request, context):
28
+ """Missing associated documentation comment in .proto file."""
29
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
30
+ context.set_details('Method not implemented!')
31
+ raise NotImplementedError('Method not implemented!')
32
+
33
+
34
+ def add_WellKnownServiceServicer_to_server(servicer, server):
35
+ rpc_method_handlers = {
36
+ 'GetWellKnownConfiguration': grpc.unary_unary_rpc_method_handler(
37
+ servicer.GetWellKnownConfiguration,
38
+ request_deserializer=wellknownconfiguration_dot_wellknown__configuration__pb2.GetWellKnownConfigurationRequest.FromString,
39
+ response_serializer=wellknownconfiguration_dot_wellknown__configuration__pb2.GetWellKnownConfigurationResponse.SerializeToString,
40
+ ),
41
+ }
42
+ generic_handler = grpc.method_handlers_generic_handler(
43
+ 'wellknownconfiguration.WellKnownService', rpc_method_handlers)
44
+ server.add_generic_rpc_handlers((generic_handler,))
45
+ server.add_registered_method_handlers('wellknownconfiguration.WellKnownService', rpc_method_handlers)
46
+
47
+
48
+ # This class is part of an EXPERIMENTAL API.
49
+ class WellKnownService(object):
50
+ """Missing associated documentation comment in .proto file."""
51
+
52
+ @staticmethod
53
+ def GetWellKnownConfiguration(request,
54
+ target,
55
+ options=(),
56
+ channel_credentials=None,
57
+ call_credentials=None,
58
+ insecure=False,
59
+ compression=None,
60
+ wait_for_ready=None,
61
+ timeout=None,
62
+ metadata=None):
63
+ return grpc.experimental.unary_unary(
64
+ request,
65
+ target,
66
+ '/wellknownconfiguration.WellKnownService/GetWellKnownConfiguration',
67
+ wellknownconfiguration_dot_wellknown__configuration__pb2.GetWellKnownConfigurationRequest.SerializeToString,
68
+ wellknownconfiguration_dot_wellknown__configuration__pb2.GetWellKnownConfigurationResponse.FromString,
69
+ options,
70
+ channel_credentials,
71
+ insecure,
72
+ call_credentials,
73
+ compression,
74
+ wait_for_ready,
75
+ timeout,
76
+ metadata,
77
+ _registered_method=True)
@@ -0,0 +1 @@
1
+ """logger protobuf definitions."""
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: logger/audit/test.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'logger/audit/test.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from common import common_pb2 as common_dot_common__pb2
26
+ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17logger/audit/test.proto\x12\x14service.logger.audit\x1a\x13\x63ommon/common.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xc4\x02\n\x10TestPolicyObject\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x32\n\x06\x61\x63tive\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\x06\x61\x63tive\x12K\n\x07version\x18\x03 \x01(\x0e\x32\x31.service.logger.audit.TestPolicyObjectVersionEnumR\x07version\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\x12\x1c\n\x08username\x18\x06 \x01(\tH\x00R\x08username\x12\x30\n\x04user\x18\x07 \x01(\x0b\x32\x1a.service.logger.audit.UserH\x00R\x04user\x12,\n\x08metadata\x18\x04 \x01(\x0b\x32\x10.common.MetadataR\x08metadataB\r\n\x0bpolicy_user\"*\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name*\xa0\x01\n\x1bTestPolicyObjectVersionEnum\x12/\n+TEST_POLICY_OBJECT_VERSION_ENUM_UNSPECIFIED\x10\x00\x12\'\n#TEST_POLICY_OBJECT_VERSION_ENUM_OLD\x10\x01\x12\'\n#TEST_POLICY_OBJECT_VERSION_ENUM_NEW\x10\x02\x42\x97\x01\n\x18\x63om.service.logger.auditB\tTestProtoP\x01\xa2\x02\x03SLA\xaa\x02\x14Service.Logger.Audit\xca\x02\x14Service\\Logger\\Audit\xe2\x02 Service\\Logger\\Audit\\GPBMetadata\xea\x02\x16Service::Logger::Auditb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'logger.audit.test_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\030com.service.logger.auditB\tTestProtoP\001\242\002\003SLA\252\002\024Service.Logger.Audit\312\002\024Service\\Logger\\Audit\342\002 Service\\Logger\\Audit\\GPBMetadata\352\002\026Service::Logger::Audit'
37
+ _globals['_TESTPOLICYOBJECTVERSIONENUM']._serialized_start=474
38
+ _globals['_TESTPOLICYOBJECTVERSIONENUM']._serialized_end=634
39
+ _globals['_TESTPOLICYOBJECT']._serialized_start=103
40
+ _globals['_TESTPOLICYOBJECT']._serialized_end=427
41
+ _globals['_USER']._serialized_start=429
42
+ _globals['_USER']._serialized_end=471
43
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,45 @@
1
+ from common import common_pb2 as _common_pb2
2
+ from google.protobuf import wrappers_pb2 as _wrappers_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class TestPolicyObjectVersionEnum(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
13
+ __slots__ = ()
14
+ TEST_POLICY_OBJECT_VERSION_ENUM_UNSPECIFIED: _ClassVar[TestPolicyObjectVersionEnum]
15
+ TEST_POLICY_OBJECT_VERSION_ENUM_OLD: _ClassVar[TestPolicyObjectVersionEnum]
16
+ TEST_POLICY_OBJECT_VERSION_ENUM_NEW: _ClassVar[TestPolicyObjectVersionEnum]
17
+ TEST_POLICY_OBJECT_VERSION_ENUM_UNSPECIFIED: TestPolicyObjectVersionEnum
18
+ TEST_POLICY_OBJECT_VERSION_ENUM_OLD: TestPolicyObjectVersionEnum
19
+ TEST_POLICY_OBJECT_VERSION_ENUM_NEW: TestPolicyObjectVersionEnum
20
+
21
+ class TestPolicyObject(_message.Message):
22
+ __slots__ = ("id", "active", "version", "tags", "username", "user", "metadata")
23
+ ID_FIELD_NUMBER: _ClassVar[int]
24
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
25
+ VERSION_FIELD_NUMBER: _ClassVar[int]
26
+ TAGS_FIELD_NUMBER: _ClassVar[int]
27
+ USERNAME_FIELD_NUMBER: _ClassVar[int]
28
+ USER_FIELD_NUMBER: _ClassVar[int]
29
+ METADATA_FIELD_NUMBER: _ClassVar[int]
30
+ id: str
31
+ active: _wrappers_pb2.BoolValue
32
+ version: TestPolicyObjectVersionEnum
33
+ tags: _containers.RepeatedScalarFieldContainer[str]
34
+ username: str
35
+ user: User
36
+ metadata: _common_pb2.Metadata
37
+ def __init__(self, id: _Optional[str] = ..., active: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., version: _Optional[_Union[TestPolicyObjectVersionEnum, str]] = ..., tags: _Optional[_Iterable[str]] = ..., username: _Optional[str] = ..., user: _Optional[_Union[User, _Mapping]] = ..., metadata: _Optional[_Union[_common_pb2.Metadata, _Mapping]] = ...) -> None: ...
38
+
39
+ class User(_message.Message):
40
+ __slots__ = ("id", "name")
41
+ ID_FIELD_NUMBER: _ClassVar[int]
42
+ NAME_FIELD_NUMBER: _ClassVar[int]
43
+ id: str
44
+ name: str
45
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
@@ -0,0 +1 @@
1
+ """policy protobuf definitions."""