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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. otdf_python/__init__.py +25 -0
  2. otdf_python/__main__.py +12 -0
  3. otdf_python/address_normalizer.py +84 -0
  4. otdf_python/aesgcm.py +55 -0
  5. otdf_python/assertion_config.py +84 -0
  6. otdf_python/asym_crypto.py +85 -0
  7. otdf_python/asym_decryption.py +53 -0
  8. otdf_python/asym_encryption.py +75 -0
  9. otdf_python/auth_headers.py +21 -0
  10. otdf_python/autoconfigure_utils.py +113 -0
  11. otdf_python/cli.py +570 -0
  12. otdf_python/collection_store.py +41 -0
  13. otdf_python/collection_store_impl.py +22 -0
  14. otdf_python/config.py +69 -0
  15. otdf_python/connect_client.py +0 -0
  16. otdf_python/constants.py +1 -0
  17. otdf_python/crypto_utils.py +78 -0
  18. otdf_python/dpop.py +81 -0
  19. otdf_python/ecc_mode.py +32 -0
  20. otdf_python/eckeypair.py +75 -0
  21. otdf_python/header.py +143 -0
  22. otdf_python/invalid_zip_exception.py +8 -0
  23. otdf_python/kas_client.py +603 -0
  24. otdf_python/kas_connect_rpc_client.py +207 -0
  25. otdf_python/kas_info.py +25 -0
  26. otdf_python/kas_key_cache.py +52 -0
  27. otdf_python/key_type.py +31 -0
  28. otdf_python/key_type_constants.py +43 -0
  29. otdf_python/manifest.py +215 -0
  30. otdf_python/nanotdf.py +553 -0
  31. otdf_python/nanotdf_ecdsa_struct.py +132 -0
  32. otdf_python/nanotdf_type.py +43 -0
  33. otdf_python/policy_binding_serializer.py +39 -0
  34. otdf_python/policy_info.py +78 -0
  35. otdf_python/policy_object.py +22 -0
  36. otdf_python/policy_stub.py +2 -0
  37. otdf_python/resource_locator.py +44 -0
  38. otdf_python/sdk.py +528 -0
  39. otdf_python/sdk_builder.py +448 -0
  40. otdf_python/sdk_exceptions.py +16 -0
  41. otdf_python/symmetric_and_payload_config.py +30 -0
  42. otdf_python/tdf.py +479 -0
  43. otdf_python/tdf_reader.py +153 -0
  44. otdf_python/tdf_writer.py +23 -0
  45. otdf_python/token_source.py +34 -0
  46. otdf_python/version.py +57 -0
  47. otdf_python/zip_reader.py +47 -0
  48. otdf_python/zip_writer.py +70 -0
  49. otdf_python-0.3.0.dist-info/METADATA +231 -0
  50. otdf_python-0.3.0.dist-info/RECORD +137 -0
  51. {otdf_python-0.1.10.dist-info → otdf_python-0.3.0.dist-info}/WHEEL +1 -2
  52. {otdf_python-0.1.10.dist-info → otdf_python-0.3.0.dist-info/licenses}/LICENSE +1 -1
  53. otdf_python_proto/__init__.py +37 -0
  54. otdf_python_proto/authorization/__init__.py +1 -0
  55. otdf_python_proto/authorization/authorization_pb2.py +80 -0
  56. otdf_python_proto/authorization/authorization_pb2.pyi +161 -0
  57. otdf_python_proto/authorization/authorization_pb2_connect.py +191 -0
  58. otdf_python_proto/authorization/v2/authorization_pb2.py +105 -0
  59. otdf_python_proto/authorization/v2/authorization_pb2.pyi +134 -0
  60. otdf_python_proto/authorization/v2/authorization_pb2_connect.py +233 -0
  61. otdf_python_proto/common/__init__.py +1 -0
  62. otdf_python_proto/common/common_pb2.py +52 -0
  63. otdf_python_proto/common/common_pb2.pyi +61 -0
  64. otdf_python_proto/entity/__init__.py +1 -0
  65. otdf_python_proto/entity/entity_pb2.py +47 -0
  66. otdf_python_proto/entity/entity_pb2.pyi +50 -0
  67. otdf_python_proto/entityresolution/__init__.py +1 -0
  68. otdf_python_proto/entityresolution/entity_resolution_pb2.py +57 -0
  69. otdf_python_proto/entityresolution/entity_resolution_pb2.pyi +55 -0
  70. otdf_python_proto/entityresolution/entity_resolution_pb2_connect.py +149 -0
  71. otdf_python_proto/entityresolution/v2/entity_resolution_pb2.py +55 -0
  72. otdf_python_proto/entityresolution/v2/entity_resolution_pb2.pyi +55 -0
  73. otdf_python_proto/entityresolution/v2/entity_resolution_pb2_connect.py +149 -0
  74. otdf_python_proto/kas/__init__.py +9 -0
  75. otdf_python_proto/kas/kas_pb2.py +103 -0
  76. otdf_python_proto/kas/kas_pb2.pyi +170 -0
  77. otdf_python_proto/kas/kas_pb2_connect.py +192 -0
  78. otdf_python_proto/legacy_grpc/__init__.py +1 -0
  79. otdf_python_proto/legacy_grpc/authorization/authorization_pb2_grpc.py +163 -0
  80. otdf_python_proto/legacy_grpc/authorization/v2/authorization_pb2_grpc.py +206 -0
  81. otdf_python_proto/legacy_grpc/common/common_pb2_grpc.py +4 -0
  82. otdf_python_proto/legacy_grpc/entity/entity_pb2_grpc.py +4 -0
  83. otdf_python_proto/legacy_grpc/entityresolution/entity_resolution_pb2_grpc.py +122 -0
  84. otdf_python_proto/legacy_grpc/entityresolution/v2/entity_resolution_pb2_grpc.py +120 -0
  85. otdf_python_proto/legacy_grpc/kas/kas_pb2_grpc.py +172 -0
  86. otdf_python_proto/legacy_grpc/logger/audit/test_pb2_grpc.py +4 -0
  87. otdf_python_proto/legacy_grpc/policy/actions/actions_pb2_grpc.py +249 -0
  88. otdf_python_proto/legacy_grpc/policy/attributes/attributes_pb2_grpc.py +873 -0
  89. otdf_python_proto/legacy_grpc/policy/kasregistry/key_access_server_registry_pb2_grpc.py +602 -0
  90. otdf_python_proto/legacy_grpc/policy/keymanagement/key_management_pb2_grpc.py +251 -0
  91. otdf_python_proto/legacy_grpc/policy/namespaces/namespaces_pb2_grpc.py +427 -0
  92. otdf_python_proto/legacy_grpc/policy/objects_pb2_grpc.py +4 -0
  93. otdf_python_proto/legacy_grpc/policy/registeredresources/registered_resources_pb2_grpc.py +524 -0
  94. otdf_python_proto/legacy_grpc/policy/resourcemapping/resource_mapping_pb2_grpc.py +516 -0
  95. otdf_python_proto/legacy_grpc/policy/selectors_pb2_grpc.py +4 -0
  96. otdf_python_proto/legacy_grpc/policy/subjectmapping/subject_mapping_pb2_grpc.py +551 -0
  97. otdf_python_proto/legacy_grpc/policy/unsafe/unsafe_pb2_grpc.py +485 -0
  98. otdf_python_proto/legacy_grpc/wellknownconfiguration/wellknown_configuration_pb2_grpc.py +77 -0
  99. otdf_python_proto/logger/__init__.py +1 -0
  100. otdf_python_proto/logger/audit/test_pb2.py +43 -0
  101. otdf_python_proto/logger/audit/test_pb2.pyi +45 -0
  102. otdf_python_proto/policy/__init__.py +1 -0
  103. otdf_python_proto/policy/actions/actions_pb2.py +75 -0
  104. otdf_python_proto/policy/actions/actions_pb2.pyi +87 -0
  105. otdf_python_proto/policy/actions/actions_pb2_connect.py +275 -0
  106. otdf_python_proto/policy/attributes/attributes_pb2.py +234 -0
  107. otdf_python_proto/policy/attributes/attributes_pb2.pyi +328 -0
  108. otdf_python_proto/policy/attributes/attributes_pb2_connect.py +863 -0
  109. otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2.py +266 -0
  110. otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2.pyi +450 -0
  111. otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2_connect.py +611 -0
  112. otdf_python_proto/policy/keymanagement/key_management_pb2.py +79 -0
  113. otdf_python_proto/policy/keymanagement/key_management_pb2.pyi +87 -0
  114. otdf_python_proto/policy/keymanagement/key_management_pb2_connect.py +275 -0
  115. otdf_python_proto/policy/namespaces/namespaces_pb2.py +117 -0
  116. otdf_python_proto/policy/namespaces/namespaces_pb2.pyi +147 -0
  117. otdf_python_proto/policy/namespaces/namespaces_pb2_connect.py +443 -0
  118. otdf_python_proto/policy/objects_pb2.py +150 -0
  119. otdf_python_proto/policy/objects_pb2.pyi +464 -0
  120. otdf_python_proto/policy/registeredresources/registered_resources_pb2.py +139 -0
  121. otdf_python_proto/policy/registeredresources/registered_resources_pb2.pyi +196 -0
  122. otdf_python_proto/policy/registeredresources/registered_resources_pb2_connect.py +527 -0
  123. otdf_python_proto/policy/resourcemapping/resource_mapping_pb2.py +139 -0
  124. otdf_python_proto/policy/resourcemapping/resource_mapping_pb2.pyi +194 -0
  125. otdf_python_proto/policy/resourcemapping/resource_mapping_pb2_connect.py +527 -0
  126. otdf_python_proto/policy/selectors_pb2.py +57 -0
  127. otdf_python_proto/policy/selectors_pb2.pyi +90 -0
  128. otdf_python_proto/policy/subjectmapping/subject_mapping_pb2.py +127 -0
  129. otdf_python_proto/policy/subjectmapping/subject_mapping_pb2.pyi +189 -0
  130. otdf_python_proto/policy/subjectmapping/subject_mapping_pb2_connect.py +569 -0
  131. otdf_python_proto/policy/unsafe/unsafe_pb2.py +113 -0
  132. otdf_python_proto/policy/unsafe/unsafe_pb2.pyi +145 -0
  133. otdf_python_proto/policy/unsafe/unsafe_pb2_connect.py +485 -0
  134. otdf_python_proto/wellknownconfiguration/__init__.py +1 -0
  135. otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2.py +51 -0
  136. otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2.pyi +32 -0
  137. otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2_connect.py +107 -0
  138. otdf_python/_gotdf_python.cpython-312-darwin.so +0 -0
  139. otdf_python/build.py +0 -190
  140. otdf_python/go.py +0 -1478
  141. otdf_python/gotdf_python.py +0 -383
  142. otdf_python-0.1.10.dist-info/METADATA +0 -149
  143. otdf_python-0.1.10.dist-info/RECORD +0 -10
  144. otdf_python-0.1.10.dist-info/top_level.txt +0 -1
