otdf-python 0.1.10__py3-none-any.whl → 0.3.1__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/__init__.py +25 -0
- otdf_python/__main__.py +12 -0
- otdf_python/address_normalizer.py +84 -0
- otdf_python/aesgcm.py +55 -0
- otdf_python/assertion_config.py +84 -0
- otdf_python/asym_crypto.py +85 -0
- otdf_python/asym_decryption.py +53 -0
- otdf_python/asym_encryption.py +75 -0
- otdf_python/auth_headers.py +21 -0
- otdf_python/autoconfigure_utils.py +113 -0
- otdf_python/cli.py +570 -0
- otdf_python/collection_store.py +41 -0
- otdf_python/collection_store_impl.py +22 -0
- otdf_python/config.py +69 -0
- otdf_python/connect_client.py +0 -0
- otdf_python/constants.py +1 -0
- otdf_python/crypto_utils.py +78 -0
- otdf_python/dpop.py +81 -0
- otdf_python/ecc_mode.py +32 -0
- otdf_python/eckeypair.py +75 -0
- otdf_python/header.py +143 -0
- otdf_python/invalid_zip_exception.py +8 -0
- otdf_python/kas_client.py +603 -0
- otdf_python/kas_connect_rpc_client.py +207 -0
- otdf_python/kas_info.py +25 -0
- otdf_python/kas_key_cache.py +52 -0
- otdf_python/key_type.py +31 -0
- otdf_python/key_type_constants.py +43 -0
- otdf_python/manifest.py +215 -0
- otdf_python/nanotdf.py +553 -0
- otdf_python/nanotdf_ecdsa_struct.py +132 -0
- otdf_python/nanotdf_type.py +43 -0
- otdf_python/policy_binding_serializer.py +39 -0
- otdf_python/policy_info.py +78 -0
- otdf_python/policy_object.py +22 -0
- otdf_python/policy_stub.py +2 -0
- otdf_python/resource_locator.py +44 -0
- otdf_python/sdk.py +528 -0
- otdf_python/sdk_builder.py +448 -0
- otdf_python/sdk_exceptions.py +16 -0
- otdf_python/symmetric_and_payload_config.py +30 -0
- otdf_python/tdf.py +479 -0
- otdf_python/tdf_reader.py +153 -0
- otdf_python/tdf_writer.py +23 -0
- otdf_python/token_source.py +34 -0
- otdf_python/version.py +57 -0
- otdf_python/zip_reader.py +47 -0
- otdf_python/zip_writer.py +70 -0
- otdf_python-0.3.1.dist-info/METADATA +231 -0
- otdf_python-0.3.1.dist-info/RECORD +137 -0
- {otdf_python-0.1.10.dist-info → otdf_python-0.3.1.dist-info}/WHEEL +1 -2
- {otdf_python-0.1.10.dist-info → otdf_python-0.3.1.dist-info/licenses}/LICENSE +1 -1
- otdf_python_proto/__init__.py +37 -0
- otdf_python_proto/authorization/__init__.py +1 -0
- otdf_python_proto/authorization/authorization_pb2.py +80 -0
- otdf_python_proto/authorization/authorization_pb2.pyi +161 -0
- otdf_python_proto/authorization/authorization_pb2_connect.py +191 -0
- otdf_python_proto/authorization/v2/authorization_pb2.py +105 -0
- otdf_python_proto/authorization/v2/authorization_pb2.pyi +134 -0
- otdf_python_proto/authorization/v2/authorization_pb2_connect.py +233 -0
- otdf_python_proto/common/__init__.py +1 -0
- otdf_python_proto/common/common_pb2.py +52 -0
- otdf_python_proto/common/common_pb2.pyi +61 -0
- otdf_python_proto/entity/__init__.py +1 -0
- otdf_python_proto/entity/entity_pb2.py +47 -0
- otdf_python_proto/entity/entity_pb2.pyi +50 -0
- otdf_python_proto/entityresolution/__init__.py +1 -0
- otdf_python_proto/entityresolution/entity_resolution_pb2.py +57 -0
- otdf_python_proto/entityresolution/entity_resolution_pb2.pyi +55 -0
- otdf_python_proto/entityresolution/entity_resolution_pb2_connect.py +149 -0
- otdf_python_proto/entityresolution/v2/entity_resolution_pb2.py +55 -0
- otdf_python_proto/entityresolution/v2/entity_resolution_pb2.pyi +55 -0
- otdf_python_proto/entityresolution/v2/entity_resolution_pb2_connect.py +149 -0
- otdf_python_proto/kas/__init__.py +9 -0
- otdf_python_proto/kas/kas_pb2.py +103 -0
- otdf_python_proto/kas/kas_pb2.pyi +170 -0
- otdf_python_proto/kas/kas_pb2_connect.py +192 -0
- otdf_python_proto/legacy_grpc/__init__.py +1 -0
- otdf_python_proto/legacy_grpc/authorization/authorization_pb2_grpc.py +163 -0
- otdf_python_proto/legacy_grpc/authorization/v2/authorization_pb2_grpc.py +206 -0
- otdf_python_proto/legacy_grpc/common/common_pb2_grpc.py +4 -0
- otdf_python_proto/legacy_grpc/entity/entity_pb2_grpc.py +4 -0
- otdf_python_proto/legacy_grpc/entityresolution/entity_resolution_pb2_grpc.py +122 -0
- otdf_python_proto/legacy_grpc/entityresolution/v2/entity_resolution_pb2_grpc.py +120 -0
- otdf_python_proto/legacy_grpc/kas/kas_pb2_grpc.py +172 -0
- otdf_python_proto/legacy_grpc/logger/audit/test_pb2_grpc.py +4 -0
- otdf_python_proto/legacy_grpc/policy/actions/actions_pb2_grpc.py +249 -0
- otdf_python_proto/legacy_grpc/policy/attributes/attributes_pb2_grpc.py +873 -0
- otdf_python_proto/legacy_grpc/policy/kasregistry/key_access_server_registry_pb2_grpc.py +602 -0
- otdf_python_proto/legacy_grpc/policy/keymanagement/key_management_pb2_grpc.py +251 -0
- otdf_python_proto/legacy_grpc/policy/namespaces/namespaces_pb2_grpc.py +427 -0
- otdf_python_proto/legacy_grpc/policy/objects_pb2_grpc.py +4 -0
- otdf_python_proto/legacy_grpc/policy/registeredresources/registered_resources_pb2_grpc.py +524 -0
- otdf_python_proto/legacy_grpc/policy/resourcemapping/resource_mapping_pb2_grpc.py +516 -0
- otdf_python_proto/legacy_grpc/policy/selectors_pb2_grpc.py +4 -0
- otdf_python_proto/legacy_grpc/policy/subjectmapping/subject_mapping_pb2_grpc.py +551 -0
- otdf_python_proto/legacy_grpc/policy/unsafe/unsafe_pb2_grpc.py +485 -0
- otdf_python_proto/legacy_grpc/wellknownconfiguration/wellknown_configuration_pb2_grpc.py +77 -0
- otdf_python_proto/logger/__init__.py +1 -0
- otdf_python_proto/logger/audit/test_pb2.py +43 -0
- otdf_python_proto/logger/audit/test_pb2.pyi +45 -0
- otdf_python_proto/policy/__init__.py +1 -0
- otdf_python_proto/policy/actions/actions_pb2.py +75 -0
- otdf_python_proto/policy/actions/actions_pb2.pyi +87 -0
- otdf_python_proto/policy/actions/actions_pb2_connect.py +275 -0
- otdf_python_proto/policy/attributes/attributes_pb2.py +234 -0
- otdf_python_proto/policy/attributes/attributes_pb2.pyi +328 -0
- otdf_python_proto/policy/attributes/attributes_pb2_connect.py +863 -0
- otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2.py +266 -0
- otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2.pyi +450 -0
- otdf_python_proto/policy/kasregistry/key_access_server_registry_pb2_connect.py +611 -0
- otdf_python_proto/policy/keymanagement/key_management_pb2.py +79 -0
- otdf_python_proto/policy/keymanagement/key_management_pb2.pyi +87 -0
- otdf_python_proto/policy/keymanagement/key_management_pb2_connect.py +275 -0
- otdf_python_proto/policy/namespaces/namespaces_pb2.py +117 -0
- otdf_python_proto/policy/namespaces/namespaces_pb2.pyi +147 -0
- otdf_python_proto/policy/namespaces/namespaces_pb2_connect.py +443 -0
- otdf_python_proto/policy/objects_pb2.py +150 -0
- otdf_python_proto/policy/objects_pb2.pyi +464 -0
- otdf_python_proto/policy/registeredresources/registered_resources_pb2.py +139 -0
- otdf_python_proto/policy/registeredresources/registered_resources_pb2.pyi +196 -0
- otdf_python_proto/policy/registeredresources/registered_resources_pb2_connect.py +527 -0
- otdf_python_proto/policy/resourcemapping/resource_mapping_pb2.py +139 -0
- otdf_python_proto/policy/resourcemapping/resource_mapping_pb2.pyi +194 -0
- otdf_python_proto/policy/resourcemapping/resource_mapping_pb2_connect.py +527 -0
- otdf_python_proto/policy/selectors_pb2.py +57 -0
- otdf_python_proto/policy/selectors_pb2.pyi +90 -0
- otdf_python_proto/policy/subjectmapping/subject_mapping_pb2.py +127 -0
- otdf_python_proto/policy/subjectmapping/subject_mapping_pb2.pyi +189 -0
- otdf_python_proto/policy/subjectmapping/subject_mapping_pb2_connect.py +569 -0
- otdf_python_proto/policy/unsafe/unsafe_pb2.py +113 -0
- otdf_python_proto/policy/unsafe/unsafe_pb2.pyi +145 -0
- otdf_python_proto/policy/unsafe/unsafe_pb2_connect.py +485 -0
- otdf_python_proto/wellknownconfiguration/__init__.py +1 -0
- otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2.py +51 -0
- otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2.pyi +32 -0
- otdf_python_proto/wellknownconfiguration/wellknown_configuration_pb2_connect.py +107 -0
- otdf_python/_gotdf_python.cpython-312-darwin.so +0 -0
- otdf_python/build.py +0 -190
- otdf_python/go.py +0 -1478
- otdf_python/gotdf_python.py +0 -383
- otdf_python-0.1.10.dist-info/METADATA +0 -149
- otdf_python-0.1.10.dist-info/RECORD +0 -10
- otdf_python-0.1.10.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
from google.protobuf import descriptor as _descriptor
|
|
2
|
+
from google.protobuf import message as _message
|
|
3
|
+
from collections.abc import Mapping as _Mapping
|
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class AttributeNamespaceSelector(_message.Message):
|
|
9
|
+
__slots__ = ("with_attributes",)
|
|
10
|
+
class AttributeSelector(_message.Message):
|
|
11
|
+
__slots__ = ("with_key_access_grants", "with_values")
|
|
12
|
+
class ValueSelector(_message.Message):
|
|
13
|
+
__slots__ = ("with_key_access_grants", "with_subject_maps", "with_resource_maps")
|
|
14
|
+
WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
WITH_SUBJECT_MAPS_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
WITH_RESOURCE_MAPS_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
with_key_access_grants: bool
|
|
18
|
+
with_subject_maps: bool
|
|
19
|
+
with_resource_maps: bool
|
|
20
|
+
def __init__(self, with_key_access_grants: bool = ..., with_subject_maps: bool = ..., with_resource_maps: bool = ...) -> None: ...
|
|
21
|
+
WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
WITH_VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
with_key_access_grants: bool
|
|
24
|
+
with_values: AttributeNamespaceSelector.AttributeSelector.ValueSelector
|
|
25
|
+
def __init__(self, with_key_access_grants: bool = ..., with_values: _Optional[_Union[AttributeNamespaceSelector.AttributeSelector.ValueSelector, _Mapping]] = ...) -> None: ...
|
|
26
|
+
WITH_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
with_attributes: AttributeNamespaceSelector.AttributeSelector
|
|
28
|
+
def __init__(self, with_attributes: _Optional[_Union[AttributeNamespaceSelector.AttributeSelector, _Mapping]] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class AttributeDefinitionSelector(_message.Message):
|
|
31
|
+
__slots__ = ("with_key_access_grants", "with_namespace", "with_values")
|
|
32
|
+
class NamespaceSelector(_message.Message):
|
|
33
|
+
__slots__ = ()
|
|
34
|
+
def __init__(self) -> None: ...
|
|
35
|
+
class ValueSelector(_message.Message):
|
|
36
|
+
__slots__ = ("with_key_access_grants", "with_subject_maps", "with_resource_maps")
|
|
37
|
+
WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
WITH_SUBJECT_MAPS_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
WITH_RESOURCE_MAPS_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
with_key_access_grants: bool
|
|
41
|
+
with_subject_maps: bool
|
|
42
|
+
with_resource_maps: bool
|
|
43
|
+
def __init__(self, with_key_access_grants: bool = ..., with_subject_maps: bool = ..., with_resource_maps: bool = ...) -> None: ...
|
|
44
|
+
WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
WITH_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
WITH_VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
with_key_access_grants: bool
|
|
48
|
+
with_namespace: AttributeDefinitionSelector.NamespaceSelector
|
|
49
|
+
with_values: AttributeDefinitionSelector.ValueSelector
|
|
50
|
+
def __init__(self, with_key_access_grants: bool = ..., with_namespace: _Optional[_Union[AttributeDefinitionSelector.NamespaceSelector, _Mapping]] = ..., with_values: _Optional[_Union[AttributeDefinitionSelector.ValueSelector, _Mapping]] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class AttributeValueSelector(_message.Message):
|
|
53
|
+
__slots__ = ("with_key_access_grants", "with_subject_maps", "with_resource_maps", "with_attribute")
|
|
54
|
+
class AttributeSelector(_message.Message):
|
|
55
|
+
__slots__ = ("with_key_access_grants", "with_namespace")
|
|
56
|
+
class NamespaceSelector(_message.Message):
|
|
57
|
+
__slots__ = ()
|
|
58
|
+
def __init__(self) -> None: ...
|
|
59
|
+
WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
WITH_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
with_key_access_grants: bool
|
|
62
|
+
with_namespace: AttributeValueSelector.AttributeSelector.NamespaceSelector
|
|
63
|
+
def __init__(self, with_key_access_grants: bool = ..., with_namespace: _Optional[_Union[AttributeValueSelector.AttributeSelector.NamespaceSelector, _Mapping]] = ...) -> None: ...
|
|
64
|
+
WITH_KEY_ACCESS_GRANTS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
WITH_SUBJECT_MAPS_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
WITH_RESOURCE_MAPS_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
WITH_ATTRIBUTE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
with_key_access_grants: bool
|
|
69
|
+
with_subject_maps: bool
|
|
70
|
+
with_resource_maps: bool
|
|
71
|
+
with_attribute: AttributeValueSelector.AttributeSelector
|
|
72
|
+
def __init__(self, with_key_access_grants: bool = ..., with_subject_maps: bool = ..., with_resource_maps: bool = ..., with_attribute: _Optional[_Union[AttributeValueSelector.AttributeSelector, _Mapping]] = ...) -> None: ...
|
|
73
|
+
|
|
74
|
+
class PageRequest(_message.Message):
|
|
75
|
+
__slots__ = ("limit", "offset")
|
|
76
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
limit: int
|
|
79
|
+
offset: int
|
|
80
|
+
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ...
|
|
81
|
+
|
|
82
|
+
class PageResponse(_message.Message):
|
|
83
|
+
__slots__ = ("current_offset", "next_offset", "total")
|
|
84
|
+
CURRENT_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
+
NEXT_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
current_offset: int
|
|
88
|
+
next_offset: int
|
|
89
|
+
total: int
|
|
90
|
+
def __init__(self, current_offset: _Optional[int] = ..., next_offset: _Optional[int] = ..., total: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: policy/subjectmapping/subject_mapping.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'policy/subjectmapping/subject_mapping.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from common import common_pb2 as common_dot_common__pb2
|
|
27
|
+
from policy import objects_pb2 as policy_dot_objects__pb2
|
|
28
|
+
from policy import selectors_pb2 as policy_dot_selectors__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+policy/subjectmapping/subject_mapping.proto\x12\x15policy.subjectmapping\x1a\x1b\x62uf/validate/validate.proto\x1a\x13\x63ommon/common.proto\x1a\x14policy/objects.proto\x1a\x16policy/selectors.proto\"o\n\x1bMatchSubjectMappingsRequest\x12P\n\x12subject_properties\x18\x01 \x03(\x0b\x32\x17.policy.SubjectPropertyB\x08\xbaH\x05\x92\x01\x02\x08\x01R\x11subjectProperties\"a\n\x1cMatchSubjectMappingsResponse\x12\x41\n\x10subject_mappings\x18\x01 \x03(\x0b\x32\x16.policy.SubjectMappingR\x0fsubjectMappings\"4\n\x18GetSubjectMappingRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"\\\n\x19GetSubjectMappingResponse\x12?\n\x0fsubject_mapping\x18\x01 \x01(\x0b\x32\x16.policy.SubjectMappingR\x0esubjectMapping\"Q\n\x1aListSubjectMappingsRequest\x12\x33\n\npagination\x18\n \x01(\x0b\x32\x13.policy.PageRequestR\npagination\"\x96\x01\n\x1bListSubjectMappingsResponse\x12\x41\n\x10subject_mappings\x18\x01 \x03(\x0b\x32\x16.policy.SubjectMappingR\x0fsubjectMappings\x12\x34\n\npagination\x18\n \x01(\x0b\x32\x14.policy.PageResponseR\npagination\"\xb3\x05\n\x1b\x43reateSubjectMappingRequest\x12\x36\n\x12\x61ttribute_value_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x10\x61ttributeValueId\x12\xb8\x01\n\x07\x61\x63tions\x18\x02 \x03(\x0b\x32\x0e.policy.ActionB\x8d\x01\xbaH\x89\x01\x92\x01\x02\x08\x01\xba\x01\x80\x01\n\x1b\x61\x63tion_name_or_id_not_empty\x12/Action name or ID must not be empty if provided\x1a\x30this.all(item, item.name != \'\' || item.id != \'\')R\x07\x61\x63tions\x12\xfe\x01\n!existing_subject_condition_set_id\x18\x03 \x01(\tB\xb3\x01\xbaH\xaf\x01\xba\x01\xab\x01\n\x14optional_uuid_format\x12#Optional field must be a valid UUID\x1ansize(this) == 0 || this.matches(\'[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\')R\x1d\x65xistingSubjectConditionSetId\x12k\n\x19new_subject_condition_set\x18\x04 \x01(\x0b\x32\x30.policy.subjectmapping.SubjectConditionSetCreateR\x16newSubjectConditionSet\x12\x33\n\x08metadata\x18\x64 \x01(\x0b\x32\x17.common.MetadataMutableR\x08metadata\"_\n\x1c\x43reateSubjectMappingResponse\x12?\n\x0fsubject_mapping\x18\x01 \x01(\x0b\x32\x16.policy.SubjectMappingR\x0esubjectMapping\"\xfc\x04\n\x1bUpdateSubjectMappingRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\xed\x01\n\x18subject_condition_set_id\x18\x02 \x01(\tB\xb3\x01\xbaH\xaf\x01\xba\x01\xab\x01\n\x14optional_uuid_format\x12#Optional field must be a valid UUID\x1ansize(this) == 0 || this.matches(\'[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\')R\x15subjectConditionSetId\x12\xc7\x01\n\x07\x61\x63tions\x18\x03 \x03(\x0b\x32\x0e.policy.ActionB\x9c\x01\xbaH\x98\x01\xba\x01\x94\x01\n\x1b\x61\x63tion_name_or_id_not_empty\x12/Action name or ID must not be empty if provided\x1a\x44this.size() == 0 || this.all(item, item.name != \'\' || item.id != \'\')R\x07\x61\x63tions\x12\x33\n\x08metadata\x18\x64 \x01(\x0b\x32\x17.common.MetadataMutableR\x08metadata\x12T\n\x18metadata_update_behavior\x18\x65 \x01(\x0e\x32\x1a.common.MetadataUpdateEnumR\x16metadataUpdateBehavior\"_\n\x1cUpdateSubjectMappingResponse\x12?\n\x0fsubject_mapping\x18\x01 \x01(\x0b\x32\x16.policy.SubjectMappingR\x0esubjectMapping\"7\n\x1b\x44\x65leteSubjectMappingRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"_\n\x1c\x44\x65leteSubjectMappingResponse\x12?\n\x0fsubject_mapping\x18\x01 \x01(\x0b\x32\x16.policy.SubjectMappingR\x0esubjectMapping\"9\n\x1dGetSubjectConditionSetRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"\xc9\x01\n\x1eGetSubjectConditionSetResponse\x12O\n\x15subject_condition_set\x18\x01 \x01(\x0b\x32\x1b.policy.SubjectConditionSetR\x13subjectConditionSet\x12V\n\x1b\x61ssociated_subject_mappings\x18\x02 \x03(\x0b\x32\x16.policy.SubjectMappingR\x19\x61ssociatedSubjectMappings\"V\n\x1fListSubjectConditionSetsRequest\x12\x33\n\npagination\x18\n \x01(\x0b\x32\x13.policy.PageRequestR\npagination\"\xab\x01\n ListSubjectConditionSetsResponse\x12Q\n\x16subject_condition_sets\x18\x01 \x03(\x0b\x32\x1b.policy.SubjectConditionSetR\x14subjectConditionSets\x12\x34\n\npagination\x18\n \x01(\x0b\x32\x14.policy.PageResponseR\npagination\"\x91\x01\n\x19SubjectConditionSetCreate\x12?\n\x0csubject_sets\x18\x01 \x03(\x0b\x32\x12.policy.SubjectSetB\x08\xbaH\x05\x92\x01\x02\x08\x01R\x0bsubjectSets\x12\x33\n\x08metadata\x18\x64 \x01(\x0b\x32\x17.common.MetadataMutableR\x08metadata\"\x90\x01\n CreateSubjectConditionSetRequest\x12l\n\x15subject_condition_set\x18\x01 \x01(\x0b\x32\x30.policy.subjectmapping.SubjectConditionSetCreateB\x06\xbaH\x03\xc8\x01\x01R\x13subjectConditionSet\"t\n!CreateSubjectConditionSetResponse\x12O\n\x15subject_condition_set\x18\x01 \x01(\x0b\x32\x1b.policy.SubjectConditionSetR\x13subjectConditionSet\"\xfe\x01\n UpdateSubjectConditionSetRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\x35\n\x0csubject_sets\x18\x02 \x03(\x0b\x32\x12.policy.SubjectSetR\x0bsubjectSets\x12\x33\n\x08metadata\x18\x64 \x01(\x0b\x32\x17.common.MetadataMutableR\x08metadata\x12T\n\x18metadata_update_behavior\x18\x65 \x01(\x0e\x32\x1a.common.MetadataUpdateEnumR\x16metadataUpdateBehavior\"t\n!UpdateSubjectConditionSetResponse\x12O\n\x15subject_condition_set\x18\x01 \x01(\x0b\x32\x1b.policy.SubjectConditionSetR\x13subjectConditionSet\"<\n DeleteSubjectConditionSetRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"t\n!DeleteSubjectConditionSetResponse\x12O\n\x15subject_condition_set\x18\x01 \x01(\x0b\x32\x1b.policy.SubjectConditionSetR\x13subjectConditionSet\".\n,DeleteAllUnmappedSubjectConditionSetsRequest\"\x82\x01\n-DeleteAllUnmappedSubjectConditionSetsResponse\x12Q\n\x16subject_condition_sets\x18\x01 \x03(\x0b\x32\x1b.policy.SubjectConditionSetR\x14subjectConditionSets2\xb8\r\n\x15SubjectMappingService\x12\x81\x01\n\x14MatchSubjectMappings\x12\x32.policy.subjectmapping.MatchSubjectMappingsRequest\x1a\x33.policy.subjectmapping.MatchSubjectMappingsResponse\"\x00\x12\x81\x01\n\x13ListSubjectMappings\x12\x31.policy.subjectmapping.ListSubjectMappingsRequest\x1a\x32.policy.subjectmapping.ListSubjectMappingsResponse\"\x03\x90\x02\x01\x12{\n\x11GetSubjectMapping\x12/.policy.subjectmapping.GetSubjectMappingRequest\x1a\x30.policy.subjectmapping.GetSubjectMappingResponse\"\x03\x90\x02\x01\x12\x81\x01\n\x14\x43reateSubjectMapping\x12\x32.policy.subjectmapping.CreateSubjectMappingRequest\x1a\x33.policy.subjectmapping.CreateSubjectMappingResponse\"\x00\x12\x81\x01\n\x14UpdateSubjectMapping\x12\x32.policy.subjectmapping.UpdateSubjectMappingRequest\x1a\x33.policy.subjectmapping.UpdateSubjectMappingResponse\"\x00\x12\x81\x01\n\x14\x44\x65leteSubjectMapping\x12\x32.policy.subjectmapping.DeleteSubjectMappingRequest\x1a\x33.policy.subjectmapping.DeleteSubjectMappingResponse\"\x00\x12\x90\x01\n\x18ListSubjectConditionSets\x12\x36.policy.subjectmapping.ListSubjectConditionSetsRequest\x1a\x37.policy.subjectmapping.ListSubjectConditionSetsResponse\"\x03\x90\x02\x01\x12\x8a\x01\n\x16GetSubjectConditionSet\x12\x34.policy.subjectmapping.GetSubjectConditionSetRequest\x1a\x35.policy.subjectmapping.GetSubjectConditionSetResponse\"\x03\x90\x02\x01\x12\x90\x01\n\x19\x43reateSubjectConditionSet\x12\x37.policy.subjectmapping.CreateSubjectConditionSetRequest\x1a\x38.policy.subjectmapping.CreateSubjectConditionSetResponse\"\x00\x12\x90\x01\n\x19UpdateSubjectConditionSet\x12\x37.policy.subjectmapping.UpdateSubjectConditionSetRequest\x1a\x38.policy.subjectmapping.UpdateSubjectConditionSetResponse\"\x00\x12\x90\x01\n\x19\x44\x65leteSubjectConditionSet\x12\x37.policy.subjectmapping.DeleteSubjectConditionSetRequest\x1a\x38.policy.subjectmapping.DeleteSubjectConditionSetResponse\"\x00\x12\xb4\x01\n%DeleteAllUnmappedSubjectConditionSets\x12\x43.policy.subjectmapping.DeleteAllUnmappedSubjectConditionSetsRequest\x1a\x44.policy.subjectmapping.DeleteAllUnmappedSubjectConditionSetsResponse\"\x00\x42\xa5\x01\n\x19\x63om.policy.subjectmappingB\x13SubjectMappingProtoP\x01\xa2\x02\x03PSX\xaa\x02\x15Policy.Subjectmapping\xca\x02\x15Policy\\Subjectmapping\xe2\x02!Policy\\Subjectmapping\\GPBMetadata\xea\x02\x16Policy::Subjectmappingb\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'policy.subjectmapping.subject_mapping_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\031com.policy.subjectmappingB\023SubjectMappingProtoP\001\242\002\003PSX\252\002\025Policy.Subjectmapping\312\002\025Policy\\Subjectmapping\342\002!Policy\\Subjectmapping\\GPBMetadata\352\002\026Policy::Subjectmapping'
|
|
39
|
+
_globals['_MATCHSUBJECTMAPPINGSREQUEST'].fields_by_name['subject_properties']._loaded_options = None
|
|
40
|
+
_globals['_MATCHSUBJECTMAPPINGSREQUEST'].fields_by_name['subject_properties']._serialized_options = b'\272H\005\222\001\002\010\001'
|
|
41
|
+
_globals['_GETSUBJECTMAPPINGREQUEST'].fields_by_name['id']._loaded_options = None
|
|
42
|
+
_globals['_GETSUBJECTMAPPINGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
43
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST'].fields_by_name['attribute_value_id']._loaded_options = None
|
|
44
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST'].fields_by_name['attribute_value_id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
45
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST'].fields_by_name['actions']._loaded_options = None
|
|
46
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST'].fields_by_name['actions']._serialized_options = b'\272H\211\001\222\001\002\010\001\272\001\200\001\n\033action_name_or_id_not_empty\022/Action name or ID must not be empty if provided\0320this.all(item, item.name != \'\' || item.id != \'\')'
|
|
47
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST'].fields_by_name['existing_subject_condition_set_id']._loaded_options = None
|
|
48
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST'].fields_by_name['existing_subject_condition_set_id']._serialized_options = b'\272H\257\001\272\001\253\001\n\024optional_uuid_format\022#Optional field must be a valid UUID\032nsize(this) == 0 || this.matches(\'[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\')'
|
|
49
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST'].fields_by_name['id']._loaded_options = None
|
|
50
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
51
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST'].fields_by_name['subject_condition_set_id']._loaded_options = None
|
|
52
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST'].fields_by_name['subject_condition_set_id']._serialized_options = b'\272H\257\001\272\001\253\001\n\024optional_uuid_format\022#Optional field must be a valid UUID\032nsize(this) == 0 || this.matches(\'[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\')'
|
|
53
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST'].fields_by_name['actions']._loaded_options = None
|
|
54
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST'].fields_by_name['actions']._serialized_options = b'\272H\230\001\272\001\224\001\n\033action_name_or_id_not_empty\022/Action name or ID must not be empty if provided\032Dthis.size() == 0 || this.all(item, item.name != \'\' || item.id != \'\')'
|
|
55
|
+
_globals['_DELETESUBJECTMAPPINGREQUEST'].fields_by_name['id']._loaded_options = None
|
|
56
|
+
_globals['_DELETESUBJECTMAPPINGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
57
|
+
_globals['_GETSUBJECTCONDITIONSETREQUEST'].fields_by_name['id']._loaded_options = None
|
|
58
|
+
_globals['_GETSUBJECTCONDITIONSETREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
59
|
+
_globals['_SUBJECTCONDITIONSETCREATE'].fields_by_name['subject_sets']._loaded_options = None
|
|
60
|
+
_globals['_SUBJECTCONDITIONSETCREATE'].fields_by_name['subject_sets']._serialized_options = b'\272H\005\222\001\002\010\001'
|
|
61
|
+
_globals['_CREATESUBJECTCONDITIONSETREQUEST'].fields_by_name['subject_condition_set']._loaded_options = None
|
|
62
|
+
_globals['_CREATESUBJECTCONDITIONSETREQUEST'].fields_by_name['subject_condition_set']._serialized_options = b'\272H\003\310\001\001'
|
|
63
|
+
_globals['_UPDATESUBJECTCONDITIONSETREQUEST'].fields_by_name['id']._loaded_options = None
|
|
64
|
+
_globals['_UPDATESUBJECTCONDITIONSETREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
65
|
+
_globals['_DELETESUBJECTCONDITIONSETREQUEST'].fields_by_name['id']._loaded_options = None
|
|
66
|
+
_globals['_DELETESUBJECTCONDITIONSETREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
67
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['ListSubjectMappings']._loaded_options = None
|
|
68
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['ListSubjectMappings']._serialized_options = b'\220\002\001'
|
|
69
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['GetSubjectMapping']._loaded_options = None
|
|
70
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['GetSubjectMapping']._serialized_options = b'\220\002\001'
|
|
71
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['ListSubjectConditionSets']._loaded_options = None
|
|
72
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['ListSubjectConditionSets']._serialized_options = b'\220\002\001'
|
|
73
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['GetSubjectConditionSet']._loaded_options = None
|
|
74
|
+
_globals['_SUBJECTMAPPINGSERVICE'].methods_by_name['GetSubjectConditionSet']._serialized_options = b'\220\002\001'
|
|
75
|
+
_globals['_MATCHSUBJECTMAPPINGSREQUEST']._serialized_start=166
|
|
76
|
+
_globals['_MATCHSUBJECTMAPPINGSREQUEST']._serialized_end=277
|
|
77
|
+
_globals['_MATCHSUBJECTMAPPINGSRESPONSE']._serialized_start=279
|
|
78
|
+
_globals['_MATCHSUBJECTMAPPINGSRESPONSE']._serialized_end=376
|
|
79
|
+
_globals['_GETSUBJECTMAPPINGREQUEST']._serialized_start=378
|
|
80
|
+
_globals['_GETSUBJECTMAPPINGREQUEST']._serialized_end=430
|
|
81
|
+
_globals['_GETSUBJECTMAPPINGRESPONSE']._serialized_start=432
|
|
82
|
+
_globals['_GETSUBJECTMAPPINGRESPONSE']._serialized_end=524
|
|
83
|
+
_globals['_LISTSUBJECTMAPPINGSREQUEST']._serialized_start=526
|
|
84
|
+
_globals['_LISTSUBJECTMAPPINGSREQUEST']._serialized_end=607
|
|
85
|
+
_globals['_LISTSUBJECTMAPPINGSRESPONSE']._serialized_start=610
|
|
86
|
+
_globals['_LISTSUBJECTMAPPINGSRESPONSE']._serialized_end=760
|
|
87
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST']._serialized_start=763
|
|
88
|
+
_globals['_CREATESUBJECTMAPPINGREQUEST']._serialized_end=1454
|
|
89
|
+
_globals['_CREATESUBJECTMAPPINGRESPONSE']._serialized_start=1456
|
|
90
|
+
_globals['_CREATESUBJECTMAPPINGRESPONSE']._serialized_end=1551
|
|
91
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST']._serialized_start=1554
|
|
92
|
+
_globals['_UPDATESUBJECTMAPPINGREQUEST']._serialized_end=2190
|
|
93
|
+
_globals['_UPDATESUBJECTMAPPINGRESPONSE']._serialized_start=2192
|
|
94
|
+
_globals['_UPDATESUBJECTMAPPINGRESPONSE']._serialized_end=2287
|
|
95
|
+
_globals['_DELETESUBJECTMAPPINGREQUEST']._serialized_start=2289
|
|
96
|
+
_globals['_DELETESUBJECTMAPPINGREQUEST']._serialized_end=2344
|
|
97
|
+
_globals['_DELETESUBJECTMAPPINGRESPONSE']._serialized_start=2346
|
|
98
|
+
_globals['_DELETESUBJECTMAPPINGRESPONSE']._serialized_end=2441
|
|
99
|
+
_globals['_GETSUBJECTCONDITIONSETREQUEST']._serialized_start=2443
|
|
100
|
+
_globals['_GETSUBJECTCONDITIONSETREQUEST']._serialized_end=2500
|
|
101
|
+
_globals['_GETSUBJECTCONDITIONSETRESPONSE']._serialized_start=2503
|
|
102
|
+
_globals['_GETSUBJECTCONDITIONSETRESPONSE']._serialized_end=2704
|
|
103
|
+
_globals['_LISTSUBJECTCONDITIONSETSREQUEST']._serialized_start=2706
|
|
104
|
+
_globals['_LISTSUBJECTCONDITIONSETSREQUEST']._serialized_end=2792
|
|
105
|
+
_globals['_LISTSUBJECTCONDITIONSETSRESPONSE']._serialized_start=2795
|
|
106
|
+
_globals['_LISTSUBJECTCONDITIONSETSRESPONSE']._serialized_end=2966
|
|
107
|
+
_globals['_SUBJECTCONDITIONSETCREATE']._serialized_start=2969
|
|
108
|
+
_globals['_SUBJECTCONDITIONSETCREATE']._serialized_end=3114
|
|
109
|
+
_globals['_CREATESUBJECTCONDITIONSETREQUEST']._serialized_start=3117
|
|
110
|
+
_globals['_CREATESUBJECTCONDITIONSETREQUEST']._serialized_end=3261
|
|
111
|
+
_globals['_CREATESUBJECTCONDITIONSETRESPONSE']._serialized_start=3263
|
|
112
|
+
_globals['_CREATESUBJECTCONDITIONSETRESPONSE']._serialized_end=3379
|
|
113
|
+
_globals['_UPDATESUBJECTCONDITIONSETREQUEST']._serialized_start=3382
|
|
114
|
+
_globals['_UPDATESUBJECTCONDITIONSETREQUEST']._serialized_end=3636
|
|
115
|
+
_globals['_UPDATESUBJECTCONDITIONSETRESPONSE']._serialized_start=3638
|
|
116
|
+
_globals['_UPDATESUBJECTCONDITIONSETRESPONSE']._serialized_end=3754
|
|
117
|
+
_globals['_DELETESUBJECTCONDITIONSETREQUEST']._serialized_start=3756
|
|
118
|
+
_globals['_DELETESUBJECTCONDITIONSETREQUEST']._serialized_end=3816
|
|
119
|
+
_globals['_DELETESUBJECTCONDITIONSETRESPONSE']._serialized_start=3818
|
|
120
|
+
_globals['_DELETESUBJECTCONDITIONSETRESPONSE']._serialized_end=3934
|
|
121
|
+
_globals['_DELETEALLUNMAPPEDSUBJECTCONDITIONSETSREQUEST']._serialized_start=3936
|
|
122
|
+
_globals['_DELETEALLUNMAPPEDSUBJECTCONDITIONSETSREQUEST']._serialized_end=3982
|
|
123
|
+
_globals['_DELETEALLUNMAPPEDSUBJECTCONDITIONSETSRESPONSE']._serialized_start=3985
|
|
124
|
+
_globals['_DELETEALLUNMAPPEDSUBJECTCONDITIONSETSRESPONSE']._serialized_end=4115
|
|
125
|
+
_globals['_SUBJECTMAPPINGSERVICE']._serialized_start=4118
|
|
126
|
+
_globals['_SUBJECTMAPPINGSERVICE']._serialized_end=5838
|
|
127
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from common import common_pb2 as _common_pb2
|
|
3
|
+
from policy import objects_pb2 as _objects_pb2
|
|
4
|
+
from policy import selectors_pb2 as _selectors_pb2
|
|
5
|
+
from google.protobuf.internal import containers as _containers
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
9
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
class MatchSubjectMappingsRequest(_message.Message):
|
|
14
|
+
__slots__ = ("subject_properties",)
|
|
15
|
+
SUBJECT_PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
subject_properties: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectProperty]
|
|
17
|
+
def __init__(self, subject_properties: _Optional[_Iterable[_Union[_objects_pb2.SubjectProperty, _Mapping]]] = ...) -> None: ...
|
|
18
|
+
|
|
19
|
+
class MatchSubjectMappingsResponse(_message.Message):
|
|
20
|
+
__slots__ = ("subject_mappings",)
|
|
21
|
+
SUBJECT_MAPPINGS_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
subject_mappings: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectMapping]
|
|
23
|
+
def __init__(self, subject_mappings: _Optional[_Iterable[_Union[_objects_pb2.SubjectMapping, _Mapping]]] = ...) -> None: ...
|
|
24
|
+
|
|
25
|
+
class GetSubjectMappingRequest(_message.Message):
|
|
26
|
+
__slots__ = ("id",)
|
|
27
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
id: str
|
|
29
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
30
|
+
|
|
31
|
+
class GetSubjectMappingResponse(_message.Message):
|
|
32
|
+
__slots__ = ("subject_mapping",)
|
|
33
|
+
SUBJECT_MAPPING_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
subject_mapping: _objects_pb2.SubjectMapping
|
|
35
|
+
def __init__(self, subject_mapping: _Optional[_Union[_objects_pb2.SubjectMapping, _Mapping]] = ...) -> None: ...
|
|
36
|
+
|
|
37
|
+
class ListSubjectMappingsRequest(_message.Message):
|
|
38
|
+
__slots__ = ("pagination",)
|
|
39
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
pagination: _selectors_pb2.PageRequest
|
|
41
|
+
def __init__(self, pagination: _Optional[_Union[_selectors_pb2.PageRequest, _Mapping]] = ...) -> None: ...
|
|
42
|
+
|
|
43
|
+
class ListSubjectMappingsResponse(_message.Message):
|
|
44
|
+
__slots__ = ("subject_mappings", "pagination")
|
|
45
|
+
SUBJECT_MAPPINGS_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
subject_mappings: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectMapping]
|
|
48
|
+
pagination: _selectors_pb2.PageResponse
|
|
49
|
+
def __init__(self, subject_mappings: _Optional[_Iterable[_Union[_objects_pb2.SubjectMapping, _Mapping]]] = ..., pagination: _Optional[_Union[_selectors_pb2.PageResponse, _Mapping]] = ...) -> None: ...
|
|
50
|
+
|
|
51
|
+
class CreateSubjectMappingRequest(_message.Message):
|
|
52
|
+
__slots__ = ("attribute_value_id", "actions", "existing_subject_condition_set_id", "new_subject_condition_set", "metadata")
|
|
53
|
+
ATTRIBUTE_VALUE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
ACTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
EXISTING_SUBJECT_CONDITION_SET_ID_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
NEW_SUBJECT_CONDITION_SET_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
attribute_value_id: str
|
|
59
|
+
actions: _containers.RepeatedCompositeFieldContainer[_objects_pb2.Action]
|
|
60
|
+
existing_subject_condition_set_id: str
|
|
61
|
+
new_subject_condition_set: SubjectConditionSetCreate
|
|
62
|
+
metadata: _common_pb2.MetadataMutable
|
|
63
|
+
def __init__(self, attribute_value_id: _Optional[str] = ..., actions: _Optional[_Iterable[_Union[_objects_pb2.Action, _Mapping]]] = ..., existing_subject_condition_set_id: _Optional[str] = ..., new_subject_condition_set: _Optional[_Union[SubjectConditionSetCreate, _Mapping]] = ..., metadata: _Optional[_Union[_common_pb2.MetadataMutable, _Mapping]] = ...) -> None: ...
|
|
64
|
+
|
|
65
|
+
class CreateSubjectMappingResponse(_message.Message):
|
|
66
|
+
__slots__ = ("subject_mapping",)
|
|
67
|
+
SUBJECT_MAPPING_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
subject_mapping: _objects_pb2.SubjectMapping
|
|
69
|
+
def __init__(self, subject_mapping: _Optional[_Union[_objects_pb2.SubjectMapping, _Mapping]] = ...) -> None: ...
|
|
70
|
+
|
|
71
|
+
class UpdateSubjectMappingRequest(_message.Message):
|
|
72
|
+
__slots__ = ("id", "subject_condition_set_id", "actions", "metadata", "metadata_update_behavior")
|
|
73
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
SUBJECT_CONDITION_SET_ID_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
ACTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
METADATA_UPDATE_BEHAVIOR_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
id: str
|
|
79
|
+
subject_condition_set_id: str
|
|
80
|
+
actions: _containers.RepeatedCompositeFieldContainer[_objects_pb2.Action]
|
|
81
|
+
metadata: _common_pb2.MetadataMutable
|
|
82
|
+
metadata_update_behavior: _common_pb2.MetadataUpdateEnum
|
|
83
|
+
def __init__(self, id: _Optional[str] = ..., subject_condition_set_id: _Optional[str] = ..., actions: _Optional[_Iterable[_Union[_objects_pb2.Action, _Mapping]]] = ..., metadata: _Optional[_Union[_common_pb2.MetadataMutable, _Mapping]] = ..., metadata_update_behavior: _Optional[_Union[_common_pb2.MetadataUpdateEnum, str]] = ...) -> None: ...
|
|
84
|
+
|
|
85
|
+
class UpdateSubjectMappingResponse(_message.Message):
|
|
86
|
+
__slots__ = ("subject_mapping",)
|
|
87
|
+
SUBJECT_MAPPING_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
subject_mapping: _objects_pb2.SubjectMapping
|
|
89
|
+
def __init__(self, subject_mapping: _Optional[_Union[_objects_pb2.SubjectMapping, _Mapping]] = ...) -> None: ...
|
|
90
|
+
|
|
91
|
+
class DeleteSubjectMappingRequest(_message.Message):
|
|
92
|
+
__slots__ = ("id",)
|
|
93
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
id: str
|
|
95
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
96
|
+
|
|
97
|
+
class DeleteSubjectMappingResponse(_message.Message):
|
|
98
|
+
__slots__ = ("subject_mapping",)
|
|
99
|
+
SUBJECT_MAPPING_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
subject_mapping: _objects_pb2.SubjectMapping
|
|
101
|
+
def __init__(self, subject_mapping: _Optional[_Union[_objects_pb2.SubjectMapping, _Mapping]] = ...) -> None: ...
|
|
102
|
+
|
|
103
|
+
class GetSubjectConditionSetRequest(_message.Message):
|
|
104
|
+
__slots__ = ("id",)
|
|
105
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
id: str
|
|
107
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
108
|
+
|
|
109
|
+
class GetSubjectConditionSetResponse(_message.Message):
|
|
110
|
+
__slots__ = ("subject_condition_set", "associated_subject_mappings")
|
|
111
|
+
SUBJECT_CONDITION_SET_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
ASSOCIATED_SUBJECT_MAPPINGS_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
subject_condition_set: _objects_pb2.SubjectConditionSet
|
|
114
|
+
associated_subject_mappings: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectMapping]
|
|
115
|
+
def __init__(self, subject_condition_set: _Optional[_Union[_objects_pb2.SubjectConditionSet, _Mapping]] = ..., associated_subject_mappings: _Optional[_Iterable[_Union[_objects_pb2.SubjectMapping, _Mapping]]] = ...) -> None: ...
|
|
116
|
+
|
|
117
|
+
class ListSubjectConditionSetsRequest(_message.Message):
|
|
118
|
+
__slots__ = ("pagination",)
|
|
119
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
pagination: _selectors_pb2.PageRequest
|
|
121
|
+
def __init__(self, pagination: _Optional[_Union[_selectors_pb2.PageRequest, _Mapping]] = ...) -> None: ...
|
|
122
|
+
|
|
123
|
+
class ListSubjectConditionSetsResponse(_message.Message):
|
|
124
|
+
__slots__ = ("subject_condition_sets", "pagination")
|
|
125
|
+
SUBJECT_CONDITION_SETS_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
subject_condition_sets: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectConditionSet]
|
|
128
|
+
pagination: _selectors_pb2.PageResponse
|
|
129
|
+
def __init__(self, subject_condition_sets: _Optional[_Iterable[_Union[_objects_pb2.SubjectConditionSet, _Mapping]]] = ..., pagination: _Optional[_Union[_selectors_pb2.PageResponse, _Mapping]] = ...) -> None: ...
|
|
130
|
+
|
|
131
|
+
class SubjectConditionSetCreate(_message.Message):
|
|
132
|
+
__slots__ = ("subject_sets", "metadata")
|
|
133
|
+
SUBJECT_SETS_FIELD_NUMBER: _ClassVar[int]
|
|
134
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
135
|
+
subject_sets: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectSet]
|
|
136
|
+
metadata: _common_pb2.MetadataMutable
|
|
137
|
+
def __init__(self, subject_sets: _Optional[_Iterable[_Union[_objects_pb2.SubjectSet, _Mapping]]] = ..., metadata: _Optional[_Union[_common_pb2.MetadataMutable, _Mapping]] = ...) -> None: ...
|
|
138
|
+
|
|
139
|
+
class CreateSubjectConditionSetRequest(_message.Message):
|
|
140
|
+
__slots__ = ("subject_condition_set",)
|
|
141
|
+
SUBJECT_CONDITION_SET_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
+
subject_condition_set: SubjectConditionSetCreate
|
|
143
|
+
def __init__(self, subject_condition_set: _Optional[_Union[SubjectConditionSetCreate, _Mapping]] = ...) -> None: ...
|
|
144
|
+
|
|
145
|
+
class CreateSubjectConditionSetResponse(_message.Message):
|
|
146
|
+
__slots__ = ("subject_condition_set",)
|
|
147
|
+
SUBJECT_CONDITION_SET_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
subject_condition_set: _objects_pb2.SubjectConditionSet
|
|
149
|
+
def __init__(self, subject_condition_set: _Optional[_Union[_objects_pb2.SubjectConditionSet, _Mapping]] = ...) -> None: ...
|
|
150
|
+
|
|
151
|
+
class UpdateSubjectConditionSetRequest(_message.Message):
|
|
152
|
+
__slots__ = ("id", "subject_sets", "metadata", "metadata_update_behavior")
|
|
153
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
154
|
+
SUBJECT_SETS_FIELD_NUMBER: _ClassVar[int]
|
|
155
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
156
|
+
METADATA_UPDATE_BEHAVIOR_FIELD_NUMBER: _ClassVar[int]
|
|
157
|
+
id: str
|
|
158
|
+
subject_sets: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectSet]
|
|
159
|
+
metadata: _common_pb2.MetadataMutable
|
|
160
|
+
metadata_update_behavior: _common_pb2.MetadataUpdateEnum
|
|
161
|
+
def __init__(self, id: _Optional[str] = ..., subject_sets: _Optional[_Iterable[_Union[_objects_pb2.SubjectSet, _Mapping]]] = ..., metadata: _Optional[_Union[_common_pb2.MetadataMutable, _Mapping]] = ..., metadata_update_behavior: _Optional[_Union[_common_pb2.MetadataUpdateEnum, str]] = ...) -> None: ...
|
|
162
|
+
|
|
163
|
+
class UpdateSubjectConditionSetResponse(_message.Message):
|
|
164
|
+
__slots__ = ("subject_condition_set",)
|
|
165
|
+
SUBJECT_CONDITION_SET_FIELD_NUMBER: _ClassVar[int]
|
|
166
|
+
subject_condition_set: _objects_pb2.SubjectConditionSet
|
|
167
|
+
def __init__(self, subject_condition_set: _Optional[_Union[_objects_pb2.SubjectConditionSet, _Mapping]] = ...) -> None: ...
|
|
168
|
+
|
|
169
|
+
class DeleteSubjectConditionSetRequest(_message.Message):
|
|
170
|
+
__slots__ = ("id",)
|
|
171
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
id: str
|
|
173
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
174
|
+
|
|
175
|
+
class DeleteSubjectConditionSetResponse(_message.Message):
|
|
176
|
+
__slots__ = ("subject_condition_set",)
|
|
177
|
+
SUBJECT_CONDITION_SET_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
+
subject_condition_set: _objects_pb2.SubjectConditionSet
|
|
179
|
+
def __init__(self, subject_condition_set: _Optional[_Union[_objects_pb2.SubjectConditionSet, _Mapping]] = ...) -> None: ...
|
|
180
|
+
|
|
181
|
+
class DeleteAllUnmappedSubjectConditionSetsRequest(_message.Message):
|
|
182
|
+
__slots__ = ()
|
|
183
|
+
def __init__(self) -> None: ...
|
|
184
|
+
|
|
185
|
+
class DeleteAllUnmappedSubjectConditionSetsResponse(_message.Message):
|
|
186
|
+
__slots__ = ("subject_condition_sets",)
|
|
187
|
+
SUBJECT_CONDITION_SETS_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
+
subject_condition_sets: _containers.RepeatedCompositeFieldContainer[_objects_pb2.SubjectConditionSet]
|
|
189
|
+
def __init__(self, subject_condition_sets: _Optional[_Iterable[_Union[_objects_pb2.SubjectConditionSet, _Mapping]]] = ...) -> None: ...
|