alis.build.v1 1.0.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.
- alis_build_v1-1.0.0/PKG-INFO +8 -0
- alis_build_v1-1.0.0/alis/__init__.py +1 -0
- alis_build_v1-1.0.0/alis/__init__.pyi +1 -0
- alis_build_v1-1.0.0/alis/build/__init__.py +1 -0
- alis_build_v1-1.0.0/alis/build/__init__.pyi +1 -0
- alis_build_v1-1.0.0/alis/build/v1/__init__.py +1 -0
- alis_build_v1-1.0.0/alis/build/v1/__init__.pyi +1 -0
- alis_build_v1-1.0.0/alis/build/v1/repos_pb2.py +79 -0
- alis_build_v1-1.0.0/alis/build/v1/repos_pb2.pyi +487 -0
- alis_build_v1-1.0.0/alis/build/v1/repos_pb2_grpc.py +398 -0
- alis_build_v1-1.0.0/alis/build/v1/repos_pb2_grpc.pyi +112 -0
- alis_build_v1-1.0.0/alis.build.v1.egg-info/PKG-INFO +8 -0
- alis_build_v1-1.0.0/alis.build.v1.egg-info/SOURCES.txt +16 -0
- alis_build_v1-1.0.0/alis.build.v1.egg-info/dependency_links.txt +1 -0
- alis_build_v1-1.0.0/alis.build.v1.egg-info/requires.txt +2 -0
- alis_build_v1-1.0.0/alis.build.v1.egg-info/top_level.txt +1 -0
- alis_build_v1-1.0.0/setup.cfg +4 -0
- alis_build_v1-1.0.0/setup.py +38 -0
|
@@ -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,79 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: alis/build/v1/repos.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/build/v1/repos.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\x19\x61lis/build/v1/repos.proto\x12\ralis.build.v1\"\x07\n\x05\x45mpty\"\x12\n\x10ListReposRequest\">\n\x11ListReposResponse\x12)\n\x05repos\x18\x01 \x03(\x0b\x32\x13.alis.build.v1.RepoR\x05repos\"S\n\x13\x43reateBranchRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x16\n\x06\x62ranch\x18\x02 \x01(\tR\x06\x62ranch\x12\x10\n\x03ref\x18\x03 \x01(\tR\x03ref\"\x1a\n\x04Repo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"S\n\x13ListBranchesRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\x12\x12\n\x04page\x18\x03 \x01(\x05R\x04page\"I\n\x14ListBranchesResponse\x12\x31\n\x08\x62ranches\x18\x01 \x03(\x0b\x32\x15.alis.build.v1.BranchR\x08\x62ranches\"\x1c\n\x06\x42ranch\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"A\n\x13\x44\x65leteBranchRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x16\n\x06\x62ranch\x18\x02 \x01(\tR\x06\x62ranch\"\x93\x03\n\x13\x43reateCommitRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x16\n\x06\x62ranch\x18\x02 \x01(\tR\x06\x62ranch\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12L\n\noperations\x18\x04 \x03(\x0b\x32,.alis.build.v1.CreateCommitRequest.OperationR\noperations\x1a\xe7\x01\n\tOperation\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x45\n\x04type\x18\x02 \x01(\x0e\x32\x31.alis.build.v1.CreateCommitRequest.Operation.TypeR\x04type\x12\x18\n\x07\x63ontent\x18\x03 \x01(\tR\x07\x63ontent\x12(\n\x10\x63urrent_file_sha\x18\x04 \x01(\tR\x0e\x63urrentFileSha\";\n\x04Type\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\"\x83\x01\n\x12ListCommitsRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1b\n\tstart_ref\x18\x02 \x01(\tR\x08startRef\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\x12\x14\n\x05limit\x18\x04 \x01(\x05R\x05limit\x12\x12\n\x04page\x18\x05 \x01(\x05R\x04page\"F\n\x13ListCommitsResponse\x12/\n\x07\x63ommits\x18\x01 \x03(\x0b\x32\x15.alis.build.v1.CommitR\x07\x63ommits\"\xea\x01\n\x06\x43ommit\x12\x10\n\x03sha\x18\x01 \x01(\tR\x03sha\x12\'\n\x0f\x63ommitter_email\x18\x02 \x01(\tR\x0e\x63ommitterEmail\x12\x1d\n\ncreated_at\x18\x03 \x01(\tR\tcreatedAt\x12\x18\n\x07message\x18\x04 \x01(\tR\x07message\x12\x36\n\x07\x63hanges\x18\x05 \x03(\x0b\x32\x1c.alis.build.v1.Commit.ChangeR\x07\x63hanges\x1a\x34\n\x06\x43hange\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"L\n\x10ListFilesRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x10\n\x03ref\x18\x02 \x01(\tR\x03ref\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\"~\n\x11ListFilesResponse\x12;\n\x05\x66iles\x18\x01 \x03(\x0b\x32%.alis.build.v1.ListFilesResponse.FileR\x05\x66iles\x1a,\n\x04\x46ile\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x10\n\x03sha\x18\x02 \x01(\tR\x03sha\"K\n\x0fViewFileRequest\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x10\n\x03ref\x18\x02 \x01(\tR\x03ref\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\">\n\x10ViewFileResponse\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\x12\x10\n\x03sha\x18\x02 \x01(\tR\x03sha2\x91\x05\n\x05Repos\x12P\n\tListRepos\x12\x1f.alis.build.v1.ListReposRequest\x1a .alis.build.v1.ListReposResponse\"\x00\x12J\n\x0c\x43reateBranch\x12\".alis.build.v1.CreateBranchRequest\x1a\x14.alis.build.v1.Empty\"\x00\x12Y\n\x0cListBranches\x12\".alis.build.v1.ListBranchesRequest\x1a#.alis.build.v1.ListBranchesResponse\"\x00\x12J\n\x0c\x44\x65leteBranch\x12\".alis.build.v1.DeleteBranchRequest\x1a\x14.alis.build.v1.Empty\"\x00\x12J\n\x0c\x43reateCommit\x12\".alis.build.v1.CreateCommitRequest\x1a\x14.alis.build.v1.Empty\"\x00\x12V\n\x0bListCommits\x12!.alis.build.v1.ListCommitsRequest\x1a\".alis.build.v1.ListCommitsResponse\"\x00\x12P\n\tListFiles\x12\x1f.alis.build.v1.ListFilesRequest\x1a .alis.build.v1.ListFilesResponse\"\x00\x12M\n\x08ViewFile\x12\x1e.alis.build.v1.ViewFileRequest\x1a\x1f.alis.build.v1.ViewFileResponse\"\x00\x42,Z*github.com/alis-build/public-go/alis/buildb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.build.v1.repos_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z*github.com/alis-build/public-go/alis/build'
|
|
35
|
+
_globals['_EMPTY']._serialized_start=44
|
|
36
|
+
_globals['_EMPTY']._serialized_end=51
|
|
37
|
+
_globals['_LISTREPOSREQUEST']._serialized_start=53
|
|
38
|
+
_globals['_LISTREPOSREQUEST']._serialized_end=71
|
|
39
|
+
_globals['_LISTREPOSRESPONSE']._serialized_start=73
|
|
40
|
+
_globals['_LISTREPOSRESPONSE']._serialized_end=135
|
|
41
|
+
_globals['_CREATEBRANCHREQUEST']._serialized_start=137
|
|
42
|
+
_globals['_CREATEBRANCHREQUEST']._serialized_end=220
|
|
43
|
+
_globals['_REPO']._serialized_start=222
|
|
44
|
+
_globals['_REPO']._serialized_end=248
|
|
45
|
+
_globals['_LISTBRANCHESREQUEST']._serialized_start=250
|
|
46
|
+
_globals['_LISTBRANCHESREQUEST']._serialized_end=333
|
|
47
|
+
_globals['_LISTBRANCHESRESPONSE']._serialized_start=335
|
|
48
|
+
_globals['_LISTBRANCHESRESPONSE']._serialized_end=408
|
|
49
|
+
_globals['_BRANCH']._serialized_start=410
|
|
50
|
+
_globals['_BRANCH']._serialized_end=438
|
|
51
|
+
_globals['_DELETEBRANCHREQUEST']._serialized_start=440
|
|
52
|
+
_globals['_DELETEBRANCHREQUEST']._serialized_end=505
|
|
53
|
+
_globals['_CREATECOMMITREQUEST']._serialized_start=508
|
|
54
|
+
_globals['_CREATECOMMITREQUEST']._serialized_end=911
|
|
55
|
+
_globals['_CREATECOMMITREQUEST_OPERATION']._serialized_start=680
|
|
56
|
+
_globals['_CREATECOMMITREQUEST_OPERATION']._serialized_end=911
|
|
57
|
+
_globals['_CREATECOMMITREQUEST_OPERATION_TYPE']._serialized_start=852
|
|
58
|
+
_globals['_CREATECOMMITREQUEST_OPERATION_TYPE']._serialized_end=911
|
|
59
|
+
_globals['_LISTCOMMITSREQUEST']._serialized_start=914
|
|
60
|
+
_globals['_LISTCOMMITSREQUEST']._serialized_end=1045
|
|
61
|
+
_globals['_LISTCOMMITSRESPONSE']._serialized_start=1047
|
|
62
|
+
_globals['_LISTCOMMITSRESPONSE']._serialized_end=1117
|
|
63
|
+
_globals['_COMMIT']._serialized_start=1120
|
|
64
|
+
_globals['_COMMIT']._serialized_end=1354
|
|
65
|
+
_globals['_COMMIT_CHANGE']._serialized_start=1302
|
|
66
|
+
_globals['_COMMIT_CHANGE']._serialized_end=1354
|
|
67
|
+
_globals['_LISTFILESREQUEST']._serialized_start=1356
|
|
68
|
+
_globals['_LISTFILESREQUEST']._serialized_end=1432
|
|
69
|
+
_globals['_LISTFILESRESPONSE']._serialized_start=1434
|
|
70
|
+
_globals['_LISTFILESRESPONSE']._serialized_end=1560
|
|
71
|
+
_globals['_LISTFILESRESPONSE_FILE']._serialized_start=1516
|
|
72
|
+
_globals['_LISTFILESRESPONSE_FILE']._serialized_end=1560
|
|
73
|
+
_globals['_VIEWFILEREQUEST']._serialized_start=1562
|
|
74
|
+
_globals['_VIEWFILEREQUEST']._serialized_end=1637
|
|
75
|
+
_globals['_VIEWFILERESPONSE']._serialized_start=1639
|
|
76
|
+
_globals['_VIEWFILERESPONSE']._serialized_end=1701
|
|
77
|
+
_globals['_REPOS']._serialized_start=1704
|
|
78
|
+
_globals['_REPOS']._serialized_end=2361
|
|
79
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,487 @@
|
|
|
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
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
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 Empty(_message.Message):
|
|
24
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
25
|
+
|
|
26
|
+
def __init__(
|
|
27
|
+
self,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
30
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
31
|
+
_ClearFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
32
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
33
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
34
|
+
|
|
35
|
+
Global___Empty: _TypeAlias = Empty # noqa: Y015
|
|
36
|
+
|
|
37
|
+
@_typing.final
|
|
38
|
+
class ListReposRequest(_message.Message):
|
|
39
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
40
|
+
|
|
41
|
+
def __init__(
|
|
42
|
+
self,
|
|
43
|
+
) -> None: ...
|
|
44
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
45
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
46
|
+
_ClearFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
47
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
48
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
49
|
+
|
|
50
|
+
Global___ListReposRequest: _TypeAlias = ListReposRequest # noqa: Y015
|
|
51
|
+
|
|
52
|
+
@_typing.final
|
|
53
|
+
class ListReposResponse(_message.Message):
|
|
54
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
55
|
+
|
|
56
|
+
REPOS_FIELD_NUMBER: _builtins.int
|
|
57
|
+
@_builtins.property
|
|
58
|
+
def repos(self) -> _containers.RepeatedCompositeFieldContainer[Global___Repo]: ...
|
|
59
|
+
def __init__(
|
|
60
|
+
self,
|
|
61
|
+
*,
|
|
62
|
+
repos: _abc.Iterable[Global___Repo] | None = ...,
|
|
63
|
+
) -> None: ...
|
|
64
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
65
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
66
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["repos", b"repos"] # noqa: Y015
|
|
67
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
68
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
69
|
+
|
|
70
|
+
Global___ListReposResponse: _TypeAlias = ListReposResponse # noqa: Y015
|
|
71
|
+
|
|
72
|
+
@_typing.final
|
|
73
|
+
class CreateBranchRequest(_message.Message):
|
|
74
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
75
|
+
|
|
76
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
77
|
+
BRANCH_FIELD_NUMBER: _builtins.int
|
|
78
|
+
REF_FIELD_NUMBER: _builtins.int
|
|
79
|
+
repo: _builtins.str
|
|
80
|
+
branch: _builtins.str
|
|
81
|
+
ref: _builtins.str
|
|
82
|
+
def __init__(
|
|
83
|
+
self,
|
|
84
|
+
*,
|
|
85
|
+
repo: _builtins.str = ...,
|
|
86
|
+
branch: _builtins.str = ...,
|
|
87
|
+
ref: _builtins.str = ...,
|
|
88
|
+
) -> None: ...
|
|
89
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
90
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
91
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["branch", b"branch", "ref", b"ref", "repo", b"repo"] # noqa: Y015
|
|
92
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
93
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
94
|
+
|
|
95
|
+
Global___CreateBranchRequest: _TypeAlias = CreateBranchRequest # noqa: Y015
|
|
96
|
+
|
|
97
|
+
@_typing.final
|
|
98
|
+
class Repo(_message.Message):
|
|
99
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
100
|
+
|
|
101
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
102
|
+
name: _builtins.str
|
|
103
|
+
def __init__(
|
|
104
|
+
self,
|
|
105
|
+
*,
|
|
106
|
+
name: _builtins.str = ...,
|
|
107
|
+
) -> None: ...
|
|
108
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
109
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
110
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015
|
|
111
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
112
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
113
|
+
|
|
114
|
+
Global___Repo: _TypeAlias = Repo # noqa: Y015
|
|
115
|
+
|
|
116
|
+
@_typing.final
|
|
117
|
+
class ListBranchesRequest(_message.Message):
|
|
118
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
119
|
+
|
|
120
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
121
|
+
LIMIT_FIELD_NUMBER: _builtins.int
|
|
122
|
+
PAGE_FIELD_NUMBER: _builtins.int
|
|
123
|
+
repo: _builtins.str
|
|
124
|
+
limit: _builtins.int
|
|
125
|
+
page: _builtins.int
|
|
126
|
+
def __init__(
|
|
127
|
+
self,
|
|
128
|
+
*,
|
|
129
|
+
repo: _builtins.str = ...,
|
|
130
|
+
limit: _builtins.int = ...,
|
|
131
|
+
page: _builtins.int = ...,
|
|
132
|
+
) -> None: ...
|
|
133
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
134
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
135
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["limit", b"limit", "page", b"page", "repo", b"repo"] # noqa: Y015
|
|
136
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
137
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
138
|
+
|
|
139
|
+
Global___ListBranchesRequest: _TypeAlias = ListBranchesRequest # noqa: Y015
|
|
140
|
+
|
|
141
|
+
@_typing.final
|
|
142
|
+
class ListBranchesResponse(_message.Message):
|
|
143
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
144
|
+
|
|
145
|
+
BRANCHES_FIELD_NUMBER: _builtins.int
|
|
146
|
+
@_builtins.property
|
|
147
|
+
def branches(self) -> _containers.RepeatedCompositeFieldContainer[Global___Branch]: ...
|
|
148
|
+
def __init__(
|
|
149
|
+
self,
|
|
150
|
+
*,
|
|
151
|
+
branches: _abc.Iterable[Global___Branch] | None = ...,
|
|
152
|
+
) -> None: ...
|
|
153
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
154
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
155
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["branches", b"branches"] # noqa: Y015
|
|
156
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
157
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
158
|
+
|
|
159
|
+
Global___ListBranchesResponse: _TypeAlias = ListBranchesResponse # noqa: Y015
|
|
160
|
+
|
|
161
|
+
@_typing.final
|
|
162
|
+
class Branch(_message.Message):
|
|
163
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
164
|
+
|
|
165
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
166
|
+
name: _builtins.str
|
|
167
|
+
def __init__(
|
|
168
|
+
self,
|
|
169
|
+
*,
|
|
170
|
+
name: _builtins.str = ...,
|
|
171
|
+
) -> None: ...
|
|
172
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
173
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
174
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name"] # noqa: Y015
|
|
175
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
176
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
177
|
+
|
|
178
|
+
Global___Branch: _TypeAlias = Branch # noqa: Y015
|
|
179
|
+
|
|
180
|
+
@_typing.final
|
|
181
|
+
class DeleteBranchRequest(_message.Message):
|
|
182
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
183
|
+
|
|
184
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
185
|
+
BRANCH_FIELD_NUMBER: _builtins.int
|
|
186
|
+
repo: _builtins.str
|
|
187
|
+
branch: _builtins.str
|
|
188
|
+
def __init__(
|
|
189
|
+
self,
|
|
190
|
+
*,
|
|
191
|
+
repo: _builtins.str = ...,
|
|
192
|
+
branch: _builtins.str = ...,
|
|
193
|
+
) -> None: ...
|
|
194
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
195
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
196
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["branch", b"branch", "repo", b"repo"] # noqa: Y015
|
|
197
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
198
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
199
|
+
|
|
200
|
+
Global___DeleteBranchRequest: _TypeAlias = DeleteBranchRequest # noqa: Y015
|
|
201
|
+
|
|
202
|
+
@_typing.final
|
|
203
|
+
class CreateCommitRequest(_message.Message):
|
|
204
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
205
|
+
|
|
206
|
+
@_typing.final
|
|
207
|
+
class Operation(_message.Message):
|
|
208
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
209
|
+
|
|
210
|
+
class _Type:
|
|
211
|
+
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
212
|
+
V: _TypeAlias = ValueType # noqa: Y015
|
|
213
|
+
|
|
214
|
+
class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[CreateCommitRequest.Operation._Type.ValueType], _builtins.type):
|
|
215
|
+
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
216
|
+
UNSPECIFIED: CreateCommitRequest.Operation._Type.ValueType # 0
|
|
217
|
+
CREATE: CreateCommitRequest.Operation._Type.ValueType # 1
|
|
218
|
+
UPDATE: CreateCommitRequest.Operation._Type.ValueType # 2
|
|
219
|
+
DELETE: CreateCommitRequest.Operation._Type.ValueType # 3
|
|
220
|
+
|
|
221
|
+
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
222
|
+
UNSPECIFIED: CreateCommitRequest.Operation.Type.ValueType # 0
|
|
223
|
+
CREATE: CreateCommitRequest.Operation.Type.ValueType # 1
|
|
224
|
+
UPDATE: CreateCommitRequest.Operation.Type.ValueType # 2
|
|
225
|
+
DELETE: CreateCommitRequest.Operation.Type.ValueType # 3
|
|
226
|
+
|
|
227
|
+
PATH_FIELD_NUMBER: _builtins.int
|
|
228
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
229
|
+
CONTENT_FIELD_NUMBER: _builtins.int
|
|
230
|
+
CURRENT_FILE_SHA_FIELD_NUMBER: _builtins.int
|
|
231
|
+
path: _builtins.str
|
|
232
|
+
type: Global___CreateCommitRequest.Operation.Type.ValueType
|
|
233
|
+
content: _builtins.str
|
|
234
|
+
current_file_sha: _builtins.str
|
|
235
|
+
def __init__(
|
|
236
|
+
self,
|
|
237
|
+
*,
|
|
238
|
+
path: _builtins.str = ...,
|
|
239
|
+
type: Global___CreateCommitRequest.Operation.Type.ValueType = ...,
|
|
240
|
+
content: _builtins.str = ...,
|
|
241
|
+
current_file_sha: _builtins.str = ...,
|
|
242
|
+
) -> None: ...
|
|
243
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
244
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
245
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content", "current_file_sha", b"current_file_sha", "path", b"path", "type", b"type"] # noqa: Y015
|
|
246
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
247
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
248
|
+
|
|
249
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
250
|
+
BRANCH_FIELD_NUMBER: _builtins.int
|
|
251
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
252
|
+
OPERATIONS_FIELD_NUMBER: _builtins.int
|
|
253
|
+
repo: _builtins.str
|
|
254
|
+
branch: _builtins.str
|
|
255
|
+
message: _builtins.str
|
|
256
|
+
@_builtins.property
|
|
257
|
+
def operations(self) -> _containers.RepeatedCompositeFieldContainer[Global___CreateCommitRequest.Operation]: ...
|
|
258
|
+
def __init__(
|
|
259
|
+
self,
|
|
260
|
+
*,
|
|
261
|
+
repo: _builtins.str = ...,
|
|
262
|
+
branch: _builtins.str = ...,
|
|
263
|
+
message: _builtins.str = ...,
|
|
264
|
+
operations: _abc.Iterable[Global___CreateCommitRequest.Operation] | None = ...,
|
|
265
|
+
) -> None: ...
|
|
266
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
267
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
268
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["branch", b"branch", "message", b"message", "operations", b"operations", "repo", b"repo"] # noqa: Y015
|
|
269
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
270
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
271
|
+
|
|
272
|
+
Global___CreateCommitRequest: _TypeAlias = CreateCommitRequest # noqa: Y015
|
|
273
|
+
|
|
274
|
+
@_typing.final
|
|
275
|
+
class ListCommitsRequest(_message.Message):
|
|
276
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
277
|
+
|
|
278
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
279
|
+
START_REF_FIELD_NUMBER: _builtins.int
|
|
280
|
+
PATH_FIELD_NUMBER: _builtins.int
|
|
281
|
+
LIMIT_FIELD_NUMBER: _builtins.int
|
|
282
|
+
PAGE_FIELD_NUMBER: _builtins.int
|
|
283
|
+
repo: _builtins.str
|
|
284
|
+
start_ref: _builtins.str
|
|
285
|
+
path: _builtins.str
|
|
286
|
+
limit: _builtins.int
|
|
287
|
+
page: _builtins.int
|
|
288
|
+
def __init__(
|
|
289
|
+
self,
|
|
290
|
+
*,
|
|
291
|
+
repo: _builtins.str = ...,
|
|
292
|
+
start_ref: _builtins.str = ...,
|
|
293
|
+
path: _builtins.str = ...,
|
|
294
|
+
limit: _builtins.int = ...,
|
|
295
|
+
page: _builtins.int = ...,
|
|
296
|
+
) -> None: ...
|
|
297
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
298
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
299
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["limit", b"limit", "page", b"page", "path", b"path", "repo", b"repo", "start_ref", b"start_ref"] # noqa: Y015
|
|
300
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
301
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
302
|
+
|
|
303
|
+
Global___ListCommitsRequest: _TypeAlias = ListCommitsRequest # noqa: Y015
|
|
304
|
+
|
|
305
|
+
@_typing.final
|
|
306
|
+
class ListCommitsResponse(_message.Message):
|
|
307
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
308
|
+
|
|
309
|
+
COMMITS_FIELD_NUMBER: _builtins.int
|
|
310
|
+
@_builtins.property
|
|
311
|
+
def commits(self) -> _containers.RepeatedCompositeFieldContainer[Global___Commit]: ...
|
|
312
|
+
def __init__(
|
|
313
|
+
self,
|
|
314
|
+
*,
|
|
315
|
+
commits: _abc.Iterable[Global___Commit] | None = ...,
|
|
316
|
+
) -> None: ...
|
|
317
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
318
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
319
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["commits", b"commits"] # noqa: Y015
|
|
320
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
321
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
322
|
+
|
|
323
|
+
Global___ListCommitsResponse: _TypeAlias = ListCommitsResponse # noqa: Y015
|
|
324
|
+
|
|
325
|
+
@_typing.final
|
|
326
|
+
class Commit(_message.Message):
|
|
327
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
328
|
+
|
|
329
|
+
@_typing.final
|
|
330
|
+
class Change(_message.Message):
|
|
331
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
332
|
+
|
|
333
|
+
PATH_FIELD_NUMBER: _builtins.int
|
|
334
|
+
STATUS_FIELD_NUMBER: _builtins.int
|
|
335
|
+
path: _builtins.str
|
|
336
|
+
status: _builtins.str
|
|
337
|
+
def __init__(
|
|
338
|
+
self,
|
|
339
|
+
*,
|
|
340
|
+
path: _builtins.str = ...,
|
|
341
|
+
status: _builtins.str = ...,
|
|
342
|
+
) -> None: ...
|
|
343
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
344
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
345
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["path", b"path", "status", b"status"] # noqa: Y015
|
|
346
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
347
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
348
|
+
|
|
349
|
+
SHA_FIELD_NUMBER: _builtins.int
|
|
350
|
+
COMMITTER_EMAIL_FIELD_NUMBER: _builtins.int
|
|
351
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
352
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
353
|
+
CHANGES_FIELD_NUMBER: _builtins.int
|
|
354
|
+
sha: _builtins.str
|
|
355
|
+
committer_email: _builtins.str
|
|
356
|
+
created_at: _builtins.str
|
|
357
|
+
message: _builtins.str
|
|
358
|
+
@_builtins.property
|
|
359
|
+
def changes(self) -> _containers.RepeatedCompositeFieldContainer[Global___Commit.Change]: ...
|
|
360
|
+
def __init__(
|
|
361
|
+
self,
|
|
362
|
+
*,
|
|
363
|
+
sha: _builtins.str = ...,
|
|
364
|
+
committer_email: _builtins.str = ...,
|
|
365
|
+
created_at: _builtins.str = ...,
|
|
366
|
+
message: _builtins.str = ...,
|
|
367
|
+
changes: _abc.Iterable[Global___Commit.Change] | None = ...,
|
|
368
|
+
) -> None: ...
|
|
369
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
370
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
371
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["changes", b"changes", "committer_email", b"committer_email", "created_at", b"created_at", "message", b"message", "sha", b"sha"] # noqa: Y015
|
|
372
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
373
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
374
|
+
|
|
375
|
+
Global___Commit: _TypeAlias = Commit # noqa: Y015
|
|
376
|
+
|
|
377
|
+
@_typing.final
|
|
378
|
+
class ListFilesRequest(_message.Message):
|
|
379
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
380
|
+
|
|
381
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
382
|
+
REF_FIELD_NUMBER: _builtins.int
|
|
383
|
+
PATH_FIELD_NUMBER: _builtins.int
|
|
384
|
+
repo: _builtins.str
|
|
385
|
+
ref: _builtins.str
|
|
386
|
+
path: _builtins.str
|
|
387
|
+
def __init__(
|
|
388
|
+
self,
|
|
389
|
+
*,
|
|
390
|
+
repo: _builtins.str = ...,
|
|
391
|
+
ref: _builtins.str = ...,
|
|
392
|
+
path: _builtins.str = ...,
|
|
393
|
+
) -> None: ...
|
|
394
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
395
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
396
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["path", b"path", "ref", b"ref", "repo", b"repo"] # noqa: Y015
|
|
397
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
398
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
399
|
+
|
|
400
|
+
Global___ListFilesRequest: _TypeAlias = ListFilesRequest # noqa: Y015
|
|
401
|
+
|
|
402
|
+
@_typing.final
|
|
403
|
+
class ListFilesResponse(_message.Message):
|
|
404
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
405
|
+
|
|
406
|
+
@_typing.final
|
|
407
|
+
class File(_message.Message):
|
|
408
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
409
|
+
|
|
410
|
+
PATH_FIELD_NUMBER: _builtins.int
|
|
411
|
+
SHA_FIELD_NUMBER: _builtins.int
|
|
412
|
+
path: _builtins.str
|
|
413
|
+
sha: _builtins.str
|
|
414
|
+
def __init__(
|
|
415
|
+
self,
|
|
416
|
+
*,
|
|
417
|
+
path: _builtins.str = ...,
|
|
418
|
+
sha: _builtins.str = ...,
|
|
419
|
+
) -> None: ...
|
|
420
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
421
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
422
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["path", b"path", "sha", b"sha"] # noqa: Y015
|
|
423
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
424
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
425
|
+
|
|
426
|
+
FILES_FIELD_NUMBER: _builtins.int
|
|
427
|
+
@_builtins.property
|
|
428
|
+
def files(self) -> _containers.RepeatedCompositeFieldContainer[Global___ListFilesResponse.File]: ...
|
|
429
|
+
def __init__(
|
|
430
|
+
self,
|
|
431
|
+
*,
|
|
432
|
+
files: _abc.Iterable[Global___ListFilesResponse.File] | None = ...,
|
|
433
|
+
) -> None: ...
|
|
434
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
435
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
436
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["files", b"files"] # noqa: Y015
|
|
437
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
438
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
439
|
+
|
|
440
|
+
Global___ListFilesResponse: _TypeAlias = ListFilesResponse # noqa: Y015
|
|
441
|
+
|
|
442
|
+
@_typing.final
|
|
443
|
+
class ViewFileRequest(_message.Message):
|
|
444
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
445
|
+
|
|
446
|
+
REPO_FIELD_NUMBER: _builtins.int
|
|
447
|
+
REF_FIELD_NUMBER: _builtins.int
|
|
448
|
+
PATH_FIELD_NUMBER: _builtins.int
|
|
449
|
+
repo: _builtins.str
|
|
450
|
+
ref: _builtins.str
|
|
451
|
+
path: _builtins.str
|
|
452
|
+
def __init__(
|
|
453
|
+
self,
|
|
454
|
+
*,
|
|
455
|
+
repo: _builtins.str = ...,
|
|
456
|
+
ref: _builtins.str = ...,
|
|
457
|
+
path: _builtins.str = ...,
|
|
458
|
+
) -> None: ...
|
|
459
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
460
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
461
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["path", b"path", "ref", b"ref", "repo", b"repo"] # noqa: Y015
|
|
462
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
463
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
464
|
+
|
|
465
|
+
Global___ViewFileRequest: _TypeAlias = ViewFileRequest # noqa: Y015
|
|
466
|
+
|
|
467
|
+
@_typing.final
|
|
468
|
+
class ViewFileResponse(_message.Message):
|
|
469
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
470
|
+
|
|
471
|
+
CONTENT_FIELD_NUMBER: _builtins.int
|
|
472
|
+
SHA_FIELD_NUMBER: _builtins.int
|
|
473
|
+
content: _builtins.str
|
|
474
|
+
sha: _builtins.str
|
|
475
|
+
def __init__(
|
|
476
|
+
self,
|
|
477
|
+
*,
|
|
478
|
+
content: _builtins.str = ...,
|
|
479
|
+
sha: _builtins.str = ...,
|
|
480
|
+
) -> None: ...
|
|
481
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
482
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
483
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content", "sha", b"sha"] # noqa: Y015
|
|
484
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
485
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
486
|
+
|
|
487
|
+
Global___ViewFileResponse: _TypeAlias = ViewFileResponse # noqa: Y015
|
|
@@ -0,0 +1,398 @@
|
|
|
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
|
+
from alis.build.v1 import repos_pb2 as alis_dot_build_dot_v1_dot_repos__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.81.1'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in alis/build/v1/repos_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ReposStub:
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.ListRepos = channel.unary_unary(
|
|
38
|
+
'/alis.build.v1.Repos/ListRepos',
|
|
39
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListReposRequest.SerializeToString,
|
|
40
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListReposResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.CreateBranch = channel.unary_unary(
|
|
43
|
+
'/alis.build.v1.Repos/CreateBranch',
|
|
44
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.CreateBranchRequest.SerializeToString,
|
|
45
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.Empty.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.ListBranches = channel.unary_unary(
|
|
48
|
+
'/alis.build.v1.Repos/ListBranches',
|
|
49
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListBranchesRequest.SerializeToString,
|
|
50
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListBranchesResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.DeleteBranch = channel.unary_unary(
|
|
53
|
+
'/alis.build.v1.Repos/DeleteBranch',
|
|
54
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.DeleteBranchRequest.SerializeToString,
|
|
55
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.Empty.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.CreateCommit = channel.unary_unary(
|
|
58
|
+
'/alis.build.v1.Repos/CreateCommit',
|
|
59
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.CreateCommitRequest.SerializeToString,
|
|
60
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.Empty.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.ListCommits = channel.unary_unary(
|
|
63
|
+
'/alis.build.v1.Repos/ListCommits',
|
|
64
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListCommitsRequest.SerializeToString,
|
|
65
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListCommitsResponse.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
self.ListFiles = channel.unary_unary(
|
|
68
|
+
'/alis.build.v1.Repos/ListFiles',
|
|
69
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListFilesRequest.SerializeToString,
|
|
70
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListFilesResponse.FromString,
|
|
71
|
+
_registered_method=True)
|
|
72
|
+
self.ViewFile = channel.unary_unary(
|
|
73
|
+
'/alis.build.v1.Repos/ViewFile',
|
|
74
|
+
request_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ViewFileRequest.SerializeToString,
|
|
75
|
+
response_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ViewFileResponse.FromString,
|
|
76
|
+
_registered_method=True)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class ReposServicer:
|
|
80
|
+
"""Missing associated documentation comment in .proto file."""
|
|
81
|
+
|
|
82
|
+
def ListRepos(self, request, context):
|
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
|
84
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
85
|
+
context.set_details('Method not implemented!')
|
|
86
|
+
raise NotImplementedError('Method not implemented!')
|
|
87
|
+
|
|
88
|
+
def CreateBranch(self, request, context):
|
|
89
|
+
"""Missing associated documentation comment in .proto file."""
|
|
90
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
91
|
+
context.set_details('Method not implemented!')
|
|
92
|
+
raise NotImplementedError('Method not implemented!')
|
|
93
|
+
|
|
94
|
+
def ListBranches(self, request, context):
|
|
95
|
+
"""Missing associated documentation comment in .proto file."""
|
|
96
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
97
|
+
context.set_details('Method not implemented!')
|
|
98
|
+
raise NotImplementedError('Method not implemented!')
|
|
99
|
+
|
|
100
|
+
def DeleteBranch(self, request, context):
|
|
101
|
+
"""Missing associated documentation comment in .proto file."""
|
|
102
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
103
|
+
context.set_details('Method not implemented!')
|
|
104
|
+
raise NotImplementedError('Method not implemented!')
|
|
105
|
+
|
|
106
|
+
def CreateCommit(self, request, context):
|
|
107
|
+
"""Missing associated documentation comment in .proto file."""
|
|
108
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
109
|
+
context.set_details('Method not implemented!')
|
|
110
|
+
raise NotImplementedError('Method not implemented!')
|
|
111
|
+
|
|
112
|
+
def ListCommits(self, request, context):
|
|
113
|
+
"""Missing associated documentation comment in .proto file."""
|
|
114
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
115
|
+
context.set_details('Method not implemented!')
|
|
116
|
+
raise NotImplementedError('Method not implemented!')
|
|
117
|
+
|
|
118
|
+
def ListFiles(self, request, context):
|
|
119
|
+
"""Missing associated documentation comment in .proto file."""
|
|
120
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
121
|
+
context.set_details('Method not implemented!')
|
|
122
|
+
raise NotImplementedError('Method not implemented!')
|
|
123
|
+
|
|
124
|
+
def ViewFile(self, request, context):
|
|
125
|
+
"""Missing associated documentation comment in .proto file."""
|
|
126
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
127
|
+
context.set_details('Method not implemented!')
|
|
128
|
+
raise NotImplementedError('Method not implemented!')
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def add_ReposServicer_to_server(servicer, server):
|
|
132
|
+
rpc_method_handlers = {
|
|
133
|
+
'ListRepos': grpc.unary_unary_rpc_method_handler(
|
|
134
|
+
servicer.ListRepos,
|
|
135
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListReposRequest.FromString,
|
|
136
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListReposResponse.SerializeToString,
|
|
137
|
+
),
|
|
138
|
+
'CreateBranch': grpc.unary_unary_rpc_method_handler(
|
|
139
|
+
servicer.CreateBranch,
|
|
140
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.CreateBranchRequest.FromString,
|
|
141
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.Empty.SerializeToString,
|
|
142
|
+
),
|
|
143
|
+
'ListBranches': grpc.unary_unary_rpc_method_handler(
|
|
144
|
+
servicer.ListBranches,
|
|
145
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListBranchesRequest.FromString,
|
|
146
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListBranchesResponse.SerializeToString,
|
|
147
|
+
),
|
|
148
|
+
'DeleteBranch': grpc.unary_unary_rpc_method_handler(
|
|
149
|
+
servicer.DeleteBranch,
|
|
150
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.DeleteBranchRequest.FromString,
|
|
151
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.Empty.SerializeToString,
|
|
152
|
+
),
|
|
153
|
+
'CreateCommit': grpc.unary_unary_rpc_method_handler(
|
|
154
|
+
servicer.CreateCommit,
|
|
155
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.CreateCommitRequest.FromString,
|
|
156
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.Empty.SerializeToString,
|
|
157
|
+
),
|
|
158
|
+
'ListCommits': grpc.unary_unary_rpc_method_handler(
|
|
159
|
+
servicer.ListCommits,
|
|
160
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListCommitsRequest.FromString,
|
|
161
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListCommitsResponse.SerializeToString,
|
|
162
|
+
),
|
|
163
|
+
'ListFiles': grpc.unary_unary_rpc_method_handler(
|
|
164
|
+
servicer.ListFiles,
|
|
165
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ListFilesRequest.FromString,
|
|
166
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ListFilesResponse.SerializeToString,
|
|
167
|
+
),
|
|
168
|
+
'ViewFile': grpc.unary_unary_rpc_method_handler(
|
|
169
|
+
servicer.ViewFile,
|
|
170
|
+
request_deserializer=alis_dot_build_dot_v1_dot_repos__pb2.ViewFileRequest.FromString,
|
|
171
|
+
response_serializer=alis_dot_build_dot_v1_dot_repos__pb2.ViewFileResponse.SerializeToString,
|
|
172
|
+
),
|
|
173
|
+
}
|
|
174
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
175
|
+
'alis.build.v1.Repos', rpc_method_handlers)
|
|
176
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
177
|
+
server.add_registered_method_handlers('alis.build.v1.Repos', rpc_method_handlers)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
# This class is part of an EXPERIMENTAL API.
|
|
181
|
+
class Repos:
|
|
182
|
+
"""Missing associated documentation comment in .proto file."""
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def ListRepos(request,
|
|
186
|
+
target,
|
|
187
|
+
options=(),
|
|
188
|
+
channel_credentials=None,
|
|
189
|
+
call_credentials=None,
|
|
190
|
+
insecure=False,
|
|
191
|
+
compression=None,
|
|
192
|
+
wait_for_ready=None,
|
|
193
|
+
timeout=None,
|
|
194
|
+
metadata=None):
|
|
195
|
+
return grpc.experimental.unary_unary(
|
|
196
|
+
request,
|
|
197
|
+
target,
|
|
198
|
+
'/alis.build.v1.Repos/ListRepos',
|
|
199
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListReposRequest.SerializeToString,
|
|
200
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListReposResponse.FromString,
|
|
201
|
+
options,
|
|
202
|
+
channel_credentials,
|
|
203
|
+
insecure,
|
|
204
|
+
call_credentials,
|
|
205
|
+
compression,
|
|
206
|
+
wait_for_ready,
|
|
207
|
+
timeout,
|
|
208
|
+
metadata,
|
|
209
|
+
_registered_method=True)
|
|
210
|
+
|
|
211
|
+
@staticmethod
|
|
212
|
+
def CreateBranch(request,
|
|
213
|
+
target,
|
|
214
|
+
options=(),
|
|
215
|
+
channel_credentials=None,
|
|
216
|
+
call_credentials=None,
|
|
217
|
+
insecure=False,
|
|
218
|
+
compression=None,
|
|
219
|
+
wait_for_ready=None,
|
|
220
|
+
timeout=None,
|
|
221
|
+
metadata=None):
|
|
222
|
+
return grpc.experimental.unary_unary(
|
|
223
|
+
request,
|
|
224
|
+
target,
|
|
225
|
+
'/alis.build.v1.Repos/CreateBranch',
|
|
226
|
+
alis_dot_build_dot_v1_dot_repos__pb2.CreateBranchRequest.SerializeToString,
|
|
227
|
+
alis_dot_build_dot_v1_dot_repos__pb2.Empty.FromString,
|
|
228
|
+
options,
|
|
229
|
+
channel_credentials,
|
|
230
|
+
insecure,
|
|
231
|
+
call_credentials,
|
|
232
|
+
compression,
|
|
233
|
+
wait_for_ready,
|
|
234
|
+
timeout,
|
|
235
|
+
metadata,
|
|
236
|
+
_registered_method=True)
|
|
237
|
+
|
|
238
|
+
@staticmethod
|
|
239
|
+
def ListBranches(request,
|
|
240
|
+
target,
|
|
241
|
+
options=(),
|
|
242
|
+
channel_credentials=None,
|
|
243
|
+
call_credentials=None,
|
|
244
|
+
insecure=False,
|
|
245
|
+
compression=None,
|
|
246
|
+
wait_for_ready=None,
|
|
247
|
+
timeout=None,
|
|
248
|
+
metadata=None):
|
|
249
|
+
return grpc.experimental.unary_unary(
|
|
250
|
+
request,
|
|
251
|
+
target,
|
|
252
|
+
'/alis.build.v1.Repos/ListBranches',
|
|
253
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListBranchesRequest.SerializeToString,
|
|
254
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListBranchesResponse.FromString,
|
|
255
|
+
options,
|
|
256
|
+
channel_credentials,
|
|
257
|
+
insecure,
|
|
258
|
+
call_credentials,
|
|
259
|
+
compression,
|
|
260
|
+
wait_for_ready,
|
|
261
|
+
timeout,
|
|
262
|
+
metadata,
|
|
263
|
+
_registered_method=True)
|
|
264
|
+
|
|
265
|
+
@staticmethod
|
|
266
|
+
def DeleteBranch(request,
|
|
267
|
+
target,
|
|
268
|
+
options=(),
|
|
269
|
+
channel_credentials=None,
|
|
270
|
+
call_credentials=None,
|
|
271
|
+
insecure=False,
|
|
272
|
+
compression=None,
|
|
273
|
+
wait_for_ready=None,
|
|
274
|
+
timeout=None,
|
|
275
|
+
metadata=None):
|
|
276
|
+
return grpc.experimental.unary_unary(
|
|
277
|
+
request,
|
|
278
|
+
target,
|
|
279
|
+
'/alis.build.v1.Repos/DeleteBranch',
|
|
280
|
+
alis_dot_build_dot_v1_dot_repos__pb2.DeleteBranchRequest.SerializeToString,
|
|
281
|
+
alis_dot_build_dot_v1_dot_repos__pb2.Empty.FromString,
|
|
282
|
+
options,
|
|
283
|
+
channel_credentials,
|
|
284
|
+
insecure,
|
|
285
|
+
call_credentials,
|
|
286
|
+
compression,
|
|
287
|
+
wait_for_ready,
|
|
288
|
+
timeout,
|
|
289
|
+
metadata,
|
|
290
|
+
_registered_method=True)
|
|
291
|
+
|
|
292
|
+
@staticmethod
|
|
293
|
+
def CreateCommit(request,
|
|
294
|
+
target,
|
|
295
|
+
options=(),
|
|
296
|
+
channel_credentials=None,
|
|
297
|
+
call_credentials=None,
|
|
298
|
+
insecure=False,
|
|
299
|
+
compression=None,
|
|
300
|
+
wait_for_ready=None,
|
|
301
|
+
timeout=None,
|
|
302
|
+
metadata=None):
|
|
303
|
+
return grpc.experimental.unary_unary(
|
|
304
|
+
request,
|
|
305
|
+
target,
|
|
306
|
+
'/alis.build.v1.Repos/CreateCommit',
|
|
307
|
+
alis_dot_build_dot_v1_dot_repos__pb2.CreateCommitRequest.SerializeToString,
|
|
308
|
+
alis_dot_build_dot_v1_dot_repos__pb2.Empty.FromString,
|
|
309
|
+
options,
|
|
310
|
+
channel_credentials,
|
|
311
|
+
insecure,
|
|
312
|
+
call_credentials,
|
|
313
|
+
compression,
|
|
314
|
+
wait_for_ready,
|
|
315
|
+
timeout,
|
|
316
|
+
metadata,
|
|
317
|
+
_registered_method=True)
|
|
318
|
+
|
|
319
|
+
@staticmethod
|
|
320
|
+
def ListCommits(request,
|
|
321
|
+
target,
|
|
322
|
+
options=(),
|
|
323
|
+
channel_credentials=None,
|
|
324
|
+
call_credentials=None,
|
|
325
|
+
insecure=False,
|
|
326
|
+
compression=None,
|
|
327
|
+
wait_for_ready=None,
|
|
328
|
+
timeout=None,
|
|
329
|
+
metadata=None):
|
|
330
|
+
return grpc.experimental.unary_unary(
|
|
331
|
+
request,
|
|
332
|
+
target,
|
|
333
|
+
'/alis.build.v1.Repos/ListCommits',
|
|
334
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListCommitsRequest.SerializeToString,
|
|
335
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListCommitsResponse.FromString,
|
|
336
|
+
options,
|
|
337
|
+
channel_credentials,
|
|
338
|
+
insecure,
|
|
339
|
+
call_credentials,
|
|
340
|
+
compression,
|
|
341
|
+
wait_for_ready,
|
|
342
|
+
timeout,
|
|
343
|
+
metadata,
|
|
344
|
+
_registered_method=True)
|
|
345
|
+
|
|
346
|
+
@staticmethod
|
|
347
|
+
def ListFiles(request,
|
|
348
|
+
target,
|
|
349
|
+
options=(),
|
|
350
|
+
channel_credentials=None,
|
|
351
|
+
call_credentials=None,
|
|
352
|
+
insecure=False,
|
|
353
|
+
compression=None,
|
|
354
|
+
wait_for_ready=None,
|
|
355
|
+
timeout=None,
|
|
356
|
+
metadata=None):
|
|
357
|
+
return grpc.experimental.unary_unary(
|
|
358
|
+
request,
|
|
359
|
+
target,
|
|
360
|
+
'/alis.build.v1.Repos/ListFiles',
|
|
361
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListFilesRequest.SerializeToString,
|
|
362
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ListFilesResponse.FromString,
|
|
363
|
+
options,
|
|
364
|
+
channel_credentials,
|
|
365
|
+
insecure,
|
|
366
|
+
call_credentials,
|
|
367
|
+
compression,
|
|
368
|
+
wait_for_ready,
|
|
369
|
+
timeout,
|
|
370
|
+
metadata,
|
|
371
|
+
_registered_method=True)
|
|
372
|
+
|
|
373
|
+
@staticmethod
|
|
374
|
+
def ViewFile(request,
|
|
375
|
+
target,
|
|
376
|
+
options=(),
|
|
377
|
+
channel_credentials=None,
|
|
378
|
+
call_credentials=None,
|
|
379
|
+
insecure=False,
|
|
380
|
+
compression=None,
|
|
381
|
+
wait_for_ready=None,
|
|
382
|
+
timeout=None,
|
|
383
|
+
metadata=None):
|
|
384
|
+
return grpc.experimental.unary_unary(
|
|
385
|
+
request,
|
|
386
|
+
target,
|
|
387
|
+
'/alis.build.v1.Repos/ViewFile',
|
|
388
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ViewFileRequest.SerializeToString,
|
|
389
|
+
alis_dot_build_dot_v1_dot_repos__pb2.ViewFileResponse.FromString,
|
|
390
|
+
options,
|
|
391
|
+
channel_credentials,
|
|
392
|
+
insecure,
|
|
393
|
+
call_credentials,
|
|
394
|
+
compression,
|
|
395
|
+
wait_for_ready,
|
|
396
|
+
timeout,
|
|
397
|
+
metadata,
|
|
398
|
+
_registered_method=True)
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from alis.build.v1 import repos_pb2 as _repos_pb2
|
|
7
|
+
from collections import abc as _abc
|
|
8
|
+
from grpc import aio as _aio
|
|
9
|
+
import abc as _abc_1
|
|
10
|
+
import grpc as _grpc
|
|
11
|
+
import sys
|
|
12
|
+
import typing as _typing
|
|
13
|
+
|
|
14
|
+
if sys.version_info >= (3, 11):
|
|
15
|
+
from typing import Self as _Self
|
|
16
|
+
else:
|
|
17
|
+
from typing_extensions import Self as _Self
|
|
18
|
+
|
|
19
|
+
_T = _typing.TypeVar("_T")
|
|
20
|
+
|
|
21
|
+
class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
|
|
22
|
+
|
|
23
|
+
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
24
|
+
...
|
|
25
|
+
|
|
26
|
+
GRPC_GENERATED_VERSION: str
|
|
27
|
+
GRPC_VERSION: str
|
|
28
|
+
|
|
29
|
+
class ReposStub:
|
|
30
|
+
@_typing.overload
|
|
31
|
+
def __new__(cls, channel: _grpc.Channel) -> _Self: ...
|
|
32
|
+
@_typing.overload
|
|
33
|
+
def __new__(cls, channel: _aio.Channel) -> ReposAsyncStub: ...
|
|
34
|
+
ListRepos: _grpc.UnaryUnaryMultiCallable[_repos_pb2.ListReposRequest, _repos_pb2.ListReposResponse]
|
|
35
|
+
CreateBranch: _grpc.UnaryUnaryMultiCallable[_repos_pb2.CreateBranchRequest, _repos_pb2.Empty]
|
|
36
|
+
ListBranches: _grpc.UnaryUnaryMultiCallable[_repos_pb2.ListBranchesRequest, _repos_pb2.ListBranchesResponse]
|
|
37
|
+
DeleteBranch: _grpc.UnaryUnaryMultiCallable[_repos_pb2.DeleteBranchRequest, _repos_pb2.Empty]
|
|
38
|
+
CreateCommit: _grpc.UnaryUnaryMultiCallable[_repos_pb2.CreateCommitRequest, _repos_pb2.Empty]
|
|
39
|
+
ListCommits: _grpc.UnaryUnaryMultiCallable[_repos_pb2.ListCommitsRequest, _repos_pb2.ListCommitsResponse]
|
|
40
|
+
ListFiles: _grpc.UnaryUnaryMultiCallable[_repos_pb2.ListFilesRequest, _repos_pb2.ListFilesResponse]
|
|
41
|
+
ViewFile: _grpc.UnaryUnaryMultiCallable[_repos_pb2.ViewFileRequest, _repos_pb2.ViewFileResponse]
|
|
42
|
+
|
|
43
|
+
@_typing.type_check_only
|
|
44
|
+
class ReposAsyncStub(ReposStub):
|
|
45
|
+
def __init__(self, channel: _aio.Channel) -> None: ...
|
|
46
|
+
ListRepos: _aio.UnaryUnaryMultiCallable[_repos_pb2.ListReposRequest, _repos_pb2.ListReposResponse] # type: ignore[assignment]
|
|
47
|
+
CreateBranch: _aio.UnaryUnaryMultiCallable[_repos_pb2.CreateBranchRequest, _repos_pb2.Empty] # type: ignore[assignment]
|
|
48
|
+
ListBranches: _aio.UnaryUnaryMultiCallable[_repos_pb2.ListBranchesRequest, _repos_pb2.ListBranchesResponse] # type: ignore[assignment]
|
|
49
|
+
DeleteBranch: _aio.UnaryUnaryMultiCallable[_repos_pb2.DeleteBranchRequest, _repos_pb2.Empty] # type: ignore[assignment]
|
|
50
|
+
CreateCommit: _aio.UnaryUnaryMultiCallable[_repos_pb2.CreateCommitRequest, _repos_pb2.Empty] # type: ignore[assignment]
|
|
51
|
+
ListCommits: _aio.UnaryUnaryMultiCallable[_repos_pb2.ListCommitsRequest, _repos_pb2.ListCommitsResponse] # type: ignore[assignment]
|
|
52
|
+
ListFiles: _aio.UnaryUnaryMultiCallable[_repos_pb2.ListFilesRequest, _repos_pb2.ListFilesResponse] # type: ignore[assignment]
|
|
53
|
+
ViewFile: _aio.UnaryUnaryMultiCallable[_repos_pb2.ViewFileRequest, _repos_pb2.ViewFileResponse] # type: ignore[assignment]
|
|
54
|
+
|
|
55
|
+
class ReposServicer(metaclass=_abc_1.ABCMeta):
|
|
56
|
+
@_abc_1.abstractmethod
|
|
57
|
+
def ListRepos(
|
|
58
|
+
self,
|
|
59
|
+
request: _repos_pb2.ListReposRequest,
|
|
60
|
+
context: _ServicerContext,
|
|
61
|
+
) -> _typing.Union[_repos_pb2.ListReposResponse, _abc.Awaitable[_repos_pb2.ListReposResponse]]: ...
|
|
62
|
+
|
|
63
|
+
@_abc_1.abstractmethod
|
|
64
|
+
def CreateBranch(
|
|
65
|
+
self,
|
|
66
|
+
request: _repos_pb2.CreateBranchRequest,
|
|
67
|
+
context: _ServicerContext,
|
|
68
|
+
) -> _typing.Union[_repos_pb2.Empty, _abc.Awaitable[_repos_pb2.Empty]]: ...
|
|
69
|
+
|
|
70
|
+
@_abc_1.abstractmethod
|
|
71
|
+
def ListBranches(
|
|
72
|
+
self,
|
|
73
|
+
request: _repos_pb2.ListBranchesRequest,
|
|
74
|
+
context: _ServicerContext,
|
|
75
|
+
) -> _typing.Union[_repos_pb2.ListBranchesResponse, _abc.Awaitable[_repos_pb2.ListBranchesResponse]]: ...
|
|
76
|
+
|
|
77
|
+
@_abc_1.abstractmethod
|
|
78
|
+
def DeleteBranch(
|
|
79
|
+
self,
|
|
80
|
+
request: _repos_pb2.DeleteBranchRequest,
|
|
81
|
+
context: _ServicerContext,
|
|
82
|
+
) -> _typing.Union[_repos_pb2.Empty, _abc.Awaitable[_repos_pb2.Empty]]: ...
|
|
83
|
+
|
|
84
|
+
@_abc_1.abstractmethod
|
|
85
|
+
def CreateCommit(
|
|
86
|
+
self,
|
|
87
|
+
request: _repos_pb2.CreateCommitRequest,
|
|
88
|
+
context: _ServicerContext,
|
|
89
|
+
) -> _typing.Union[_repos_pb2.Empty, _abc.Awaitable[_repos_pb2.Empty]]: ...
|
|
90
|
+
|
|
91
|
+
@_abc_1.abstractmethod
|
|
92
|
+
def ListCommits(
|
|
93
|
+
self,
|
|
94
|
+
request: _repos_pb2.ListCommitsRequest,
|
|
95
|
+
context: _ServicerContext,
|
|
96
|
+
) -> _typing.Union[_repos_pb2.ListCommitsResponse, _abc.Awaitable[_repos_pb2.ListCommitsResponse]]: ...
|
|
97
|
+
|
|
98
|
+
@_abc_1.abstractmethod
|
|
99
|
+
def ListFiles(
|
|
100
|
+
self,
|
|
101
|
+
request: _repos_pb2.ListFilesRequest,
|
|
102
|
+
context: _ServicerContext,
|
|
103
|
+
) -> _typing.Union[_repos_pb2.ListFilesResponse, _abc.Awaitable[_repos_pb2.ListFilesResponse]]: ...
|
|
104
|
+
|
|
105
|
+
@_abc_1.abstractmethod
|
|
106
|
+
def ViewFile(
|
|
107
|
+
self,
|
|
108
|
+
request: _repos_pb2.ViewFileRequest,
|
|
109
|
+
context: _ServicerContext,
|
|
110
|
+
) -> _typing.Union[_repos_pb2.ViewFileResponse, _abc.Awaitable[_repos_pb2.ViewFileResponse]]: ...
|
|
111
|
+
|
|
112
|
+
def add_ReposServicer_to_server(servicer: ReposServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
setup.py
|
|
2
|
+
alis/__init__.py
|
|
3
|
+
alis/__init__.pyi
|
|
4
|
+
alis.build.v1.egg-info/PKG-INFO
|
|
5
|
+
alis.build.v1.egg-info/SOURCES.txt
|
|
6
|
+
alis.build.v1.egg-info/dependency_links.txt
|
|
7
|
+
alis.build.v1.egg-info/requires.txt
|
|
8
|
+
alis.build.v1.egg-info/top_level.txt
|
|
9
|
+
alis/build/__init__.py
|
|
10
|
+
alis/build/__init__.pyi
|
|
11
|
+
alis/build/v1/__init__.py
|
|
12
|
+
alis/build/v1/__init__.pyi
|
|
13
|
+
alis/build/v1/repos_pb2.py
|
|
14
|
+
alis/build/v1/repos_pb2.pyi
|
|
15
|
+
alis/build/v1/repos_pb2_grpc.py
|
|
16
|
+
alis/build/v1/repos_pb2_grpc.pyi
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
alis
|
|
@@ -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.build.v1",
|
|
27
|
+
version="1.0.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
|
+
)
|