@@ -0,0 +1,551 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from policy.subjectmapping import subject_mapping_pb2 as policy_dot_subjectmapping_dot_subject__mapping__pb2
6
+
7
+
8
+ class SubjectMappingServiceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.MatchSubjectMappings = channel.unary_unary(
18
+ '/policy.subjectmapping.SubjectMappingService/MatchSubjectMappings',
19
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.MatchSubjectMappingsRequest.SerializeToString,
20
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.MatchSubjectMappingsResponse.FromString,
21
+ _registered_method=True)
22
+ self.ListSubjectMappings = channel.unary_unary(
23
+ '/policy.subjectmapping.SubjectMappingService/ListSubjectMappings',
24
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectMappingsRequest.SerializeToString,
25
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectMappingsResponse.FromString,
26
+ _registered_method=True)
27
+ self.GetSubjectMapping = channel.unary_unary(
28
+ '/policy.subjectmapping.SubjectMappingService/GetSubjectMapping',
29
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectMappingRequest.SerializeToString,
30
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectMappingResponse.FromString,
31
+ _registered_method=True)
32
+ self.CreateSubjectMapping = channel.unary_unary(
33
+ '/policy.subjectmapping.SubjectMappingService/CreateSubjectMapping',
34
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectMappingRequest.SerializeToString,
35
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectMappingResponse.FromString,
36
+ _registered_method=True)
37
+ self.UpdateSubjectMapping = channel.unary_unary(
38
+ '/policy.subjectmapping.SubjectMappingService/UpdateSubjectMapping',
39
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectMappingRequest.SerializeToString,
40
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectMappingResponse.FromString,
41
+ _registered_method=True)
42
+ self.DeleteSubjectMapping = channel.unary_unary(
43
+ '/policy.subjectmapping.SubjectMappingService/DeleteSubjectMapping',
44
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectMappingRequest.SerializeToString,
45
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectMappingResponse.FromString,
46
+ _registered_method=True)
47
+ self.ListSubjectConditionSets = channel.unary_unary(
48
+ '/policy.subjectmapping.SubjectMappingService/ListSubjectConditionSets',
49
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectConditionSetsRequest.SerializeToString,
50
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectConditionSetsResponse.FromString,
51
+ _registered_method=True)
52
+ self.GetSubjectConditionSet = channel.unary_unary(
53
+ '/policy.subjectmapping.SubjectMappingService/GetSubjectConditionSet',
54
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectConditionSetRequest.SerializeToString,
55
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectConditionSetResponse.FromString,
56
+ _registered_method=True)
57
+ self.CreateSubjectConditionSet = channel.unary_unary(
58
+ '/policy.subjectmapping.SubjectMappingService/CreateSubjectConditionSet',
59
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectConditionSetRequest.SerializeToString,
60
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectConditionSetResponse.FromString,
61
+ _registered_method=True)
62
+ self.UpdateSubjectConditionSet = channel.unary_unary(
63
+ '/policy.subjectmapping.SubjectMappingService/UpdateSubjectConditionSet',
64
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectConditionSetRequest.SerializeToString,
65
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectConditionSetResponse.FromString,
66
+ _registered_method=True)
67
+ self.DeleteSubjectConditionSet = channel.unary_unary(
68
+ '/policy.subjectmapping.SubjectMappingService/DeleteSubjectConditionSet',
69
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectConditionSetRequest.SerializeToString,
70
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectConditionSetResponse.FromString,
71
+ _registered_method=True)
72
+ self.DeleteAllUnmappedSubjectConditionSets = channel.unary_unary(
73
+ '/policy.subjectmapping.SubjectMappingService/DeleteAllUnmappedSubjectConditionSets',
74
+ request_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteAllUnmappedSubjectConditionSetsRequest.SerializeToString,
75
+ response_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteAllUnmappedSubjectConditionSetsResponse.FromString,
76
+ _registered_method=True)
77
+
78
+
79
+ class SubjectMappingServiceServicer(object):
80
+ """Missing associated documentation comment in .proto file."""
81
+
82
+ def MatchSubjectMappings(self, request, context):
83
+ """Find matching Subject Mappings for a given Subject
84
+ """
85
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
+ context.set_details('Method not implemented!')
87
+ raise NotImplementedError('Method not implemented!')
88
+
89
+ def ListSubjectMappings(self, request, context):
90
+ """Missing associated documentation comment in .proto file."""
91
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
92
+ context.set_details('Method not implemented!')
93
+ raise NotImplementedError('Method not implemented!')
94
+
95
+ def GetSubjectMapping(self, request, context):
96
+ """Missing associated documentation comment in .proto file."""
97
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
98
+ context.set_details('Method not implemented!')
99
+ raise NotImplementedError('Method not implemented!')
100
+
101
+ def CreateSubjectMapping(self, request, context):
102
+ """Missing associated documentation comment in .proto file."""
103
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
104
+ context.set_details('Method not implemented!')
105
+ raise NotImplementedError('Method not implemented!')
106
+
107
+ def UpdateSubjectMapping(self, request, context):
108
+ """Missing associated documentation comment in .proto file."""
109
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
110
+ context.set_details('Method not implemented!')
111
+ raise NotImplementedError('Method not implemented!')
112
+
113
+ def DeleteSubjectMapping(self, request, context):
114
+ """Missing associated documentation comment in .proto file."""
115
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
116
+ context.set_details('Method not implemented!')
117
+ raise NotImplementedError('Method not implemented!')
118
+
119
+ def ListSubjectConditionSets(self, request, context):
120
+ """Missing associated documentation comment in .proto file."""
121
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
122
+ context.set_details('Method not implemented!')
123
+ raise NotImplementedError('Method not implemented!')
124
+
125
+ def GetSubjectConditionSet(self, request, context):
126
+ """Missing associated documentation comment in .proto file."""
127
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
128
+ context.set_details('Method not implemented!')
129
+ raise NotImplementedError('Method not implemented!')
130
+
131
+ def CreateSubjectConditionSet(self, request, context):
132
+ """Missing associated documentation comment in .proto file."""
133
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
134
+ context.set_details('Method not implemented!')
135
+ raise NotImplementedError('Method not implemented!')
136
+
137
+ def UpdateSubjectConditionSet(self, request, context):
138
+ """Missing associated documentation comment in .proto file."""
139
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
140
+ context.set_details('Method not implemented!')
141
+ raise NotImplementedError('Method not implemented!')
142
+
143
+ def DeleteSubjectConditionSet(self, request, context):
144
+ """Missing associated documentation comment in .proto file."""
145
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
146
+ context.set_details('Method not implemented!')
147
+ raise NotImplementedError('Method not implemented!')
148
+
149
+ def DeleteAllUnmappedSubjectConditionSets(self, request, context):
150
+ """Missing associated documentation comment in .proto file."""
151
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
152
+ context.set_details('Method not implemented!')
153
+ raise NotImplementedError('Method not implemented!')
154
+
155
+
156
+ def add_SubjectMappingServiceServicer_to_server(servicer, server):
157
+ rpc_method_handlers = {
158
+ 'MatchSubjectMappings': grpc.unary_unary_rpc_method_handler(
159
+ servicer.MatchSubjectMappings,
160
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.MatchSubjectMappingsRequest.FromString,
161
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.MatchSubjectMappingsResponse.SerializeToString,
162
+ ),
163
+ 'ListSubjectMappings': grpc.unary_unary_rpc_method_handler(
164
+ servicer.ListSubjectMappings,
165
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectMappingsRequest.FromString,
166
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectMappingsResponse.SerializeToString,
167
+ ),
168
+ 'GetSubjectMapping': grpc.unary_unary_rpc_method_handler(
169
+ servicer.GetSubjectMapping,
170
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectMappingRequest.FromString,
171
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectMappingResponse.SerializeToString,
172
+ ),
173
+ 'CreateSubjectMapping': grpc.unary_unary_rpc_method_handler(
174
+ servicer.CreateSubjectMapping,
175
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectMappingRequest.FromString,
176
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectMappingResponse.SerializeToString,
177
+ ),
178
+ 'UpdateSubjectMapping': grpc.unary_unary_rpc_method_handler(
179
+ servicer.UpdateSubjectMapping,
180
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectMappingRequest.FromString,
181
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectMappingResponse.SerializeToString,
182
+ ),
183
+ 'DeleteSubjectMapping': grpc.unary_unary_rpc_method_handler(
184
+ servicer.DeleteSubjectMapping,
185
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectMappingRequest.FromString,
186
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectMappingResponse.SerializeToString,
187
+ ),
188
+ 'ListSubjectConditionSets': grpc.unary_unary_rpc_method_handler(
189
+ servicer.ListSubjectConditionSets,
190
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectConditionSetsRequest.FromString,
191
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectConditionSetsResponse.SerializeToString,
192
+ ),
193
+ 'GetSubjectConditionSet': grpc.unary_unary_rpc_method_handler(
194
+ servicer.GetSubjectConditionSet,
195
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectConditionSetRequest.FromString,
196
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectConditionSetResponse.SerializeToString,
197
+ ),
198
+ 'CreateSubjectConditionSet': grpc.unary_unary_rpc_method_handler(
199
+ servicer.CreateSubjectConditionSet,
200
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectConditionSetRequest.FromString,
201
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectConditionSetResponse.SerializeToString,
202
+ ),
203
+ 'UpdateSubjectConditionSet': grpc.unary_unary_rpc_method_handler(
204
+ servicer.UpdateSubjectConditionSet,
205
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectConditionSetRequest.FromString,
206
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectConditionSetResponse.SerializeToString,
207
+ ),
208
+ 'DeleteSubjectConditionSet': grpc.unary_unary_rpc_method_handler(
209
+ servicer.DeleteSubjectConditionSet,
210
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectConditionSetRequest.FromString,
211
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectConditionSetResponse.SerializeToString,
212
+ ),
213
+ 'DeleteAllUnmappedSubjectConditionSets': grpc.unary_unary_rpc_method_handler(
214
+ servicer.DeleteAllUnmappedSubjectConditionSets,
215
+ request_deserializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteAllUnmappedSubjectConditionSetsRequest.FromString,
216
+ response_serializer=policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteAllUnmappedSubjectConditionSetsResponse.SerializeToString,
217
+ ),
218
+ }
219
+ generic_handler = grpc.method_handlers_generic_handler(
220
+ 'policy.subjectmapping.SubjectMappingService', rpc_method_handlers)
221
+ server.add_generic_rpc_handlers((generic_handler,))
222
+ server.add_registered_method_handlers('policy.subjectmapping.SubjectMappingService', rpc_method_handlers)
223
+
224
+
225
+ # This class is part of an EXPERIMENTAL API.
226
+ class SubjectMappingService(object):
227
+ """Missing associated documentation comment in .proto file."""
228
+
229
+ @staticmethod
230
+ def MatchSubjectMappings(request,
231
+ target,
232
+ options=(),
233
+ channel_credentials=None,
234
+ call_credentials=None,
235
+ insecure=False,
236
+ compression=None,
237
+ wait_for_ready=None,
238
+ timeout=None,
239
+ metadata=None):
240
+ return grpc.experimental.unary_unary(
241
+ request,
242
+ target,
243
+ '/policy.subjectmapping.SubjectMappingService/MatchSubjectMappings',
244
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.MatchSubjectMappingsRequest.SerializeToString,
245
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.MatchSubjectMappingsResponse.FromString,
246
+ options,
247
+ channel_credentials,
248
+ insecure,
249
+ call_credentials,
250
+ compression,
251
+ wait_for_ready,
252
+ timeout,
253
+ metadata,
254
+ _registered_method=True)
255
+
256
+ @staticmethod
257
+ def ListSubjectMappings(request,
258
+ target,
259
+ options=(),
260
+ channel_credentials=None,
261
+ call_credentials=None,
262
+ insecure=False,
263
+ compression=None,
264
+ wait_for_ready=None,
265
+ timeout=None,
266
+ metadata=None):
267
+ return grpc.experimental.unary_unary(
268
+ request,
269
+ target,
270
+ '/policy.subjectmapping.SubjectMappingService/ListSubjectMappings',
271
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectMappingsRequest.SerializeToString,
272
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectMappingsResponse.FromString,
273
+ options,
274
+ channel_credentials,
275
+ insecure,
276
+ call_credentials,
277
+ compression,
278
+ wait_for_ready,
279
+ timeout,
280
+ metadata,
281
+ _registered_method=True)
282
+
283
+ @staticmethod
284
+ def GetSubjectMapping(request,
285
+ target,
286
+ options=(),
287
+ channel_credentials=None,
288
+ call_credentials=None,
289
+ insecure=False,
290
+ compression=None,
291
+ wait_for_ready=None,
292
+ timeout=None,
293
+ metadata=None):
294
+ return grpc.experimental.unary_unary(
295
+ request,
296
+ target,
297
+ '/policy.subjectmapping.SubjectMappingService/GetSubjectMapping',
298
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectMappingRequest.SerializeToString,
299
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectMappingResponse.FromString,
300
+ options,
301
+ channel_credentials,
302
+ insecure,
303
+ call_credentials,
304
+ compression,
305
+ wait_for_ready,
306
+ timeout,
307
+ metadata,
308
+ _registered_method=True)
309
+
310
+ @staticmethod
311
+ def CreateSubjectMapping(request,
312
+ target,
313
+ options=(),
314
+ channel_credentials=None,
315
+ call_credentials=None,
316
+ insecure=False,
317
+ compression=None,
318
+ wait_for_ready=None,
319
+ timeout=None,
320
+ metadata=None):
321
+ return grpc.experimental.unary_unary(
322
+ request,
323
+ target,
324
+ '/policy.subjectmapping.SubjectMappingService/CreateSubjectMapping',
325
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectMappingRequest.SerializeToString,
326
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectMappingResponse.FromString,
327
+ options,
328
+ channel_credentials,
329
+ insecure,
330
+ call_credentials,
331
+ compression,
332
+ wait_for_ready,
333
+ timeout,
334
+ metadata,
335
+ _registered_method=True)
336
+
337
+ @staticmethod
338
+ def UpdateSubjectMapping(request,
339
+ target,
340
+ options=(),
341
+ channel_credentials=None,
342
+ call_credentials=None,
343
+ insecure=False,
344
+ compression=None,
345
+ wait_for_ready=None,
346
+ timeout=None,
347
+ metadata=None):
348
+ return grpc.experimental.unary_unary(
349
+ request,
350
+ target,
351
+ '/policy.subjectmapping.SubjectMappingService/UpdateSubjectMapping',
352
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectMappingRequest.SerializeToString,
353
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectMappingResponse.FromString,
354
+ options,
355
+ channel_credentials,
356
+ insecure,
357
+ call_credentials,
358
+ compression,
359
+ wait_for_ready,
360
+ timeout,
361
+ metadata,
362
+ _registered_method=True)
363
+
364
+ @staticmethod
365
+ def DeleteSubjectMapping(request,
366
+ target,
367
+ options=(),
368
+ channel_credentials=None,
369
+ call_credentials=None,
370
+ insecure=False,
371
+ compression=None,
372
+ wait_for_ready=None,
373
+ timeout=None,
374
+ metadata=None):
375
+ return grpc.experimental.unary_unary(
376
+ request,
377
+ target,
378
+ '/policy.subjectmapping.SubjectMappingService/DeleteSubjectMapping',
379
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectMappingRequest.SerializeToString,
380
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectMappingResponse.FromString,
381
+ options,
382
+ channel_credentials,
383
+ insecure,
384
+ call_credentials,
385
+ compression,
386
+ wait_for_ready,
387
+ timeout,
388
+ metadata,
389
+ _registered_method=True)
390
+
391
+ @staticmethod
392
+ def ListSubjectConditionSets(request,
393
+ target,
394
+ options=(),
395
+ channel_credentials=None,
396
+ call_credentials=None,
397
+ insecure=False,
398
+ compression=None,
399
+ wait_for_ready=None,
400
+ timeout=None,
401
+ metadata=None):
402
+ return grpc.experimental.unary_unary(
403
+ request,
404
+ target,
405
+ '/policy.subjectmapping.SubjectMappingService/ListSubjectConditionSets',
406
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectConditionSetsRequest.SerializeToString,
407
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.ListSubjectConditionSetsResponse.FromString,
408
+ options,
409
+ channel_credentials,
410
+ insecure,
411
+ call_credentials,
412
+ compression,
413
+ wait_for_ready,
414
+ timeout,
415
+ metadata,
416
+ _registered_method=True)
417
+
418
+ @staticmethod
419
+ def GetSubjectConditionSet(request,
420
+ target,
421
+ options=(),
422
+ channel_credentials=None,
423
+ call_credentials=None,
424
+ insecure=False,
425
+ compression=None,
426
+ wait_for_ready=None,
427
+ timeout=None,
428
+ metadata=None):
429
+ return grpc.experimental.unary_unary(
430
+ request,
431
+ target,
432
+ '/policy.subjectmapping.SubjectMappingService/GetSubjectConditionSet',
433
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectConditionSetRequest.SerializeToString,
434
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.GetSubjectConditionSetResponse.FromString,
435
+ options,
436
+ channel_credentials,
437
+ insecure,
438
+ call_credentials,
439
+ compression,
440
+ wait_for_ready,
441
+ timeout,
442
+ metadata,
443
+ _registered_method=True)
444
+
445
+ @staticmethod
446
+ def CreateSubjectConditionSet(request,
447
+ target,
448
+ options=(),
449
+ channel_credentials=None,
450
+ call_credentials=None,
451
+ insecure=False,
452
+ compression=None,
453
+ wait_for_ready=None,
454
+ timeout=None,
455
+ metadata=None):
456
+ return grpc.experimental.unary_unary(
457
+ request,
458
+ target,
459
+ '/policy.subjectmapping.SubjectMappingService/CreateSubjectConditionSet',
460
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectConditionSetRequest.SerializeToString,
461
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.CreateSubjectConditionSetResponse.FromString,
462
+ options,
463
+ channel_credentials,
464
+ insecure,
465
+ call_credentials,
466
+ compression,
467
+ wait_for_ready,
468
+ timeout,
469
+ metadata,
470
+ _registered_method=True)
471
+
472
+ @staticmethod
473
+ def UpdateSubjectConditionSet(request,
474
+ target,
475
+ options=(),
476
+ channel_credentials=None,
477
+ call_credentials=None,
478
+ insecure=False,
479
+ compression=None,
480
+ wait_for_ready=None,
481
+ timeout=None,
482
+ metadata=None):
483
+ return grpc.experimental.unary_unary(
484
+ request,
485
+ target,
486
+ '/policy.subjectmapping.SubjectMappingService/UpdateSubjectConditionSet',
487
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectConditionSetRequest.SerializeToString,
488
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.UpdateSubjectConditionSetResponse.FromString,
489
+ options,
490
+ channel_credentials,
491
+ insecure,
492
+ call_credentials,
493
+ compression,
494
+ wait_for_ready,
495
+ timeout,
496
+ metadata,
497
+ _registered_method=True)
498
+
499
+ @staticmethod
500
+ def DeleteSubjectConditionSet(request,
501
+ target,
502
+ options=(),
503
+ channel_credentials=None,
504
+ call_credentials=None,
505
+ insecure=False,
506
+ compression=None,
507
+ wait_for_ready=None,
508
+ timeout=None,
509
+ metadata=None):
510
+ return grpc.experimental.unary_unary(
511
+ request,
512
+ target,
513
+ '/policy.subjectmapping.SubjectMappingService/DeleteSubjectConditionSet',
514
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectConditionSetRequest.SerializeToString,
515
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteSubjectConditionSetResponse.FromString,
516
+ options,
517
+ channel_credentials,
518
+ insecure,
519
+ call_credentials,
520
+ compression,
521
+ wait_for_ready,
522
+ timeout,
523
+ metadata,
524
+ _registered_method=True)
525
+
526
+ @staticmethod
527
+ def DeleteAllUnmappedSubjectConditionSets(request,
528
+ target,
529
+ options=(),
530
+ channel_credentials=None,
531
+ call_credentials=None,
532
+ insecure=False,
533
+ compression=None,
534
+ wait_for_ready=None,
535
+ timeout=None,
536
+ metadata=None):
537
+ return grpc.experimental.unary_unary(
538
+ request,
539
+ target,
540
+ '/policy.subjectmapping.SubjectMappingService/DeleteAllUnmappedSubjectConditionSets',
541
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteAllUnmappedSubjectConditionSetsRequest.SerializeToString,
542
+ policy_dot_subjectmapping_dot_subject__mapping__pb2.DeleteAllUnmappedSubjectConditionSetsResponse.FromString,
543
+ options,
544
+ channel_credentials,
545
+ insecure,
546
+ call_credentials,
547
+ compression,
548
+ wait_for_ready,
549
+ timeout,
550
+ metadata,
551
+ _registered_method=True)