alis.open.operations.v1 1.3.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.open.operations.v1
3
+ Version: 1.3.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 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1,42 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: alis/open/operations/v1/operations.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/open/operations/v1/operations.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
26
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
+ from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(alis/open/operations/v1/operations.proto\x12\x17\x61lis.open.operations.v1\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe8\x05\n\tOperation\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x30\n\x08metadata\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x08metadata\x12\x12\n\x04\x64one\x18\x03 \x01(\x08R\x04\x64one\x12*\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x05\x65rror\x12\x32\n\x08response\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00R\x08response\x12\x16\n\x06method\x18\x06 \x01(\tR\x06method\x12\x1e\n\ncheckpoint\x18\t \x01(\tR\ncheckpoint\x12%\n\x0einternal_state\x18\n \x01(\x0cR\rinternalState\x12M\n\ncloud_task\x18\x0b \x01(\x0b\x32,.alis.open.operations.v1.Operation.CloudTaskH\x01R\tcloudTask\x12;\n\x0b\x63reate_time\x18\x62 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x63 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\x1a\xd8\x01\n\tCloudTask\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12?\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0cscheduleTime\x12;\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12\x18\n\x07running\x18\x04 \x01(\x08R\x07running\x12\x1f\n\x0btarget_host\x18\x05 \x01(\tR\ntargetHostB\x08\n\x06resultB\x08\n\x06runnerJ\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tB+Z)go.alis.build/common/alis/open/operationsb\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.open.operations.v1.operations_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'Z)go.alis.build/common/alis/open/operations'
38
+ _globals['_OPERATION']._serialized_start=155
39
+ _globals['_OPERATION']._serialized_end=899
40
+ _globals['_OPERATION_CLOUDTASK']._serialized_start=651
41
+ _globals['_OPERATION_CLOUDTASK']._serialized_end=867
42
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,113 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from google.protobuf import any_pb2 as _any_pb2
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
10
+ from google.rpc import status_pb2 as _status_pb2
11
+ import builtins as _builtins
12
+ import sys
13
+ import typing as _typing
14
+
15
+ if sys.version_info >= (3, 11):
16
+ from typing import TypeAlias as _TypeAlias, Never as _Never
17
+ else:
18
+ from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
19
+
20
+ DESCRIPTOR: _descriptor.FileDescriptor
21
+
22
+ @_typing.final
23
+ class Operation(_message.Message):
24
+ DESCRIPTOR: _descriptor.Descriptor
25
+
26
+ @_typing.final
27
+ class CloudTask(_message.Message):
28
+ DESCRIPTOR: _descriptor.Descriptor
29
+
30
+ NAME_FIELD_NUMBER: _builtins.int
31
+ SCHEDULE_TIME_FIELD_NUMBER: _builtins.int
32
+ CREATE_TIME_FIELD_NUMBER: _builtins.int
33
+ RUNNING_FIELD_NUMBER: _builtins.int
34
+ TARGET_HOST_FIELD_NUMBER: _builtins.int
35
+ name: _builtins.str
36
+ running: _builtins.bool
37
+ target_host: _builtins.str
38
+ @_builtins.property
39
+ def schedule_time(self) -> _timestamp_pb2.Timestamp: ...
40
+ @_builtins.property
41
+ def create_time(self) -> _timestamp_pb2.Timestamp: ...
42
+ def __init__(
43
+ self,
44
+ *,
45
+ name: _builtins.str = ...,
46
+ schedule_time: _timestamp_pb2.Timestamp | None = ...,
47
+ create_time: _timestamp_pb2.Timestamp | None = ...,
48
+ running: _builtins.bool = ...,
49
+ target_host: _builtins.str = ...,
50
+ ) -> None: ...
51
+ _HasFieldArgType: _TypeAlias = _typing.Literal["create_time", b"create_time", "schedule_time", b"schedule_time"] # noqa: Y015
52
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
53
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["create_time", b"create_time", "name", b"name", "running", b"running", "schedule_time", b"schedule_time", "target_host", b"target_host"] # noqa: Y015
54
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
55
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
56
+
57
+ NAME_FIELD_NUMBER: _builtins.int
58
+ METADATA_FIELD_NUMBER: _builtins.int
59
+ DONE_FIELD_NUMBER: _builtins.int
60
+ ERROR_FIELD_NUMBER: _builtins.int
61
+ RESPONSE_FIELD_NUMBER: _builtins.int
62
+ METHOD_FIELD_NUMBER: _builtins.int
63
+ CHECKPOINT_FIELD_NUMBER: _builtins.int
64
+ INTERNAL_STATE_FIELD_NUMBER: _builtins.int
65
+ CLOUD_TASK_FIELD_NUMBER: _builtins.int
66
+ CREATE_TIME_FIELD_NUMBER: _builtins.int
67
+ UPDATE_TIME_FIELD_NUMBER: _builtins.int
68
+ name: _builtins.str
69
+ done: _builtins.bool
70
+ method: _builtins.str
71
+ checkpoint: _builtins.str
72
+ internal_state: _builtins.bytes
73
+ @_builtins.property
74
+ def metadata(self) -> _any_pb2.Any: ...
75
+ @_builtins.property
76
+ def error(self) -> _status_pb2.Status: ...
77
+ @_builtins.property
78
+ def response(self) -> _any_pb2.Any: ...
79
+ @_builtins.property
80
+ def cloud_task(self) -> Global___Operation.CloudTask: ...
81
+ @_builtins.property
82
+ def create_time(self) -> _timestamp_pb2.Timestamp: ...
83
+ @_builtins.property
84
+ def update_time(self) -> _timestamp_pb2.Timestamp: ...
85
+ def __init__(
86
+ self,
87
+ *,
88
+ name: _builtins.str = ...,
89
+ metadata: _any_pb2.Any | None = ...,
90
+ done: _builtins.bool = ...,
91
+ error: _status_pb2.Status | None = ...,
92
+ response: _any_pb2.Any | None = ...,
93
+ method: _builtins.str = ...,
94
+ checkpoint: _builtins.str = ...,
95
+ internal_state: _builtins.bytes = ...,
96
+ cloud_task: Global___Operation.CloudTask | None = ...,
97
+ create_time: _timestamp_pb2.Timestamp | None = ...,
98
+ update_time: _timestamp_pb2.Timestamp | None = ...,
99
+ ) -> None: ...
100
+ _HasFieldArgType: _TypeAlias = _typing.Literal["cloud_task", b"cloud_task", "create_time", b"create_time", "error", b"error", "metadata", b"metadata", "response", b"response", "result", b"result", "runner", b"runner", "update_time", b"update_time"] # noqa: Y015
101
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
102
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["checkpoint", b"checkpoint", "cloud_task", b"cloud_task", "create_time", b"create_time", "done", b"done", "error", b"error", "internal_state", b"internal_state", "metadata", b"metadata", "method", b"method", "name", b"name", "response", b"response", "result", b"result", "runner", b"runner", "update_time", b"update_time"] # noqa: Y015
103
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
104
+ _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["error", "response"] # noqa: Y015
105
+ _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015
106
+ _WhichOneofReturnType_runner: _TypeAlias = _typing.Literal["cloud_task"] # noqa: Y015
107
+ _WhichOneofArgType_runner: _TypeAlias = _typing.Literal["runner", b"runner"] # noqa: Y015
108
+ @_typing.overload
109
+ def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ...
110
+ @_typing.overload
111
+ def WhichOneof(self, oneof_group: _WhichOneofArgType_runner) -> _WhichOneofReturnType_runner | None: ...
112
+
113
+ Global___Operation: _TypeAlias = Operation # 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/open/operations/v1/operations_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.open.operations.v1
3
+ Version: 1.3.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,18 @@
1
+ setup.py
2
+ alis/__init__.py
3
+ alis/__init__.pyi
4
+ alis.open.operations.v1.egg-info/PKG-INFO
5
+ alis.open.operations.v1.egg-info/SOURCES.txt
6
+ alis.open.operations.v1.egg-info/dependency_links.txt
7
+ alis.open.operations.v1.egg-info/requires.txt
8
+ alis.open.operations.v1.egg-info/top_level.txt
9
+ alis/open/__init__.py
10
+ alis/open/__init__.pyi
11
+ alis/open/operations/__init__.py
12
+ alis/open/operations/__init__.pyi
13
+ alis/open/operations/v1/__init__.py
14
+ alis/open/operations/v1/__init__.pyi
15
+ alis/open/operations/v1/operations_pb2.py
16
+ alis/open/operations/v1/operations_pb2.pyi
17
+ alis/open/operations/v1/operations_pb2_grpc.py
18
+ alis/open/operations/v1/operations_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.open.operations.v1",
27
+ version="1.3.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
+ )