otdf-python 0.1.10__py3-none-any.whl → 0.3.5__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 +198 -0
  7. otdf_python/auth_headers.py +33 -0
  8. otdf_python/autoconfigure_utils.py +113 -0
  9. otdf_python/cli.py +569 -0
  10. otdf_python/collection_store.py +41 -0
  11. otdf_python/collection_store_impl.py +22 -0
  12. otdf_python/config.py +69 -0
  13. otdf_python/connect_client.py +0 -0
  14. otdf_python/constants.py +1 -0
  15. otdf_python/crypto_utils.py +78 -0
  16. otdf_python/dpop.py +81 -0
  17. otdf_python/ecc_constants.py +176 -0
  18. otdf_python/ecc_mode.py +83 -0
  19. otdf_python/ecdh.py +317 -0
  20. otdf_python/eckeypair.py +75 -0
  21. otdf_python/header.py +181 -0
  22. otdf_python/invalid_zip_exception.py +8 -0
  23. otdf_python/kas_client.py +709 -0
  24. otdf_python/kas_connect_rpc_client.py +213 -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 +863 -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 +55 -0
  35. otdf_python/policy_object.py +22 -0
  36. otdf_python/policy_stub.py +2 -0
  37. otdf_python/resource_locator.py +172 -0
  38. otdf_python/sdk.py +436 -0
  39. otdf_python/sdk_builder.py +416 -0
  40. otdf_python/sdk_exceptions.py +16 -0
  41. otdf_python/symmetric_and_payload_config.py +30 -0
  42. otdf_python/tdf.py +480 -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.5.dist-info/METADATA +153 -0
  50. otdf_python-0.3.5.dist-info/RECORD +137 -0
  51. {otdf_python-0.1.10.dist-info → otdf_python-0.3.5.dist-info}/WHEEL +1 -2
  52. {otdf_python-0.1.10.dist-info → otdf_python-0.3.5.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 Connect client code
2
+
3
+ from __future__ import annotations
4
+ from collections.abc import AsyncIterator
5
+ from collections.abc import Iterator
6
+ from collections.abc import Iterable
7
+ import aiohttp
8
+ import urllib3
9
+ import typing
10
+ import sys
11
+
12
+ from connectrpc.client_async import AsyncConnectClient
13
+ from connectrpc.client_sync import ConnectClient
14
+ from connectrpc.client_protocol import ConnectProtocol
15
+ from connectrpc.client_connect import ConnectProtocolError
16
+ from connectrpc.headers import HeaderInput
17
+ from connectrpc.server import ClientRequest
18
+ from connectrpc.server import ClientStream
19
+ from connectrpc.server import ServerResponse
20
+ from connectrpc.server import ServerStream
21
+ from connectrpc.server_sync import ConnectWSGI
22
+ from connectrpc.streams import StreamInput
23
+ from connectrpc.streams import AsyncStreamOutput
24
+ from connectrpc.streams import StreamOutput
25
+ from connectrpc.unary import UnaryOutput
26
+ from connectrpc.unary import ClientStreamingOutput
27
+
28
+ if typing.TYPE_CHECKING:
29
+ # wsgiref.types was added in Python 3.11.
30
+ if sys.version_info >= (3, 11):
31
+ from wsgiref.types import WSGIApplication
32
+ else:
33
+ from _typeshed.wsgi import WSGIApplication
34
+
35
+ import policy.unsafe.unsafe_pb2
36
+
37
+ class UnsafeServiceClient:
38
+ def __init__(
39
+ self,
40
+ base_url: str,
41
+ http_client: urllib3.PoolManager | None = None,
42
+ protocol: ConnectProtocol = ConnectProtocol.CONNECT_PROTOBUF,
43
+ ):
44
+ self.base_url = base_url
45
+ self._connect_client = ConnectClient(http_client, protocol)
46
+ def call_unsafe_update_namespace(
47
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
48
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse]:
49
+ """Low-level method to call UnsafeUpdateNamespace, granting access to errors and metadata"""
50
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeUpdateNamespace"
51
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse,extra_headers, timeout_seconds)
52
+
53
+
54
+ def unsafe_update_namespace(
55
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
56
+ ) -> policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse:
57
+ response = self.call_unsafe_update_namespace(req, extra_headers, timeout_seconds)
58
+ err = response.error()
59
+ if err is not None:
60
+ raise err
61
+ msg = response.message()
62
+ if msg is None:
63
+ raise ConnectProtocolError('missing response message')
64
+ return msg
65
+
66
+ def call_unsafe_reactivate_namespace(
67
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
68
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse]:
69
+ """Low-level method to call UnsafeReactivateNamespace, granting access to errors and metadata"""
70
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeReactivateNamespace"
71
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse,extra_headers, timeout_seconds)
72
+
73
+
74
+ def unsafe_reactivate_namespace(
75
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
76
+ ) -> policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse:
77
+ response = self.call_unsafe_reactivate_namespace(req, extra_headers, timeout_seconds)
78
+ err = response.error()
79
+ if err is not None:
80
+ raise err
81
+ msg = response.message()
82
+ if msg is None:
83
+ raise ConnectProtocolError('missing response message')
84
+ return msg
85
+
86
+ def call_unsafe_delete_namespace(
87
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
88
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse]:
89
+ """Low-level method to call UnsafeDeleteNamespace, granting access to errors and metadata"""
90
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteNamespace"
91
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse,extra_headers, timeout_seconds)
92
+
93
+
94
+ def unsafe_delete_namespace(
95
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
96
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse:
97
+ response = self.call_unsafe_delete_namespace(req, extra_headers, timeout_seconds)
98
+ err = response.error()
99
+ if err is not None:
100
+ raise err
101
+ msg = response.message()
102
+ if msg is None:
103
+ raise ConnectProtocolError('missing response message')
104
+ return msg
105
+
106
+ def call_unsafe_update_attribute(
107
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
108
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse]:
109
+ """Low-level method to call UnsafeUpdateAttribute, granting access to errors and metadata"""
110
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeUpdateAttribute"
111
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse,extra_headers, timeout_seconds)
112
+
113
+
114
+ def unsafe_update_attribute(
115
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
116
+ ) -> policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse:
117
+ response = self.call_unsafe_update_attribute(req, extra_headers, timeout_seconds)
118
+ err = response.error()
119
+ if err is not None:
120
+ raise err
121
+ msg = response.message()
122
+ if msg is None:
123
+ raise ConnectProtocolError('missing response message')
124
+ return msg
125
+
126
+ def call_unsafe_reactivate_attribute(
127
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
128
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse]:
129
+ """Low-level method to call UnsafeReactivateAttribute, granting access to errors and metadata"""
130
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeReactivateAttribute"
131
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse,extra_headers, timeout_seconds)
132
+
133
+
134
+ def unsafe_reactivate_attribute(
135
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
136
+ ) -> policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse:
137
+ response = self.call_unsafe_reactivate_attribute(req, extra_headers, timeout_seconds)
138
+ err = response.error()
139
+ if err is not None:
140
+ raise err
141
+ msg = response.message()
142
+ if msg is None:
143
+ raise ConnectProtocolError('missing response message')
144
+ return msg
145
+
146
+ def call_unsafe_delete_attribute(
147
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
148
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse]:
149
+ """Low-level method to call UnsafeDeleteAttribute, granting access to errors and metadata"""
150
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteAttribute"
151
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse,extra_headers, timeout_seconds)
152
+
153
+
154
+ def unsafe_delete_attribute(
155
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
156
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse:
157
+ response = self.call_unsafe_delete_attribute(req, extra_headers, timeout_seconds)
158
+ err = response.error()
159
+ if err is not None:
160
+ raise err
161
+ msg = response.message()
162
+ if msg is None:
163
+ raise ConnectProtocolError('missing response message')
164
+ return msg
165
+
166
+ def call_unsafe_update_attribute_value(
167
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
168
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse]:
169
+ """Low-level method to call UnsafeUpdateAttributeValue, granting access to errors and metadata"""
170
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue"
171
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse,extra_headers, timeout_seconds)
172
+
173
+
174
+ def unsafe_update_attribute_value(
175
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
176
+ ) -> policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse:
177
+ response = self.call_unsafe_update_attribute_value(req, extra_headers, timeout_seconds)
178
+ err = response.error()
179
+ if err is not None:
180
+ raise err
181
+ msg = response.message()
182
+ if msg is None:
183
+ raise ConnectProtocolError('missing response message')
184
+ return msg
185
+
186
+ def call_unsafe_reactivate_attribute_value(
187
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
188
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse]:
189
+ """Low-level method to call UnsafeReactivateAttributeValue, granting access to errors and metadata"""
190
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue"
191
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse,extra_headers, timeout_seconds)
192
+
193
+
194
+ def unsafe_reactivate_attribute_value(
195
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
196
+ ) -> policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse:
197
+ response = self.call_unsafe_reactivate_attribute_value(req, extra_headers, timeout_seconds)
198
+ err = response.error()
199
+ if err is not None:
200
+ raise err
201
+ msg = response.message()
202
+ if msg is None:
203
+ raise ConnectProtocolError('missing response message')
204
+ return msg
205
+
206
+ def call_unsafe_delete_attribute_value(
207
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
208
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse]:
209
+ """Low-level method to call UnsafeDeleteAttributeValue, granting access to errors and metadata"""
210
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue"
211
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse,extra_headers, timeout_seconds)
212
+
213
+
214
+ def unsafe_delete_attribute_value(
215
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
216
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse:
217
+ response = self.call_unsafe_delete_attribute_value(req, extra_headers, timeout_seconds)
218
+ err = response.error()
219
+ if err is not None:
220
+ raise err
221
+ msg = response.message()
222
+ if msg is None:
223
+ raise ConnectProtocolError('missing response message')
224
+ return msg
225
+
226
+ def call_unsafe_delete_kas_key(
227
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
228
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse]:
229
+ """Low-level method to call UnsafeDeleteKasKey, granting access to errors and metadata"""
230
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteKasKey"
231
+ return self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse,extra_headers, timeout_seconds)
232
+
233
+
234
+ def unsafe_delete_kas_key(
235
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
236
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse:
237
+ response = self.call_unsafe_delete_kas_key(req, extra_headers, timeout_seconds)
238
+ err = response.error()
239
+ if err is not None:
240
+ raise err
241
+ msg = response.message()
242
+ if msg is None:
243
+ raise ConnectProtocolError('missing response message')
244
+ return msg
245
+
246
+
247
+ class AsyncUnsafeServiceClient:
248
+ def __init__(
249
+ self,
250
+ base_url: str,
251
+ http_client: aiohttp.ClientSession,
252
+ protocol: ConnectProtocol = ConnectProtocol.CONNECT_PROTOBUF,
253
+ ):
254
+ self.base_url = base_url
255
+ self._connect_client = AsyncConnectClient(http_client, protocol)
256
+
257
+ async def call_unsafe_update_namespace(
258
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
259
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse]:
260
+ """Low-level method to call UnsafeUpdateNamespace, granting access to errors and metadata"""
261
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeUpdateNamespace"
262
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse,extra_headers, timeout_seconds)
263
+
264
+ async def unsafe_update_namespace(
265
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
266
+ ) -> policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse:
267
+ response = await self.call_unsafe_update_namespace(req, extra_headers, timeout_seconds)
268
+ err = response.error()
269
+ if err is not None:
270
+ raise err
271
+ msg = response.message()
272
+ if msg is None:
273
+ raise ConnectProtocolError('missing response message')
274
+ return msg
275
+
276
+ async def call_unsafe_reactivate_namespace(
277
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
278
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse]:
279
+ """Low-level method to call UnsafeReactivateNamespace, granting access to errors and metadata"""
280
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeReactivateNamespace"
281
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse,extra_headers, timeout_seconds)
282
+
283
+ async def unsafe_reactivate_namespace(
284
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
285
+ ) -> policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse:
286
+ response = await self.call_unsafe_reactivate_namespace(req, extra_headers, timeout_seconds)
287
+ err = response.error()
288
+ if err is not None:
289
+ raise err
290
+ msg = response.message()
291
+ if msg is None:
292
+ raise ConnectProtocolError('missing response message')
293
+ return msg
294
+
295
+ async def call_unsafe_delete_namespace(
296
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
297
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse]:
298
+ """Low-level method to call UnsafeDeleteNamespace, granting access to errors and metadata"""
299
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteNamespace"
300
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse,extra_headers, timeout_seconds)
301
+
302
+ async def unsafe_delete_namespace(
303
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
304
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse:
305
+ response = await self.call_unsafe_delete_namespace(req, extra_headers, timeout_seconds)
306
+ err = response.error()
307
+ if err is not None:
308
+ raise err
309
+ msg = response.message()
310
+ if msg is None:
311
+ raise ConnectProtocolError('missing response message')
312
+ return msg
313
+
314
+ async def call_unsafe_update_attribute(
315
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
316
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse]:
317
+ """Low-level method to call UnsafeUpdateAttribute, granting access to errors and metadata"""
318
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeUpdateAttribute"
319
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse,extra_headers, timeout_seconds)
320
+
321
+ async def unsafe_update_attribute(
322
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
323
+ ) -> policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse:
324
+ response = await self.call_unsafe_update_attribute(req, extra_headers, timeout_seconds)
325
+ err = response.error()
326
+ if err is not None:
327
+ raise err
328
+ msg = response.message()
329
+ if msg is None:
330
+ raise ConnectProtocolError('missing response message')
331
+ return msg
332
+
333
+ async def call_unsafe_reactivate_attribute(
334
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
335
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse]:
336
+ """Low-level method to call UnsafeReactivateAttribute, granting access to errors and metadata"""
337
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeReactivateAttribute"
338
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse,extra_headers, timeout_seconds)
339
+
340
+ async def unsafe_reactivate_attribute(
341
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
342
+ ) -> policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse:
343
+ response = await self.call_unsafe_reactivate_attribute(req, extra_headers, timeout_seconds)
344
+ err = response.error()
345
+ if err is not None:
346
+ raise err
347
+ msg = response.message()
348
+ if msg is None:
349
+ raise ConnectProtocolError('missing response message')
350
+ return msg
351
+
352
+ async def call_unsafe_delete_attribute(
353
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
354
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse]:
355
+ """Low-level method to call UnsafeDeleteAttribute, granting access to errors and metadata"""
356
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteAttribute"
357
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse,extra_headers, timeout_seconds)
358
+
359
+ async def unsafe_delete_attribute(
360
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
361
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse:
362
+ response = await self.call_unsafe_delete_attribute(req, extra_headers, timeout_seconds)
363
+ err = response.error()
364
+ if err is not None:
365
+ raise err
366
+ msg = response.message()
367
+ if msg is None:
368
+ raise ConnectProtocolError('missing response message')
369
+ return msg
370
+
371
+ async def call_unsafe_update_attribute_value(
372
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
373
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse]:
374
+ """Low-level method to call UnsafeUpdateAttributeValue, granting access to errors and metadata"""
375
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue"
376
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse,extra_headers, timeout_seconds)
377
+
378
+ async def unsafe_update_attribute_value(
379
+ self, req: policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
380
+ ) -> policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse:
381
+ response = await self.call_unsafe_update_attribute_value(req, extra_headers, timeout_seconds)
382
+ err = response.error()
383
+ if err is not None:
384
+ raise err
385
+ msg = response.message()
386
+ if msg is None:
387
+ raise ConnectProtocolError('missing response message')
388
+ return msg
389
+
390
+ async def call_unsafe_reactivate_attribute_value(
391
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
392
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse]:
393
+ """Low-level method to call UnsafeReactivateAttributeValue, granting access to errors and metadata"""
394
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue"
395
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse,extra_headers, timeout_seconds)
396
+
397
+ async def unsafe_reactivate_attribute_value(
398
+ self, req: policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
399
+ ) -> policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse:
400
+ response = await self.call_unsafe_reactivate_attribute_value(req, extra_headers, timeout_seconds)
401
+ err = response.error()
402
+ if err is not None:
403
+ raise err
404
+ msg = response.message()
405
+ if msg is None:
406
+ raise ConnectProtocolError('missing response message')
407
+ return msg
408
+
409
+ async def call_unsafe_delete_attribute_value(
410
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
411
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse]:
412
+ """Low-level method to call UnsafeDeleteAttributeValue, granting access to errors and metadata"""
413
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue"
414
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse,extra_headers, timeout_seconds)
415
+
416
+ async def unsafe_delete_attribute_value(
417
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
418
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse:
419
+ response = await self.call_unsafe_delete_attribute_value(req, extra_headers, timeout_seconds)
420
+ err = response.error()
421
+ if err is not None:
422
+ raise err
423
+ msg = response.message()
424
+ if msg is None:
425
+ raise ConnectProtocolError('missing response message')
426
+ return msg
427
+
428
+ async def call_unsafe_delete_kas_key(
429
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
430
+ ) -> UnaryOutput[policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse]:
431
+ """Low-level method to call UnsafeDeleteKasKey, granting access to errors and metadata"""
432
+ url = self.base_url + "/policy.unsafe.UnsafeService/UnsafeDeleteKasKey"
433
+ return await self._connect_client.call_unary(url, req, policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse,extra_headers, timeout_seconds)
434
+
435
+ async def unsafe_delete_kas_key(
436
+ self, req: policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
437
+ ) -> policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse:
438
+ response = await self.call_unsafe_delete_kas_key(req, extra_headers, timeout_seconds)
439
+ err = response.error()
440
+ if err is not None:
441
+ raise err
442
+ msg = response.message()
443
+ if msg is None:
444
+ raise ConnectProtocolError('missing response message')
445
+ return msg
446
+
447
+
448
+ @typing.runtime_checkable
449
+ class UnsafeServiceProtocol(typing.Protocol):
450
+ def unsafe_update_namespace(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceResponse]:
451
+ ...
452
+ def unsafe_reactivate_namespace(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceResponse]:
453
+ ...
454
+ def unsafe_delete_namespace(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceResponse]:
455
+ ...
456
+ def unsafe_update_attribute(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeResponse]:
457
+ ...
458
+ def unsafe_reactivate_attribute(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeResponse]:
459
+ ...
460
+ def unsafe_delete_attribute(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeResponse]:
461
+ ...
462
+ def unsafe_update_attribute_value(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueResponse]:
463
+ ...
464
+ def unsafe_reactivate_attribute_value(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueResponse]:
465
+ ...
466
+ def unsafe_delete_attribute_value(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueResponse]:
467
+ ...
468
+ def unsafe_delete_kas_key(self, req: ClientRequest[policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyRequest]) -> ServerResponse[policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyResponse]:
469
+ ...
470
+
471
+ UNSAFE_SERVICE_PATH_PREFIX = "/policy.unsafe.UnsafeService"
472
+
473
+ def wsgi_unsafe_service(implementation: UnsafeServiceProtocol) -> WSGIApplication:
474
+ app = ConnectWSGI()
475
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeUpdateNamespace", implementation.unsafe_update_namespace, policy.unsafe.unsafe_pb2.UnsafeUpdateNamespaceRequest)
476
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeReactivateNamespace", implementation.unsafe_reactivate_namespace, policy.unsafe.unsafe_pb2.UnsafeReactivateNamespaceRequest)
477
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeDeleteNamespace", implementation.unsafe_delete_namespace, policy.unsafe.unsafe_pb2.UnsafeDeleteNamespaceRequest)
478
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeUpdateAttribute", implementation.unsafe_update_attribute, policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeRequest)
479
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeReactivateAttribute", implementation.unsafe_reactivate_attribute, policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeRequest)
480
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeDeleteAttribute", implementation.unsafe_delete_attribute, policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeRequest)
481
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue", implementation.unsafe_update_attribute_value, policy.unsafe.unsafe_pb2.UnsafeUpdateAttributeValueRequest)
482
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue", implementation.unsafe_reactivate_attribute_value, policy.unsafe.unsafe_pb2.UnsafeReactivateAttributeValueRequest)
483
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue", implementation.unsafe_delete_attribute_value, policy.unsafe.unsafe_pb2.UnsafeDeleteAttributeValueRequest)
484
+ app.register_unary_rpc("/policy.unsafe.UnsafeService/UnsafeDeleteKasKey", implementation.unsafe_delete_kas_key, policy.unsafe.unsafe_pb2.UnsafeDeleteKasKeyRequest)
485
+ return app
@@ -0,0 +1 @@
1
+ """wellknownconfiguration protobuf definitions."""
@@ -0,0 +1,51 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: wellknownconfiguration/wellknown_configuration.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
+ 'wellknownconfiguration/wellknown_configuration.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
26
+ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4wellknownconfiguration/wellknown_configuration.proto\x12\x16wellknownconfiguration\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xce\x01\n\x0fWellKnownConfig\x12`\n\rconfiguration\x18\x01 \x03(\x0b\x32:.wellknownconfiguration.WellKnownConfig.ConfigurationEntryR\rconfiguration\x1aY\n\x12\x43onfigurationEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x05value:\x02\x38\x01\"\"\n GetWellKnownConfigurationRequest\"b\n!GetWellKnownConfigurationResponse\x12=\n\rconfiguration\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\rconfiguration2\xd4\x01\n\x10WellKnownService\x12\xbf\x01\n\x19GetWellKnownConfiguration\x12\x38.wellknownconfiguration.GetWellKnownConfigurationRequest\x1a\x39.wellknownconfiguration.GetWellKnownConfigurationResponse\"-\x90\x02\x01\x82\xd3\xe4\x93\x02$\x12\"/.well-known/opentdf-configurationB\xb1\x01\n\x1a\x63om.wellknownconfigurationB\x1bWellknownConfigurationProtoP\x01\xa2\x02\x03WXX\xaa\x02\x16Wellknownconfiguration\xca\x02\x16Wellknownconfiguration\xe2\x02\"Wellknownconfiguration\\GPBMetadata\xea\x02\x16Wellknownconfigurationb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'wellknownconfiguration.wellknown_configuration_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\032com.wellknownconfigurationB\033WellknownConfigurationProtoP\001\242\002\003WXX\252\002\026Wellknownconfiguration\312\002\026Wellknownconfiguration\342\002\"Wellknownconfiguration\\GPBMetadata\352\002\026Wellknownconfiguration'
37
+ _globals['_WELLKNOWNCONFIG_CONFIGURATIONENTRY']._loaded_options = None
38
+ _globals['_WELLKNOWNCONFIG_CONFIGURATIONENTRY']._serialized_options = b'8\001'
39
+ _globals['_WELLKNOWNSERVICE'].methods_by_name['GetWellKnownConfiguration']._loaded_options = None
40
+ _globals['_WELLKNOWNSERVICE'].methods_by_name['GetWellKnownConfiguration']._serialized_options = b'\220\002\001\202\323\344\223\002$\022\"/.well-known/opentdf-configuration'
41
+ _globals['_WELLKNOWNCONFIG']._serialized_start=141
42
+ _globals['_WELLKNOWNCONFIG']._serialized_end=347
43
+ _globals['_WELLKNOWNCONFIG_CONFIGURATIONENTRY']._serialized_start=258
44
+ _globals['_WELLKNOWNCONFIG_CONFIGURATIONENTRY']._serialized_end=347
45
+ _globals['_GETWELLKNOWNCONFIGURATIONREQUEST']._serialized_start=349
46
+ _globals['_GETWELLKNOWNCONFIGURATIONREQUEST']._serialized_end=383
47
+ _globals['_GETWELLKNOWNCONFIGURATIONRESPONSE']._serialized_start=385
48
+ _globals['_GETWELLKNOWNCONFIGURATIONRESPONSE']._serialized_end=483
49
+ _globals['_WELLKNOWNSERVICE']._serialized_start=486
50
+ _globals['_WELLKNOWNSERVICE']._serialized_end=698
51
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,32 @@
1
+ from google.api import annotations_pb2 as _annotations_pb2
2
+ from google.protobuf import struct_pb2 as _struct_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from collections.abc import Mapping as _Mapping
7
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
10
+
11
+ class WellKnownConfig(_message.Message):
12
+ __slots__ = ("configuration",)
13
+ class ConfigurationEntry(_message.Message):
14
+ __slots__ = ("key", "value")
15
+ KEY_FIELD_NUMBER: _ClassVar[int]
16
+ VALUE_FIELD_NUMBER: _ClassVar[int]
17
+ key: str
18
+ value: _struct_pb2.Struct
19
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
20
+ CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
21
+ configuration: _containers.MessageMap[str, _struct_pb2.Struct]
22
+ def __init__(self, configuration: _Optional[_Mapping[str, _struct_pb2.Struct]] = ...) -> None: ...
23
+
24
+ class GetWellKnownConfigurationRequest(_message.Message):
25
+ __slots__ = ()
26
+ def __init__(self) -> None: ...
27
+
28
+ class GetWellKnownConfigurationResponse(_message.Message):
29
+ __slots__ = ("configuration",)
30
+ CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
31
+ configuration: _struct_pb2.Struct
32
+ def __init__(self, configuration: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...