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,990 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from . import common_pb2 as _common_pb2
|
|
4
|
+
from . import errordetails_pb2 as _errordetails_pb2
|
|
5
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
6
|
+
from google.protobuf import empty_pb2 as _empty_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 RegisterPeerRequest(_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 DownloadPeerStartedRequest(_message.Message):
|
|
22
|
+
__slots__ = ()
|
|
23
|
+
def __init__(self) -> None: ...
|
|
24
|
+
|
|
25
|
+
class DownloadPeerBackToSourceStartedRequest(_message.Message):
|
|
26
|
+
__slots__ = ("description",)
|
|
27
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
description: str
|
|
29
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
30
|
+
|
|
31
|
+
class ReschedulePeerRequest(_message.Message):
|
|
32
|
+
__slots__ = ("candidate_parents", "description")
|
|
33
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.Peer]
|
|
36
|
+
description: str
|
|
37
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.Peer, _Mapping]]] = ..., description: _Optional[str] = ...) -> None: ...
|
|
38
|
+
|
|
39
|
+
class DownloadPeerFinishedRequest(_message.Message):
|
|
40
|
+
__slots__ = ()
|
|
41
|
+
def __init__(self) -> None: ...
|
|
42
|
+
|
|
43
|
+
class DownloadPeerBackToSourceFinishedRequest(_message.Message):
|
|
44
|
+
__slots__ = ()
|
|
45
|
+
def __init__(self) -> None: ...
|
|
46
|
+
|
|
47
|
+
class DownloadPeerFailedRequest(_message.Message):
|
|
48
|
+
__slots__ = ("description",)
|
|
49
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
description: str
|
|
51
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
52
|
+
|
|
53
|
+
class DownloadPeerBackToSourceFailedRequest(_message.Message):
|
|
54
|
+
__slots__ = ("description",)
|
|
55
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
description: str
|
|
57
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class DownloadPieceFinishedRequest(_message.Message):
|
|
60
|
+
__slots__ = ("piece",)
|
|
61
|
+
PIECE_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
piece: _common_pb2.Piece
|
|
63
|
+
def __init__(self, piece: _Optional[_Union[_common_pb2.Piece, _Mapping]] = ...) -> None: ...
|
|
64
|
+
|
|
65
|
+
class DownloadPieceBackToSourceFinishedRequest(_message.Message):
|
|
66
|
+
__slots__ = ("piece",)
|
|
67
|
+
PIECE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
piece: _common_pb2.Piece
|
|
69
|
+
def __init__(self, piece: _Optional[_Union[_common_pb2.Piece, _Mapping]] = ...) -> None: ...
|
|
70
|
+
|
|
71
|
+
class DownloadPieceFailedRequest(_message.Message):
|
|
72
|
+
__slots__ = ("piece_number", "parent_id", "temporary")
|
|
73
|
+
PIECE_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
PARENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
TEMPORARY_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
piece_number: int
|
|
77
|
+
parent_id: str
|
|
78
|
+
temporary: bool
|
|
79
|
+
def __init__(self, piece_number: _Optional[int] = ..., parent_id: _Optional[str] = ..., temporary: bool = ...) -> None: ...
|
|
80
|
+
|
|
81
|
+
class DownloadPieceBackToSourceFailedRequest(_message.Message):
|
|
82
|
+
__slots__ = ("piece_number", "backend", "unknown")
|
|
83
|
+
PIECE_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
BACKEND_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
+
UNKNOWN_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
piece_number: int
|
|
87
|
+
backend: _errordetails_pb2.Backend
|
|
88
|
+
unknown: _errordetails_pb2.Unknown
|
|
89
|
+
def __init__(self, piece_number: _Optional[int] = ..., backend: _Optional[_Union[_errordetails_pb2.Backend, _Mapping]] = ..., unknown: _Optional[_Union[_errordetails_pb2.Unknown, _Mapping]] = ...) -> None: ...
|
|
90
|
+
|
|
91
|
+
class AnnouncePeerRequest(_message.Message):
|
|
92
|
+
__slots__ = ("host_id", "task_id", "peer_id", "register_peer_request", "download_peer_started_request", "download_peer_back_to_source_started_request", "reschedule_peer_request", "download_peer_finished_request", "download_peer_back_to_source_finished_request", "download_peer_failed_request", "download_peer_back_to_source_failed_request", "download_piece_finished_request", "download_piece_back_to_source_finished_request", "download_piece_failed_request", "download_piece_back_to_source_failed_request")
|
|
93
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
REGISTER_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
DOWNLOAD_PEER_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
DOWNLOAD_PEER_BACK_TO_SOURCE_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
RESCHEDULE_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
DOWNLOAD_PEER_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
DOWNLOAD_PEER_BACK_TO_SOURCE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
DOWNLOAD_PEER_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
DOWNLOAD_PEER_BACK_TO_SOURCE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
DOWNLOAD_PIECE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
DOWNLOAD_PIECE_BACK_TO_SOURCE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
DOWNLOAD_PIECE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
DOWNLOAD_PIECE_BACK_TO_SOURCE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
host_id: str
|
|
109
|
+
task_id: str
|
|
110
|
+
peer_id: str
|
|
111
|
+
register_peer_request: RegisterPeerRequest
|
|
112
|
+
download_peer_started_request: DownloadPeerStartedRequest
|
|
113
|
+
download_peer_back_to_source_started_request: DownloadPeerBackToSourceStartedRequest
|
|
114
|
+
reschedule_peer_request: ReschedulePeerRequest
|
|
115
|
+
download_peer_finished_request: DownloadPeerFinishedRequest
|
|
116
|
+
download_peer_back_to_source_finished_request: DownloadPeerBackToSourceFinishedRequest
|
|
117
|
+
download_peer_failed_request: DownloadPeerFailedRequest
|
|
118
|
+
download_peer_back_to_source_failed_request: DownloadPeerBackToSourceFailedRequest
|
|
119
|
+
download_piece_finished_request: DownloadPieceFinishedRequest
|
|
120
|
+
download_piece_back_to_source_finished_request: DownloadPieceBackToSourceFinishedRequest
|
|
121
|
+
download_piece_failed_request: DownloadPieceFailedRequest
|
|
122
|
+
download_piece_back_to_source_failed_request: DownloadPieceBackToSourceFailedRequest
|
|
123
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., register_peer_request: _Optional[_Union[RegisterPeerRequest, _Mapping]] = ..., download_peer_started_request: _Optional[_Union[DownloadPeerStartedRequest, _Mapping]] = ..., download_peer_back_to_source_started_request: _Optional[_Union[DownloadPeerBackToSourceStartedRequest, _Mapping]] = ..., reschedule_peer_request: _Optional[_Union[ReschedulePeerRequest, _Mapping]] = ..., download_peer_finished_request: _Optional[_Union[DownloadPeerFinishedRequest, _Mapping]] = ..., download_peer_back_to_source_finished_request: _Optional[_Union[DownloadPeerBackToSourceFinishedRequest, _Mapping]] = ..., download_peer_failed_request: _Optional[_Union[DownloadPeerFailedRequest, _Mapping]] = ..., download_peer_back_to_source_failed_request: _Optional[_Union[DownloadPeerBackToSourceFailedRequest, _Mapping]] = ..., download_piece_finished_request: _Optional[_Union[DownloadPieceFinishedRequest, _Mapping]] = ..., download_piece_back_to_source_finished_request: _Optional[_Union[DownloadPieceBackToSourceFinishedRequest, _Mapping]] = ..., download_piece_failed_request: _Optional[_Union[DownloadPieceFailedRequest, _Mapping]] = ..., download_piece_back_to_source_failed_request: _Optional[_Union[DownloadPieceBackToSourceFailedRequest, _Mapping]] = ...) -> None: ...
|
|
124
|
+
|
|
125
|
+
class EmptyTaskResponse(_message.Message):
|
|
126
|
+
__slots__ = ()
|
|
127
|
+
def __init__(self) -> None: ...
|
|
128
|
+
|
|
129
|
+
class NormalTaskResponse(_message.Message):
|
|
130
|
+
__slots__ = ("candidate_parents",)
|
|
131
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.Peer]
|
|
133
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.Peer, _Mapping]]] = ...) -> None: ...
|
|
134
|
+
|
|
135
|
+
class NeedBackToSourceResponse(_message.Message):
|
|
136
|
+
__slots__ = ("description",)
|
|
137
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
+
description: str
|
|
139
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
140
|
+
|
|
141
|
+
class MetadataOnlyResponse(_message.Message):
|
|
142
|
+
__slots__ = ()
|
|
143
|
+
def __init__(self) -> None: ...
|
|
144
|
+
|
|
145
|
+
class AnnouncePeerResponse(_message.Message):
|
|
146
|
+
__slots__ = ("empty_task_response", "normal_task_response", "need_back_to_source_response", "metadata_only_response")
|
|
147
|
+
EMPTY_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
NORMAL_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
149
|
+
NEED_BACK_TO_SOURCE_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
150
|
+
METADATA_ONLY_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
151
|
+
empty_task_response: EmptyTaskResponse
|
|
152
|
+
normal_task_response: NormalTaskResponse
|
|
153
|
+
need_back_to_source_response: NeedBackToSourceResponse
|
|
154
|
+
metadata_only_response: MetadataOnlyResponse
|
|
155
|
+
def __init__(self, empty_task_response: _Optional[_Union[EmptyTaskResponse, _Mapping]] = ..., normal_task_response: _Optional[_Union[NormalTaskResponse, _Mapping]] = ..., need_back_to_source_response: _Optional[_Union[NeedBackToSourceResponse, _Mapping]] = ..., metadata_only_response: _Optional[_Union[MetadataOnlyResponse, _Mapping]] = ...) -> None: ...
|
|
156
|
+
|
|
157
|
+
class StatPeerRequest(_message.Message):
|
|
158
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
159
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
host_id: str
|
|
163
|
+
task_id: str
|
|
164
|
+
peer_id: str
|
|
165
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
166
|
+
|
|
167
|
+
class DeletePeerRequest(_message.Message):
|
|
168
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
169
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
170
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
171
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
host_id: str
|
|
173
|
+
task_id: str
|
|
174
|
+
peer_id: str
|
|
175
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
176
|
+
|
|
177
|
+
class StatTaskRequest(_message.Message):
|
|
178
|
+
__slots__ = ("host_id", "task_id")
|
|
179
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
180
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
host_id: str
|
|
182
|
+
task_id: str
|
|
183
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
184
|
+
|
|
185
|
+
class DeleteTaskRequest(_message.Message):
|
|
186
|
+
__slots__ = ("host_id", "task_id")
|
|
187
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
189
|
+
host_id: str
|
|
190
|
+
task_id: str
|
|
191
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
192
|
+
|
|
193
|
+
class AnnounceHostRequest(_message.Message):
|
|
194
|
+
__slots__ = ("host", "interval")
|
|
195
|
+
HOST_FIELD_NUMBER: _ClassVar[int]
|
|
196
|
+
INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
|
197
|
+
host: _common_pb2.Host
|
|
198
|
+
interval: _duration_pb2.Duration
|
|
199
|
+
def __init__(self, host: _Optional[_Union[_common_pb2.Host, _Mapping]] = ..., interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
|
200
|
+
|
|
201
|
+
class ListHostsRequest(_message.Message):
|
|
202
|
+
__slots__ = ("type",)
|
|
203
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
type: int
|
|
205
|
+
def __init__(self, type: _Optional[int] = ...) -> None: ...
|
|
206
|
+
|
|
207
|
+
class ListHostsResponse(_message.Message):
|
|
208
|
+
__slots__ = ("hosts",)
|
|
209
|
+
HOSTS_FIELD_NUMBER: _ClassVar[int]
|
|
210
|
+
hosts: _containers.RepeatedCompositeFieldContainer[_common_pb2.Host]
|
|
211
|
+
def __init__(self, hosts: _Optional[_Iterable[_Union[_common_pb2.Host, _Mapping]]] = ...) -> None: ...
|
|
212
|
+
|
|
213
|
+
class DeleteHostRequest(_message.Message):
|
|
214
|
+
__slots__ = ("host_id",)
|
|
215
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
216
|
+
host_id: str
|
|
217
|
+
def __init__(self, host_id: _Optional[str] = ...) -> None: ...
|
|
218
|
+
|
|
219
|
+
class RegisterCachePeerRequest(_message.Message):
|
|
220
|
+
__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", "concurrent_piece_count", "actual_piece_length", "actual_content_length", "actual_piece_count")
|
|
221
|
+
class RequestHeaderEntry(_message.Message):
|
|
222
|
+
__slots__ = ("key", "value")
|
|
223
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
225
|
+
key: str
|
|
226
|
+
value: str
|
|
227
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
228
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
229
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
230
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
231
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
232
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
233
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
234
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
235
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
236
|
+
REQUEST_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
237
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
238
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
239
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
240
|
+
DISABLE_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
241
|
+
NEED_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
242
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
243
|
+
PREFETCH_FIELD_NUMBER: _ClassVar[int]
|
|
244
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
245
|
+
HDFS_FIELD_NUMBER: _ClassVar[int]
|
|
246
|
+
IS_PREFETCH_FIELD_NUMBER: _ClassVar[int]
|
|
247
|
+
NEED_PIECE_CONTENT_FIELD_NUMBER: _ClassVar[int]
|
|
248
|
+
CONTENT_FOR_CALCULATING_TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
249
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
250
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
251
|
+
ACTUAL_PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
252
|
+
ACTUAL_CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
253
|
+
ACTUAL_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
254
|
+
url: str
|
|
255
|
+
digest: str
|
|
256
|
+
range: _common_pb2.Range
|
|
257
|
+
type: _common_pb2.TaskType
|
|
258
|
+
tag: str
|
|
259
|
+
application: str
|
|
260
|
+
priority: _common_pb2.Priority
|
|
261
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
262
|
+
request_header: _containers.ScalarMap[str, str]
|
|
263
|
+
piece_length: int
|
|
264
|
+
output_path: str
|
|
265
|
+
timeout: _duration_pb2.Duration
|
|
266
|
+
disable_back_to_source: bool
|
|
267
|
+
need_back_to_source: bool
|
|
268
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
269
|
+
prefetch: bool
|
|
270
|
+
object_storage: _common_pb2.ObjectStorage
|
|
271
|
+
hdfs: _common_pb2.HDFS
|
|
272
|
+
is_prefetch: bool
|
|
273
|
+
need_piece_content: bool
|
|
274
|
+
content_for_calculating_task_id: str
|
|
275
|
+
remote_ip: str
|
|
276
|
+
concurrent_piece_count: int
|
|
277
|
+
actual_piece_length: int
|
|
278
|
+
actual_content_length: int
|
|
279
|
+
actual_piece_count: int
|
|
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] = ..., concurrent_piece_count: _Optional[int] = ..., actual_piece_length: _Optional[int] = ..., actual_content_length: _Optional[int] = ..., actual_piece_count: _Optional[int] = ...) -> None: ...
|
|
281
|
+
|
|
282
|
+
class DownloadCachePeerStartedRequest(_message.Message):
|
|
283
|
+
__slots__ = ()
|
|
284
|
+
def __init__(self) -> None: ...
|
|
285
|
+
|
|
286
|
+
class DownloadCachePeerBackToSourceStartedRequest(_message.Message):
|
|
287
|
+
__slots__ = ("description",)
|
|
288
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
289
|
+
description: str
|
|
290
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
291
|
+
|
|
292
|
+
class RescheduleCachePeerRequest(_message.Message):
|
|
293
|
+
__slots__ = ("candidate_parents", "description")
|
|
294
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
295
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
296
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.CachePeer]
|
|
297
|
+
description: str
|
|
298
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.CachePeer, _Mapping]]] = ..., description: _Optional[str] = ...) -> None: ...
|
|
299
|
+
|
|
300
|
+
class DownloadCachePeerFinishedRequest(_message.Message):
|
|
301
|
+
__slots__ = ()
|
|
302
|
+
def __init__(self) -> None: ...
|
|
303
|
+
|
|
304
|
+
class DownloadCachePeerBackToSourceFinishedRequest(_message.Message):
|
|
305
|
+
__slots__ = ()
|
|
306
|
+
def __init__(self) -> None: ...
|
|
307
|
+
|
|
308
|
+
class DownloadCachePeerFailedRequest(_message.Message):
|
|
309
|
+
__slots__ = ("description",)
|
|
310
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
311
|
+
description: str
|
|
312
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
313
|
+
|
|
314
|
+
class DownloadCachePeerBackToSourceFailedRequest(_message.Message):
|
|
315
|
+
__slots__ = ("description",)
|
|
316
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
317
|
+
description: str
|
|
318
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
319
|
+
|
|
320
|
+
class AnnounceCachePeerRequest(_message.Message):
|
|
321
|
+
__slots__ = ("host_id", "task_id", "peer_id", "register_cache_peer_request", "download_cache_peer_started_request", "download_cache_peer_back_to_source_started_request", "reschedule_cache_peer_request", "download_cache_peer_finished_request", "download_cache_peer_back_to_source_finished_request", "download_cache_peer_failed_request", "download_cache_peer_back_to_source_failed_request", "download_piece_finished_request", "download_piece_back_to_source_finished_request", "download_piece_failed_request", "download_piece_back_to_source_failed_request")
|
|
322
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
323
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
324
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
325
|
+
REGISTER_CACHE_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
326
|
+
DOWNLOAD_CACHE_PEER_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
327
|
+
DOWNLOAD_CACHE_PEER_BACK_TO_SOURCE_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
328
|
+
RESCHEDULE_CACHE_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
329
|
+
DOWNLOAD_CACHE_PEER_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
330
|
+
DOWNLOAD_CACHE_PEER_BACK_TO_SOURCE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
331
|
+
DOWNLOAD_CACHE_PEER_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
332
|
+
DOWNLOAD_CACHE_PEER_BACK_TO_SOURCE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
333
|
+
DOWNLOAD_PIECE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
334
|
+
DOWNLOAD_PIECE_BACK_TO_SOURCE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
335
|
+
DOWNLOAD_PIECE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
336
|
+
DOWNLOAD_PIECE_BACK_TO_SOURCE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
337
|
+
host_id: str
|
|
338
|
+
task_id: str
|
|
339
|
+
peer_id: str
|
|
340
|
+
register_cache_peer_request: RegisterCachePeerRequest
|
|
341
|
+
download_cache_peer_started_request: DownloadCachePeerStartedRequest
|
|
342
|
+
download_cache_peer_back_to_source_started_request: DownloadCachePeerBackToSourceStartedRequest
|
|
343
|
+
reschedule_cache_peer_request: RescheduleCachePeerRequest
|
|
344
|
+
download_cache_peer_finished_request: DownloadCachePeerFinishedRequest
|
|
345
|
+
download_cache_peer_back_to_source_finished_request: DownloadCachePeerBackToSourceFinishedRequest
|
|
346
|
+
download_cache_peer_failed_request: DownloadCachePeerFailedRequest
|
|
347
|
+
download_cache_peer_back_to_source_failed_request: DownloadCachePeerBackToSourceFailedRequest
|
|
348
|
+
download_piece_finished_request: DownloadPieceFinishedRequest
|
|
349
|
+
download_piece_back_to_source_finished_request: DownloadPieceBackToSourceFinishedRequest
|
|
350
|
+
download_piece_failed_request: DownloadPieceFailedRequest
|
|
351
|
+
download_piece_back_to_source_failed_request: DownloadPieceBackToSourceFailedRequest
|
|
352
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., register_cache_peer_request: _Optional[_Union[RegisterCachePeerRequest, _Mapping]] = ..., download_cache_peer_started_request: _Optional[_Union[DownloadCachePeerStartedRequest, _Mapping]] = ..., download_cache_peer_back_to_source_started_request: _Optional[_Union[DownloadCachePeerBackToSourceStartedRequest, _Mapping]] = ..., reschedule_cache_peer_request: _Optional[_Union[RescheduleCachePeerRequest, _Mapping]] = ..., download_cache_peer_finished_request: _Optional[_Union[DownloadCachePeerFinishedRequest, _Mapping]] = ..., download_cache_peer_back_to_source_finished_request: _Optional[_Union[DownloadCachePeerBackToSourceFinishedRequest, _Mapping]] = ..., download_cache_peer_failed_request: _Optional[_Union[DownloadCachePeerFailedRequest, _Mapping]] = ..., download_cache_peer_back_to_source_failed_request: _Optional[_Union[DownloadCachePeerBackToSourceFailedRequest, _Mapping]] = ..., download_piece_finished_request: _Optional[_Union[DownloadPieceFinishedRequest, _Mapping]] = ..., download_piece_back_to_source_finished_request: _Optional[_Union[DownloadPieceBackToSourceFinishedRequest, _Mapping]] = ..., download_piece_failed_request: _Optional[_Union[DownloadPieceFailedRequest, _Mapping]] = ..., download_piece_back_to_source_failed_request: _Optional[_Union[DownloadPieceBackToSourceFailedRequest, _Mapping]] = ...) -> None: ...
|
|
353
|
+
|
|
354
|
+
class EmptyCacheTaskResponse(_message.Message):
|
|
355
|
+
__slots__ = ()
|
|
356
|
+
def __init__(self) -> None: ...
|
|
357
|
+
|
|
358
|
+
class NormalCacheTaskResponse(_message.Message):
|
|
359
|
+
__slots__ = ("candidate_parents",)
|
|
360
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
361
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.CachePeer]
|
|
362
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.CachePeer, _Mapping]]] = ...) -> None: ...
|
|
363
|
+
|
|
364
|
+
class AnnounceCachePeerResponse(_message.Message):
|
|
365
|
+
__slots__ = ("empty_cache_task_response", "normal_cache_task_response", "need_back_to_source_response")
|
|
366
|
+
EMPTY_CACHE_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
367
|
+
NORMAL_CACHE_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
368
|
+
NEED_BACK_TO_SOURCE_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
369
|
+
empty_cache_task_response: EmptyCacheTaskResponse
|
|
370
|
+
normal_cache_task_response: NormalCacheTaskResponse
|
|
371
|
+
need_back_to_source_response: NeedBackToSourceResponse
|
|
372
|
+
def __init__(self, empty_cache_task_response: _Optional[_Union[EmptyCacheTaskResponse, _Mapping]] = ..., normal_cache_task_response: _Optional[_Union[NormalCacheTaskResponse, _Mapping]] = ..., need_back_to_source_response: _Optional[_Union[NeedBackToSourceResponse, _Mapping]] = ...) -> None: ...
|
|
373
|
+
|
|
374
|
+
class StatCachePeerRequest(_message.Message):
|
|
375
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
376
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
377
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
378
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
379
|
+
host_id: str
|
|
380
|
+
task_id: str
|
|
381
|
+
peer_id: str
|
|
382
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
383
|
+
|
|
384
|
+
class DeleteCachePeerRequest(_message.Message):
|
|
385
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
386
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
387
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
388
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
389
|
+
host_id: str
|
|
390
|
+
task_id: str
|
|
391
|
+
peer_id: str
|
|
392
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
393
|
+
|
|
394
|
+
class StatCacheTaskRequest(_message.Message):
|
|
395
|
+
__slots__ = ("host_id", "task_id")
|
|
396
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
397
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
398
|
+
host_id: str
|
|
399
|
+
task_id: str
|
|
400
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
401
|
+
|
|
402
|
+
class DeleteCacheTaskRequest(_message.Message):
|
|
403
|
+
__slots__ = ("host_id", "task_id")
|
|
404
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
405
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
406
|
+
host_id: str
|
|
407
|
+
task_id: str
|
|
408
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
409
|
+
|
|
410
|
+
class RegisterPersistentPeerRequest(_message.Message):
|
|
411
|
+
__slots__ = ("url", "object_storage", "persistent", "output_path", "concurrent_piece_count", "piece_count", "need_back_to_source")
|
|
412
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
413
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
414
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
415
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
416
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
417
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
418
|
+
NEED_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
419
|
+
url: str
|
|
420
|
+
object_storage: _common_pb2.ObjectStorage
|
|
421
|
+
persistent: bool
|
|
422
|
+
output_path: str
|
|
423
|
+
concurrent_piece_count: int
|
|
424
|
+
piece_count: int
|
|
425
|
+
need_back_to_source: bool
|
|
426
|
+
def __init__(self, url: _Optional[str] = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., persistent: bool = ..., output_path: _Optional[str] = ..., concurrent_piece_count: _Optional[int] = ..., piece_count: _Optional[int] = ..., need_back_to_source: bool = ...) -> None: ...
|
|
427
|
+
|
|
428
|
+
class DownloadPersistentPeerStartedRequest(_message.Message):
|
|
429
|
+
__slots__ = ()
|
|
430
|
+
def __init__(self) -> None: ...
|
|
431
|
+
|
|
432
|
+
class DownloadPersistentPeerBackToSourceStartedRequest(_message.Message):
|
|
433
|
+
__slots__ = ("description",)
|
|
434
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
435
|
+
description: str
|
|
436
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
437
|
+
|
|
438
|
+
class ReschedulePersistentPeerRequest(_message.Message):
|
|
439
|
+
__slots__ = ("candidate_parents", "description")
|
|
440
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
441
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
442
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.PersistentPeer]
|
|
443
|
+
description: str
|
|
444
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.PersistentPeer, _Mapping]]] = ..., description: _Optional[str] = ...) -> None: ...
|
|
445
|
+
|
|
446
|
+
class DownloadPersistentPeerFinishedRequest(_message.Message):
|
|
447
|
+
__slots__ = ()
|
|
448
|
+
def __init__(self) -> None: ...
|
|
449
|
+
|
|
450
|
+
class DownloadPersistentPeerBackToSourceFinishedRequest(_message.Message):
|
|
451
|
+
__slots__ = ()
|
|
452
|
+
def __init__(self) -> None: ...
|
|
453
|
+
|
|
454
|
+
class DownloadPersistentPeerFailedRequest(_message.Message):
|
|
455
|
+
__slots__ = ("description",)
|
|
456
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
457
|
+
description: str
|
|
458
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
459
|
+
|
|
460
|
+
class DownloadPersistentPeerBackToSourceFailedRequest(_message.Message):
|
|
461
|
+
__slots__ = ("description",)
|
|
462
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
463
|
+
description: str
|
|
464
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
465
|
+
|
|
466
|
+
class AnnouncePersistentPeerRequest(_message.Message):
|
|
467
|
+
__slots__ = ("host_id", "task_id", "peer_id", "register_persistent_peer_request", "download_persistent_peer_started_request", "download_persistent_peer_back_to_source_started_request", "reschedule_persistent_peer_request", "download_persistent_peer_finished_request", "download_persistent_peer_back_to_source_finished_request", "download_persistent_peer_failed_request", "download_persistent_peer_back_to_source_failed_request", "download_piece_finished_request", "download_piece_back_to_source_finished_request", "download_piece_failed_request", "download_piece_back_to_source_failed_request")
|
|
468
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
469
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
470
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
471
|
+
REGISTER_PERSISTENT_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
472
|
+
DOWNLOAD_PERSISTENT_PEER_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
473
|
+
DOWNLOAD_PERSISTENT_PEER_BACK_TO_SOURCE_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
474
|
+
RESCHEDULE_PERSISTENT_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
475
|
+
DOWNLOAD_PERSISTENT_PEER_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
476
|
+
DOWNLOAD_PERSISTENT_PEER_BACK_TO_SOURCE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
477
|
+
DOWNLOAD_PERSISTENT_PEER_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
478
|
+
DOWNLOAD_PERSISTENT_PEER_BACK_TO_SOURCE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
479
|
+
DOWNLOAD_PIECE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
480
|
+
DOWNLOAD_PIECE_BACK_TO_SOURCE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
481
|
+
DOWNLOAD_PIECE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
482
|
+
DOWNLOAD_PIECE_BACK_TO_SOURCE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
483
|
+
host_id: str
|
|
484
|
+
task_id: str
|
|
485
|
+
peer_id: str
|
|
486
|
+
register_persistent_peer_request: RegisterPersistentPeerRequest
|
|
487
|
+
download_persistent_peer_started_request: DownloadPersistentPeerStartedRequest
|
|
488
|
+
download_persistent_peer_back_to_source_started_request: DownloadPersistentPeerBackToSourceStartedRequest
|
|
489
|
+
reschedule_persistent_peer_request: ReschedulePersistentPeerRequest
|
|
490
|
+
download_persistent_peer_finished_request: DownloadPersistentPeerFinishedRequest
|
|
491
|
+
download_persistent_peer_back_to_source_finished_request: DownloadPersistentPeerBackToSourceFinishedRequest
|
|
492
|
+
download_persistent_peer_failed_request: DownloadPersistentPeerFailedRequest
|
|
493
|
+
download_persistent_peer_back_to_source_failed_request: DownloadPersistentPeerBackToSourceFailedRequest
|
|
494
|
+
download_piece_finished_request: DownloadPieceFinishedRequest
|
|
495
|
+
download_piece_back_to_source_finished_request: DownloadPieceBackToSourceFinishedRequest
|
|
496
|
+
download_piece_failed_request: DownloadPieceFailedRequest
|
|
497
|
+
download_piece_back_to_source_failed_request: DownloadPieceBackToSourceFailedRequest
|
|
498
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., register_persistent_peer_request: _Optional[_Union[RegisterPersistentPeerRequest, _Mapping]] = ..., download_persistent_peer_started_request: _Optional[_Union[DownloadPersistentPeerStartedRequest, _Mapping]] = ..., download_persistent_peer_back_to_source_started_request: _Optional[_Union[DownloadPersistentPeerBackToSourceStartedRequest, _Mapping]] = ..., reschedule_persistent_peer_request: _Optional[_Union[ReschedulePersistentPeerRequest, _Mapping]] = ..., download_persistent_peer_finished_request: _Optional[_Union[DownloadPersistentPeerFinishedRequest, _Mapping]] = ..., download_persistent_peer_back_to_source_finished_request: _Optional[_Union[DownloadPersistentPeerBackToSourceFinishedRequest, _Mapping]] = ..., download_persistent_peer_failed_request: _Optional[_Union[DownloadPersistentPeerFailedRequest, _Mapping]] = ..., download_persistent_peer_back_to_source_failed_request: _Optional[_Union[DownloadPersistentPeerBackToSourceFailedRequest, _Mapping]] = ..., download_piece_finished_request: _Optional[_Union[DownloadPieceFinishedRequest, _Mapping]] = ..., download_piece_back_to_source_finished_request: _Optional[_Union[DownloadPieceBackToSourceFinishedRequest, _Mapping]] = ..., download_piece_failed_request: _Optional[_Union[DownloadPieceFailedRequest, _Mapping]] = ..., download_piece_back_to_source_failed_request: _Optional[_Union[DownloadPieceBackToSourceFailedRequest, _Mapping]] = ...) -> None: ...
|
|
499
|
+
|
|
500
|
+
class EmptyPersistentTaskResponse(_message.Message):
|
|
501
|
+
__slots__ = ()
|
|
502
|
+
def __init__(self) -> None: ...
|
|
503
|
+
|
|
504
|
+
class NormalPersistentTaskResponse(_message.Message):
|
|
505
|
+
__slots__ = ("candidate_parents",)
|
|
506
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
507
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.PersistentPeer]
|
|
508
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.PersistentPeer, _Mapping]]] = ...) -> None: ...
|
|
509
|
+
|
|
510
|
+
class AnnouncePersistentPeerResponse(_message.Message):
|
|
511
|
+
__slots__ = ("empty_persistent_task_response", "normal_persistent_task_response", "need_back_to_source_response")
|
|
512
|
+
EMPTY_PERSISTENT_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
513
|
+
NORMAL_PERSISTENT_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
514
|
+
NEED_BACK_TO_SOURCE_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
515
|
+
empty_persistent_task_response: EmptyPersistentTaskResponse
|
|
516
|
+
normal_persistent_task_response: NormalPersistentTaskResponse
|
|
517
|
+
need_back_to_source_response: NeedBackToSourceResponse
|
|
518
|
+
def __init__(self, empty_persistent_task_response: _Optional[_Union[EmptyPersistentTaskResponse, _Mapping]] = ..., normal_persistent_task_response: _Optional[_Union[NormalPersistentTaskResponse, _Mapping]] = ..., need_back_to_source_response: _Optional[_Union[NeedBackToSourceResponse, _Mapping]] = ...) -> None: ...
|
|
519
|
+
|
|
520
|
+
class StatPersistentPeerRequest(_message.Message):
|
|
521
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
522
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
523
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
524
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
525
|
+
host_id: str
|
|
526
|
+
task_id: str
|
|
527
|
+
peer_id: str
|
|
528
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
529
|
+
|
|
530
|
+
class DeletePersistentPeerRequest(_message.Message):
|
|
531
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
532
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
533
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
534
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
535
|
+
host_id: str
|
|
536
|
+
task_id: str
|
|
537
|
+
peer_id: str
|
|
538
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
539
|
+
|
|
540
|
+
class UploadPersistentTaskStartedRequest(_message.Message):
|
|
541
|
+
__slots__ = ("host_id", "task_id", "peer_id", "url", "object_storage", "persistent_replica_count", "content_length", "piece_count", "ttl")
|
|
542
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
543
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
544
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
545
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
546
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
547
|
+
PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
548
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
549
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
550
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
551
|
+
host_id: str
|
|
552
|
+
task_id: str
|
|
553
|
+
peer_id: str
|
|
554
|
+
url: str
|
|
555
|
+
object_storage: _common_pb2.ObjectStorage
|
|
556
|
+
persistent_replica_count: int
|
|
557
|
+
content_length: int
|
|
558
|
+
piece_count: int
|
|
559
|
+
ttl: _duration_pb2.Duration
|
|
560
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., url: _Optional[str] = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., persistent_replica_count: _Optional[int] = ..., content_length: _Optional[int] = ..., piece_count: _Optional[int] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
|
561
|
+
|
|
562
|
+
class UploadPersistentTaskFinishedRequest(_message.Message):
|
|
563
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
564
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
565
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
566
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
567
|
+
host_id: str
|
|
568
|
+
task_id: str
|
|
569
|
+
peer_id: str
|
|
570
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
571
|
+
|
|
572
|
+
class UploadPersistentTaskFailedRequest(_message.Message):
|
|
573
|
+
__slots__ = ("host_id", "task_id", "peer_id", "description")
|
|
574
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
575
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
576
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
577
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
578
|
+
host_id: str
|
|
579
|
+
task_id: str
|
|
580
|
+
peer_id: str
|
|
581
|
+
description: str
|
|
582
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
|
|
583
|
+
|
|
584
|
+
class StatPersistentTaskRequest(_message.Message):
|
|
585
|
+
__slots__ = ("host_id", "task_id")
|
|
586
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
587
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
588
|
+
host_id: str
|
|
589
|
+
task_id: str
|
|
590
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
591
|
+
|
|
592
|
+
class DeletePersistentTaskRequest(_message.Message):
|
|
593
|
+
__slots__ = ("host_id", "task_id")
|
|
594
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
595
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
596
|
+
host_id: str
|
|
597
|
+
task_id: str
|
|
598
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
599
|
+
|
|
600
|
+
class RegisterPersistentCachePeerRequest(_message.Message):
|
|
601
|
+
__slots__ = ("persistent", "tag", "application", "piece_length", "output_path", "concurrent_piece_count", "piece_count")
|
|
602
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
603
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
604
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
605
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
606
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
607
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
608
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
609
|
+
persistent: bool
|
|
610
|
+
tag: str
|
|
611
|
+
application: str
|
|
612
|
+
piece_length: int
|
|
613
|
+
output_path: str
|
|
614
|
+
concurrent_piece_count: int
|
|
615
|
+
piece_count: int
|
|
616
|
+
def __init__(self, persistent: bool = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., piece_length: _Optional[int] = ..., output_path: _Optional[str] = ..., concurrent_piece_count: _Optional[int] = ..., piece_count: _Optional[int] = ...) -> None: ...
|
|
617
|
+
|
|
618
|
+
class DownloadPersistentCachePeerStartedRequest(_message.Message):
|
|
619
|
+
__slots__ = ()
|
|
620
|
+
def __init__(self) -> None: ...
|
|
621
|
+
|
|
622
|
+
class ReschedulePersistentCachePeerRequest(_message.Message):
|
|
623
|
+
__slots__ = ("candidate_parents", "description")
|
|
624
|
+
CANDIDATE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
625
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
626
|
+
candidate_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.PersistentCachePeer]
|
|
627
|
+
description: str
|
|
628
|
+
def __init__(self, candidate_parents: _Optional[_Iterable[_Union[_common_pb2.PersistentCachePeer, _Mapping]]] = ..., description: _Optional[str] = ...) -> None: ...
|
|
629
|
+
|
|
630
|
+
class DownloadPersistentCachePeerFinishedRequest(_message.Message):
|
|
631
|
+
__slots__ = ()
|
|
632
|
+
def __init__(self) -> None: ...
|
|
633
|
+
|
|
634
|
+
class DownloadPersistentCachePeerFailedRequest(_message.Message):
|
|
635
|
+
__slots__ = ("description",)
|
|
636
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
637
|
+
description: str
|
|
638
|
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
|
639
|
+
|
|
640
|
+
class AnnouncePersistentCachePeerRequest(_message.Message):
|
|
641
|
+
__slots__ = ("host_id", "task_id", "peer_id", "register_persistent_cache_peer_request", "download_persistent_cache_peer_started_request", "reschedule_persistent_cache_peer_request", "download_persistent_cache_peer_finished_request", "download_persistent_cache_peer_failed_request", "download_piece_finished_request", "download_piece_failed_request")
|
|
642
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
643
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
644
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
645
|
+
REGISTER_PERSISTENT_CACHE_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
646
|
+
DOWNLOAD_PERSISTENT_CACHE_PEER_STARTED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
647
|
+
RESCHEDULE_PERSISTENT_CACHE_PEER_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
648
|
+
DOWNLOAD_PERSISTENT_CACHE_PEER_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
649
|
+
DOWNLOAD_PERSISTENT_CACHE_PEER_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
650
|
+
DOWNLOAD_PIECE_FINISHED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
651
|
+
DOWNLOAD_PIECE_FAILED_REQUEST_FIELD_NUMBER: _ClassVar[int]
|
|
652
|
+
host_id: str
|
|
653
|
+
task_id: str
|
|
654
|
+
peer_id: str
|
|
655
|
+
register_persistent_cache_peer_request: RegisterPersistentCachePeerRequest
|
|
656
|
+
download_persistent_cache_peer_started_request: DownloadPersistentCachePeerStartedRequest
|
|
657
|
+
reschedule_persistent_cache_peer_request: ReschedulePersistentCachePeerRequest
|
|
658
|
+
download_persistent_cache_peer_finished_request: DownloadPersistentCachePeerFinishedRequest
|
|
659
|
+
download_persistent_cache_peer_failed_request: DownloadPersistentCachePeerFailedRequest
|
|
660
|
+
download_piece_finished_request: DownloadPieceFinishedRequest
|
|
661
|
+
download_piece_failed_request: DownloadPieceFailedRequest
|
|
662
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., register_persistent_cache_peer_request: _Optional[_Union[RegisterPersistentCachePeerRequest, _Mapping]] = ..., download_persistent_cache_peer_started_request: _Optional[_Union[DownloadPersistentCachePeerStartedRequest, _Mapping]] = ..., reschedule_persistent_cache_peer_request: _Optional[_Union[ReschedulePersistentCachePeerRequest, _Mapping]] = ..., download_persistent_cache_peer_finished_request: _Optional[_Union[DownloadPersistentCachePeerFinishedRequest, _Mapping]] = ..., download_persistent_cache_peer_failed_request: _Optional[_Union[DownloadPersistentCachePeerFailedRequest, _Mapping]] = ..., download_piece_finished_request: _Optional[_Union[DownloadPieceFinishedRequest, _Mapping]] = ..., download_piece_failed_request: _Optional[_Union[DownloadPieceFailedRequest, _Mapping]] = ...) -> None: ...
|
|
663
|
+
|
|
664
|
+
class EmptyPersistentCacheTaskResponse(_message.Message):
|
|
665
|
+
__slots__ = ()
|
|
666
|
+
def __init__(self) -> None: ...
|
|
667
|
+
|
|
668
|
+
class NormalPersistentCacheTaskResponse(_message.Message):
|
|
669
|
+
__slots__ = ("candidate_cache_parents",)
|
|
670
|
+
CANDIDATE_CACHE_PARENTS_FIELD_NUMBER: _ClassVar[int]
|
|
671
|
+
candidate_cache_parents: _containers.RepeatedCompositeFieldContainer[_common_pb2.PersistentCachePeer]
|
|
672
|
+
def __init__(self, candidate_cache_parents: _Optional[_Iterable[_Union[_common_pb2.PersistentCachePeer, _Mapping]]] = ...) -> None: ...
|
|
673
|
+
|
|
674
|
+
class AnnouncePersistentCachePeerResponse(_message.Message):
|
|
675
|
+
__slots__ = ("empty_persistent_cache_task_response", "normal_persistent_cache_task_response")
|
|
676
|
+
EMPTY_PERSISTENT_CACHE_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
677
|
+
NORMAL_PERSISTENT_CACHE_TASK_RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
|
678
|
+
empty_persistent_cache_task_response: EmptyPersistentCacheTaskResponse
|
|
679
|
+
normal_persistent_cache_task_response: NormalPersistentCacheTaskResponse
|
|
680
|
+
def __init__(self, empty_persistent_cache_task_response: _Optional[_Union[EmptyPersistentCacheTaskResponse, _Mapping]] = ..., normal_persistent_cache_task_response: _Optional[_Union[NormalPersistentCacheTaskResponse, _Mapping]] = ...) -> None: ...
|
|
681
|
+
|
|
682
|
+
class StatPersistentCachePeerRequest(_message.Message):
|
|
683
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
684
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
685
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
686
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
687
|
+
host_id: str
|
|
688
|
+
task_id: str
|
|
689
|
+
peer_id: str
|
|
690
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
691
|
+
|
|
692
|
+
class DeletePersistentCachePeerRequest(_message.Message):
|
|
693
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
694
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
695
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
696
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
697
|
+
host_id: str
|
|
698
|
+
task_id: str
|
|
699
|
+
peer_id: str
|
|
700
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
701
|
+
|
|
702
|
+
class UploadPersistentCacheTaskStartedRequest(_message.Message):
|
|
703
|
+
__slots__ = ("host_id", "task_id", "peer_id", "persistent_replica_count", "tag", "application", "piece_length", "content_length", "piece_count", "ttl")
|
|
704
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
705
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
706
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
707
|
+
PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
708
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
709
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
710
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
711
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
712
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
713
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
714
|
+
host_id: str
|
|
715
|
+
task_id: str
|
|
716
|
+
peer_id: str
|
|
717
|
+
persistent_replica_count: int
|
|
718
|
+
tag: str
|
|
719
|
+
application: str
|
|
720
|
+
piece_length: int
|
|
721
|
+
content_length: int
|
|
722
|
+
piece_count: int
|
|
723
|
+
ttl: _duration_pb2.Duration
|
|
724
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., persistent_replica_count: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., piece_length: _Optional[int] = ..., content_length: _Optional[int] = ..., piece_count: _Optional[int] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
|
725
|
+
|
|
726
|
+
class UploadPersistentCacheTaskFinishedRequest(_message.Message):
|
|
727
|
+
__slots__ = ("host_id", "task_id", "peer_id")
|
|
728
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
729
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
730
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
731
|
+
host_id: str
|
|
732
|
+
task_id: str
|
|
733
|
+
peer_id: str
|
|
734
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ...) -> None: ...
|
|
735
|
+
|
|
736
|
+
class UploadPersistentCacheTaskFailedRequest(_message.Message):
|
|
737
|
+
__slots__ = ("host_id", "task_id", "peer_id", "description")
|
|
738
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
739
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
740
|
+
PEER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
741
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
742
|
+
host_id: str
|
|
743
|
+
task_id: str
|
|
744
|
+
peer_id: str
|
|
745
|
+
description: str
|
|
746
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ..., peer_id: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
|
|
747
|
+
|
|
748
|
+
class StatPersistentCacheTaskRequest(_message.Message):
|
|
749
|
+
__slots__ = ("host_id", "task_id")
|
|
750
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
751
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
752
|
+
host_id: str
|
|
753
|
+
task_id: str
|
|
754
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
755
|
+
|
|
756
|
+
class DeletePersistentCacheTaskRequest(_message.Message):
|
|
757
|
+
__slots__ = ("host_id", "task_id")
|
|
758
|
+
HOST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
759
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
760
|
+
host_id: str
|
|
761
|
+
task_id: str
|
|
762
|
+
def __init__(self, host_id: _Optional[str] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
763
|
+
|
|
764
|
+
class PreheatImageRequest(_message.Message):
|
|
765
|
+
__slots__ = ("url", "piece_length", "tag", "application", "filtered_query_params", "header", "username", "password", "platform", "scope", "ips", "percentage", "count", "concurrent_task_count", "concurrent_peer_count", "timeout", "priority", "certificate_chain", "insecure_skip_verify")
|
|
766
|
+
class HeaderEntry(_message.Message):
|
|
767
|
+
__slots__ = ("key", "value")
|
|
768
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
769
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
770
|
+
key: str
|
|
771
|
+
value: str
|
|
772
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
773
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
774
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
775
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
776
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
777
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
778
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
779
|
+
USERNAME_FIELD_NUMBER: _ClassVar[int]
|
|
780
|
+
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
781
|
+
PLATFORM_FIELD_NUMBER: _ClassVar[int]
|
|
782
|
+
SCOPE_FIELD_NUMBER: _ClassVar[int]
|
|
783
|
+
IPS_FIELD_NUMBER: _ClassVar[int]
|
|
784
|
+
PERCENTAGE_FIELD_NUMBER: _ClassVar[int]
|
|
785
|
+
COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
786
|
+
CONCURRENT_TASK_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
787
|
+
CONCURRENT_PEER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
788
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
789
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
790
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
791
|
+
INSECURE_SKIP_VERIFY_FIELD_NUMBER: _ClassVar[int]
|
|
792
|
+
url: str
|
|
793
|
+
piece_length: int
|
|
794
|
+
tag: str
|
|
795
|
+
application: str
|
|
796
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
797
|
+
header: _containers.ScalarMap[str, str]
|
|
798
|
+
username: str
|
|
799
|
+
password: str
|
|
800
|
+
platform: str
|
|
801
|
+
scope: str
|
|
802
|
+
ips: _containers.RepeatedScalarFieldContainer[str]
|
|
803
|
+
percentage: int
|
|
804
|
+
count: int
|
|
805
|
+
concurrent_task_count: int
|
|
806
|
+
concurrent_peer_count: int
|
|
807
|
+
timeout: _duration_pb2.Duration
|
|
808
|
+
priority: _common_pb2.Priority
|
|
809
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
810
|
+
insecure_skip_verify: bool
|
|
811
|
+
def __init__(self, url: _Optional[str] = ..., piece_length: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., header: _Optional[_Mapping[str, str]] = ..., username: _Optional[str] = ..., password: _Optional[str] = ..., platform: _Optional[str] = ..., scope: _Optional[str] = ..., ips: _Optional[_Iterable[str]] = ..., percentage: _Optional[int] = ..., count: _Optional[int] = ..., concurrent_task_count: _Optional[int] = ..., concurrent_peer_count: _Optional[int] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., priority: _Optional[_Union[_common_pb2.Priority, str]] = ..., certificate_chain: _Optional[_Iterable[bytes]] = ..., insecure_skip_verify: bool = ...) -> None: ...
|
|
812
|
+
|
|
813
|
+
class StatImageRequest(_message.Message):
|
|
814
|
+
__slots__ = ("url", "piece_length", "tag", "application", "filtered_query_params", "header", "username", "password", "platform", "concurrent_layer_count", "concurrent_peer_count", "timeout", "certificate_chain", "insecure_skip_verify")
|
|
815
|
+
class HeaderEntry(_message.Message):
|
|
816
|
+
__slots__ = ("key", "value")
|
|
817
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
818
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
819
|
+
key: str
|
|
820
|
+
value: str
|
|
821
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
822
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
823
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
824
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
825
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
826
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
827
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
828
|
+
USERNAME_FIELD_NUMBER: _ClassVar[int]
|
|
829
|
+
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
830
|
+
PLATFORM_FIELD_NUMBER: _ClassVar[int]
|
|
831
|
+
CONCURRENT_LAYER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
832
|
+
CONCURRENT_PEER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
833
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
834
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
835
|
+
INSECURE_SKIP_VERIFY_FIELD_NUMBER: _ClassVar[int]
|
|
836
|
+
url: str
|
|
837
|
+
piece_length: int
|
|
838
|
+
tag: str
|
|
839
|
+
application: str
|
|
840
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
841
|
+
header: _containers.ScalarMap[str, str]
|
|
842
|
+
username: str
|
|
843
|
+
password: str
|
|
844
|
+
platform: str
|
|
845
|
+
concurrent_layer_count: int
|
|
846
|
+
concurrent_peer_count: int
|
|
847
|
+
timeout: _duration_pb2.Duration
|
|
848
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
849
|
+
insecure_skip_verify: bool
|
|
850
|
+
def __init__(self, url: _Optional[str] = ..., piece_length: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., header: _Optional[_Mapping[str, str]] = ..., username: _Optional[str] = ..., password: _Optional[str] = ..., platform: _Optional[str] = ..., concurrent_layer_count: _Optional[int] = ..., concurrent_peer_count: _Optional[int] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., certificate_chain: _Optional[_Iterable[bytes]] = ..., insecure_skip_verify: bool = ...) -> None: ...
|
|
851
|
+
|
|
852
|
+
class StatImageResponse(_message.Message):
|
|
853
|
+
__slots__ = ("image", "peers")
|
|
854
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
855
|
+
PEERS_FIELD_NUMBER: _ClassVar[int]
|
|
856
|
+
image: Image
|
|
857
|
+
peers: _containers.RepeatedCompositeFieldContainer[PeerImage]
|
|
858
|
+
def __init__(self, image: _Optional[_Union[Image, _Mapping]] = ..., peers: _Optional[_Iterable[_Union[PeerImage, _Mapping]]] = ...) -> None: ...
|
|
859
|
+
|
|
860
|
+
class PeerImage(_message.Message):
|
|
861
|
+
__slots__ = ("ip", "hostname", "cached_layers")
|
|
862
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
863
|
+
HOSTNAME_FIELD_NUMBER: _ClassVar[int]
|
|
864
|
+
CACHED_LAYERS_FIELD_NUMBER: _ClassVar[int]
|
|
865
|
+
ip: str
|
|
866
|
+
hostname: str
|
|
867
|
+
cached_layers: _containers.RepeatedCompositeFieldContainer[Layer]
|
|
868
|
+
def __init__(self, ip: _Optional[str] = ..., hostname: _Optional[str] = ..., cached_layers: _Optional[_Iterable[_Union[Layer, _Mapping]]] = ...) -> None: ...
|
|
869
|
+
|
|
870
|
+
class Image(_message.Message):
|
|
871
|
+
__slots__ = ("layers",)
|
|
872
|
+
LAYERS_FIELD_NUMBER: _ClassVar[int]
|
|
873
|
+
layers: _containers.RepeatedCompositeFieldContainer[Layer]
|
|
874
|
+
def __init__(self, layers: _Optional[_Iterable[_Union[Layer, _Mapping]]] = ...) -> None: ...
|
|
875
|
+
|
|
876
|
+
class Layer(_message.Message):
|
|
877
|
+
__slots__ = ("url", "is_finished")
|
|
878
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
879
|
+
IS_FINISHED_FIELD_NUMBER: _ClassVar[int]
|
|
880
|
+
url: str
|
|
881
|
+
is_finished: bool
|
|
882
|
+
def __init__(self, url: _Optional[str] = ..., is_finished: bool = ...) -> None: ...
|
|
883
|
+
|
|
884
|
+
class PreheatFileRequest(_message.Message):
|
|
885
|
+
__slots__ = ("url", "piece_length", "tag", "application", "filtered_query_params", "header", "scope", "ips", "percentage", "count", "concurrent_task_count", "concurrent_peer_count", "timeout", "priority", "certificate_chain", "insecure_skip_verify", "object_storage", "hdfs", "output_path")
|
|
886
|
+
class HeaderEntry(_message.Message):
|
|
887
|
+
__slots__ = ("key", "value")
|
|
888
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
889
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
890
|
+
key: str
|
|
891
|
+
value: str
|
|
892
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
893
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
894
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
895
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
896
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
897
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
898
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
899
|
+
SCOPE_FIELD_NUMBER: _ClassVar[int]
|
|
900
|
+
IPS_FIELD_NUMBER: _ClassVar[int]
|
|
901
|
+
PERCENTAGE_FIELD_NUMBER: _ClassVar[int]
|
|
902
|
+
COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
903
|
+
CONCURRENT_TASK_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
904
|
+
CONCURRENT_PEER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
905
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
906
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
907
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
908
|
+
INSECURE_SKIP_VERIFY_FIELD_NUMBER: _ClassVar[int]
|
|
909
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
910
|
+
HDFS_FIELD_NUMBER: _ClassVar[int]
|
|
911
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
912
|
+
url: str
|
|
913
|
+
piece_length: int
|
|
914
|
+
tag: str
|
|
915
|
+
application: str
|
|
916
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
917
|
+
header: _containers.ScalarMap[str, str]
|
|
918
|
+
scope: str
|
|
919
|
+
ips: _containers.RepeatedScalarFieldContainer[str]
|
|
920
|
+
percentage: int
|
|
921
|
+
count: int
|
|
922
|
+
concurrent_task_count: int
|
|
923
|
+
concurrent_peer_count: int
|
|
924
|
+
timeout: _duration_pb2.Duration
|
|
925
|
+
priority: _common_pb2.Priority
|
|
926
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
927
|
+
insecure_skip_verify: bool
|
|
928
|
+
object_storage: _common_pb2.ObjectStorage
|
|
929
|
+
hdfs: _common_pb2.HDFS
|
|
930
|
+
output_path: str
|
|
931
|
+
def __init__(self, url: _Optional[str] = ..., piece_length: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., header: _Optional[_Mapping[str, str]] = ..., scope: _Optional[str] = ..., ips: _Optional[_Iterable[str]] = ..., percentage: _Optional[int] = ..., count: _Optional[int] = ..., concurrent_task_count: _Optional[int] = ..., concurrent_peer_count: _Optional[int] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., priority: _Optional[_Union[_common_pb2.Priority, str]] = ..., certificate_chain: _Optional[_Iterable[bytes]] = ..., insecure_skip_verify: bool = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., hdfs: _Optional[_Union[_common_pb2.HDFS, _Mapping]] = ..., output_path: _Optional[str] = ...) -> None: ...
|
|
932
|
+
|
|
933
|
+
class StatFileRequest(_message.Message):
|
|
934
|
+
__slots__ = ("url", "piece_length", "tag", "application", "filtered_query_params", "header", "concurrent_peer_count", "timeout", "certificate_chain", "insecure_skip_verify", "object_storage", "hdfs")
|
|
935
|
+
class HeaderEntry(_message.Message):
|
|
936
|
+
__slots__ = ("key", "value")
|
|
937
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
938
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
939
|
+
key: str
|
|
940
|
+
value: str
|
|
941
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
942
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
943
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
944
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
945
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
946
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
947
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
948
|
+
CONCURRENT_PEER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
949
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
950
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
951
|
+
INSECURE_SKIP_VERIFY_FIELD_NUMBER: _ClassVar[int]
|
|
952
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
953
|
+
HDFS_FIELD_NUMBER: _ClassVar[int]
|
|
954
|
+
url: str
|
|
955
|
+
piece_length: int
|
|
956
|
+
tag: str
|
|
957
|
+
application: str
|
|
958
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
959
|
+
header: _containers.ScalarMap[str, str]
|
|
960
|
+
concurrent_peer_count: int
|
|
961
|
+
timeout: _duration_pb2.Duration
|
|
962
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
963
|
+
insecure_skip_verify: bool
|
|
964
|
+
object_storage: _common_pb2.ObjectStorage
|
|
965
|
+
hdfs: _common_pb2.HDFS
|
|
966
|
+
def __init__(self, url: _Optional[str] = ..., piece_length: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., header: _Optional[_Mapping[str, str]] = ..., concurrent_peer_count: _Optional[int] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., certificate_chain: _Optional[_Iterable[bytes]] = ..., insecure_skip_verify: bool = ..., object_storage: _Optional[_Union[_common_pb2.ObjectStorage, _Mapping]] = ..., hdfs: _Optional[_Union[_common_pb2.HDFS, _Mapping]] = ...) -> None: ...
|
|
967
|
+
|
|
968
|
+
class StatFileResponse(_message.Message):
|
|
969
|
+
__slots__ = ("peers",)
|
|
970
|
+
PEERS_FIELD_NUMBER: _ClassVar[int]
|
|
971
|
+
peers: _containers.RepeatedCompositeFieldContainer[PeerFile]
|
|
972
|
+
def __init__(self, peers: _Optional[_Iterable[_Union[PeerFile, _Mapping]]] = ...) -> None: ...
|
|
973
|
+
|
|
974
|
+
class PeerFile(_message.Message):
|
|
975
|
+
__slots__ = ("ip", "hostname", "cached_files")
|
|
976
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
977
|
+
HOSTNAME_FIELD_NUMBER: _ClassVar[int]
|
|
978
|
+
CACHED_FILES_FIELD_NUMBER: _ClassVar[int]
|
|
979
|
+
ip: str
|
|
980
|
+
hostname: str
|
|
981
|
+
cached_files: _containers.RepeatedCompositeFieldContainer[File]
|
|
982
|
+
def __init__(self, ip: _Optional[str] = ..., hostname: _Optional[str] = ..., cached_files: _Optional[_Iterable[_Union[File, _Mapping]]] = ...) -> None: ...
|
|
983
|
+
|
|
984
|
+
class File(_message.Message):
|
|
985
|
+
__slots__ = ("url", "is_finished")
|
|
986
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
987
|
+
IS_FINISHED_FIELD_NUMBER: _ClassVar[int]
|
|
988
|
+
url: str
|
|
989
|
+
is_finished: bool
|
|
990
|
+
def __init__(self, url: _Optional[str] = ..., is_finished: bool = ...) -> None: ...
|