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,113 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: policy/unsafe/unsafe.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/unsafe/unsafe.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 policy import objects_pb2 as policy_dot_objects__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1apolicy/unsafe/unsafe.proto\x12\rpolicy.unsafe\x1a\x1b\x62uf/validate/validate.proto\x1a\x14policy/objects.proto\"\xeb\x04\n\x1cUnsafeUpdateNamespaceRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\xb0\x04\n\x04name\x18\x02 \x01(\tB\x9b\x04\xbaH\x97\x04r\x03\x18\xfd\x01\xba\x01\x8e\x04\n\x15namespace_name_format\x12\xa1\x03Namespace must be a valid hostname. It should include at least one dot, with each segment (label) starting and ending with an alphanumeric character. Each label must be 1 to 63 characters long, allowing hyphens but not as the first or last character. The top-level domain (the last segment after the final dot) must consist of at least two alphabetic characters. The stored namespace will be normalized to lower case.\x1aQthis.matches(\'^([a-zA-Z0-9]([a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,}$\')R\x04name\"P\n\x1dUnsafeUpdateNamespaceResponse\x12/\n\tnamespace\x18\x01 \x01(\x0b\x32\x11.policy.NamespaceR\tnamespace\"<\n UnsafeReactivateNamespaceRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"T\n!UnsafeReactivateNamespaceResponse\x12/\n\tnamespace\x18\x01 \x01(\x0b\x32\x11.policy.NamespaceR\tnamespace\"R\n\x1cUnsafeDeleteNamespaceRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\x18\n\x03\x66qn\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03\x66qn\"P\n\x1dUnsafeDeleteNamespaceResponse\x12/\n\tnamespace\x18\x01 \x01(\x0b\x32\x11.policy.NamespaceR\tnamespace\"\xe2\x03\n\x1cUnsafeUpdateAttributeRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\xc7\x02\n\x04name\x18\x02 \x01(\tB\xb2\x02\xbaH\xae\x02r\x03\x18\xfd\x01\xba\x01\xa2\x02\n\x15\x61ttribute_name_format\x12\xb3\x01\x41ttribute name must be an alphanumeric string, allowing hyphens and underscores but not as the first or last character. The stored attribute name will be normalized to lower case.\x1aSsize(this) > 0 ? this.matches(\'^[a-zA-Z0-9](?:[a-zA-Z0-9_-]*[a-zA-Z0-9])?$\') : true\xc8\x01\x00R\x04name\x12;\n\x04rule\x18\x03 \x01(\x0e\x32\x1d.policy.AttributeRuleTypeEnumB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04rule\x12!\n\x0cvalues_order\x18\x04 \x03(\tR\x0bvaluesOrder\"P\n\x1dUnsafeUpdateAttributeResponse\x12/\n\tattribute\x18\x01 \x01(\x0b\x32\x11.policy.AttributeR\tattribute\"<\n UnsafeReactivateAttributeRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"T\n!UnsafeReactivateAttributeResponse\x12/\n\tattribute\x18\x01 \x01(\x0b\x32\x11.policy.AttributeR\tattribute\"R\n\x1cUnsafeDeleteAttributeRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\x18\n\x03\x66qn\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03\x66qn\"P\n\x1dUnsafeDeleteAttributeResponse\x12/\n\tattribute\x18\x01 \x01(\x0b\x32\x11.policy.AttributeR\tattribute\"\xe7\x02\n!UnsafeUpdateAttributeValueRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\xa7\x02\n\x05value\x18\x02 \x01(\tB\x90\x02\xbaH\x8c\x02r\x03\x18\xfd\x01\xba\x01\x83\x02\n\x0cvalue_format\x12\xb5\x01\x41ttribute Value must be an alphanumeric string, allowing hyphens and underscores but not as the first or last character. The stored attribute value will be normalized to lower case.\x1a;this.matches(\'^[a-zA-Z0-9](?:[a-zA-Z0-9_-]*[a-zA-Z0-9])?$\')R\x05value\"I\n\"UnsafeUpdateAttributeValueResponse\x12#\n\x05value\x18\x01 \x01(\x0b\x32\r.policy.ValueR\x05value\"A\n%UnsafeReactivateAttributeValueRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\"M\n&UnsafeReactivateAttributeValueResponse\x12#\n\x05value\x18\x01 \x01(\x0b\x32\r.policy.ValueR\x05value\"W\n!UnsafeDeleteAttributeValueRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\x18\n\x03\x66qn\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x03\x66qn\"I\n\"UnsafeDeleteAttributeValueResponse\x12#\n\x05value\x18\x01 \x01(\x0b\x32\r.policy.ValueR\x05value\"5\n\x19UnsafeDeleteKasKeyRequest\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\";\n\x1aUnsafeDeleteKasKeyResponse\x12\x1d\n\x03key\x18\x01 \x01(\x0b\x32\x0b.policy.KeyR\x03key2\xf8\t\n\rUnsafeService\x12t\n\x15UnsafeUpdateNamespace\x12+.policy.unsafe.UnsafeUpdateNamespaceRequest\x1a,.policy.unsafe.UnsafeUpdateNamespaceResponse\"\x00\x12\x80\x01\n\x19UnsafeReactivateNamespace\x12/.policy.unsafe.UnsafeReactivateNamespaceRequest\x1a\x30.policy.unsafe.UnsafeReactivateNamespaceResponse\"\x00\x12t\n\x15UnsafeDeleteNamespace\x12+.policy.unsafe.UnsafeDeleteNamespaceRequest\x1a,.policy.unsafe.UnsafeDeleteNamespaceResponse\"\x00\x12t\n\x15UnsafeUpdateAttribute\x12+.policy.unsafe.UnsafeUpdateAttributeRequest\x1a,.policy.unsafe.UnsafeUpdateAttributeResponse\"\x00\x12\x80\x01\n\x19UnsafeReactivateAttribute\x12/.policy.unsafe.UnsafeReactivateAttributeRequest\x1a\x30.policy.unsafe.UnsafeReactivateAttributeResponse\"\x00\x12t\n\x15UnsafeDeleteAttribute\x12+.policy.unsafe.UnsafeDeleteAttributeRequest\x1a,.policy.unsafe.UnsafeDeleteAttributeResponse\"\x00\x12\x83\x01\n\x1aUnsafeUpdateAttributeValue\x12\x30.policy.unsafe.UnsafeUpdateAttributeValueRequest\x1a\x31.policy.unsafe.UnsafeUpdateAttributeValueResponse\"\x00\x12\x8f\x01\n\x1eUnsafeReactivateAttributeValue\x12\x34.policy.unsafe.UnsafeReactivateAttributeValueRequest\x1a\x35.policy.unsafe.UnsafeReactivateAttributeValueResponse\"\x00\x12\x83\x01\n\x1aUnsafeDeleteAttributeValue\x12\x30.policy.unsafe.UnsafeDeleteAttributeValueRequest\x1a\x31.policy.unsafe.UnsafeDeleteAttributeValueResponse\"\x00\x12k\n\x12UnsafeDeleteKasKey\x12(.policy.unsafe.UnsafeDeleteKasKeyRequest\x1a).policy.unsafe.UnsafeDeleteKasKeyResponse\"\x00\x42u\n\x11\x63om.policy.unsafeB\x0bUnsafeProtoP\x01\xa2\x02\x03PUX\xaa\x02\rPolicy.Unsafe\xca\x02\rPolicy\\Unsafe\xe2\x02\x19Policy\\Unsafe\\GPBMetadata\xea\x02\x0ePolicy::Unsafeb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'policy.unsafe.unsafe_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\021com.policy.unsafeB\013UnsafeProtoP\001\242\002\003PUX\252\002\rPolicy.Unsafe\312\002\rPolicy\\Unsafe\342\002\031Policy\\Unsafe\\GPBMetadata\352\002\016Policy::Unsafe'
|
|
37
|
+
_globals['_UNSAFEUPDATENAMESPACEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
38
|
+
_globals['_UNSAFEUPDATENAMESPACEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
39
|
+
_globals['_UNSAFEUPDATENAMESPACEREQUEST'].fields_by_name['name']._loaded_options = None
|
|
40
|
+
_globals['_UNSAFEUPDATENAMESPACEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\227\004r\003\030\375\001\272\001\216\004\n\025namespace_name_format\022\241\003Namespace must be a valid hostname. It should include at least one dot, with each segment (label) starting and ending with an alphanumeric character. Each label must be 1 to 63 characters long, allowing hyphens but not as the first or last character. The top-level domain (the last segment after the final dot) must consist of at least two alphabetic characters. The stored namespace will be normalized to lower case.\032Qthis.matches(\'^([a-zA-Z0-9]([a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,}$\')'
|
|
41
|
+
_globals['_UNSAFEREACTIVATENAMESPACEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
42
|
+
_globals['_UNSAFEREACTIVATENAMESPACEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
43
|
+
_globals['_UNSAFEDELETENAMESPACEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
44
|
+
_globals['_UNSAFEDELETENAMESPACEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
45
|
+
_globals['_UNSAFEDELETENAMESPACEREQUEST'].fields_by_name['fqn']._loaded_options = None
|
|
46
|
+
_globals['_UNSAFEDELETENAMESPACEREQUEST'].fields_by_name['fqn']._serialized_options = b'\272H\003\310\001\001'
|
|
47
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
48
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
49
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST'].fields_by_name['name']._loaded_options = None
|
|
50
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\256\002r\003\030\375\001\272\001\242\002\n\025attribute_name_format\022\263\001Attribute name must be an alphanumeric string, allowing hyphens and underscores but not as the first or last character. The stored attribute name will be normalized to lower case.\032Ssize(this) > 0 ? this.matches(\'^[a-zA-Z0-9](?:[a-zA-Z0-9_-]*[a-zA-Z0-9])?$\') : true\310\001\000'
|
|
51
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST'].fields_by_name['rule']._loaded_options = None
|
|
52
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST'].fields_by_name['rule']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
53
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
54
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
55
|
+
_globals['_UNSAFEDELETEATTRIBUTEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
56
|
+
_globals['_UNSAFEDELETEATTRIBUTEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
57
|
+
_globals['_UNSAFEDELETEATTRIBUTEREQUEST'].fields_by_name['fqn']._loaded_options = None
|
|
58
|
+
_globals['_UNSAFEDELETEATTRIBUTEREQUEST'].fields_by_name['fqn']._serialized_options = b'\272H\003\310\001\001'
|
|
59
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
60
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
61
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUEREQUEST'].fields_by_name['value']._loaded_options = None
|
|
62
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUEREQUEST'].fields_by_name['value']._serialized_options = b'\272H\214\002r\003\030\375\001\272\001\203\002\n\014value_format\022\265\001Attribute Value must be an alphanumeric string, allowing hyphens and underscores but not as the first or last character. The stored attribute value will be normalized to lower case.\032;this.matches(\'^[a-zA-Z0-9](?:[a-zA-Z0-9_-]*[a-zA-Z0-9])?$\')'
|
|
63
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEVALUEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
64
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEVALUEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
65
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
66
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
67
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUEREQUEST'].fields_by_name['fqn']._loaded_options = None
|
|
68
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUEREQUEST'].fields_by_name['fqn']._serialized_options = b'\272H\003\310\001\001'
|
|
69
|
+
_globals['_UNSAFEDELETEKASKEYREQUEST'].fields_by_name['id']._loaded_options = None
|
|
70
|
+
_globals['_UNSAFEDELETEKASKEYREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
71
|
+
_globals['_UNSAFEUPDATENAMESPACEREQUEST']._serialized_start=97
|
|
72
|
+
_globals['_UNSAFEUPDATENAMESPACEREQUEST']._serialized_end=716
|
|
73
|
+
_globals['_UNSAFEUPDATENAMESPACERESPONSE']._serialized_start=718
|
|
74
|
+
_globals['_UNSAFEUPDATENAMESPACERESPONSE']._serialized_end=798
|
|
75
|
+
_globals['_UNSAFEREACTIVATENAMESPACEREQUEST']._serialized_start=800
|
|
76
|
+
_globals['_UNSAFEREACTIVATENAMESPACEREQUEST']._serialized_end=860
|
|
77
|
+
_globals['_UNSAFEREACTIVATENAMESPACERESPONSE']._serialized_start=862
|
|
78
|
+
_globals['_UNSAFEREACTIVATENAMESPACERESPONSE']._serialized_end=946
|
|
79
|
+
_globals['_UNSAFEDELETENAMESPACEREQUEST']._serialized_start=948
|
|
80
|
+
_globals['_UNSAFEDELETENAMESPACEREQUEST']._serialized_end=1030
|
|
81
|
+
_globals['_UNSAFEDELETENAMESPACERESPONSE']._serialized_start=1032
|
|
82
|
+
_globals['_UNSAFEDELETENAMESPACERESPONSE']._serialized_end=1112
|
|
83
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST']._serialized_start=1115
|
|
84
|
+
_globals['_UNSAFEUPDATEATTRIBUTEREQUEST']._serialized_end=1597
|
|
85
|
+
_globals['_UNSAFEUPDATEATTRIBUTERESPONSE']._serialized_start=1599
|
|
86
|
+
_globals['_UNSAFEUPDATEATTRIBUTERESPONSE']._serialized_end=1679
|
|
87
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEREQUEST']._serialized_start=1681
|
|
88
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEREQUEST']._serialized_end=1741
|
|
89
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTERESPONSE']._serialized_start=1743
|
|
90
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTERESPONSE']._serialized_end=1827
|
|
91
|
+
_globals['_UNSAFEDELETEATTRIBUTEREQUEST']._serialized_start=1829
|
|
92
|
+
_globals['_UNSAFEDELETEATTRIBUTEREQUEST']._serialized_end=1911
|
|
93
|
+
_globals['_UNSAFEDELETEATTRIBUTERESPONSE']._serialized_start=1913
|
|
94
|
+
_globals['_UNSAFEDELETEATTRIBUTERESPONSE']._serialized_end=1993
|
|
95
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUEREQUEST']._serialized_start=1996
|
|
96
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUEREQUEST']._serialized_end=2355
|
|
97
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUERESPONSE']._serialized_start=2357
|
|
98
|
+
_globals['_UNSAFEUPDATEATTRIBUTEVALUERESPONSE']._serialized_end=2430
|
|
99
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEVALUEREQUEST']._serialized_start=2432
|
|
100
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEVALUEREQUEST']._serialized_end=2497
|
|
101
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEVALUERESPONSE']._serialized_start=2499
|
|
102
|
+
_globals['_UNSAFEREACTIVATEATTRIBUTEVALUERESPONSE']._serialized_end=2576
|
|
103
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUEREQUEST']._serialized_start=2578
|
|
104
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUEREQUEST']._serialized_end=2665
|
|
105
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUERESPONSE']._serialized_start=2667
|
|
106
|
+
_globals['_UNSAFEDELETEATTRIBUTEVALUERESPONSE']._serialized_end=2740
|
|
107
|
+
_globals['_UNSAFEDELETEKASKEYREQUEST']._serialized_start=2742
|
|
108
|
+
_globals['_UNSAFEDELETEKASKEYREQUEST']._serialized_end=2795
|
|
109
|
+
_globals['_UNSAFEDELETEKASKEYRESPONSE']._serialized_start=2797
|
|
110
|
+
_globals['_UNSAFEDELETEKASKEYRESPONSE']._serialized_end=2856
|
|
111
|
+
_globals['_UNSAFESERVICE']._serialized_start=2859
|
|
112
|
+
_globals['_UNSAFESERVICE']._serialized_end=4131
|
|
113
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from policy import objects_pb2 as _objects_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
7
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
8
|
+
|
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
+
|
|
11
|
+
class UnsafeUpdateNamespaceRequest(_message.Message):
|
|
12
|
+
__slots__ = ("id", "name")
|
|
13
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
id: str
|
|
16
|
+
name: str
|
|
17
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
|
|
18
|
+
|
|
19
|
+
class UnsafeUpdateNamespaceResponse(_message.Message):
|
|
20
|
+
__slots__ = ("namespace",)
|
|
21
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
namespace: _objects_pb2.Namespace
|
|
23
|
+
def __init__(self, namespace: _Optional[_Union[_objects_pb2.Namespace, _Mapping]] = ...) -> None: ...
|
|
24
|
+
|
|
25
|
+
class UnsafeReactivateNamespaceRequest(_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 UnsafeReactivateNamespaceResponse(_message.Message):
|
|
32
|
+
__slots__ = ("namespace",)
|
|
33
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
namespace: _objects_pb2.Namespace
|
|
35
|
+
def __init__(self, namespace: _Optional[_Union[_objects_pb2.Namespace, _Mapping]] = ...) -> None: ...
|
|
36
|
+
|
|
37
|
+
class UnsafeDeleteNamespaceRequest(_message.Message):
|
|
38
|
+
__slots__ = ("id", "fqn")
|
|
39
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
FQN_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
id: str
|
|
42
|
+
fqn: str
|
|
43
|
+
def __init__(self, id: _Optional[str] = ..., fqn: _Optional[str] = ...) -> None: ...
|
|
44
|
+
|
|
45
|
+
class UnsafeDeleteNamespaceResponse(_message.Message):
|
|
46
|
+
__slots__ = ("namespace",)
|
|
47
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
namespace: _objects_pb2.Namespace
|
|
49
|
+
def __init__(self, namespace: _Optional[_Union[_objects_pb2.Namespace, _Mapping]] = ...) -> None: ...
|
|
50
|
+
|
|
51
|
+
class UnsafeUpdateAttributeRequest(_message.Message):
|
|
52
|
+
__slots__ = ("id", "name", "rule", "values_order")
|
|
53
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
RULE_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
VALUES_ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
id: str
|
|
58
|
+
name: str
|
|
59
|
+
rule: _objects_pb2.AttributeRuleTypeEnum
|
|
60
|
+
values_order: _containers.RepeatedScalarFieldContainer[str]
|
|
61
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., rule: _Optional[_Union[_objects_pb2.AttributeRuleTypeEnum, str]] = ..., values_order: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
62
|
+
|
|
63
|
+
class UnsafeUpdateAttributeResponse(_message.Message):
|
|
64
|
+
__slots__ = ("attribute",)
|
|
65
|
+
ATTRIBUTE_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
attribute: _objects_pb2.Attribute
|
|
67
|
+
def __init__(self, attribute: _Optional[_Union[_objects_pb2.Attribute, _Mapping]] = ...) -> None: ...
|
|
68
|
+
|
|
69
|
+
class UnsafeReactivateAttributeRequest(_message.Message):
|
|
70
|
+
__slots__ = ("id",)
|
|
71
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
id: str
|
|
73
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
74
|
+
|
|
75
|
+
class UnsafeReactivateAttributeResponse(_message.Message):
|
|
76
|
+
__slots__ = ("attribute",)
|
|
77
|
+
ATTRIBUTE_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
attribute: _objects_pb2.Attribute
|
|
79
|
+
def __init__(self, attribute: _Optional[_Union[_objects_pb2.Attribute, _Mapping]] = ...) -> None: ...
|
|
80
|
+
|
|
81
|
+
class UnsafeDeleteAttributeRequest(_message.Message):
|
|
82
|
+
__slots__ = ("id", "fqn")
|
|
83
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
FQN_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
+
id: str
|
|
86
|
+
fqn: str
|
|
87
|
+
def __init__(self, id: _Optional[str] = ..., fqn: _Optional[str] = ...) -> None: ...
|
|
88
|
+
|
|
89
|
+
class UnsafeDeleteAttributeResponse(_message.Message):
|
|
90
|
+
__slots__ = ("attribute",)
|
|
91
|
+
ATTRIBUTE_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
attribute: _objects_pb2.Attribute
|
|
93
|
+
def __init__(self, attribute: _Optional[_Union[_objects_pb2.Attribute, _Mapping]] = ...) -> None: ...
|
|
94
|
+
|
|
95
|
+
class UnsafeUpdateAttributeValueRequest(_message.Message):
|
|
96
|
+
__slots__ = ("id", "value")
|
|
97
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
id: str
|
|
100
|
+
value: str
|
|
101
|
+
def __init__(self, id: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
102
|
+
|
|
103
|
+
class UnsafeUpdateAttributeValueResponse(_message.Message):
|
|
104
|
+
__slots__ = ("value",)
|
|
105
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
value: _objects_pb2.Value
|
|
107
|
+
def __init__(self, value: _Optional[_Union[_objects_pb2.Value, _Mapping]] = ...) -> None: ...
|
|
108
|
+
|
|
109
|
+
class UnsafeReactivateAttributeValueRequest(_message.Message):
|
|
110
|
+
__slots__ = ("id",)
|
|
111
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
id: str
|
|
113
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
114
|
+
|
|
115
|
+
class UnsafeReactivateAttributeValueResponse(_message.Message):
|
|
116
|
+
__slots__ = ("value",)
|
|
117
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
value: _objects_pb2.Value
|
|
119
|
+
def __init__(self, value: _Optional[_Union[_objects_pb2.Value, _Mapping]] = ...) -> None: ...
|
|
120
|
+
|
|
121
|
+
class UnsafeDeleteAttributeValueRequest(_message.Message):
|
|
122
|
+
__slots__ = ("id", "fqn")
|
|
123
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
FQN_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
id: str
|
|
126
|
+
fqn: str
|
|
127
|
+
def __init__(self, id: _Optional[str] = ..., fqn: _Optional[str] = ...) -> None: ...
|
|
128
|
+
|
|
129
|
+
class UnsafeDeleteAttributeValueResponse(_message.Message):
|
|
130
|
+
__slots__ = ("value",)
|
|
131
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
value: _objects_pb2.Value
|
|
133
|
+
def __init__(self, value: _Optional[_Union[_objects_pb2.Value, _Mapping]] = ...) -> None: ...
|
|
134
|
+
|
|
135
|
+
class UnsafeDeleteKasKeyRequest(_message.Message):
|
|
136
|
+
__slots__ = ("id",)
|
|
137
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
+
id: str
|
|
139
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
140
|
+
|
|
141
|
+
class UnsafeDeleteKasKeyResponse(_message.Message):
|
|
142
|
+
__slots__ = ("key",)
|
|
143
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
key: _objects_pb2.Key
|
|
145
|
+
def __init__(self, key: _Optional[_Union[_objects_pb2.Key, _Mapping]] = ...) -> None: ...
|