dragonfly-api 2.3.0__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.
- dragonfly_api/__init__.py +2 -0
- dragonfly_api/common_pb2.py +106 -0
- dragonfly_api/common_pb2.pyi +647 -0
- dragonfly_api/dfdaemon_pb2.py +172 -0
- dragonfly_api/dfdaemon_pb2.pyi +713 -0
- dragonfly_api/dfdaemon_pb2_grpc.py +1983 -0
- dragonfly_api/errordetails_pb2.py +42 -0
- dragonfly_api/errordetails_pb2.pyi +30 -0
- dragonfly_api/manager_pb2.py +78 -0
- dragonfly_api/manager_pb2.pyi +287 -0
- dragonfly_api/manager_pb2_grpc.py +454 -0
- dragonfly_api/py.typed +0 -0
- dragonfly_api/scheduler_pb2.py +236 -0
- dragonfly_api/scheduler_pb2.pyi +990 -0
- dragonfly_api/scheduler_pb2_grpc.py +1537 -0
- dragonfly_api-2.3.0.dist-info/METADATA +50 -0
- dragonfly_api-2.3.0.dist-info/RECORD +19 -0
- dragonfly_api-2.3.0.dist-info/WHEEL +4 -0
- dragonfly_api-2.3.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from . import common_pb2 as _common_pb2
|
|
4
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
5
|
+
from google.protobuf import empty_pb2 as _empty_pb2
|
|
6
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
7
|
+
from google.protobuf.internal import containers as _containers
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import message as _message
|
|
10
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
11
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
class DownloadTaskRequest(_message.Message):
|
|
16
|
+
__slots__ = ("download",)
|
|
17
|
+
DOWNLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
download: _common_pb2.Download
|
|
19
|
+
def __init__(self, download: _Optional[_Union[_common_pb2.Download, _Mapping]] = ...) -> None: ...
|
|
20
|
+
|
|
21
|
+
class DownloadTaskStartedResponse(_message.Message):
|
|
22
|
+
__slots__ = ("content_length", "range", "response_header", "pieces", "is_finished")
|
|
23
|
+
class ResponseHeaderEntry(_message.Message):
|
|
24
|
+
__slots__ = ("key", "value")
|
|
25
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
key: str
|
|
28
|
+
value: str
|
|
29
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
30
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
RESPONSE_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
PIECES_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
IS_FINISHED_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
content_length: int
|
|
36
|
+
range: _common_pb2.Range
|
|
37
|
+
response_header: _containers.ScalarMap[str, str]
|
|
38
|
+
pieces: _containers.RepeatedCompositeFieldContainer[_common_pb2.Piece]
|
|
39
|
+
is_finished: bool
|
|
40
|
+
def __init__(self, content_length: _Optional[int] = ..., range: _Optional[_Union[_common_pb2.Range, _Mapping]] = ..., response_header: _Optional[_Mapping[str, str]] = ..., pieces: _Optional[_Iterable[_Union[_common_pb2.Piece, _Mapping]]] = ..., is_finished: bool = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class DownloadPieceFinishedResponse(_message.Message):
|
|
43
|
+
__slots__ = ("piece",)
|
|
44
|
+
PIECE_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
piece: _common_pb2.Piece
|
|
46
|
+
def __init__(self, piece: _Optional[_Union[_common_pb2.Piece, _Mapping]] = ...) -> None: ...
|
|
47
|
+
|
|
48
|
+
class DownloadTaskResponse(_message.Message):
|
|
49
|
+
__slots__ = ("host_id", "task_id", "peer_id", "download_task_started_response", "download_piece_finished_response")
|
|
50
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
DOWNLOAD_TASK_STARTED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
DOWNLOAD_PIECE_FINISHED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
host_id: str
|
|
56
|
+
task_id: str
|
|
57
|
+
peer_id: str
|
|
58
|
+
download_task_started_response: DownloadTaskStartedResponse
|
|
59
|
+
download_piece_finished_response: DownloadPieceFinishedResponse
|
|
60
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., download_task_started_response: _Optional[_Union[DownloadTaskStartedResponse, _Mapping]] = ..., download_piece_finished_response: _Optional[_Union[DownloadPieceFinishedResponse, _Mapping]] = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class SyncPiecesRequest(_message.Message):
|
|
63
|
+
__slots__ = ("host_id", "task_id", "interested_piece_numbers")
|
|
64
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
INTERESTED_PIECE_NUMBERS_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
host_id: str
|
|
68
|
+
task_id: str
|
|
69
|
+
interested_piece_numbers: _containers.RepeatedScalarFieldContainer[int]
|
|
70
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., interested_piece_numbers: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
71
|
+
|
|
72
|
+
class SyncPiecesResponse(_message.Message):
|
|
73
|
+
__slots__ = ("number", "offset", "length", "ip", "tcp_port", "quic_port")
|
|
74
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
TCP_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
QUIC_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
number: int
|
|
81
|
+
offset: int
|
|
82
|
+
length: int
|
|
83
|
+
ip: str
|
|
84
|
+
tcp_port: int
|
|
85
|
+
quic_port: int
|
|
86
|
+
def __init__(self, number: _Optional[int] = ..., offset: _Optional[int] = ..., length: _Optional[int] = ..., ip: _Optional[str] = ..., tcp_port: _Optional[int] = ..., quic_port: _Optional[int] = ...) -> None: ...
|
|
87
|
+
|
|
88
|
+
class StatTaskRequest(_message.Message):
|
|
89
|
+
__slots__ = ("task_id", "remote_ip")
|
|
90
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
task_id: str
|
|
93
|
+
remote_ip: str
|
|
94
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
95
|
+
|
|
96
|
+
class StatLocalTaskRequest(_message.Message):
|
|
97
|
+
__slots__ = ("task_id", "remote_ip")
|
|
98
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
task_id: str
|
|
101
|
+
remote_ip: str
|
|
102
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
103
|
+
|
|
104
|
+
class StatLocalTaskResponse(_message.Message):
|
|
105
|
+
__slots__ = ("task_id", "piece_length", "content_length", "response_header", "uploading_count", "uploaded_count", "created_at", "updated_at", "prefetched_at", "failed_at", "finished_at")
|
|
106
|
+
class ResponseHeaderEntry(_message.Message):
|
|
107
|
+
__slots__ = ("key", "value")
|
|
108
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
key: str
|
|
111
|
+
value: str
|
|
112
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
113
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
114
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
RESPONSE_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
+
UPLOADING_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
UPLOADED_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
121
|
+
PREFETCHED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
FAILED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
FINISHED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
task_id: str
|
|
125
|
+
piece_length: int
|
|
126
|
+
content_length: int
|
|
127
|
+
response_header: _containers.ScalarMap[str, str]
|
|
128
|
+
uploading_count: int
|
|
129
|
+
uploaded_count: int
|
|
130
|
+
created_at: _timestamp_pb2.Timestamp
|
|
131
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
132
|
+
prefetched_at: _timestamp_pb2.Timestamp
|
|
133
|
+
failed_at: _timestamp_pb2.Timestamp
|
|
134
|
+
finished_at: _timestamp_pb2.Timestamp
|
|
135
|
+
def __init__(self, task_id: _Optional[str] = ..., piece_length: _Optional[int] = ..., content_length: _Optional[int] = ..., response_header: _Optional[_Mapping[str, str]] = ..., uploading_count: _Optional[int] = ..., uploaded_count: _Optional[int] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., prefetched_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., failed_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., finished_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
136
|
+
|
|
137
|
+
class ListLocalTasksRequest(_message.Message):
|
|
138
|
+
__slots__ = ("remote_ip",)
|
|
139
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
+
remote_ip: str
|
|
141
|
+
def __init__(self, remote_ip: _Optional[str] = ...) -> None: ...
|
|
142
|
+
|
|
143
|
+
class ListLocalTasksResponse(_message.Message):
|
|
144
|
+
__slots__ = ("tasks",)
|
|
145
|
+
TASKS_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
tasks: _containers.RepeatedCompositeFieldContainer[StatLocalTaskResponse]
|
|
147
|
+
def __init__(self, tasks: _Optional[_Iterable[_Union[StatLocalTaskResponse, _Mapping]]] = ...) -> None: ...
|
|
148
|
+
|
|
149
|
+
class ListTaskEntriesRequest(_message.Message):
|
|
150
|
+
__slots__ = ("task_id", "url", "request_header", "timeout", "certificate_chain", "object_storage", "hdfs", "remote_ip", "hugging_face", "model_scope")
|
|
151
|
+
class RequestHeaderEntry(_message.Message):
|
|
152
|
+
__slots__ = ("key", "value")
|
|
153
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
154
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
155
|
+
key: str
|
|
156
|
+
value: str
|
|
157
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
158
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
159
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
REQUEST_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
163
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
164
|
+
HDFS_FIELD_NUMBER: _ClassVar[int]
|
|
165
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
166
|
+
HUGGING_FACE_FIELD_NUMBER: _ClassVar[int]
|
|
167
|
+
MODEL_SCOPE_FIELD_NUMBER: _ClassVar[int]
|
|
168
|
+
task_id: str
|
|
169
|
+
url: str
|
|
170
|
+
request_header: _containers.ScalarMap[str, str]
|
|
171
|
+
timeout: _duration_pb2.Duration
|
|
172
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
173
|
+
object_storage: _common_pb2.ObjectStorage
|
|
174
|
+
hdfs: _common_pb2.HDFS
|
|
175
|
+
remote_ip: str
|
|
176
|
+
hugging_face: _common_pb2.HuggingFace
|
|
177
|
+
model_scope: _common_pb2.ModelScope
|
|
178
|
+
def __init__(self, task_id: _Optional[str] = ..., url: _Optional[str] = ..., request_header: _Optional[_Mapping[str, str]] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., certificate_chain: _Optional[_Iterable[bytes]] = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., hdfs: _Optional[_Union[_common_pb2.HDFS, _Mapping]] = ..., remote_ip: _Optional[str] = ..., hugging_face: _Optional[_Union[_common_pb2.HuggingFace, _Mapping]] = ..., model_scope: _Optional[_Union[_common_pb2.ModelScope, _Mapping]] = ...) -> None: ...
|
|
179
|
+
|
|
180
|
+
class ListTaskEntriesResponse(_message.Message):
|
|
181
|
+
__slots__ = ("content_length", "response_header", "status_code", "entries")
|
|
182
|
+
class ResponseHeaderEntry(_message.Message):
|
|
183
|
+
__slots__ = ("key", "value")
|
|
184
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
185
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
186
|
+
key: str
|
|
187
|
+
value: str
|
|
188
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
189
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
190
|
+
RESPONSE_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
191
|
+
STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
192
|
+
ENTRIES_FIELD_NUMBER: _ClassVar[int]
|
|
193
|
+
content_length: int
|
|
194
|
+
response_header: _containers.ScalarMap[str, str]
|
|
195
|
+
status_code: int
|
|
196
|
+
entries: _containers.RepeatedCompositeFieldContainer[Entry]
|
|
197
|
+
def __init__(self, content_length: _Optional[int] = ..., response_header: _Optional[_Mapping[str, str]] = ..., status_code: _Optional[int] = ..., entries: _Optional[_Iterable[_Union[Entry, _Mapping]]] = ...) -> None: ...
|
|
198
|
+
|
|
199
|
+
class Entry(_message.Message):
|
|
200
|
+
__slots__ = ("url", "content_length", "is_dir")
|
|
201
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
202
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
203
|
+
IS_DIR_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
url: str
|
|
205
|
+
content_length: int
|
|
206
|
+
is_dir: bool
|
|
207
|
+
def __init__(self, url: _Optional[str] = ..., content_length: _Optional[int] = ..., is_dir: bool = ...) -> None: ...
|
|
208
|
+
|
|
209
|
+
class DeleteTaskRequest(_message.Message):
|
|
210
|
+
__slots__ = ("task_id", "remote_ip")
|
|
211
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
213
|
+
task_id: str
|
|
214
|
+
remote_ip: str
|
|
215
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
216
|
+
|
|
217
|
+
class DeleteLocalTaskRequest(_message.Message):
|
|
218
|
+
__slots__ = ("task_id", "remote_ip")
|
|
219
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
220
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
221
|
+
task_id: str
|
|
222
|
+
remote_ip: str
|
|
223
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
224
|
+
|
|
225
|
+
class DownloadCacheTaskRequest(_message.Message):
|
|
226
|
+
__slots__ = ("url", "digest", "range", "type", "tag", "application", "priority", "filtered_query_params", "request_header", "piece_length", "output_path", "timeout", "disable_back_to_source", "need_back_to_source", "certificate_chain", "prefetch", "object_storage", "hdfs", "is_prefetch", "need_piece_content", "content_for_calculating_task_id", "remote_ip", "overwrite")
|
|
227
|
+
class RequestHeaderEntry(_message.Message):
|
|
228
|
+
__slots__ = ("key", "value")
|
|
229
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
230
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
231
|
+
key: str
|
|
232
|
+
value: str
|
|
233
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
234
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
235
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
236
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
237
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
238
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
239
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
240
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
241
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
242
|
+
REQUEST_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
243
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
244
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
245
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
246
|
+
DISABLE_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
247
|
+
NEED_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
248
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
249
|
+
PREFETCH_FIELD_NUMBER: _ClassVar[int]
|
|
250
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
251
|
+
HDFS_FIELD_NUMBER: _ClassVar[int]
|
|
252
|
+
IS_PREFETCH_FIELD_NUMBER: _ClassVar[int]
|
|
253
|
+
NEED_PIECE_CONTENT_FIELD_NUMBER: _ClassVar[int]
|
|
254
|
+
CONTENT_FOR_CALCULATING_TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
255
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
256
|
+
OVERWRITE_FIELD_NUMBER: _ClassVar[int]
|
|
257
|
+
url: str
|
|
258
|
+
digest: str
|
|
259
|
+
range: _common_pb2.Range
|
|
260
|
+
type: _common_pb2.TaskType
|
|
261
|
+
tag: str
|
|
262
|
+
application: str
|
|
263
|
+
priority: _common_pb2.Priority
|
|
264
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
265
|
+
request_header: _containers.ScalarMap[str, str]
|
|
266
|
+
piece_length: int
|
|
267
|
+
output_path: str
|
|
268
|
+
timeout: _duration_pb2.Duration
|
|
269
|
+
disable_back_to_source: bool
|
|
270
|
+
need_back_to_source: bool
|
|
271
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
272
|
+
prefetch: bool
|
|
273
|
+
object_storage: _common_pb2.ObjectStorage
|
|
274
|
+
hdfs: _common_pb2.HDFS
|
|
275
|
+
is_prefetch: bool
|
|
276
|
+
need_piece_content: bool
|
|
277
|
+
content_for_calculating_task_id: str
|
|
278
|
+
remote_ip: str
|
|
279
|
+
overwrite: bool
|
|
280
|
+
def __init__(self, url: _Optional[str] = ..., digest: _Optional[str] = ..., range: _Optional[_Union[_common_pb2.Range, _Mapping]] = ..., type: _Optional[_Union[_common_pb2.TaskType, str]] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., priority: _Optional[_Union[_common_pb2.Priority, str]] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., request_header: _Optional[_Mapping[str, str]] = ..., piece_length: _Optional[int] = ..., output_path: _Optional[str] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., disable_back_to_source: bool = ..., need_back_to_source: bool = ..., certificate_chain: _Optional[_Iterable[bytes]] = ..., prefetch: bool = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., hdfs: _Optional[_Union[_common_pb2.HDFS, _Mapping]] = ..., is_prefetch: bool = ..., need_piece_content: bool = ..., content_for_calculating_task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ..., overwrite: bool = ...) -> None: ...
|
|
281
|
+
|
|
282
|
+
class DownloadCacheTaskStartedResponse(_message.Message):
|
|
283
|
+
__slots__ = ("content_length", "range", "response_header", "pieces", "is_finished")
|
|
284
|
+
class ResponseHeaderEntry(_message.Message):
|
|
285
|
+
__slots__ = ("key", "value")
|
|
286
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
287
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
288
|
+
key: str
|
|
289
|
+
value: str
|
|
290
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
291
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
292
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
293
|
+
RESPONSE_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
294
|
+
PIECES_FIELD_NUMBER: _ClassVar[int]
|
|
295
|
+
IS_FINISHED_FIELD_NUMBER: _ClassVar[int]
|
|
296
|
+
content_length: int
|
|
297
|
+
range: _common_pb2.Range
|
|
298
|
+
response_header: _containers.ScalarMap[str, str]
|
|
299
|
+
pieces: _containers.RepeatedCompositeFieldContainer[_common_pb2.Piece]
|
|
300
|
+
is_finished: bool
|
|
301
|
+
def __init__(self, content_length: _Optional[int] = ..., range: _Optional[_Union[_common_pb2.Range, _Mapping]] = ..., response_header: _Optional[_Mapping[str, str]] = ..., pieces: _Optional[_Iterable[_Union[_common_pb2.Piece, _Mapping]]] = ..., is_finished: bool = ...) -> None: ...
|
|
302
|
+
|
|
303
|
+
class DownloadCacheTaskResponse(_message.Message):
|
|
304
|
+
__slots__ = ("host_id", "task_id", "peer_id", "download_cache_task_started_response", "download_piece_finished_response")
|
|
305
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
306
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
307
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
308
|
+
DOWNLOAD_CACHE_TASK_STARTED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
309
|
+
DOWNLOAD_PIECE_FINISHED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
310
|
+
host_id: str
|
|
311
|
+
task_id: str
|
|
312
|
+
peer_id: str
|
|
313
|
+
download_cache_task_started_response: DownloadCacheTaskStartedResponse
|
|
314
|
+
download_piece_finished_response: DownloadPieceFinishedResponse
|
|
315
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., download_cache_task_started_response: _Optional[_Union[DownloadCacheTaskStartedResponse, _Mapping]] = ..., download_piece_finished_response: _Optional[_Union[DownloadPieceFinishedResponse, _Mapping]] = ...) -> None: ...
|
|
316
|
+
|
|
317
|
+
class SyncCachePiecesRequest(_message.Message):
|
|
318
|
+
__slots__ = ("host_id", "task_id", "interested_cache_piece_numbers")
|
|
319
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
320
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
321
|
+
INTERESTED_CACHE_PIECE_NUMBERS_FIELD_NUMBER: _ClassVar[int]
|
|
322
|
+
host_id: str
|
|
323
|
+
task_id: str
|
|
324
|
+
interested_cache_piece_numbers: _containers.RepeatedScalarFieldContainer[int]
|
|
325
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., interested_cache_piece_numbers: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
326
|
+
|
|
327
|
+
class SyncCachePiecesResponse(_message.Message):
|
|
328
|
+
__slots__ = ("number", "offset", "length")
|
|
329
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
330
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
331
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
332
|
+
number: int
|
|
333
|
+
offset: int
|
|
334
|
+
length: int
|
|
335
|
+
def __init__(self, number: _Optional[int] = ..., offset: _Optional[int] = ..., length: _Optional[int] = ...) -> None: ...
|
|
336
|
+
|
|
337
|
+
class DownloadCachePieceRequest(_message.Message):
|
|
338
|
+
__slots__ = ("host_id", "task_id", "piece_number")
|
|
339
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
340
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
341
|
+
PIECE_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
342
|
+
host_id: str
|
|
343
|
+
task_id: str
|
|
344
|
+
piece_number: int
|
|
345
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., piece_number: _Optional[int] = ...) -> None: ...
|
|
346
|
+
|
|
347
|
+
class DownloadCachePieceResponse(_message.Message):
|
|
348
|
+
__slots__ = ("piece", "digest")
|
|
349
|
+
PIECE_FIELD_NUMBER: _ClassVar[int]
|
|
350
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
351
|
+
piece: _common_pb2.Piece
|
|
352
|
+
digest: str
|
|
353
|
+
def __init__(self, piece: _Optional[_Union[_common_pb2.Piece, _Mapping]] = ..., digest: _Optional[str] = ...) -> None: ...
|
|
354
|
+
|
|
355
|
+
class StatCacheTaskRequest(_message.Message):
|
|
356
|
+
__slots__ = ("task_id", "remote_ip")
|
|
357
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
358
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
359
|
+
task_id: str
|
|
360
|
+
remote_ip: str
|
|
361
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
362
|
+
|
|
363
|
+
class DeleteCacheTaskRequest(_message.Message):
|
|
364
|
+
__slots__ = ("task_id", "remote_ip")
|
|
365
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
366
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
367
|
+
task_id: str
|
|
368
|
+
remote_ip: str
|
|
369
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
370
|
+
|
|
371
|
+
class DownloadPersistentTaskRequest(_message.Message):
|
|
372
|
+
__slots__ = ("url", "object_storage", "persistent", "output_path", "timeout", "need_piece_content", "force_hard_link", "digest", "remote_ip", "overwrite")
|
|
373
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
374
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
375
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
376
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
377
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
378
|
+
NEED_PIECE_CONTENT_FIELD_NUMBER: _ClassVar[int]
|
|
379
|
+
FORCE_HARD_LINK_FIELD_NUMBER: _ClassVar[int]
|
|
380
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
381
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
382
|
+
OVERWRITE_FIELD_NUMBER: _ClassVar[int]
|
|
383
|
+
url: str
|
|
384
|
+
object_storage: _common_pb2.ObjectStorage
|
|
385
|
+
persistent: bool
|
|
386
|
+
output_path: str
|
|
387
|
+
timeout: _duration_pb2.Duration
|
|
388
|
+
need_piece_content: bool
|
|
389
|
+
force_hard_link: bool
|
|
390
|
+
digest: str
|
|
391
|
+
remote_ip: str
|
|
392
|
+
overwrite: bool
|
|
393
|
+
def __init__(self, url: _Optional[str] = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., persistent: bool = ..., output_path: _Optional[str] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., need_piece_content: bool = ..., force_hard_link: bool = ..., digest: _Optional[str] = ..., remote_ip: _Optional[str] = ..., overwrite: bool = ...) -> None: ...
|
|
394
|
+
|
|
395
|
+
class DownloadPersistentTaskStartedResponse(_message.Message):
|
|
396
|
+
__slots__ = ("content_length",)
|
|
397
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
398
|
+
content_length: int
|
|
399
|
+
def __init__(self, content_length: _Optional[int] = ...) -> None: ...
|
|
400
|
+
|
|
401
|
+
class DownloadPersistentTaskResponse(_message.Message):
|
|
402
|
+
__slots__ = ("host_id", "task_id", "peer_id", "download_persistent_task_started_response", "download_piece_finished_response")
|
|
403
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
404
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
405
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
406
|
+
DOWNLOAD_PERSISTENT_TASK_STARTED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
407
|
+
DOWNLOAD_PIECE_FINISHED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
408
|
+
host_id: str
|
|
409
|
+
task_id: str
|
|
410
|
+
peer_id: str
|
|
411
|
+
download_persistent_task_started_response: DownloadPersistentTaskStartedResponse
|
|
412
|
+
download_piece_finished_response: DownloadPieceFinishedResponse
|
|
413
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., download_persistent_task_started_response: _Optional[_Union[DownloadPersistentTaskStartedResponse, _Mapping]] = ..., download_piece_finished_response: _Optional[_Union[DownloadPieceFinishedResponse, _Mapping]] = ...) -> None: ...
|
|
414
|
+
|
|
415
|
+
class UploadPersistentTaskRequest(_message.Message):
|
|
416
|
+
__slots__ = ("url", "object_storage", "path", "persistent_replica_count", "ttl", "timeout", "remote_ip")
|
|
417
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
418
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
419
|
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
|
420
|
+
PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
421
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
422
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
423
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
424
|
+
url: str
|
|
425
|
+
object_storage: _common_pb2.ObjectStorage
|
|
426
|
+
path: str
|
|
427
|
+
persistent_replica_count: int
|
|
428
|
+
ttl: _duration_pb2.Duration
|
|
429
|
+
timeout: _duration_pb2.Duration
|
|
430
|
+
remote_ip: str
|
|
431
|
+
def __init__(self, url: _Optional[str] = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., path: _Optional[str] = ..., persistent_replica_count: _Optional[int] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
432
|
+
|
|
433
|
+
class UpdatePersistentTaskRequest(_message.Message):
|
|
434
|
+
__slots__ = ("task_id", "persistent", "remote_ip")
|
|
435
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
436
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
437
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
438
|
+
task_id: str
|
|
439
|
+
persistent: bool
|
|
440
|
+
remote_ip: str
|
|
441
|
+
def __init__(self, task_id: _Optional[str] = ..., persistent: bool = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
442
|
+
|
|
443
|
+
class StatPersistentTaskRequest(_message.Message):
|
|
444
|
+
__slots__ = ("task_id", "remote_ip")
|
|
445
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
446
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
447
|
+
task_id: str
|
|
448
|
+
remote_ip: str
|
|
449
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
450
|
+
|
|
451
|
+
class StatLocalPersistentTaskRequest(_message.Message):
|
|
452
|
+
__slots__ = ("task_id", "remote_ip")
|
|
453
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
454
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
455
|
+
task_id: str
|
|
456
|
+
remote_ip: str
|
|
457
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
458
|
+
|
|
459
|
+
class StatLocalPersistentTaskResponse(_message.Message):
|
|
460
|
+
__slots__ = ("task_id", "persistent", "ttl", "piece_length", "content_length", "uploading_count", "uploaded_count", "created_at", "updated_at", "failed_at", "finished_at")
|
|
461
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
462
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
463
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
464
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
465
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
466
|
+
UPLOADING_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
467
|
+
UPLOADED_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
468
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
469
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
470
|
+
FAILED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
471
|
+
FINISHED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
472
|
+
task_id: str
|
|
473
|
+
persistent: bool
|
|
474
|
+
ttl: _duration_pb2.Duration
|
|
475
|
+
piece_length: int
|
|
476
|
+
content_length: int
|
|
477
|
+
uploading_count: int
|
|
478
|
+
uploaded_count: int
|
|
479
|
+
created_at: _timestamp_pb2.Timestamp
|
|
480
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
481
|
+
failed_at: _timestamp_pb2.Timestamp
|
|
482
|
+
finished_at: _timestamp_pb2.Timestamp
|
|
483
|
+
def __init__(self, task_id: _Optional[str] = ..., persistent: bool = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., piece_length: _Optional[int] = ..., content_length: _Optional[int] = ..., uploading_count: _Optional[int] = ..., uploaded_count: _Optional[int] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., failed_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., finished_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
484
|
+
|
|
485
|
+
class ListLocalPersistentTasksRequest(_message.Message):
|
|
486
|
+
__slots__ = ("remote_ip",)
|
|
487
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
488
|
+
remote_ip: str
|
|
489
|
+
def __init__(self, remote_ip: _Optional[str] = ...) -> None: ...
|
|
490
|
+
|
|
491
|
+
class ListLocalPersistentTasksResponse(_message.Message):
|
|
492
|
+
__slots__ = ("tasks",)
|
|
493
|
+
TASKS_FIELD_NUMBER: _ClassVar[int]
|
|
494
|
+
tasks: _containers.RepeatedCompositeFieldContainer[StatLocalPersistentTaskResponse]
|
|
495
|
+
def __init__(self, tasks: _Optional[_Iterable[_Union[StatLocalPersistentTaskResponse, _Mapping]]] = ...) -> None: ...
|
|
496
|
+
|
|
497
|
+
class DeletePersistentTaskRequest(_message.Message):
|
|
498
|
+
__slots__ = ("task_id", "remote_ip")
|
|
499
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
500
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
501
|
+
task_id: str
|
|
502
|
+
remote_ip: str
|
|
503
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
504
|
+
|
|
505
|
+
class SyncPersistentPiecesRequest(_message.Message):
|
|
506
|
+
__slots__ = ("host_id", "task_id", "interested_piece_numbers")
|
|
507
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
508
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
509
|
+
INTERESTED_PIECE_NUMBERS_FIELD_NUMBER: _ClassVar[int]
|
|
510
|
+
host_id: str
|
|
511
|
+
task_id: str
|
|
512
|
+
interested_piece_numbers: _containers.RepeatedScalarFieldContainer[int]
|
|
513
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., interested_piece_numbers: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
514
|
+
|
|
515
|
+
class SyncPersistentPiecesResponse(_message.Message):
|
|
516
|
+
__slots__ = ("number", "offset", "length", "ip", "tcp_port", "quic_port")
|
|
517
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
518
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
519
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
520
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
521
|
+
TCP_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
522
|
+
QUIC_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
523
|
+
number: int
|
|
524
|
+
offset: int
|
|
525
|
+
length: int
|
|
526
|
+
ip: str
|
|
527
|
+
tcp_port: int
|
|
528
|
+
quic_port: int
|
|
529
|
+
def __init__(self, number: _Optional[int] = ..., offset: _Optional[int] = ..., length: _Optional[int] = ..., ip: _Optional[str] = ..., tcp_port: _Optional[int] = ..., quic_port: _Optional[int] = ...) -> None: ...
|
|
530
|
+
|
|
531
|
+
class DownloadPersistentCacheTaskRequest(_message.Message):
|
|
532
|
+
__slots__ = ("task_id", "persistent", "tag", "application", "output_path", "timeout", "need_piece_content", "force_hard_link", "digest", "remote_ip", "overwrite")
|
|
533
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
534
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
535
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
536
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
537
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
538
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
539
|
+
NEED_PIECE_CONTENT_FIELD_NUMBER: _ClassVar[int]
|
|
540
|
+
FORCE_HARD_LINK_FIELD_NUMBER: _ClassVar[int]
|
|
541
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
542
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
543
|
+
OVERWRITE_FIELD_NUMBER: _ClassVar[int]
|
|
544
|
+
task_id: str
|
|
545
|
+
persistent: bool
|
|
546
|
+
tag: str
|
|
547
|
+
application: str
|
|
548
|
+
output_path: str
|
|
549
|
+
timeout: _duration_pb2.Duration
|
|
550
|
+
need_piece_content: bool
|
|
551
|
+
force_hard_link: bool
|
|
552
|
+
digest: str
|
|
553
|
+
remote_ip: str
|
|
554
|
+
overwrite: bool
|
|
555
|
+
def __init__(self, task_id: _Optional[str] = ..., persistent: bool = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., output_path: _Optional[str] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., need_piece_content: bool = ..., force_hard_link: bool = ..., digest: _Optional[str] = ..., remote_ip: _Optional[str] = ..., overwrite: bool = ...) -> None: ...
|
|
556
|
+
|
|
557
|
+
class DownloadPersistentCacheTaskStartedResponse(_message.Message):
|
|
558
|
+
__slots__ = ("content_length",)
|
|
559
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
560
|
+
content_length: int
|
|
561
|
+
def __init__(self, content_length: _Optional[int] = ...) -> None: ...
|
|
562
|
+
|
|
563
|
+
class DownloadPersistentCacheTaskResponse(_message.Message):
|
|
564
|
+
__slots__ = ("host_id", "task_id", "peer_id", "download_persistent_cache_task_started_response", "download_piece_finished_response")
|
|
565
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
566
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
567
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
568
|
+
DOWNLOAD_PERSISTENT_CACHE_TASK_STARTED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
569
|
+
DOWNLOAD_PIECE_FINISHED_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
570
|
+
host_id: str
|
|
571
|
+
task_id: str
|
|
572
|
+
peer_id: str
|
|
573
|
+
download_persistent_cache_task_started_response: DownloadPersistentCacheTaskStartedResponse
|
|
574
|
+
download_piece_finished_response: DownloadPieceFinishedResponse
|
|
575
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., download_persistent_cache_task_started_response: _Optional[_Union[DownloadPersistentCacheTaskStartedResponse, _Mapping]] = ..., download_piece_finished_response: _Optional[_Union[DownloadPieceFinishedResponse, _Mapping]] = ...) -> None: ...
|
|
576
|
+
|
|
577
|
+
class UploadPersistentCacheTaskRequest(_message.Message):
|
|
578
|
+
__slots__ = ("content_for_calculating_task_id", "path", "persistent_replica_count", "tag", "application", "piece_length", "ttl", "timeout", "remote_ip")
|
|
579
|
+
CONTENT_FOR_CALCULATING_TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
580
|
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
|
581
|
+
PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
582
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
583
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
584
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
585
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
586
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
587
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
588
|
+
content_for_calculating_task_id: str
|
|
589
|
+
path: str
|
|
590
|
+
persistent_replica_count: int
|
|
591
|
+
tag: str
|
|
592
|
+
application: str
|
|
593
|
+
piece_length: int
|
|
594
|
+
ttl: _duration_pb2.Duration
|
|
595
|
+
timeout: _duration_pb2.Duration
|
|
596
|
+
remote_ip: str
|
|
597
|
+
def __init__(self, content_for_calculating_task_id: _Optional[str] = ..., path: _Optional[str] = ..., persistent_replica_count: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., piece_length: _Optional[int] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
598
|
+
|
|
599
|
+
class UpdatePersistentCacheTaskRequest(_message.Message):
|
|
600
|
+
__slots__ = ("task_id", "persistent", "remote_ip")
|
|
601
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
602
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
603
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
604
|
+
task_id: str
|
|
605
|
+
persistent: bool
|
|
606
|
+
remote_ip: str
|
|
607
|
+
def __init__(self, task_id: _Optional[str] = ..., persistent: bool = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
608
|
+
|
|
609
|
+
class StatPersistentCacheTaskRequest(_message.Message):
|
|
610
|
+
__slots__ = ("task_id", "remote_ip")
|
|
611
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
612
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
613
|
+
task_id: str
|
|
614
|
+
remote_ip: str
|
|
615
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
616
|
+
|
|
617
|
+
class StatLocalPersistentCacheTaskRequest(_message.Message):
|
|
618
|
+
__slots__ = ("task_id", "remote_ip")
|
|
619
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
620
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
621
|
+
task_id: str
|
|
622
|
+
remote_ip: str
|
|
623
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
624
|
+
|
|
625
|
+
class StatLocalPersistentCacheTaskResponse(_message.Message):
|
|
626
|
+
__slots__ = ("task_id", "persistent", "ttl", "piece_length", "content_length", "uploading_count", "uploaded_count", "created_at", "updated_at", "failed_at", "finished_at")
|
|
627
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
628
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
629
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
630
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
631
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
632
|
+
UPLOADING_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
633
|
+
UPLOADED_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
634
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
635
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
636
|
+
FAILED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
637
|
+
FINISHED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
638
|
+
task_id: str
|
|
639
|
+
persistent: bool
|
|
640
|
+
ttl: _duration_pb2.Duration
|
|
641
|
+
piece_length: int
|
|
642
|
+
content_length: int
|
|
643
|
+
uploading_count: int
|
|
644
|
+
uploaded_count: int
|
|
645
|
+
created_at: _timestamp_pb2.Timestamp
|
|
646
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
647
|
+
failed_at: _timestamp_pb2.Timestamp
|
|
648
|
+
finished_at: _timestamp_pb2.Timestamp
|
|
649
|
+
def __init__(self, task_id: _Optional[str] = ..., persistent: bool = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., piece_length: _Optional[int] = ..., content_length: _Optional[int] = ..., uploading_count: _Optional[int] = ..., uploaded_count: _Optional[int] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., failed_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., finished_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
650
|
+
|
|
651
|
+
class ListLocalPersistentCacheTasksRequest(_message.Message):
|
|
652
|
+
__slots__ = ("remote_ip",)
|
|
653
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
654
|
+
remote_ip: str
|
|
655
|
+
def __init__(self, remote_ip: _Optional[str] = ...) -> None: ...
|
|
656
|
+
|
|
657
|
+
class ListLocalPersistentCacheTasksResponse(_message.Message):
|
|
658
|
+
__slots__ = ("tasks",)
|
|
659
|
+
TASKS_FIELD_NUMBER: _ClassVar[int]
|
|
660
|
+
tasks: _containers.RepeatedCompositeFieldContainer[StatLocalPersistentCacheTaskResponse]
|
|
661
|
+
def __init__(self, tasks: _Optional[_Iterable[_Union[StatLocalPersistentCacheTaskResponse, _Mapping]]] = ...) -> None: ...
|
|
662
|
+
|
|
663
|
+
class DeletePersistentCacheTaskRequest(_message.Message):
|
|
664
|
+
__slots__ = ("task_id", "remote_ip")
|
|
665
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
666
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
667
|
+
task_id: str
|
|
668
|
+
remote_ip: str
|
|
669
|
+
def __init__(self, task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ...) -> None: ...
|
|
670
|
+
|
|
671
|
+
class SyncPersistentCachePiecesRequest(_message.Message):
|
|
672
|
+
__slots__ = ("host_id", "task_id", "interested_piece_numbers")
|
|
673
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
674
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
675
|
+
INTERESTED_PIECE_NUMBERS_FIELD_NUMBER: _ClassVar[int]
|
|
676
|
+
host_id: str
|
|
677
|
+
task_id: str
|
|
678
|
+
interested_piece_numbers: _containers.RepeatedScalarFieldContainer[int]
|
|
679
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., interested_piece_numbers: _Optional[_Iterable[int]] = ...) -> None: ...
|
|
680
|
+
|
|
681
|
+
class SyncPersistentCachePiecesResponse(_message.Message):
|
|
682
|
+
__slots__ = ("number", "offset", "length", "ip", "tcp_port", "quic_port")
|
|
683
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
684
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
685
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
686
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
687
|
+
TCP_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
688
|
+
QUIC_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
689
|
+
number: int
|
|
690
|
+
offset: int
|
|
691
|
+
length: int
|
|
692
|
+
ip: str
|
|
693
|
+
tcp_port: int
|
|
694
|
+
quic_port: int
|
|
695
|
+
def __init__(self, number: _Optional[int] = ..., offset: _Optional[int] = ..., length: _Optional[int] = ..., ip: _Optional[str] = ..., tcp_port: _Optional[int] = ..., quic_port: _Optional[int] = ...) -> None: ...
|
|
696
|
+
|
|
697
|
+
class SyncHostRequest(_message.Message):
|
|
698
|
+
__slots__ = ("host_id", "peer_id")
|
|
699
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
700
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
701
|
+
host_id: str
|
|
702
|
+
peer_id: str
|
|
703
|
+
def __init__(self, host_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
704
|
+
|
|
705
|
+
class IBVerbsQueuePairEndpoint(_message.Message):
|
|
706
|
+
__slots__ = ("num", "lid", "gid")
|
|
707
|
+
NUM_FIELD_NUMBER: _ClassVar[int]
|
|
708
|
+
LID_FIELD_NUMBER: _ClassVar[int]
|
|
709
|
+
GID_FIELD_NUMBER: _ClassVar[int]
|
|
710
|
+
num: int
|
|
711
|
+
lid: int
|
|
712
|
+
gid: bytes
|
|
713
|
+
def __init__(self, num: _Optional[int] = ..., lid: _Optional[int] = ..., gid: _Optional[bytes] = ...) -> None: ...
|