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,647 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
4
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
5
|
+
from google.protobuf.internal import containers as _containers
|
|
6
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
10
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
class SizeScope(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
15
|
+
__slots__ = ()
|
|
16
|
+
NORMAL: _ClassVar[SizeScope]
|
|
17
|
+
SMALL: _ClassVar[SizeScope]
|
|
18
|
+
TINY: _ClassVar[SizeScope]
|
|
19
|
+
EMPTY: _ClassVar[SizeScope]
|
|
20
|
+
|
|
21
|
+
class TaskType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
22
|
+
__slots__ = ()
|
|
23
|
+
STANDARD: _ClassVar[TaskType]
|
|
24
|
+
PERSISTENT: _ClassVar[TaskType]
|
|
25
|
+
PERSISTENT_CACHE: _ClassVar[TaskType]
|
|
26
|
+
CACHE: _ClassVar[TaskType]
|
|
27
|
+
|
|
28
|
+
class TrafficType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
29
|
+
__slots__ = ()
|
|
30
|
+
BACK_TO_SOURCE: _ClassVar[TrafficType]
|
|
31
|
+
REMOTE_PEER: _ClassVar[TrafficType]
|
|
32
|
+
LOCAL_PEER: _ClassVar[TrafficType]
|
|
33
|
+
|
|
34
|
+
class Priority(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
35
|
+
__slots__ = ()
|
|
36
|
+
LEVEL0: _ClassVar[Priority]
|
|
37
|
+
LEVEL1: _ClassVar[Priority]
|
|
38
|
+
LEVEL2: _ClassVar[Priority]
|
|
39
|
+
LEVEL3: _ClassVar[Priority]
|
|
40
|
+
LEVEL4: _ClassVar[Priority]
|
|
41
|
+
LEVEL5: _ClassVar[Priority]
|
|
42
|
+
LEVEL6: _ClassVar[Priority]
|
|
43
|
+
NORMAL: SizeScope
|
|
44
|
+
SMALL: SizeScope
|
|
45
|
+
TINY: SizeScope
|
|
46
|
+
EMPTY: SizeScope
|
|
47
|
+
STANDARD: TaskType
|
|
48
|
+
PERSISTENT: TaskType
|
|
49
|
+
PERSISTENT_CACHE: TaskType
|
|
50
|
+
CACHE: TaskType
|
|
51
|
+
BACK_TO_SOURCE: TrafficType
|
|
52
|
+
REMOTE_PEER: TrafficType
|
|
53
|
+
LOCAL_PEER: TrafficType
|
|
54
|
+
LEVEL0: Priority
|
|
55
|
+
LEVEL1: Priority
|
|
56
|
+
LEVEL2: Priority
|
|
57
|
+
LEVEL3: Priority
|
|
58
|
+
LEVEL4: Priority
|
|
59
|
+
LEVEL5: Priority
|
|
60
|
+
LEVEL6: Priority
|
|
61
|
+
|
|
62
|
+
class Peer(_message.Message):
|
|
63
|
+
__slots__ = ("id", "range", "priority", "pieces", "cost", "state", "task", "host", "need_back_to_source", "created_at", "updated_at", "concurrent_piece_count")
|
|
64
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
PIECES_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
COST_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
TASK_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
HOST_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
NEED_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
id: str
|
|
77
|
+
range: Range
|
|
78
|
+
priority: Priority
|
|
79
|
+
pieces: _containers.RepeatedCompositeFieldContainer[Piece]
|
|
80
|
+
cost: _duration_pb2.Duration
|
|
81
|
+
state: str
|
|
82
|
+
task: Task
|
|
83
|
+
host: Host
|
|
84
|
+
need_back_to_source: bool
|
|
85
|
+
created_at: _timestamp_pb2.Timestamp
|
|
86
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
87
|
+
concurrent_piece_count: int
|
|
88
|
+
def __init__(self, id: _Optional[str] = ..., range: _Optional[_Union[Range, _Mapping]] = ..., priority: _Optional[_Union[Priority, str]] = ..., pieces: _Optional[_Iterable[_Union[Piece, _Mapping]]] = ..., cost: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., state: _Optional[str] = ..., task: _Optional[_Union[Task, _Mapping]] = ..., host: _Optional[_Union[Host, _Mapping]] = ..., need_back_to_source: bool = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., concurrent_piece_count: _Optional[int] = ...) -> None: ...
|
|
89
|
+
|
|
90
|
+
class CachePeer(_message.Message):
|
|
91
|
+
__slots__ = ("id", "range", "priority", "pieces", "cost", "state", "task", "host", "need_back_to_source", "created_at", "updated_at", "concurrent_piece_count")
|
|
92
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
PIECES_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
COST_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
TASK_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
HOST_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
NEED_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
id: str
|
|
105
|
+
range: Range
|
|
106
|
+
priority: Priority
|
|
107
|
+
pieces: _containers.RepeatedCompositeFieldContainer[Piece]
|
|
108
|
+
cost: _duration_pb2.Duration
|
|
109
|
+
state: str
|
|
110
|
+
task: CacheTask
|
|
111
|
+
host: Host
|
|
112
|
+
need_back_to_source: bool
|
|
113
|
+
created_at: _timestamp_pb2.Timestamp
|
|
114
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
115
|
+
concurrent_piece_count: int
|
|
116
|
+
def __init__(self, id: _Optional[str] = ..., range: _Optional[_Union[Range, _Mapping]] = ..., priority: _Optional[_Union[Priority, str]] = ..., pieces: _Optional[_Iterable[_Union[Piece, _Mapping]]] = ..., cost: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., state: _Optional[str] = ..., task: _Optional[_Union[CacheTask, _Mapping]] = ..., host: _Optional[_Union[Host, _Mapping]] = ..., need_back_to_source: bool = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., concurrent_piece_count: _Optional[int] = ...) -> None: ...
|
|
117
|
+
|
|
118
|
+
class PersistentPeer(_message.Message):
|
|
119
|
+
__slots__ = ("id", "persistent", "cost", "state", "task", "host", "created_at", "updated_at", "concurrent_piece_count")
|
|
120
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
121
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
COST_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
TASK_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
HOST_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
id: str
|
|
130
|
+
persistent: bool
|
|
131
|
+
cost: _duration_pb2.Duration
|
|
132
|
+
state: str
|
|
133
|
+
task: PersistentTask
|
|
134
|
+
host: Host
|
|
135
|
+
created_at: _timestamp_pb2.Timestamp
|
|
136
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
137
|
+
concurrent_piece_count: int
|
|
138
|
+
def __init__(self, id: _Optional[str] = ..., persistent: bool = ..., cost: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., state: _Optional[str] = ..., task: _Optional[_Union[PersistentTask, _Mapping]] = ..., host: _Optional[_Union[Host, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., concurrent_piece_count: _Optional[int] = ...) -> None: ...
|
|
139
|
+
|
|
140
|
+
class PersistentCachePeer(_message.Message):
|
|
141
|
+
__slots__ = ("id", "persistent", "cost", "state", "task", "host", "created_at", "updated_at", "concurrent_piece_count")
|
|
142
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
PERSISTENT_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
COST_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
TASK_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
HOST_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
149
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
150
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
151
|
+
id: str
|
|
152
|
+
persistent: bool
|
|
153
|
+
cost: _duration_pb2.Duration
|
|
154
|
+
state: str
|
|
155
|
+
task: PersistentCacheTask
|
|
156
|
+
host: Host
|
|
157
|
+
created_at: _timestamp_pb2.Timestamp
|
|
158
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
159
|
+
concurrent_piece_count: int
|
|
160
|
+
def __init__(self, id: _Optional[str] = ..., persistent: bool = ..., cost: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., state: _Optional[str] = ..., task: _Optional[_Union[PersistentCacheTask, _Mapping]] = ..., host: _Optional[_Union[Host, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., concurrent_piece_count: _Optional[int] = ...) -> None: ...
|
|
161
|
+
|
|
162
|
+
class Task(_message.Message):
|
|
163
|
+
__slots__ = ("id", "type", "url", "digest", "tag", "application", "filtered_query_params", "request_header", "content_length", "piece_count", "size_scope", "pieces", "state", "peer_count", "has_available_peer", "created_at", "updated_at")
|
|
164
|
+
class RequestHeaderEntry(_message.Message):
|
|
165
|
+
__slots__ = ("key", "value")
|
|
166
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
167
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
168
|
+
key: str
|
|
169
|
+
value: str
|
|
170
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
171
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
173
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
174
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
175
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
176
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
177
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
+
REQUEST_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
179
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
180
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
SIZE_SCOPE_FIELD_NUMBER: _ClassVar[int]
|
|
182
|
+
PIECES_FIELD_NUMBER: _ClassVar[int]
|
|
183
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
PEER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
185
|
+
HAS_AVAILABLE_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
186
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
187
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
+
id: str
|
|
189
|
+
type: TaskType
|
|
190
|
+
url: str
|
|
191
|
+
digest: str
|
|
192
|
+
tag: str
|
|
193
|
+
application: str
|
|
194
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
195
|
+
request_header: _containers.ScalarMap[str, str]
|
|
196
|
+
content_length: int
|
|
197
|
+
piece_count: int
|
|
198
|
+
size_scope: SizeScope
|
|
199
|
+
pieces: _containers.RepeatedCompositeFieldContainer[Piece]
|
|
200
|
+
state: str
|
|
201
|
+
peer_count: int
|
|
202
|
+
has_available_peer: bool
|
|
203
|
+
created_at: _timestamp_pb2.Timestamp
|
|
204
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
205
|
+
def __init__(self, id: _Optional[str] = ..., type: _Optional[_Union[TaskType, str]] = ..., url: _Optional[str] = ..., digest: _Optional[str] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., request_header: _Optional[_Mapping[str, str]] = ..., content_length: _Optional[int] = ..., piece_count: _Optional[int] = ..., size_scope: _Optional[_Union[SizeScope, str]] = ..., pieces: _Optional[_Iterable[_Union[Piece, _Mapping]]] = ..., state: _Optional[str] = ..., peer_count: _Optional[int] = ..., has_available_peer: bool = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
206
|
+
|
|
207
|
+
class CacheTask(_message.Message):
|
|
208
|
+
__slots__ = ("id", "type", "url", "digest", "tag", "application", "filtered_query_params", "request_header", "content_length", "piece_count", "size_scope", "pieces", "state", "peer_count", "has_available_peer", "created_at", "updated_at")
|
|
209
|
+
class RequestHeaderEntry(_message.Message):
|
|
210
|
+
__slots__ = ("key", "value")
|
|
211
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
213
|
+
key: str
|
|
214
|
+
value: str
|
|
215
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
216
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
217
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
218
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
219
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
220
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
221
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
222
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
223
|
+
REQUEST_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
225
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
226
|
+
SIZE_SCOPE_FIELD_NUMBER: _ClassVar[int]
|
|
227
|
+
PIECES_FIELD_NUMBER: _ClassVar[int]
|
|
228
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
229
|
+
PEER_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
230
|
+
HAS_AVAILABLE_PEER_FIELD_NUMBER: _ClassVar[int]
|
|
231
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
232
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
233
|
+
id: str
|
|
234
|
+
type: TaskType
|
|
235
|
+
url: str
|
|
236
|
+
digest: str
|
|
237
|
+
tag: str
|
|
238
|
+
application: str
|
|
239
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
240
|
+
request_header: _containers.ScalarMap[str, str]
|
|
241
|
+
content_length: int
|
|
242
|
+
piece_count: int
|
|
243
|
+
size_scope: SizeScope
|
|
244
|
+
pieces: _containers.RepeatedCompositeFieldContainer[Piece]
|
|
245
|
+
state: str
|
|
246
|
+
peer_count: int
|
|
247
|
+
has_available_peer: bool
|
|
248
|
+
created_at: _timestamp_pb2.Timestamp
|
|
249
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
250
|
+
def __init__(self, id: _Optional[str] = ..., type: _Optional[_Union[TaskType, str]] = ..., url: _Optional[str] = ..., digest: _Optional[str] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., filtered_query_params: _Optional[_Iterable[str]] = ..., request_header: _Optional[_Mapping[str, str]] = ..., content_length: _Optional[int] = ..., piece_count: _Optional[int] = ..., size_scope: _Optional[_Union[SizeScope, str]] = ..., pieces: _Optional[_Iterable[_Union[Piece, _Mapping]]] = ..., state: _Optional[str] = ..., peer_count: _Optional[int] = ..., has_available_peer: bool = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
251
|
+
|
|
252
|
+
class PersistentTask(_message.Message):
|
|
253
|
+
__slots__ = ("id", "persistent_replica_count", "current_persistent_replica_count", "current_replica_count", "content_length", "piece_count", "state", "ttl", "created_at", "updated_at")
|
|
254
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
255
|
+
PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
256
|
+
CURRENT_PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
257
|
+
CURRENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
258
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
259
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
260
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
261
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
262
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
263
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
264
|
+
id: str
|
|
265
|
+
persistent_replica_count: int
|
|
266
|
+
current_persistent_replica_count: int
|
|
267
|
+
current_replica_count: int
|
|
268
|
+
content_length: int
|
|
269
|
+
piece_count: int
|
|
270
|
+
state: str
|
|
271
|
+
ttl: _duration_pb2.Duration
|
|
272
|
+
created_at: _timestamp_pb2.Timestamp
|
|
273
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
274
|
+
def __init__(self, id: _Optional[str] = ..., persistent_replica_count: _Optional[int] = ..., current_persistent_replica_count: _Optional[int] = ..., current_replica_count: _Optional[int] = ..., content_length: _Optional[int] = ..., piece_count: _Optional[int] = ..., state: _Optional[str] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
275
|
+
|
|
276
|
+
class PersistentCacheTask(_message.Message):
|
|
277
|
+
__slots__ = ("id", "persistent_replica_count", "current_persistent_replica_count", "current_replica_count", "tag", "application", "piece_length", "content_length", "piece_count", "state", "ttl", "created_at", "updated_at")
|
|
278
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
279
|
+
PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
280
|
+
CURRENT_PERSISTENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
281
|
+
CURRENT_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
282
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
283
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
284
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
285
|
+
CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
286
|
+
PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
287
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
288
|
+
TTL_FIELD_NUMBER: _ClassVar[int]
|
|
289
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
290
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
291
|
+
id: str
|
|
292
|
+
persistent_replica_count: int
|
|
293
|
+
current_persistent_replica_count: int
|
|
294
|
+
current_replica_count: int
|
|
295
|
+
tag: str
|
|
296
|
+
application: str
|
|
297
|
+
piece_length: int
|
|
298
|
+
content_length: int
|
|
299
|
+
piece_count: int
|
|
300
|
+
state: str
|
|
301
|
+
ttl: _duration_pb2.Duration
|
|
302
|
+
created_at: _timestamp_pb2.Timestamp
|
|
303
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
304
|
+
def __init__(self, id: _Optional[str] = ..., persistent_replica_count: _Optional[int] = ..., current_persistent_replica_count: _Optional[int] = ..., current_replica_count: _Optional[int] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., piece_length: _Optional[int] = ..., content_length: _Optional[int] = ..., piece_count: _Optional[int] = ..., state: _Optional[str] = ..., ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
305
|
+
|
|
306
|
+
class Host(_message.Message):
|
|
307
|
+
__slots__ = ("id", "type", "hostname", "ip", "port", "download_port", "os", "platform", "platform_family", "platform_version", "kernel_version", "cpu", "memory", "network", "disk", "build", "scheduler_cluster_id", "disable_shared", "proxy_port", "name")
|
|
308
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
309
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
310
|
+
HOSTNAME_FIELD_NUMBER: _ClassVar[int]
|
|
311
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
312
|
+
PORT_FIELD_NUMBER: _ClassVar[int]
|
|
313
|
+
DOWNLOAD_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
314
|
+
OS_FIELD_NUMBER: _ClassVar[int]
|
|
315
|
+
PLATFORM_FIELD_NUMBER: _ClassVar[int]
|
|
316
|
+
PLATFORM_FAMILY_FIELD_NUMBER: _ClassVar[int]
|
|
317
|
+
PLATFORM_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
318
|
+
KERNEL_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
319
|
+
CPU_FIELD_NUMBER: _ClassVar[int]
|
|
320
|
+
MEMORY_FIELD_NUMBER: _ClassVar[int]
|
|
321
|
+
NETWORK_FIELD_NUMBER: _ClassVar[int]
|
|
322
|
+
DISK_FIELD_NUMBER: _ClassVar[int]
|
|
323
|
+
BUILD_FIELD_NUMBER: _ClassVar[int]
|
|
324
|
+
SCHEDULER_CLUSTER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
325
|
+
DISABLE_SHARED_FIELD_NUMBER: _ClassVar[int]
|
|
326
|
+
PROXY_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
327
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
328
|
+
id: str
|
|
329
|
+
type: int
|
|
330
|
+
hostname: str
|
|
331
|
+
ip: str
|
|
332
|
+
port: int
|
|
333
|
+
download_port: int
|
|
334
|
+
os: str
|
|
335
|
+
platform: str
|
|
336
|
+
platform_family: str
|
|
337
|
+
platform_version: str
|
|
338
|
+
kernel_version: str
|
|
339
|
+
cpu: CPU
|
|
340
|
+
memory: Memory
|
|
341
|
+
network: Network
|
|
342
|
+
disk: Disk
|
|
343
|
+
build: Build
|
|
344
|
+
scheduler_cluster_id: int
|
|
345
|
+
disable_shared: bool
|
|
346
|
+
proxy_port: int
|
|
347
|
+
name: str
|
|
348
|
+
def __init__(self, id: _Optional[str] = ..., type: _Optional[int] = ..., hostname: _Optional[str] = ..., ip: _Optional[str] = ..., port: _Optional[int] = ..., download_port: _Optional[int] = ..., os: _Optional[str] = ..., platform: _Optional[str] = ..., platform_family: _Optional[str] = ..., platform_version: _Optional[str] = ..., kernel_version: _Optional[str] = ..., cpu: _Optional[_Union[CPU, _Mapping]] = ..., memory: _Optional[_Union[Memory, _Mapping]] = ..., network: _Optional[_Union[Network, _Mapping]] = ..., disk: _Optional[_Union[Disk, _Mapping]] = ..., build: _Optional[_Union[Build, _Mapping]] = ..., scheduler_cluster_id: _Optional[int] = ..., disable_shared: bool = ..., proxy_port: _Optional[int] = ..., name: _Optional[str] = ...) -> None: ...
|
|
349
|
+
|
|
350
|
+
class CPU(_message.Message):
|
|
351
|
+
__slots__ = ("logical_count", "physical_count", "percent", "process_percent", "times", "cgroup")
|
|
352
|
+
LOGICAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
353
|
+
PHYSICAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
354
|
+
PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
355
|
+
PROCESS_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
356
|
+
TIMES_FIELD_NUMBER: _ClassVar[int]
|
|
357
|
+
CGROUP_FIELD_NUMBER: _ClassVar[int]
|
|
358
|
+
logical_count: int
|
|
359
|
+
physical_count: int
|
|
360
|
+
percent: float
|
|
361
|
+
process_percent: float
|
|
362
|
+
times: CPUTimes
|
|
363
|
+
cgroup: CgroupCPU
|
|
364
|
+
def __init__(self, logical_count: _Optional[int] = ..., physical_count: _Optional[int] = ..., percent: _Optional[float] = ..., process_percent: _Optional[float] = ..., times: _Optional[_Union[CPUTimes, _Mapping]] = ..., cgroup: _Optional[_Union[CgroupCPU, _Mapping]] = ...) -> None: ...
|
|
365
|
+
|
|
366
|
+
class CgroupCPU(_message.Message):
|
|
367
|
+
__slots__ = ("period", "quota", "used_percent")
|
|
368
|
+
PERIOD_FIELD_NUMBER: _ClassVar[int]
|
|
369
|
+
QUOTA_FIELD_NUMBER: _ClassVar[int]
|
|
370
|
+
USED_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
371
|
+
period: int
|
|
372
|
+
quota: int
|
|
373
|
+
used_percent: float
|
|
374
|
+
def __init__(self, period: _Optional[int] = ..., quota: _Optional[int] = ..., used_percent: _Optional[float] = ...) -> None: ...
|
|
375
|
+
|
|
376
|
+
class CPUTimes(_message.Message):
|
|
377
|
+
__slots__ = ("user", "system", "idle", "nice", "iowait", "irq", "softirq", "steal", "guest", "guest_nice")
|
|
378
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
379
|
+
SYSTEM_FIELD_NUMBER: _ClassVar[int]
|
|
380
|
+
IDLE_FIELD_NUMBER: _ClassVar[int]
|
|
381
|
+
NICE_FIELD_NUMBER: _ClassVar[int]
|
|
382
|
+
IOWAIT_FIELD_NUMBER: _ClassVar[int]
|
|
383
|
+
IRQ_FIELD_NUMBER: _ClassVar[int]
|
|
384
|
+
SOFTIRQ_FIELD_NUMBER: _ClassVar[int]
|
|
385
|
+
STEAL_FIELD_NUMBER: _ClassVar[int]
|
|
386
|
+
GUEST_FIELD_NUMBER: _ClassVar[int]
|
|
387
|
+
GUEST_NICE_FIELD_NUMBER: _ClassVar[int]
|
|
388
|
+
user: float
|
|
389
|
+
system: float
|
|
390
|
+
idle: float
|
|
391
|
+
nice: float
|
|
392
|
+
iowait: float
|
|
393
|
+
irq: float
|
|
394
|
+
softirq: float
|
|
395
|
+
steal: float
|
|
396
|
+
guest: float
|
|
397
|
+
guest_nice: float
|
|
398
|
+
def __init__(self, user: _Optional[float] = ..., system: _Optional[float] = ..., idle: _Optional[float] = ..., nice: _Optional[float] = ..., iowait: _Optional[float] = ..., irq: _Optional[float] = ..., softirq: _Optional[float] = ..., steal: _Optional[float] = ..., guest: _Optional[float] = ..., guest_nice: _Optional[float] = ...) -> None: ...
|
|
399
|
+
|
|
400
|
+
class Memory(_message.Message):
|
|
401
|
+
__slots__ = ("total", "available", "used", "used_percent", "process_used_percent", "free", "cgroup")
|
|
402
|
+
TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
403
|
+
AVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
|
404
|
+
USED_FIELD_NUMBER: _ClassVar[int]
|
|
405
|
+
USED_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
406
|
+
PROCESS_USED_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
407
|
+
FREE_FIELD_NUMBER: _ClassVar[int]
|
|
408
|
+
CGROUP_FIELD_NUMBER: _ClassVar[int]
|
|
409
|
+
total: int
|
|
410
|
+
available: int
|
|
411
|
+
used: int
|
|
412
|
+
used_percent: float
|
|
413
|
+
process_used_percent: float
|
|
414
|
+
free: int
|
|
415
|
+
cgroup: CgroupMemory
|
|
416
|
+
def __init__(self, total: _Optional[int] = ..., available: _Optional[int] = ..., used: _Optional[int] = ..., used_percent: _Optional[float] = ..., process_used_percent: _Optional[float] = ..., free: _Optional[int] = ..., cgroup: _Optional[_Union[CgroupMemory, _Mapping]] = ...) -> None: ...
|
|
417
|
+
|
|
418
|
+
class CgroupMemory(_message.Message):
|
|
419
|
+
__slots__ = ("limit", "usage", "used_percent")
|
|
420
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
421
|
+
USAGE_FIELD_NUMBER: _ClassVar[int]
|
|
422
|
+
USED_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
423
|
+
limit: int
|
|
424
|
+
usage: int
|
|
425
|
+
used_percent: float
|
|
426
|
+
def __init__(self, limit: _Optional[int] = ..., usage: _Optional[int] = ..., used_percent: _Optional[float] = ...) -> None: ...
|
|
427
|
+
|
|
428
|
+
class Network(_message.Message):
|
|
429
|
+
__slots__ = ("tcp_connection_count", "upload_tcp_connection_count", "location", "idc", "max_rx_bandwidth", "rx_bandwidth", "max_tx_bandwidth", "tx_bandwidth")
|
|
430
|
+
TCP_CONNECTION_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
431
|
+
UPLOAD_TCP_CONNECTION_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
432
|
+
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
|
433
|
+
IDC_FIELD_NUMBER: _ClassVar[int]
|
|
434
|
+
MAX_RX_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
435
|
+
RX_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
436
|
+
MAX_TX_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
437
|
+
TX_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
438
|
+
tcp_connection_count: int
|
|
439
|
+
upload_tcp_connection_count: int
|
|
440
|
+
location: str
|
|
441
|
+
idc: str
|
|
442
|
+
max_rx_bandwidth: int
|
|
443
|
+
rx_bandwidth: int
|
|
444
|
+
max_tx_bandwidth: int
|
|
445
|
+
tx_bandwidth: int
|
|
446
|
+
def __init__(self, tcp_connection_count: _Optional[int] = ..., upload_tcp_connection_count: _Optional[int] = ..., location: _Optional[str] = ..., idc: _Optional[str] = ..., max_rx_bandwidth: _Optional[int] = ..., rx_bandwidth: _Optional[int] = ..., max_tx_bandwidth: _Optional[int] = ..., tx_bandwidth: _Optional[int] = ...) -> None: ...
|
|
447
|
+
|
|
448
|
+
class Disk(_message.Message):
|
|
449
|
+
__slots__ = ("total", "free", "used", "used_percent", "inodes_total", "inodes_used", "inodes_free", "inodes_used_percent", "read_bandwidth", "write_bandwidth", "cgroup")
|
|
450
|
+
TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
451
|
+
FREE_FIELD_NUMBER: _ClassVar[int]
|
|
452
|
+
USED_FIELD_NUMBER: _ClassVar[int]
|
|
453
|
+
USED_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
454
|
+
INODES_TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
455
|
+
INODES_USED_FIELD_NUMBER: _ClassVar[int]
|
|
456
|
+
INODES_FREE_FIELD_NUMBER: _ClassVar[int]
|
|
457
|
+
INODES_USED_PERCENT_FIELD_NUMBER: _ClassVar[int]
|
|
458
|
+
READ_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
459
|
+
WRITE_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
460
|
+
CGROUP_FIELD_NUMBER: _ClassVar[int]
|
|
461
|
+
total: int
|
|
462
|
+
free: int
|
|
463
|
+
used: int
|
|
464
|
+
used_percent: float
|
|
465
|
+
inodes_total: int
|
|
466
|
+
inodes_used: int
|
|
467
|
+
inodes_free: int
|
|
468
|
+
inodes_used_percent: float
|
|
469
|
+
read_bandwidth: int
|
|
470
|
+
write_bandwidth: int
|
|
471
|
+
cgroup: CgroupDisk
|
|
472
|
+
def __init__(self, total: _Optional[int] = ..., free: _Optional[int] = ..., used: _Optional[int] = ..., used_percent: _Optional[float] = ..., inodes_total: _Optional[int] = ..., inodes_used: _Optional[int] = ..., inodes_free: _Optional[int] = ..., inodes_used_percent: _Optional[float] = ..., read_bandwidth: _Optional[int] = ..., write_bandwidth: _Optional[int] = ..., cgroup: _Optional[_Union[CgroupDisk, _Mapping]] = ...) -> None: ...
|
|
473
|
+
|
|
474
|
+
class CgroupDisk(_message.Message):
|
|
475
|
+
__slots__ = ("read_bandwidth", "write_bandwidth")
|
|
476
|
+
READ_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
477
|
+
WRITE_BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
478
|
+
read_bandwidth: int
|
|
479
|
+
write_bandwidth: int
|
|
480
|
+
def __init__(self, read_bandwidth: _Optional[int] = ..., write_bandwidth: _Optional[int] = ...) -> None: ...
|
|
481
|
+
|
|
482
|
+
class Build(_message.Message):
|
|
483
|
+
__slots__ = ("git_version", "git_commit", "go_version", "rust_version", "platform")
|
|
484
|
+
GIT_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
485
|
+
GIT_COMMIT_FIELD_NUMBER: _ClassVar[int]
|
|
486
|
+
GO_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
487
|
+
RUST_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
488
|
+
PLATFORM_FIELD_NUMBER: _ClassVar[int]
|
|
489
|
+
git_version: str
|
|
490
|
+
git_commit: str
|
|
491
|
+
go_version: str
|
|
492
|
+
rust_version: str
|
|
493
|
+
platform: str
|
|
494
|
+
def __init__(self, git_version: _Optional[str] = ..., git_commit: _Optional[str] = ..., go_version: _Optional[str] = ..., rust_version: _Optional[str] = ..., platform: _Optional[str] = ...) -> None: ...
|
|
495
|
+
|
|
496
|
+
class Download(_message.Message):
|
|
497
|
+
__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", "force_hard_link", "content_for_calculating_task_id", "remote_ip", "concurrent_piece_count", "overwrite", "actual_piece_length", "actual_content_length", "actual_piece_count", "enable_task_id_based_blob_digest", "hugging_face", "model_scope", "metadata_only")
|
|
498
|
+
class RequestHeaderEntry(_message.Message):
|
|
499
|
+
__slots__ = ("key", "value")
|
|
500
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
501
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
502
|
+
key: str
|
|
503
|
+
value: str
|
|
504
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
505
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
506
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
507
|
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
508
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
509
|
+
TAG_FIELD_NUMBER: _ClassVar[int]
|
|
510
|
+
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
|
511
|
+
PRIORITY_FIELD_NUMBER: _ClassVar[int]
|
|
512
|
+
FILTERED_QUERY_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
513
|
+
REQUEST_HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
514
|
+
PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
515
|
+
OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
516
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
517
|
+
DISABLE_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
518
|
+
NEED_BACK_TO_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
519
|
+
CERTIFICATE_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
|
520
|
+
PREFETCH_FIELD_NUMBER: _ClassVar[int]
|
|
521
|
+
OBJECT_STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
522
|
+
HDFS_FIELD_NUMBER: _ClassVar[int]
|
|
523
|
+
IS_PREFETCH_FIELD_NUMBER: _ClassVar[int]
|
|
524
|
+
NEED_PIECE_CONTENT_FIELD_NUMBER: _ClassVar[int]
|
|
525
|
+
FORCE_HARD_LINK_FIELD_NUMBER: _ClassVar[int]
|
|
526
|
+
CONTENT_FOR_CALCULATING_TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
527
|
+
REMOTE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
528
|
+
CONCURRENT_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
529
|
+
OVERWRITE_FIELD_NUMBER: _ClassVar[int]
|
|
530
|
+
ACTUAL_PIECE_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
531
|
+
ACTUAL_CONTENT_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
532
|
+
ACTUAL_PIECE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
533
|
+
ENABLE_TASK_ID_BASED_BLOB_DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
534
|
+
HUGGING_FACE_FIELD_NUMBER: _ClassVar[int]
|
|
535
|
+
MODEL_SCOPE_FIELD_NUMBER: _ClassVar[int]
|
|
536
|
+
METADATA_ONLY_FIELD_NUMBER: _ClassVar[int]
|
|
537
|
+
url: str
|
|
538
|
+
digest: str
|
|
539
|
+
range: Range
|
|
540
|
+
type: TaskType
|
|
541
|
+
tag: str
|
|
542
|
+
application: str
|
|
543
|
+
priority: Priority
|
|
544
|
+
filtered_query_params: _containers.RepeatedScalarFieldContainer[str]
|
|
545
|
+
request_header: _containers.ScalarMap[str, str]
|
|
546
|
+
piece_length: int
|
|
547
|
+
output_path: str
|
|
548
|
+
timeout: _duration_pb2.Duration
|
|
549
|
+
disable_back_to_source: bool
|
|
550
|
+
need_back_to_source: bool
|
|
551
|
+
certificate_chain: _containers.RepeatedScalarFieldContainer[bytes]
|
|
552
|
+
prefetch: bool
|
|
553
|
+
object_storage: ObjectStorage
|
|
554
|
+
hdfs: HDFS
|
|
555
|
+
is_prefetch: bool
|
|
556
|
+
need_piece_content: bool
|
|
557
|
+
force_hard_link: bool
|
|
558
|
+
content_for_calculating_task_id: str
|
|
559
|
+
remote_ip: str
|
|
560
|
+
concurrent_piece_count: int
|
|
561
|
+
overwrite: bool
|
|
562
|
+
actual_piece_length: int
|
|
563
|
+
actual_content_length: int
|
|
564
|
+
actual_piece_count: int
|
|
565
|
+
enable_task_id_based_blob_digest: bool
|
|
566
|
+
hugging_face: HuggingFace
|
|
567
|
+
model_scope: ModelScope
|
|
568
|
+
metadata_only: bool
|
|
569
|
+
def __init__(self, url: _Optional[str] = ..., digest: _Optional[str] = ..., range: _Optional[_Union[Range, _Mapping]] = ..., type: _Optional[_Union[TaskType, str]] = ..., tag: _Optional[str] = ..., application: _Optional[str] = ..., priority: _Optional[_Union[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[ObjectStorage, _Mapping]] = ..., hdfs: _Optional[_Union[HDFS, _Mapping]] = ..., is_prefetch: bool = ..., need_piece_content: bool = ..., force_hard_link: bool = ..., content_for_calculating_task_id: _Optional[str] = ..., remote_ip: _Optional[str] = ..., concurrent_piece_count: _Optional[int] = ..., overwrite: bool = ..., actual_piece_length: _Optional[int] = ..., actual_content_length: _Optional[int] = ..., actual_piece_count: _Optional[int] = ..., enable_task_id_based_blob_digest: bool = ..., hugging_face: _Optional[_Union[HuggingFace, _Mapping]] = ..., model_scope: _Optional[_Union[ModelScope, _Mapping]] = ..., metadata_only: bool = ...) -> None: ...
|
|
570
|
+
|
|
571
|
+
class ObjectStorage(_message.Message):
|
|
572
|
+
__slots__ = ("region", "endpoint", "access_key_id", "access_key_secret", "session_token", "credential_path", "predefined_acl", "security_token", "insecure_skip_verify")
|
|
573
|
+
REGION_FIELD_NUMBER: _ClassVar[int]
|
|
574
|
+
ENDPOINT_FIELD_NUMBER: _ClassVar[int]
|
|
575
|
+
ACCESS_KEY_ID_FIELD_NUMBER: _ClassVar[int]
|
|
576
|
+
ACCESS_KEY_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
577
|
+
SESSION_TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
578
|
+
CREDENTIAL_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
579
|
+
PREDEFINED_ACL_FIELD_NUMBER: _ClassVar[int]
|
|
580
|
+
SECURITY_TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
581
|
+
INSECURE_SKIP_VERIFY_FIELD_NUMBER: _ClassVar[int]
|
|
582
|
+
region: str
|
|
583
|
+
endpoint: str
|
|
584
|
+
access_key_id: str
|
|
585
|
+
access_key_secret: str
|
|
586
|
+
session_token: str
|
|
587
|
+
credential_path: str
|
|
588
|
+
predefined_acl: str
|
|
589
|
+
security_token: str
|
|
590
|
+
insecure_skip_verify: bool
|
|
591
|
+
def __init__(self, region: _Optional[str] = ..., endpoint: _Optional[str] = ..., access_key_id: _Optional[str] = ..., access_key_secret: _Optional[str] = ..., session_token: _Optional[str] = ..., credential_path: _Optional[str] = ..., predefined_acl: _Optional[str] = ..., security_token: _Optional[str] = ..., insecure_skip_verify: bool = ...) -> None: ...
|
|
592
|
+
|
|
593
|
+
class HDFS(_message.Message):
|
|
594
|
+
__slots__ = ("delegation_token",)
|
|
595
|
+
DELEGATION_TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
596
|
+
delegation_token: str
|
|
597
|
+
def __init__(self, delegation_token: _Optional[str] = ...) -> None: ...
|
|
598
|
+
|
|
599
|
+
class HuggingFace(_message.Message):
|
|
600
|
+
__slots__ = ("token", "revision", "base_url")
|
|
601
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
602
|
+
REVISION_FIELD_NUMBER: _ClassVar[int]
|
|
603
|
+
BASE_URL_FIELD_NUMBER: _ClassVar[int]
|
|
604
|
+
token: str
|
|
605
|
+
revision: str
|
|
606
|
+
base_url: str
|
|
607
|
+
def __init__(self, token: _Optional[str] = ..., revision: _Optional[str] = ..., base_url: _Optional[str] = ...) -> None: ...
|
|
608
|
+
|
|
609
|
+
class ModelScope(_message.Message):
|
|
610
|
+
__slots__ = ("token", "revision", "base_url")
|
|
611
|
+
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
612
|
+
REVISION_FIELD_NUMBER: _ClassVar[int]
|
|
613
|
+
BASE_URL_FIELD_NUMBER: _ClassVar[int]
|
|
614
|
+
token: str
|
|
615
|
+
revision: str
|
|
616
|
+
base_url: str
|
|
617
|
+
def __init__(self, token: _Optional[str] = ..., revision: _Optional[str] = ..., base_url: _Optional[str] = ...) -> None: ...
|
|
618
|
+
|
|
619
|
+
class Range(_message.Message):
|
|
620
|
+
__slots__ = ("start", "length")
|
|
621
|
+
START_FIELD_NUMBER: _ClassVar[int]
|
|
622
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
623
|
+
start: int
|
|
624
|
+
length: int
|
|
625
|
+
def __init__(self, start: _Optional[int] = ..., length: _Optional[int] = ...) -> None: ...
|
|
626
|
+
|
|
627
|
+
class Piece(_message.Message):
|
|
628
|
+
__slots__ = ("number", "parent_id", "offset", "length", "digest", "content", "traffic_type", "cost", "created_at")
|
|
629
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
630
|
+
PARENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
631
|
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
632
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
633
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
634
|
+
CONTENT_FIELD_NUMBER: _ClassVar[int]
|
|
635
|
+
TRAFFIC_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
636
|
+
COST_FIELD_NUMBER: _ClassVar[int]
|
|
637
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
638
|
+
number: int
|
|
639
|
+
parent_id: str
|
|
640
|
+
offset: int
|
|
641
|
+
length: int
|
|
642
|
+
digest: str
|
|
643
|
+
content: bytes
|
|
644
|
+
traffic_type: TrafficType
|
|
645
|
+
cost: _duration_pb2.Duration
|
|
646
|
+
created_at: _timestamp_pb2.Timestamp
|
|
647
|
+
def __init__(self, number: _Optional[int] = ..., parent_id: _Optional[str] = ..., offset: _Optional[int] = ..., length: _Optional[int] = ..., digest: _Optional[str] = ..., content: _Optional[bytes] = ..., traffic_type: _Optional[_Union[TrafficType, str]] = ..., cost: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|