alis.iam.v1 1.18.0__tar.gz

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.
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: alis.iam.v1
3
+ Version: 1.18.0
4
+ Summary: Protobufs generated by Alis Build
5
+ Requires-Dist: google-common-protos>=0.0.1
6
+ Requires-Dist: alis-services-protobuf-open>=1.176.0
7
+ Dynamic: requires-dist
8
+ Dynamic: summary
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1,45 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: alis/iam/v1/iam.proto
5
+ # Protobuf Python Version: 6.33.5
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
+ 33,
16
+ 5,
17
+ '',
18
+ 'alis/iam/v1/iam.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x61lis/iam/v1/iam.proto\x12\x0b\x61lis.iam.v1\"\xa0\x01\n\x15\x41\x64\x64IamBindingsRequest\x12\x1a\n\x08resource\x18\x01 \x01(\tR\x08resource\x12\x1e\n\nprincipals\x18\x02 \x03(\tR\nprincipals\x12\x14\n\x05roles\x18\x03 \x03(\tR\x05roles\x12\x35\n\x17remove_from_other_roles\x18\x04 \x01(\x08R\x14removeFromOtherRoles\"l\n\x18RemoveIamBindingsRequest\x12\x1a\n\x08resource\x18\x01 \x01(\tR\x08resource\x12\x1e\n\nprincipals\x18\x02 \x03(\tR\nprincipals\x12\x14\n\x05roles\x18\x03 \x03(\tR\x05roles\"`\n\x1e\x42\x61tchTestIamPermissionsRequest\x12\x1c\n\tresources\x18\x01 \x03(\tR\tresources\x12 \n\x0bpermissions\x18\x02 \x03(\tR\x0bpermissions\"\xeb\x01\n\x1f\x42\x61tchTestIamPermissionsResponse\x12s\n\x14resource_permissions\x18\x01 \x03(\x0b\x32@.alis.iam.v1.BatchTestIamPermissionsResponse.ResourcePermissionsR\x13resourcePermissions\x1aS\n\x13ResourcePermissions\x12\x1a\n\x08resource\x18\x01 \x01(\tR\x08resource\x12 \n\x0bpermissions\x18\x02 \x03(\tR\x0bpermissionsB\x1fZ\x1dgo.alis.build/common/alis/iamb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.iam.v1.iam_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z\035go.alis.build/common/alis/iam'
35
+ _globals['_ADDIAMBINDINGSREQUEST']._serialized_start=39
36
+ _globals['_ADDIAMBINDINGSREQUEST']._serialized_end=199
37
+ _globals['_REMOVEIAMBINDINGSREQUEST']._serialized_start=201
38
+ _globals['_REMOVEIAMBINDINGSREQUEST']._serialized_end=309
39
+ _globals['_BATCHTESTIAMPERMISSIONSREQUEST']._serialized_start=311
40
+ _globals['_BATCHTESTIAMPERMISSIONSREQUEST']._serialized_end=407
41
+ _globals['_BATCHTESTIAMPERMISSIONSRESPONSE']._serialized_start=410
42
+ _globals['_BATCHTESTIAMPERMISSIONSRESPONSE']._serialized_end=645
43
+ _globals['_BATCHTESTIAMPERMISSIONSRESPONSE_RESOURCEPERMISSIONS']._serialized_start=562
44
+ _globals['_BATCHTESTIAMPERMISSIONSRESPONSE_RESOURCEPERMISSIONS']._serialized_end=645
45
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,141 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from collections import abc as _abc
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from google.protobuf.internal import containers as _containers
10
+ import builtins as _builtins
11
+ import sys
12
+ import typing as _typing
13
+
14
+ if sys.version_info >= (3, 11):
15
+ from typing import TypeAlias as _TypeAlias, Never as _Never
16
+ else:
17
+ from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
18
+
19
+ DESCRIPTOR: _descriptor.FileDescriptor
20
+
21
+ @_typing.final
22
+ class AddIamBindingsRequest(_message.Message):
23
+ DESCRIPTOR: _descriptor.Descriptor
24
+
25
+ RESOURCE_FIELD_NUMBER: _builtins.int
26
+ PRINCIPALS_FIELD_NUMBER: _builtins.int
27
+ ROLES_FIELD_NUMBER: _builtins.int
28
+ REMOVE_FROM_OTHER_ROLES_FIELD_NUMBER: _builtins.int
29
+ resource: _builtins.str
30
+ remove_from_other_roles: _builtins.bool
31
+ @_builtins.property
32
+ def principals(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
33
+ @_builtins.property
34
+ def roles(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
35
+ def __init__(
36
+ self,
37
+ *,
38
+ resource: _builtins.str = ...,
39
+ principals: _abc.Iterable[_builtins.str] | None = ...,
40
+ roles: _abc.Iterable[_builtins.str] | None = ...,
41
+ remove_from_other_roles: _builtins.bool = ...,
42
+ ) -> None: ...
43
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
44
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
45
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["principals", b"principals", "remove_from_other_roles", b"remove_from_other_roles", "resource", b"resource", "roles", b"roles"] # noqa: Y015
46
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
47
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
48
+
49
+ Global___AddIamBindingsRequest: _TypeAlias = AddIamBindingsRequest # noqa: Y015
50
+
51
+ @_typing.final
52
+ class RemoveIamBindingsRequest(_message.Message):
53
+ DESCRIPTOR: _descriptor.Descriptor
54
+
55
+ RESOURCE_FIELD_NUMBER: _builtins.int
56
+ PRINCIPALS_FIELD_NUMBER: _builtins.int
57
+ ROLES_FIELD_NUMBER: _builtins.int
58
+ resource: _builtins.str
59
+ @_builtins.property
60
+ def principals(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
61
+ @_builtins.property
62
+ def roles(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
63
+ def __init__(
64
+ self,
65
+ *,
66
+ resource: _builtins.str = ...,
67
+ principals: _abc.Iterable[_builtins.str] | None = ...,
68
+ roles: _abc.Iterable[_builtins.str] | None = ...,
69
+ ) -> None: ...
70
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
71
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
72
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["principals", b"principals", "resource", b"resource", "roles", b"roles"] # noqa: Y015
73
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
74
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
75
+
76
+ Global___RemoveIamBindingsRequest: _TypeAlias = RemoveIamBindingsRequest # noqa: Y015
77
+
78
+ @_typing.final
79
+ class BatchTestIamPermissionsRequest(_message.Message):
80
+ DESCRIPTOR: _descriptor.Descriptor
81
+
82
+ RESOURCES_FIELD_NUMBER: _builtins.int
83
+ PERMISSIONS_FIELD_NUMBER: _builtins.int
84
+ @_builtins.property
85
+ def resources(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
86
+ @_builtins.property
87
+ def permissions(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
88
+ def __init__(
89
+ self,
90
+ *,
91
+ resources: _abc.Iterable[_builtins.str] | None = ...,
92
+ permissions: _abc.Iterable[_builtins.str] | None = ...,
93
+ ) -> None: ...
94
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
95
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
96
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["permissions", b"permissions", "resources", b"resources"] # noqa: Y015
97
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
98
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
99
+
100
+ Global___BatchTestIamPermissionsRequest: _TypeAlias = BatchTestIamPermissionsRequest # noqa: Y015
101
+
102
+ @_typing.final
103
+ class BatchTestIamPermissionsResponse(_message.Message):
104
+ DESCRIPTOR: _descriptor.Descriptor
105
+
106
+ @_typing.final
107
+ class ResourcePermissions(_message.Message):
108
+ DESCRIPTOR: _descriptor.Descriptor
109
+
110
+ RESOURCE_FIELD_NUMBER: _builtins.int
111
+ PERMISSIONS_FIELD_NUMBER: _builtins.int
112
+ resource: _builtins.str
113
+ @_builtins.property
114
+ def permissions(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
115
+ def __init__(
116
+ self,
117
+ *,
118
+ resource: _builtins.str = ...,
119
+ permissions: _abc.Iterable[_builtins.str] | None = ...,
120
+ ) -> None: ...
121
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
122
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
123
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["permissions", b"permissions", "resource", b"resource"] # noqa: Y015
124
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
125
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
126
+
127
+ RESOURCE_PERMISSIONS_FIELD_NUMBER: _builtins.int
128
+ @_builtins.property
129
+ def resource_permissions(self) -> _containers.RepeatedCompositeFieldContainer[Global___BatchTestIamPermissionsResponse.ResourcePermissions]: ...
130
+ def __init__(
131
+ self,
132
+ *,
133
+ resource_permissions: _abc.Iterable[Global___BatchTestIamPermissionsResponse.ResourcePermissions] | None = ...,
134
+ ) -> None: ...
135
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
136
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
137
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["resource_permissions", b"resource_permissions"] # noqa: Y015
138
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
139
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
140
+
141
+ Global___BatchTestIamPermissionsResponse: _TypeAlias = BatchTestIamPermissionsResponse # noqa: Y015
@@ -0,0 +1,24 @@
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
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.81.1'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in alis/iam/v1/iam_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,20 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ import abc as _abc_1
9
+ import grpc as _grpc
10
+ import typing as _typing
11
+
12
+ _T = _typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
15
+
16
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...
18
+
19
+ GRPC_GENERATED_VERSION: str
20
+ GRPC_VERSION: str
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: alis.iam.v1
3
+ Version: 1.18.0
4
+ Summary: Protobufs generated by Alis Build
5
+ Requires-Dist: google-common-protos>=0.0.1
6
+ Requires-Dist: alis-services-protobuf-open>=1.176.0
7
+ Dynamic: requires-dist
8
+ Dynamic: summary
@@ -0,0 +1,16 @@
1
+ setup.py
2
+ alis/__init__.py
3
+ alis/__init__.pyi
4
+ alis.iam.v1.egg-info/PKG-INFO
5
+ alis.iam.v1.egg-info/SOURCES.txt
6
+ alis.iam.v1.egg-info/dependency_links.txt
7
+ alis.iam.v1.egg-info/requires.txt
8
+ alis.iam.v1.egg-info/top_level.txt
9
+ alis/iam/__init__.py
10
+ alis/iam/__init__.pyi
11
+ alis/iam/v1/__init__.py
12
+ alis/iam/v1/__init__.pyi
13
+ alis/iam/v1/iam_pb2.py
14
+ alis/iam/v1/iam_pb2.pyi
15
+ alis/iam/v1/iam_pb2_grpc.py
16
+ alis/iam/v1/iam_pb2_grpc.pyi
@@ -0,0 +1,2 @@
1
+ google-common-protos>=0.0.1
2
+ alis-services-protobuf-open>=1.176.0
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,38 @@
1
+ import setuptools
2
+ import os
3
+ import glob
4
+
5
+ def find_package_data(base, globs, root="alis_protobuf"):
6
+ """Find all interesting data files, for setup(package_data=)
7
+ Arguments:
8
+ root: The directory to search in.
9
+ globs: A list of glob patterns to accept files.
10
+ """
11
+
12
+ rv_dirs = [root for root, dirs, files in os.walk(base)]
13
+ rv = []
14
+ for rv_dir in rv_dirs:
15
+ files = []
16
+ for pat in globs:
17
+ files += glob.glob(os.path.join(rv_dir, pat))
18
+ if not files:
19
+ continue
20
+ rv.extend([os.path.relpath(f, root) for f in files])
21
+ return rv
22
+
23
+ package_data = find_package_data("alis_protobuf", ["*.py", "*.pyi"])
24
+
25
+ setuptools.setup(
26
+ name="alis.iam.v1",
27
+ version="1.18.0",
28
+ description="Protobufs generated by Alis Build",
29
+ packages=setuptools.find_packages(),
30
+ include_package_data=True,
31
+ package_data={ # Optional
32
+ "alis_protobuf": package_data,
33
+ },
34
+ install_requires=[
35
+ 'google-common-protos>=0.0.1',
36
+ 'alis-services-protobuf-open>=1.176.0'
37
+ ]
38
+ )