otdf-python 0.4.1__py3-none-any.whl → 0.4.3__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.
- otdf_python/autoconfigure_utils.py +0 -2
- otdf_python/cli.py +50 -21
- otdf_python/collection_store.py +0 -1
- otdf_python/ecdh.py +0 -6
- otdf_python/kas_allowlist.py +182 -0
- otdf_python/kas_client.py +44 -2
- otdf_python/kas_connect_rpc_client.py +59 -19
- otdf_python/nanotdf.py +4 -14
- otdf_python/nanotdf_ecdsa_struct.py +0 -2
- otdf_python/nanotdf_type.py +1 -1
- otdf_python/sdk.py +31 -15
- otdf_python/sdk_builder.py +88 -8
- otdf_python/tdf.py +2 -2
- {otdf_python-0.4.1.dist-info → otdf_python-0.4.3.dist-info}/METADATA +3 -2
- {otdf_python-0.4.1.dist-info → otdf_python-0.4.3.dist-info}/RECORD +46 -36
- otdf_python_proto/__init__.py +2 -6
- otdf_python_proto/authorization/__init__.py +10 -0
- otdf_python_proto/authorization/authorization_connect.py +250 -0
- otdf_python_proto/authorization/v2/authorization_connect.py +315 -0
- otdf_python_proto/entityresolution/__init__.py +10 -0
- otdf_python_proto/entityresolution/entity_resolution_connect.py +185 -0
- otdf_python_proto/entityresolution/v2/entity_resolution_connect.py +185 -0
- otdf_python_proto/kas/__init__.py +2 -2
- otdf_python_proto/kas/kas_connect.py +259 -0
- otdf_python_proto/policy/actions/__init__.py +11 -0
- otdf_python_proto/policy/actions/actions_connect.py +380 -0
- otdf_python_proto/policy/attributes/__init__.py +11 -0
- otdf_python_proto/policy/attributes/attributes_connect.py +1310 -0
- otdf_python_proto/policy/kasregistry/__init__.py +11 -0
- otdf_python_proto/policy/kasregistry/key_access_server_registry_connect.py +912 -0
- otdf_python_proto/policy/keymanagement/__init__.py +11 -0
- otdf_python_proto/policy/keymanagement/key_management_connect.py +380 -0
- otdf_python_proto/policy/namespaces/__init__.py +11 -0
- otdf_python_proto/policy/namespaces/namespaces_connect.py +648 -0
- otdf_python_proto/policy/registeredresources/__init__.py +11 -0
- otdf_python_proto/policy/registeredresources/registered_resources_connect.py +770 -0
- otdf_python_proto/policy/resourcemapping/__init__.py +11 -0
- otdf_python_proto/policy/resourcemapping/resource_mapping_connect.py +790 -0
- otdf_python_proto/policy/subjectmapping/__init__.py +11 -0
- otdf_python_proto/policy/subjectmapping/subject_mapping_connect.py +851 -0
- otdf_python_proto/policy/unsafe/__init__.py +11 -0
- otdf_python_proto/policy/unsafe/unsafe_connect.py +705 -0
- otdf_python_proto/wellknownconfiguration/__init__.py +10 -0
- otdf_python_proto/wellknownconfiguration/wellknown_configuration_connect.py +124 -0
- otdf_python_proto/authorization/authorization_pb2_connect.py +0 -191
- otdf_python_proto/authorization/v2/authorization_pb2_connect.py +0 -233
- otdf_python_proto/entityresolution/entity_resolution_pb2_connect.py +0 -149
- otdf_python_proto/entityresolution/v2/entity_resolution_pb2_connect.py +0 -149
- otdf_python_proto/kas/kas_pb2_connect.py +0 -192
- otdf_python_proto/policy/actions/actions_pb2_connect.py +0 -275
- otdf_python_proto/policy/attributes/attributes_pb2_connect.py +0 -863
- otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2_connect.py +0 -611
- otdf_python_proto/policy/keymanagement/key_management_pb2_connect.py +0 -275
- otdf_python_proto/policy/namespaces/namespaces_pb2_connect.py +0 -443
- otdf_python_proto/policy/registeredresources/registered_resources_pb2_connect.py +0 -527
- otdf_python_proto/policy/resourcemapping/resource_mapping_pb2_connect.py +0 -527
- otdf_python_proto/policy/subjectmapping/subject_mapping_pb2_connect.py +0 -569
- otdf_python_proto/policy/unsafe/unsafe_pb2_connect.py +0 -485
- otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2_connect.py +0 -107
- {otdf_python-0.4.1.dist-info → otdf_python-0.4.3.dist-info}/WHEEL +0 -0
- {otdf_python-0.4.1.dist-info → otdf_python-0.4.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,863 +0,0 @@
|
|
|
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.attributes.attributes_pb2
|
|
36
|
-
|
|
37
|
-
class AttributesServiceClient:
|
|
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_list_attributes(
|
|
47
|
-
self, req: policy.attributes.attributes_pb2.ListAttributesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
48
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.ListAttributesResponse]:
|
|
49
|
-
"""Low-level method to call ListAttributes, granting access to errors and metadata"""
|
|
50
|
-
url = self.base_url + "/policy.attributes.AttributesService/ListAttributes"
|
|
51
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.ListAttributesResponse,extra_headers, timeout_seconds)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def list_attributes(
|
|
55
|
-
self, req: policy.attributes.attributes_pb2.ListAttributesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
56
|
-
) -> policy.attributes.attributes_pb2.ListAttributesResponse:
|
|
57
|
-
response = self.call_list_attributes(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_list_attribute_values(
|
|
67
|
-
self, req: policy.attributes.attributes_pb2.ListAttributeValuesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
68
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.ListAttributeValuesResponse]:
|
|
69
|
-
"""Low-level method to call ListAttributeValues, granting access to errors and metadata"""
|
|
70
|
-
url = self.base_url + "/policy.attributes.AttributesService/ListAttributeValues"
|
|
71
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.ListAttributeValuesResponse,extra_headers, timeout_seconds)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def list_attribute_values(
|
|
75
|
-
self, req: policy.attributes.attributes_pb2.ListAttributeValuesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
76
|
-
) -> policy.attributes.attributes_pb2.ListAttributeValuesResponse:
|
|
77
|
-
response = self.call_list_attribute_values(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_get_attribute(
|
|
87
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
88
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.GetAttributeResponse]:
|
|
89
|
-
"""Low-level method to call GetAttribute, granting access to errors and metadata"""
|
|
90
|
-
url = self.base_url + "/policy.attributes.AttributesService/GetAttribute"
|
|
91
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.GetAttributeResponse,extra_headers, timeout_seconds)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
def get_attribute(
|
|
95
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
96
|
-
) -> policy.attributes.attributes_pb2.GetAttributeResponse:
|
|
97
|
-
response = self.call_get_attribute(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_get_attribute_values_by_fqns(
|
|
107
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValuesByFqnsRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
108
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse]:
|
|
109
|
-
"""Low-level method to call GetAttributeValuesByFqns, granting access to errors and metadata"""
|
|
110
|
-
url = self.base_url + "/policy.attributes.AttributesService/GetAttributeValuesByFqns"
|
|
111
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse,extra_headers, timeout_seconds)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
def get_attribute_values_by_fqns(
|
|
115
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValuesByFqnsRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
116
|
-
) -> policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse:
|
|
117
|
-
response = self.call_get_attribute_values_by_fqns(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_create_attribute(
|
|
127
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
128
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.CreateAttributeResponse]:
|
|
129
|
-
"""Low-level method to call CreateAttribute, granting access to errors and metadata"""
|
|
130
|
-
url = self.base_url + "/policy.attributes.AttributesService/CreateAttribute"
|
|
131
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.CreateAttributeResponse,extra_headers, timeout_seconds)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
def create_attribute(
|
|
135
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
136
|
-
) -> policy.attributes.attributes_pb2.CreateAttributeResponse:
|
|
137
|
-
response = self.call_create_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_update_attribute(
|
|
147
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
148
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.UpdateAttributeResponse]:
|
|
149
|
-
"""Low-level method to call UpdateAttribute, granting access to errors and metadata"""
|
|
150
|
-
url = self.base_url + "/policy.attributes.AttributesService/UpdateAttribute"
|
|
151
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.UpdateAttributeResponse,extra_headers, timeout_seconds)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
def update_attribute(
|
|
155
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
156
|
-
) -> policy.attributes.attributes_pb2.UpdateAttributeResponse:
|
|
157
|
-
response = self.call_update_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_deactivate_attribute(
|
|
167
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
168
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.DeactivateAttributeResponse]:
|
|
169
|
-
"""Low-level method to call DeactivateAttribute, granting access to errors and metadata"""
|
|
170
|
-
url = self.base_url + "/policy.attributes.AttributesService/DeactivateAttribute"
|
|
171
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.DeactivateAttributeResponse,extra_headers, timeout_seconds)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
def deactivate_attribute(
|
|
175
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
176
|
-
) -> policy.attributes.attributes_pb2.DeactivateAttributeResponse:
|
|
177
|
-
response = self.call_deactivate_attribute(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_get_attribute_value(
|
|
187
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
188
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.GetAttributeValueResponse]:
|
|
189
|
-
"""Low-level method to call GetAttributeValue, granting access to errors and metadata"""
|
|
190
|
-
url = self.base_url + "/policy.attributes.AttributesService/GetAttributeValue"
|
|
191
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.GetAttributeValueResponse,extra_headers, timeout_seconds)
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
def get_attribute_value(
|
|
195
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
196
|
-
) -> policy.attributes.attributes_pb2.GetAttributeValueResponse:
|
|
197
|
-
response = self.call_get_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_create_attribute_value(
|
|
207
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
208
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.CreateAttributeValueResponse]:
|
|
209
|
-
"""Low-level method to call CreateAttributeValue, granting access to errors and metadata"""
|
|
210
|
-
url = self.base_url + "/policy.attributes.AttributesService/CreateAttributeValue"
|
|
211
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.CreateAttributeValueResponse,extra_headers, timeout_seconds)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
def create_attribute_value(
|
|
215
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
216
|
-
) -> policy.attributes.attributes_pb2.CreateAttributeValueResponse:
|
|
217
|
-
response = self.call_create_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_update_attribute_value(
|
|
227
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
228
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.UpdateAttributeValueResponse]:
|
|
229
|
-
"""Low-level method to call UpdateAttributeValue, granting access to errors and metadata"""
|
|
230
|
-
url = self.base_url + "/policy.attributes.AttributesService/UpdateAttributeValue"
|
|
231
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.UpdateAttributeValueResponse,extra_headers, timeout_seconds)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
def update_attribute_value(
|
|
235
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
236
|
-
) -> policy.attributes.attributes_pb2.UpdateAttributeValueResponse:
|
|
237
|
-
response = self.call_update_attribute_value(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
|
-
def call_deactivate_attribute_value(
|
|
247
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
248
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.DeactivateAttributeValueResponse]:
|
|
249
|
-
"""Low-level method to call DeactivateAttributeValue, granting access to errors and metadata"""
|
|
250
|
-
url = self.base_url + "/policy.attributes.AttributesService/DeactivateAttributeValue"
|
|
251
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.DeactivateAttributeValueResponse,extra_headers, timeout_seconds)
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
def deactivate_attribute_value(
|
|
255
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
256
|
-
) -> policy.attributes.attributes_pb2.DeactivateAttributeValueResponse:
|
|
257
|
-
response = self.call_deactivate_attribute_value(req, extra_headers, timeout_seconds)
|
|
258
|
-
err = response.error()
|
|
259
|
-
if err is not None:
|
|
260
|
-
raise err
|
|
261
|
-
msg = response.message()
|
|
262
|
-
if msg is None:
|
|
263
|
-
raise ConnectProtocolError('missing response message')
|
|
264
|
-
return msg
|
|
265
|
-
|
|
266
|
-
def call_assign_key_access_server_to_attribute(
|
|
267
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
268
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse]:
|
|
269
|
-
"""Low-level method to call AssignKeyAccessServerToAttribute, granting access to errors and metadata"""
|
|
270
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignKeyAccessServerToAttribute"
|
|
271
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse,extra_headers, timeout_seconds)
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
def assign_key_access_server_to_attribute(
|
|
275
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
276
|
-
) -> policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse:
|
|
277
|
-
response = self.call_assign_key_access_server_to_attribute(req, extra_headers, timeout_seconds)
|
|
278
|
-
err = response.error()
|
|
279
|
-
if err is not None:
|
|
280
|
-
raise err
|
|
281
|
-
msg = response.message()
|
|
282
|
-
if msg is None:
|
|
283
|
-
raise ConnectProtocolError('missing response message')
|
|
284
|
-
return msg
|
|
285
|
-
|
|
286
|
-
def call_remove_key_access_server_from_attribute(
|
|
287
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
288
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse]:
|
|
289
|
-
"""Low-level method to call RemoveKeyAccessServerFromAttribute, granting access to errors and metadata"""
|
|
290
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemoveKeyAccessServerFromAttribute"
|
|
291
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse,extra_headers, timeout_seconds)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
def remove_key_access_server_from_attribute(
|
|
295
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
296
|
-
) -> policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse:
|
|
297
|
-
response = self.call_remove_key_access_server_from_attribute(req, extra_headers, timeout_seconds)
|
|
298
|
-
err = response.error()
|
|
299
|
-
if err is not None:
|
|
300
|
-
raise err
|
|
301
|
-
msg = response.message()
|
|
302
|
-
if msg is None:
|
|
303
|
-
raise ConnectProtocolError('missing response message')
|
|
304
|
-
return msg
|
|
305
|
-
|
|
306
|
-
def call_assign_key_access_server_to_value(
|
|
307
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
308
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse]:
|
|
309
|
-
"""Low-level method to call AssignKeyAccessServerToValue, granting access to errors and metadata"""
|
|
310
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignKeyAccessServerToValue"
|
|
311
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse,extra_headers, timeout_seconds)
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
def assign_key_access_server_to_value(
|
|
315
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
316
|
-
) -> policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse:
|
|
317
|
-
response = self.call_assign_key_access_server_to_value(req, extra_headers, timeout_seconds)
|
|
318
|
-
err = response.error()
|
|
319
|
-
if err is not None:
|
|
320
|
-
raise err
|
|
321
|
-
msg = response.message()
|
|
322
|
-
if msg is None:
|
|
323
|
-
raise ConnectProtocolError('missing response message')
|
|
324
|
-
return msg
|
|
325
|
-
|
|
326
|
-
def call_remove_key_access_server_from_value(
|
|
327
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
328
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse]:
|
|
329
|
-
"""Low-level method to call RemoveKeyAccessServerFromValue, granting access to errors and metadata"""
|
|
330
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemoveKeyAccessServerFromValue"
|
|
331
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse,extra_headers, timeout_seconds)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
def remove_key_access_server_from_value(
|
|
335
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
336
|
-
) -> policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse:
|
|
337
|
-
response = self.call_remove_key_access_server_from_value(req, extra_headers, timeout_seconds)
|
|
338
|
-
err = response.error()
|
|
339
|
-
if err is not None:
|
|
340
|
-
raise err
|
|
341
|
-
msg = response.message()
|
|
342
|
-
if msg is None:
|
|
343
|
-
raise ConnectProtocolError('missing response message')
|
|
344
|
-
return msg
|
|
345
|
-
|
|
346
|
-
def call_assign_public_key_to_attribute(
|
|
347
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
348
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse]:
|
|
349
|
-
"""Low-level method to call AssignPublicKeyToAttribute, granting access to errors and metadata"""
|
|
350
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignPublicKeyToAttribute"
|
|
351
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse,extra_headers, timeout_seconds)
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
def assign_public_key_to_attribute(
|
|
355
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
356
|
-
) -> policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse:
|
|
357
|
-
response = self.call_assign_public_key_to_attribute(req, extra_headers, timeout_seconds)
|
|
358
|
-
err = response.error()
|
|
359
|
-
if err is not None:
|
|
360
|
-
raise err
|
|
361
|
-
msg = response.message()
|
|
362
|
-
if msg is None:
|
|
363
|
-
raise ConnectProtocolError('missing response message')
|
|
364
|
-
return msg
|
|
365
|
-
|
|
366
|
-
def call_remove_public_key_from_attribute(
|
|
367
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
368
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse]:
|
|
369
|
-
"""Low-level method to call RemovePublicKeyFromAttribute, granting access to errors and metadata"""
|
|
370
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemovePublicKeyFromAttribute"
|
|
371
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse,extra_headers, timeout_seconds)
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
def remove_public_key_from_attribute(
|
|
375
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
376
|
-
) -> policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse:
|
|
377
|
-
response = self.call_remove_public_key_from_attribute(req, extra_headers, timeout_seconds)
|
|
378
|
-
err = response.error()
|
|
379
|
-
if err is not None:
|
|
380
|
-
raise err
|
|
381
|
-
msg = response.message()
|
|
382
|
-
if msg is None:
|
|
383
|
-
raise ConnectProtocolError('missing response message')
|
|
384
|
-
return msg
|
|
385
|
-
|
|
386
|
-
def call_assign_public_key_to_value(
|
|
387
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
388
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse]:
|
|
389
|
-
"""Low-level method to call AssignPublicKeyToValue, granting access to errors and metadata"""
|
|
390
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignPublicKeyToValue"
|
|
391
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse,extra_headers, timeout_seconds)
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
def assign_public_key_to_value(
|
|
395
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
396
|
-
) -> policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse:
|
|
397
|
-
response = self.call_assign_public_key_to_value(req, extra_headers, timeout_seconds)
|
|
398
|
-
err = response.error()
|
|
399
|
-
if err is not None:
|
|
400
|
-
raise err
|
|
401
|
-
msg = response.message()
|
|
402
|
-
if msg is None:
|
|
403
|
-
raise ConnectProtocolError('missing response message')
|
|
404
|
-
return msg
|
|
405
|
-
|
|
406
|
-
def call_remove_public_key_from_value(
|
|
407
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
408
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse]:
|
|
409
|
-
"""Low-level method to call RemovePublicKeyFromValue, granting access to errors and metadata"""
|
|
410
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemovePublicKeyFromValue"
|
|
411
|
-
return self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse,extra_headers, timeout_seconds)
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
def remove_public_key_from_value(
|
|
415
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
416
|
-
) -> policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse:
|
|
417
|
-
response = self.call_remove_public_key_from_value(req, extra_headers, timeout_seconds)
|
|
418
|
-
err = response.error()
|
|
419
|
-
if err is not None:
|
|
420
|
-
raise err
|
|
421
|
-
msg = response.message()
|
|
422
|
-
if msg is None:
|
|
423
|
-
raise ConnectProtocolError('missing response message')
|
|
424
|
-
return msg
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
class AsyncAttributesServiceClient:
|
|
428
|
-
def __init__(
|
|
429
|
-
self,
|
|
430
|
-
base_url: str,
|
|
431
|
-
http_client: aiohttp.ClientSession,
|
|
432
|
-
protocol: ConnectProtocol = ConnectProtocol.CONNECT_PROTOBUF,
|
|
433
|
-
):
|
|
434
|
-
self.base_url = base_url
|
|
435
|
-
self._connect_client = AsyncConnectClient(http_client, protocol)
|
|
436
|
-
|
|
437
|
-
async def call_list_attributes(
|
|
438
|
-
self, req: policy.attributes.attributes_pb2.ListAttributesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
439
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.ListAttributesResponse]:
|
|
440
|
-
"""Low-level method to call ListAttributes, granting access to errors and metadata"""
|
|
441
|
-
url = self.base_url + "/policy.attributes.AttributesService/ListAttributes"
|
|
442
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.ListAttributesResponse,extra_headers, timeout_seconds)
|
|
443
|
-
|
|
444
|
-
async def list_attributes(
|
|
445
|
-
self, req: policy.attributes.attributes_pb2.ListAttributesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
446
|
-
) -> policy.attributes.attributes_pb2.ListAttributesResponse:
|
|
447
|
-
response = await self.call_list_attributes(req, extra_headers, timeout_seconds)
|
|
448
|
-
err = response.error()
|
|
449
|
-
if err is not None:
|
|
450
|
-
raise err
|
|
451
|
-
msg = response.message()
|
|
452
|
-
if msg is None:
|
|
453
|
-
raise ConnectProtocolError('missing response message')
|
|
454
|
-
return msg
|
|
455
|
-
|
|
456
|
-
async def call_list_attribute_values(
|
|
457
|
-
self, req: policy.attributes.attributes_pb2.ListAttributeValuesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
458
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.ListAttributeValuesResponse]:
|
|
459
|
-
"""Low-level method to call ListAttributeValues, granting access to errors and metadata"""
|
|
460
|
-
url = self.base_url + "/policy.attributes.AttributesService/ListAttributeValues"
|
|
461
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.ListAttributeValuesResponse,extra_headers, timeout_seconds)
|
|
462
|
-
|
|
463
|
-
async def list_attribute_values(
|
|
464
|
-
self, req: policy.attributes.attributes_pb2.ListAttributeValuesRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
465
|
-
) -> policy.attributes.attributes_pb2.ListAttributeValuesResponse:
|
|
466
|
-
response = await self.call_list_attribute_values(req, extra_headers, timeout_seconds)
|
|
467
|
-
err = response.error()
|
|
468
|
-
if err is not None:
|
|
469
|
-
raise err
|
|
470
|
-
msg = response.message()
|
|
471
|
-
if msg is None:
|
|
472
|
-
raise ConnectProtocolError('missing response message')
|
|
473
|
-
return msg
|
|
474
|
-
|
|
475
|
-
async def call_get_attribute(
|
|
476
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
477
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.GetAttributeResponse]:
|
|
478
|
-
"""Low-level method to call GetAttribute, granting access to errors and metadata"""
|
|
479
|
-
url = self.base_url + "/policy.attributes.AttributesService/GetAttribute"
|
|
480
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.GetAttributeResponse,extra_headers, timeout_seconds)
|
|
481
|
-
|
|
482
|
-
async def get_attribute(
|
|
483
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
484
|
-
) -> policy.attributes.attributes_pb2.GetAttributeResponse:
|
|
485
|
-
response = await self.call_get_attribute(req, extra_headers, timeout_seconds)
|
|
486
|
-
err = response.error()
|
|
487
|
-
if err is not None:
|
|
488
|
-
raise err
|
|
489
|
-
msg = response.message()
|
|
490
|
-
if msg is None:
|
|
491
|
-
raise ConnectProtocolError('missing response message')
|
|
492
|
-
return msg
|
|
493
|
-
|
|
494
|
-
async def call_get_attribute_values_by_fqns(
|
|
495
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValuesByFqnsRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
496
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse]:
|
|
497
|
-
"""Low-level method to call GetAttributeValuesByFqns, granting access to errors and metadata"""
|
|
498
|
-
url = self.base_url + "/policy.attributes.AttributesService/GetAttributeValuesByFqns"
|
|
499
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse,extra_headers, timeout_seconds)
|
|
500
|
-
|
|
501
|
-
async def get_attribute_values_by_fqns(
|
|
502
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValuesByFqnsRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
503
|
-
) -> policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse:
|
|
504
|
-
response = await self.call_get_attribute_values_by_fqns(req, extra_headers, timeout_seconds)
|
|
505
|
-
err = response.error()
|
|
506
|
-
if err is not None:
|
|
507
|
-
raise err
|
|
508
|
-
msg = response.message()
|
|
509
|
-
if msg is None:
|
|
510
|
-
raise ConnectProtocolError('missing response message')
|
|
511
|
-
return msg
|
|
512
|
-
|
|
513
|
-
async def call_create_attribute(
|
|
514
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
515
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.CreateAttributeResponse]:
|
|
516
|
-
"""Low-level method to call CreateAttribute, granting access to errors and metadata"""
|
|
517
|
-
url = self.base_url + "/policy.attributes.AttributesService/CreateAttribute"
|
|
518
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.CreateAttributeResponse,extra_headers, timeout_seconds)
|
|
519
|
-
|
|
520
|
-
async def create_attribute(
|
|
521
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
522
|
-
) -> policy.attributes.attributes_pb2.CreateAttributeResponse:
|
|
523
|
-
response = await self.call_create_attribute(req, extra_headers, timeout_seconds)
|
|
524
|
-
err = response.error()
|
|
525
|
-
if err is not None:
|
|
526
|
-
raise err
|
|
527
|
-
msg = response.message()
|
|
528
|
-
if msg is None:
|
|
529
|
-
raise ConnectProtocolError('missing response message')
|
|
530
|
-
return msg
|
|
531
|
-
|
|
532
|
-
async def call_update_attribute(
|
|
533
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
534
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.UpdateAttributeResponse]:
|
|
535
|
-
"""Low-level method to call UpdateAttribute, granting access to errors and metadata"""
|
|
536
|
-
url = self.base_url + "/policy.attributes.AttributesService/UpdateAttribute"
|
|
537
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.UpdateAttributeResponse,extra_headers, timeout_seconds)
|
|
538
|
-
|
|
539
|
-
async def update_attribute(
|
|
540
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
541
|
-
) -> policy.attributes.attributes_pb2.UpdateAttributeResponse:
|
|
542
|
-
response = await self.call_update_attribute(req, extra_headers, timeout_seconds)
|
|
543
|
-
err = response.error()
|
|
544
|
-
if err is not None:
|
|
545
|
-
raise err
|
|
546
|
-
msg = response.message()
|
|
547
|
-
if msg is None:
|
|
548
|
-
raise ConnectProtocolError('missing response message')
|
|
549
|
-
return msg
|
|
550
|
-
|
|
551
|
-
async def call_deactivate_attribute(
|
|
552
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
553
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.DeactivateAttributeResponse]:
|
|
554
|
-
"""Low-level method to call DeactivateAttribute, granting access to errors and metadata"""
|
|
555
|
-
url = self.base_url + "/policy.attributes.AttributesService/DeactivateAttribute"
|
|
556
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.DeactivateAttributeResponse,extra_headers, timeout_seconds)
|
|
557
|
-
|
|
558
|
-
async def deactivate_attribute(
|
|
559
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
560
|
-
) -> policy.attributes.attributes_pb2.DeactivateAttributeResponse:
|
|
561
|
-
response = await self.call_deactivate_attribute(req, extra_headers, timeout_seconds)
|
|
562
|
-
err = response.error()
|
|
563
|
-
if err is not None:
|
|
564
|
-
raise err
|
|
565
|
-
msg = response.message()
|
|
566
|
-
if msg is None:
|
|
567
|
-
raise ConnectProtocolError('missing response message')
|
|
568
|
-
return msg
|
|
569
|
-
|
|
570
|
-
async def call_get_attribute_value(
|
|
571
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
572
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.GetAttributeValueResponse]:
|
|
573
|
-
"""Low-level method to call GetAttributeValue, granting access to errors and metadata"""
|
|
574
|
-
url = self.base_url + "/policy.attributes.AttributesService/GetAttributeValue"
|
|
575
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.GetAttributeValueResponse,extra_headers, timeout_seconds)
|
|
576
|
-
|
|
577
|
-
async def get_attribute_value(
|
|
578
|
-
self, req: policy.attributes.attributes_pb2.GetAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
579
|
-
) -> policy.attributes.attributes_pb2.GetAttributeValueResponse:
|
|
580
|
-
response = await self.call_get_attribute_value(req, extra_headers, timeout_seconds)
|
|
581
|
-
err = response.error()
|
|
582
|
-
if err is not None:
|
|
583
|
-
raise err
|
|
584
|
-
msg = response.message()
|
|
585
|
-
if msg is None:
|
|
586
|
-
raise ConnectProtocolError('missing response message')
|
|
587
|
-
return msg
|
|
588
|
-
|
|
589
|
-
async def call_create_attribute_value(
|
|
590
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
591
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.CreateAttributeValueResponse]:
|
|
592
|
-
"""Low-level method to call CreateAttributeValue, granting access to errors and metadata"""
|
|
593
|
-
url = self.base_url + "/policy.attributes.AttributesService/CreateAttributeValue"
|
|
594
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.CreateAttributeValueResponse,extra_headers, timeout_seconds)
|
|
595
|
-
|
|
596
|
-
async def create_attribute_value(
|
|
597
|
-
self, req: policy.attributes.attributes_pb2.CreateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
598
|
-
) -> policy.attributes.attributes_pb2.CreateAttributeValueResponse:
|
|
599
|
-
response = await self.call_create_attribute_value(req, extra_headers, timeout_seconds)
|
|
600
|
-
err = response.error()
|
|
601
|
-
if err is not None:
|
|
602
|
-
raise err
|
|
603
|
-
msg = response.message()
|
|
604
|
-
if msg is None:
|
|
605
|
-
raise ConnectProtocolError('missing response message')
|
|
606
|
-
return msg
|
|
607
|
-
|
|
608
|
-
async def call_update_attribute_value(
|
|
609
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
610
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.UpdateAttributeValueResponse]:
|
|
611
|
-
"""Low-level method to call UpdateAttributeValue, granting access to errors and metadata"""
|
|
612
|
-
url = self.base_url + "/policy.attributes.AttributesService/UpdateAttributeValue"
|
|
613
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.UpdateAttributeValueResponse,extra_headers, timeout_seconds)
|
|
614
|
-
|
|
615
|
-
async def update_attribute_value(
|
|
616
|
-
self, req: policy.attributes.attributes_pb2.UpdateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
617
|
-
) -> policy.attributes.attributes_pb2.UpdateAttributeValueResponse:
|
|
618
|
-
response = await self.call_update_attribute_value(req, extra_headers, timeout_seconds)
|
|
619
|
-
err = response.error()
|
|
620
|
-
if err is not None:
|
|
621
|
-
raise err
|
|
622
|
-
msg = response.message()
|
|
623
|
-
if msg is None:
|
|
624
|
-
raise ConnectProtocolError('missing response message')
|
|
625
|
-
return msg
|
|
626
|
-
|
|
627
|
-
async def call_deactivate_attribute_value(
|
|
628
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
629
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.DeactivateAttributeValueResponse]:
|
|
630
|
-
"""Low-level method to call DeactivateAttributeValue, granting access to errors and metadata"""
|
|
631
|
-
url = self.base_url + "/policy.attributes.AttributesService/DeactivateAttributeValue"
|
|
632
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.DeactivateAttributeValueResponse,extra_headers, timeout_seconds)
|
|
633
|
-
|
|
634
|
-
async def deactivate_attribute_value(
|
|
635
|
-
self, req: policy.attributes.attributes_pb2.DeactivateAttributeValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
636
|
-
) -> policy.attributes.attributes_pb2.DeactivateAttributeValueResponse:
|
|
637
|
-
response = await self.call_deactivate_attribute_value(req, extra_headers, timeout_seconds)
|
|
638
|
-
err = response.error()
|
|
639
|
-
if err is not None:
|
|
640
|
-
raise err
|
|
641
|
-
msg = response.message()
|
|
642
|
-
if msg is None:
|
|
643
|
-
raise ConnectProtocolError('missing response message')
|
|
644
|
-
return msg
|
|
645
|
-
|
|
646
|
-
async def call_assign_key_access_server_to_attribute(
|
|
647
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
648
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse]:
|
|
649
|
-
"""Low-level method to call AssignKeyAccessServerToAttribute, granting access to errors and metadata"""
|
|
650
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignKeyAccessServerToAttribute"
|
|
651
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse,extra_headers, timeout_seconds)
|
|
652
|
-
|
|
653
|
-
async def assign_key_access_server_to_attribute(
|
|
654
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
655
|
-
) -> policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse:
|
|
656
|
-
response = await self.call_assign_key_access_server_to_attribute(req, extra_headers, timeout_seconds)
|
|
657
|
-
err = response.error()
|
|
658
|
-
if err is not None:
|
|
659
|
-
raise err
|
|
660
|
-
msg = response.message()
|
|
661
|
-
if msg is None:
|
|
662
|
-
raise ConnectProtocolError('missing response message')
|
|
663
|
-
return msg
|
|
664
|
-
|
|
665
|
-
async def call_remove_key_access_server_from_attribute(
|
|
666
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
667
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse]:
|
|
668
|
-
"""Low-level method to call RemoveKeyAccessServerFromAttribute, granting access to errors and metadata"""
|
|
669
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemoveKeyAccessServerFromAttribute"
|
|
670
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse,extra_headers, timeout_seconds)
|
|
671
|
-
|
|
672
|
-
async def remove_key_access_server_from_attribute(
|
|
673
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
674
|
-
) -> policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse:
|
|
675
|
-
response = await self.call_remove_key_access_server_from_attribute(req, extra_headers, timeout_seconds)
|
|
676
|
-
err = response.error()
|
|
677
|
-
if err is not None:
|
|
678
|
-
raise err
|
|
679
|
-
msg = response.message()
|
|
680
|
-
if msg is None:
|
|
681
|
-
raise ConnectProtocolError('missing response message')
|
|
682
|
-
return msg
|
|
683
|
-
|
|
684
|
-
async def call_assign_key_access_server_to_value(
|
|
685
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
686
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse]:
|
|
687
|
-
"""Low-level method to call AssignKeyAccessServerToValue, granting access to errors and metadata"""
|
|
688
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignKeyAccessServerToValue"
|
|
689
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse,extra_headers, timeout_seconds)
|
|
690
|
-
|
|
691
|
-
async def assign_key_access_server_to_value(
|
|
692
|
-
self, req: policy.attributes.attributes_pb2.AssignKeyAccessServerToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
693
|
-
) -> policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse:
|
|
694
|
-
response = await self.call_assign_key_access_server_to_value(req, extra_headers, timeout_seconds)
|
|
695
|
-
err = response.error()
|
|
696
|
-
if err is not None:
|
|
697
|
-
raise err
|
|
698
|
-
msg = response.message()
|
|
699
|
-
if msg is None:
|
|
700
|
-
raise ConnectProtocolError('missing response message')
|
|
701
|
-
return msg
|
|
702
|
-
|
|
703
|
-
async def call_remove_key_access_server_from_value(
|
|
704
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
705
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse]:
|
|
706
|
-
"""Low-level method to call RemoveKeyAccessServerFromValue, granting access to errors and metadata"""
|
|
707
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemoveKeyAccessServerFromValue"
|
|
708
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse,extra_headers, timeout_seconds)
|
|
709
|
-
|
|
710
|
-
async def remove_key_access_server_from_value(
|
|
711
|
-
self, req: policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
712
|
-
) -> policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse:
|
|
713
|
-
response = await self.call_remove_key_access_server_from_value(req, extra_headers, timeout_seconds)
|
|
714
|
-
err = response.error()
|
|
715
|
-
if err is not None:
|
|
716
|
-
raise err
|
|
717
|
-
msg = response.message()
|
|
718
|
-
if msg is None:
|
|
719
|
-
raise ConnectProtocolError('missing response message')
|
|
720
|
-
return msg
|
|
721
|
-
|
|
722
|
-
async def call_assign_public_key_to_attribute(
|
|
723
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
724
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse]:
|
|
725
|
-
"""Low-level method to call AssignPublicKeyToAttribute, granting access to errors and metadata"""
|
|
726
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignPublicKeyToAttribute"
|
|
727
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse,extra_headers, timeout_seconds)
|
|
728
|
-
|
|
729
|
-
async def assign_public_key_to_attribute(
|
|
730
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
731
|
-
) -> policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse:
|
|
732
|
-
response = await self.call_assign_public_key_to_attribute(req, extra_headers, timeout_seconds)
|
|
733
|
-
err = response.error()
|
|
734
|
-
if err is not None:
|
|
735
|
-
raise err
|
|
736
|
-
msg = response.message()
|
|
737
|
-
if msg is None:
|
|
738
|
-
raise ConnectProtocolError('missing response message')
|
|
739
|
-
return msg
|
|
740
|
-
|
|
741
|
-
async def call_remove_public_key_from_attribute(
|
|
742
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
743
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse]:
|
|
744
|
-
"""Low-level method to call RemovePublicKeyFromAttribute, granting access to errors and metadata"""
|
|
745
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemovePublicKeyFromAttribute"
|
|
746
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse,extra_headers, timeout_seconds)
|
|
747
|
-
|
|
748
|
-
async def remove_public_key_from_attribute(
|
|
749
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
750
|
-
) -> policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse:
|
|
751
|
-
response = await self.call_remove_public_key_from_attribute(req, extra_headers, timeout_seconds)
|
|
752
|
-
err = response.error()
|
|
753
|
-
if err is not None:
|
|
754
|
-
raise err
|
|
755
|
-
msg = response.message()
|
|
756
|
-
if msg is None:
|
|
757
|
-
raise ConnectProtocolError('missing response message')
|
|
758
|
-
return msg
|
|
759
|
-
|
|
760
|
-
async def call_assign_public_key_to_value(
|
|
761
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
762
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse]:
|
|
763
|
-
"""Low-level method to call AssignPublicKeyToValue, granting access to errors and metadata"""
|
|
764
|
-
url = self.base_url + "/policy.attributes.AttributesService/AssignPublicKeyToValue"
|
|
765
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse,extra_headers, timeout_seconds)
|
|
766
|
-
|
|
767
|
-
async def assign_public_key_to_value(
|
|
768
|
-
self, req: policy.attributes.attributes_pb2.AssignPublicKeyToValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
769
|
-
) -> policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse:
|
|
770
|
-
response = await self.call_assign_public_key_to_value(req, extra_headers, timeout_seconds)
|
|
771
|
-
err = response.error()
|
|
772
|
-
if err is not None:
|
|
773
|
-
raise err
|
|
774
|
-
msg = response.message()
|
|
775
|
-
if msg is None:
|
|
776
|
-
raise ConnectProtocolError('missing response message')
|
|
777
|
-
return msg
|
|
778
|
-
|
|
779
|
-
async def call_remove_public_key_from_value(
|
|
780
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
781
|
-
) -> UnaryOutput[policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse]:
|
|
782
|
-
"""Low-level method to call RemovePublicKeyFromValue, granting access to errors and metadata"""
|
|
783
|
-
url = self.base_url + "/policy.attributes.AttributesService/RemovePublicKeyFromValue"
|
|
784
|
-
return await self._connect_client.call_unary(url, req, policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse,extra_headers, timeout_seconds)
|
|
785
|
-
|
|
786
|
-
async def remove_public_key_from_value(
|
|
787
|
-
self, req: policy.attributes.attributes_pb2.RemovePublicKeyFromValueRequest,extra_headers: HeaderInput | None=None, timeout_seconds: float | None=None
|
|
788
|
-
) -> policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse:
|
|
789
|
-
response = await self.call_remove_public_key_from_value(req, extra_headers, timeout_seconds)
|
|
790
|
-
err = response.error()
|
|
791
|
-
if err is not None:
|
|
792
|
-
raise err
|
|
793
|
-
msg = response.message()
|
|
794
|
-
if msg is None:
|
|
795
|
-
raise ConnectProtocolError('missing response message')
|
|
796
|
-
return msg
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
@typing.runtime_checkable
|
|
800
|
-
class AttributesServiceProtocol(typing.Protocol):
|
|
801
|
-
def list_attributes(self, req: ClientRequest[policy.attributes.attributes_pb2.ListAttributesRequest]) -> ServerResponse[policy.attributes.attributes_pb2.ListAttributesResponse]:
|
|
802
|
-
...
|
|
803
|
-
def list_attribute_values(self, req: ClientRequest[policy.attributes.attributes_pb2.ListAttributeValuesRequest]) -> ServerResponse[policy.attributes.attributes_pb2.ListAttributeValuesResponse]:
|
|
804
|
-
...
|
|
805
|
-
def get_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.GetAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.GetAttributeResponse]:
|
|
806
|
-
...
|
|
807
|
-
def get_attribute_values_by_fqns(self, req: ClientRequest[policy.attributes.attributes_pb2.GetAttributeValuesByFqnsRequest]) -> ServerResponse[policy.attributes.attributes_pb2.GetAttributeValuesByFqnsResponse]:
|
|
808
|
-
...
|
|
809
|
-
def create_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.CreateAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.CreateAttributeResponse]:
|
|
810
|
-
...
|
|
811
|
-
def update_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.UpdateAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.UpdateAttributeResponse]:
|
|
812
|
-
...
|
|
813
|
-
def deactivate_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.DeactivateAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.DeactivateAttributeResponse]:
|
|
814
|
-
...
|
|
815
|
-
def get_attribute_value(self, req: ClientRequest[policy.attributes.attributes_pb2.GetAttributeValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.GetAttributeValueResponse]:
|
|
816
|
-
...
|
|
817
|
-
def create_attribute_value(self, req: ClientRequest[policy.attributes.attributes_pb2.CreateAttributeValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.CreateAttributeValueResponse]:
|
|
818
|
-
...
|
|
819
|
-
def update_attribute_value(self, req: ClientRequest[policy.attributes.attributes_pb2.UpdateAttributeValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.UpdateAttributeValueResponse]:
|
|
820
|
-
...
|
|
821
|
-
def deactivate_attribute_value(self, req: ClientRequest[policy.attributes.attributes_pb2.DeactivateAttributeValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.DeactivateAttributeValueResponse]:
|
|
822
|
-
...
|
|
823
|
-
def assign_key_access_server_to_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeResponse]:
|
|
824
|
-
...
|
|
825
|
-
def remove_key_access_server_from_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeResponse]:
|
|
826
|
-
...
|
|
827
|
-
def assign_key_access_server_to_value(self, req: ClientRequest[policy.attributes.attributes_pb2.AssignKeyAccessServerToValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.AssignKeyAccessServerToValueResponse]:
|
|
828
|
-
...
|
|
829
|
-
def remove_key_access_server_from_value(self, req: ClientRequest[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueResponse]:
|
|
830
|
-
...
|
|
831
|
-
def assign_public_key_to_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.AssignPublicKeyToAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.AssignPublicKeyToAttributeResponse]:
|
|
832
|
-
...
|
|
833
|
-
def remove_public_key_from_attribute(self, req: ClientRequest[policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeRequest]) -> ServerResponse[policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeResponse]:
|
|
834
|
-
...
|
|
835
|
-
def assign_public_key_to_value(self, req: ClientRequest[policy.attributes.attributes_pb2.AssignPublicKeyToValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.AssignPublicKeyToValueResponse]:
|
|
836
|
-
...
|
|
837
|
-
def remove_public_key_from_value(self, req: ClientRequest[policy.attributes.attributes_pb2.RemovePublicKeyFromValueRequest]) -> ServerResponse[policy.attributes.attributes_pb2.RemovePublicKeyFromValueResponse]:
|
|
838
|
-
...
|
|
839
|
-
|
|
840
|
-
ATTRIBUTES_SERVICE_PATH_PREFIX = "/policy.attributes.AttributesService"
|
|
841
|
-
|
|
842
|
-
def wsgi_attributes_service(implementation: AttributesServiceProtocol) -> WSGIApplication:
|
|
843
|
-
app = ConnectWSGI()
|
|
844
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/ListAttributes", implementation.list_attributes, policy.attributes.attributes_pb2.ListAttributesRequest)
|
|
845
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/ListAttributeValues", implementation.list_attribute_values, policy.attributes.attributes_pb2.ListAttributeValuesRequest)
|
|
846
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/GetAttribute", implementation.get_attribute, policy.attributes.attributes_pb2.GetAttributeRequest)
|
|
847
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/GetAttributeValuesByFqns", implementation.get_attribute_values_by_fqns, policy.attributes.attributes_pb2.GetAttributeValuesByFqnsRequest)
|
|
848
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/CreateAttribute", implementation.create_attribute, policy.attributes.attributes_pb2.CreateAttributeRequest)
|
|
849
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/UpdateAttribute", implementation.update_attribute, policy.attributes.attributes_pb2.UpdateAttributeRequest)
|
|
850
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/DeactivateAttribute", implementation.deactivate_attribute, policy.attributes.attributes_pb2.DeactivateAttributeRequest)
|
|
851
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/GetAttributeValue", implementation.get_attribute_value, policy.attributes.attributes_pb2.GetAttributeValueRequest)
|
|
852
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/CreateAttributeValue", implementation.create_attribute_value, policy.attributes.attributes_pb2.CreateAttributeValueRequest)
|
|
853
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/UpdateAttributeValue", implementation.update_attribute_value, policy.attributes.attributes_pb2.UpdateAttributeValueRequest)
|
|
854
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/DeactivateAttributeValue", implementation.deactivate_attribute_value, policy.attributes.attributes_pb2.DeactivateAttributeValueRequest)
|
|
855
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/AssignKeyAccessServerToAttribute", implementation.assign_key_access_server_to_attribute, policy.attributes.attributes_pb2.AssignKeyAccessServerToAttributeRequest)
|
|
856
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/RemoveKeyAccessServerFromAttribute", implementation.remove_key_access_server_from_attribute, policy.attributes.attributes_pb2.RemoveKeyAccessServerFromAttributeRequest)
|
|
857
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/AssignKeyAccessServerToValue", implementation.assign_key_access_server_to_value, policy.attributes.attributes_pb2.AssignKeyAccessServerToValueRequest)
|
|
858
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/RemoveKeyAccessServerFromValue", implementation.remove_key_access_server_from_value, policy.attributes.attributes_pb2.RemoveKeyAccessServerFromValueRequest)
|
|
859
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/AssignPublicKeyToAttribute", implementation.assign_public_key_to_attribute, policy.attributes.attributes_pb2.AssignPublicKeyToAttributeRequest)
|
|
860
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/RemovePublicKeyFromAttribute", implementation.remove_public_key_from_attribute, policy.attributes.attributes_pb2.RemovePublicKeyFromAttributeRequest)
|
|
861
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/AssignPublicKeyToValue", implementation.assign_public_key_to_value, policy.attributes.attributes_pb2.AssignPublicKeyToValueRequest)
|
|
862
|
-
app.register_unary_rpc("/policy.attributes.AttributesService/RemovePublicKeyFromValue", implementation.remove_public_key_from_value, policy.attributes.attributes_pb2.RemovePublicKeyFromValueRequest)
|
|
863
|
-
return app
|