chalkpy 2.93.5__py3-none-any.whl → 2.93.6__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.
- chalk/_gen/chalk/arrow/v1/arrow_pb2.py +7 -5
- chalk/_gen/chalk/arrow/v1/arrow_pb2.pyi +6 -0
- chalk/_gen/chalk/common/v1/offline_query_pb2.py +17 -15
- chalk/_gen/chalk/common/v1/offline_query_pb2.pyi +25 -0
- chalk/_gen/chalk/common/v1/script_task_pb2.py +3 -3
- chalk/_gen/chalk/common/v1/script_task_pb2.pyi +2 -0
- chalk/_gen/chalk/dataframe/__init__.py +0 -0
- chalk/_gen/chalk/dataframe/v1/__init__.py +0 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2.py +48 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2.pyi +119 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.py +4 -0
- chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/graph/v1/graph_pb2.py +150 -149
- chalk/_gen/chalk/graph/v1/graph_pb2.pyi +5 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.py +79 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.pyi +377 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.py +4 -0
- chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.py +43 -7
- chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.pyi +252 -2
- chalk/_gen/chalk/server/v1/benchmark_pb2.py +45 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2.pyi +74 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.py +78 -0
- chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.pyi +36 -0
- chalk/_gen/chalk/server/v1/builder_pb2.py +218 -210
- chalk/_gen/chalk/server/v1/builder_pb2.pyi +59 -1
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.py +70 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.pyi +219 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.py +170 -0
- chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.pyi +62 -0
- chalk/_gen/chalk/server/v1/files_pb2.py +65 -0
- chalk/_gen/chalk/server/v1/files_pb2.pyi +167 -0
- chalk/_gen/chalk/server/v1/files_pb2_grpc.py +4 -0
- chalk/_gen/chalk/server/v1/files_pb2_grpc.pyi +4 -0
- chalk/_gen/chalk/server/v1/kube_pb2.py +29 -19
- chalk/_gen/chalk/server/v1/kube_pb2.pyi +28 -0
- chalk/_gen/chalk/server/v1/kube_pb2_grpc.py +45 -0
- chalk/_gen/chalk/server/v1/kube_pb2_grpc.pyi +12 -0
- chalk/_gen/chalk/server/v1/queries_pb2.py +66 -66
- chalk/_gen/chalk/server/v1/queries_pb2.pyi +20 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2.py +75 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2.pyi +142 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.py +349 -0
- chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.pyi +114 -0
- chalk/_gen/chalk/server/v1/trace_pb2.py +44 -40
- chalk/_gen/chalk/server/v1/trace_pb2.pyi +12 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2.py +62 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2.pyi +75 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.py +221 -0
- chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.pyi +88 -0
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.py +8 -8
- chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.pyi +4 -1
- chalk/_version.py +1 -1
- chalk/df/LazyFramePlaceholder.py +1125 -0
- chalk/features/_encoding/converter.py +23 -0
- chalk/features/resolver.py +9 -2
- chalk/operators/_utils.py +10 -3
- chalk/parsed/to_proto.py +7 -1
- {chalkpy-2.93.5.dist-info → chalkpy-2.93.6.dist-info}/METADATA +1 -1
- {chalkpy-2.93.5.dist-info → chalkpy-2.93.6.dist-info}/RECORD +63 -32
- {chalkpy-2.93.5.dist-info → chalkpy-2.93.6.dist-info}/WHEEL +0 -0
- {chalkpy-2.93.5.dist-info → chalkpy-2.93.6.dist-info}/entry_points.txt +0 -0
- {chalkpy-2.93.5.dist-info → chalkpy-2.93.6.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
|
+
from google.protobuf.internal import containers as _containers
|
|
2
3
|
from google.protobuf import descriptor as _descriptor
|
|
3
4
|
from google.protobuf import message as _message
|
|
4
|
-
from typing import
|
|
5
|
+
from typing import (
|
|
6
|
+
ClassVar as _ClassVar,
|
|
7
|
+
Iterable as _Iterable,
|
|
8
|
+
Mapping as _Mapping,
|
|
9
|
+
Optional as _Optional,
|
|
10
|
+
Union as _Union,
|
|
11
|
+
)
|
|
5
12
|
|
|
6
13
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
14
|
|
|
@@ -23,25 +30,206 @@ class KubernetesScaledObjectTargetRef(_message.Message):
|
|
|
23
30
|
env_source_container_name: _Optional[str] = ...,
|
|
24
31
|
) -> None: ...
|
|
25
32
|
|
|
33
|
+
class KubernetesGroupVersionKindResource(_message.Message):
|
|
34
|
+
__slots__ = ("group", "version", "kind", "resource")
|
|
35
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
RESOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
group: str
|
|
40
|
+
version: str
|
|
41
|
+
kind: str
|
|
42
|
+
resource: str
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
group: _Optional[str] = ...,
|
|
46
|
+
version: _Optional[str] = ...,
|
|
47
|
+
kind: _Optional[str] = ...,
|
|
48
|
+
resource: _Optional[str] = ...,
|
|
49
|
+
) -> None: ...
|
|
50
|
+
|
|
51
|
+
class KubernetesScaledObjectCondition(_message.Message):
|
|
52
|
+
__slots__ = ("type", "status", "reason", "message")
|
|
53
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
type: str
|
|
58
|
+
status: str
|
|
59
|
+
reason: str
|
|
60
|
+
message: str
|
|
61
|
+
def __init__(
|
|
62
|
+
self,
|
|
63
|
+
type: _Optional[str] = ...,
|
|
64
|
+
status: _Optional[str] = ...,
|
|
65
|
+
reason: _Optional[str] = ...,
|
|
66
|
+
message: _Optional[str] = ...,
|
|
67
|
+
) -> None: ...
|
|
68
|
+
|
|
69
|
+
class KubernetesScaledObjectHealthStatus(_message.Message):
|
|
70
|
+
__slots__ = ("number_of_failures", "status")
|
|
71
|
+
NUMBER_OF_FAILURES_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
number_of_failures: int
|
|
74
|
+
status: str
|
|
75
|
+
def __init__(self, number_of_failures: _Optional[int] = ..., status: _Optional[str] = ...) -> None: ...
|
|
76
|
+
|
|
77
|
+
class KubernetesScaledObjectAuthenticationRef(_message.Message):
|
|
78
|
+
__slots__ = ("name", "kind")
|
|
79
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
81
|
+
name: str
|
|
82
|
+
kind: str
|
|
83
|
+
def __init__(self, name: _Optional[str] = ..., kind: _Optional[str] = ...) -> None: ...
|
|
84
|
+
|
|
85
|
+
class KubernetesScaledObjectTrigger(_message.Message):
|
|
86
|
+
__slots__ = ("type", "name", "use_cached_metrics", "metadata", "authentication_ref", "metric_type")
|
|
87
|
+
class MetadataEntry(_message.Message):
|
|
88
|
+
__slots__ = ("key", "value")
|
|
89
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
key: str
|
|
92
|
+
value: str
|
|
93
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
94
|
+
|
|
95
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
USE_CACHED_METRICS_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
AUTHENTICATION_REF_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
METRIC_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
type: str
|
|
102
|
+
name: str
|
|
103
|
+
use_cached_metrics: bool
|
|
104
|
+
metadata: _containers.ScalarMap[str, str]
|
|
105
|
+
authentication_ref: KubernetesScaledObjectAuthenticationRef
|
|
106
|
+
metric_type: str
|
|
107
|
+
def __init__(
|
|
108
|
+
self,
|
|
109
|
+
type: _Optional[str] = ...,
|
|
110
|
+
name: _Optional[str] = ...,
|
|
111
|
+
use_cached_metrics: bool = ...,
|
|
112
|
+
metadata: _Optional[_Mapping[str, str]] = ...,
|
|
113
|
+
authentication_ref: _Optional[_Union[KubernetesScaledObjectAuthenticationRef, _Mapping]] = ...,
|
|
114
|
+
metric_type: _Optional[str] = ...,
|
|
115
|
+
) -> None: ...
|
|
116
|
+
|
|
117
|
+
class KubernetesScaledObjectFallback(_message.Message):
|
|
118
|
+
__slots__ = ("failure_threshold", "replicas")
|
|
119
|
+
FAILURE_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
REPLICAS_FIELD_NUMBER: _ClassVar[int]
|
|
121
|
+
failure_threshold: int
|
|
122
|
+
replicas: int
|
|
123
|
+
def __init__(self, failure_threshold: _Optional[int] = ..., replicas: _Optional[int] = ...) -> None: ...
|
|
124
|
+
|
|
125
|
+
class KubernetesScaledObjectScalingModifiers(_message.Message):
|
|
126
|
+
__slots__ = ("formula", "target", "activation_target", "metric_type")
|
|
127
|
+
FORMULA_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
TARGET_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
ACTIVATION_TARGET_FIELD_NUMBER: _ClassVar[int]
|
|
130
|
+
METRIC_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
131
|
+
formula: str
|
|
132
|
+
target: str
|
|
133
|
+
activation_target: str
|
|
134
|
+
metric_type: str
|
|
135
|
+
def __init__(
|
|
136
|
+
self,
|
|
137
|
+
formula: _Optional[str] = ...,
|
|
138
|
+
target: _Optional[str] = ...,
|
|
139
|
+
activation_target: _Optional[str] = ...,
|
|
140
|
+
metric_type: _Optional[str] = ...,
|
|
141
|
+
) -> None: ...
|
|
142
|
+
|
|
143
|
+
class KubernetesScaledObjectHPAConfig(_message.Message):
|
|
144
|
+
__slots__ = ("name",)
|
|
145
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
name: str
|
|
147
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
148
|
+
|
|
149
|
+
class KubernetesScaledObjectAdvancedConfig(_message.Message):
|
|
150
|
+
__slots__ = ("horizontal_pod_autoscaler_config", "restore_to_original_replica_count", "scaling_modifiers")
|
|
151
|
+
HORIZONTAL_POD_AUTOSCALER_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
+
RESTORE_TO_ORIGINAL_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
+
SCALING_MODIFIERS_FIELD_NUMBER: _ClassVar[int]
|
|
154
|
+
horizontal_pod_autoscaler_config: KubernetesScaledObjectHPAConfig
|
|
155
|
+
restore_to_original_replica_count: bool
|
|
156
|
+
scaling_modifiers: KubernetesScaledObjectScalingModifiers
|
|
157
|
+
def __init__(
|
|
158
|
+
self,
|
|
159
|
+
horizontal_pod_autoscaler_config: _Optional[_Union[KubernetesScaledObjectHPAConfig, _Mapping]] = ...,
|
|
160
|
+
restore_to_original_replica_count: bool = ...,
|
|
161
|
+
scaling_modifiers: _Optional[_Union[KubernetesScaledObjectScalingModifiers, _Mapping]] = ...,
|
|
162
|
+
) -> None: ...
|
|
163
|
+
|
|
26
164
|
class KubernetesScaledObjectStatus(_message.Message):
|
|
27
|
-
__slots__ = (
|
|
165
|
+
__slots__ = (
|
|
166
|
+
"scale_target_kind",
|
|
167
|
+
"scale_target_gvkr",
|
|
168
|
+
"original_replica_count",
|
|
169
|
+
"last_active_time",
|
|
170
|
+
"external_metric_names",
|
|
171
|
+
"resource_metric_names",
|
|
172
|
+
"composite_scaler_name",
|
|
173
|
+
"conditions",
|
|
174
|
+
"health",
|
|
175
|
+
"paused_replica_count",
|
|
176
|
+
"hpa_name",
|
|
177
|
+
"triggers_types",
|
|
178
|
+
"authentications_types",
|
|
179
|
+
)
|
|
180
|
+
class HealthEntry(_message.Message):
|
|
181
|
+
__slots__ = ("key", "value")
|
|
182
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
183
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
key: str
|
|
185
|
+
value: KubernetesScaledObjectHealthStatus
|
|
186
|
+
def __init__(
|
|
187
|
+
self,
|
|
188
|
+
key: _Optional[str] = ...,
|
|
189
|
+
value: _Optional[_Union[KubernetesScaledObjectHealthStatus, _Mapping]] = ...,
|
|
190
|
+
) -> None: ...
|
|
191
|
+
|
|
28
192
|
SCALE_TARGET_KIND_FIELD_NUMBER: _ClassVar[int]
|
|
193
|
+
SCALE_TARGET_GVKR_FIELD_NUMBER: _ClassVar[int]
|
|
29
194
|
ORIGINAL_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
30
195
|
LAST_ACTIVE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
196
|
+
EXTERNAL_METRIC_NAMES_FIELD_NUMBER: _ClassVar[int]
|
|
197
|
+
RESOURCE_METRIC_NAMES_FIELD_NUMBER: _ClassVar[int]
|
|
198
|
+
COMPOSITE_SCALER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
199
|
+
CONDITIONS_FIELD_NUMBER: _ClassVar[int]
|
|
200
|
+
HEALTH_FIELD_NUMBER: _ClassVar[int]
|
|
31
201
|
PAUSED_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
32
202
|
HPA_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
203
|
+
TRIGGERS_TYPES_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
AUTHENTICATIONS_TYPES_FIELD_NUMBER: _ClassVar[int]
|
|
33
205
|
scale_target_kind: str
|
|
206
|
+
scale_target_gvkr: KubernetesGroupVersionKindResource
|
|
34
207
|
original_replica_count: int
|
|
35
208
|
last_active_time: _timestamp_pb2.Timestamp
|
|
209
|
+
external_metric_names: _containers.RepeatedScalarFieldContainer[str]
|
|
210
|
+
resource_metric_names: _containers.RepeatedScalarFieldContainer[str]
|
|
211
|
+
composite_scaler_name: str
|
|
212
|
+
conditions: _containers.RepeatedCompositeFieldContainer[KubernetesScaledObjectCondition]
|
|
213
|
+
health: _containers.MessageMap[str, KubernetesScaledObjectHealthStatus]
|
|
36
214
|
paused_replica_count: int
|
|
37
215
|
hpa_name: str
|
|
216
|
+
triggers_types: str
|
|
217
|
+
authentications_types: str
|
|
38
218
|
def __init__(
|
|
39
219
|
self,
|
|
40
220
|
scale_target_kind: _Optional[str] = ...,
|
|
221
|
+
scale_target_gvkr: _Optional[_Union[KubernetesGroupVersionKindResource, _Mapping]] = ...,
|
|
41
222
|
original_replica_count: _Optional[int] = ...,
|
|
42
223
|
last_active_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...,
|
|
224
|
+
external_metric_names: _Optional[_Iterable[str]] = ...,
|
|
225
|
+
resource_metric_names: _Optional[_Iterable[str]] = ...,
|
|
226
|
+
composite_scaler_name: _Optional[str] = ...,
|
|
227
|
+
conditions: _Optional[_Iterable[_Union[KubernetesScaledObjectCondition, _Mapping]]] = ...,
|
|
228
|
+
health: _Optional[_Mapping[str, KubernetesScaledObjectHealthStatus]] = ...,
|
|
43
229
|
paused_replica_count: _Optional[int] = ...,
|
|
44
230
|
hpa_name: _Optional[str] = ...,
|
|
231
|
+
triggers_types: _Optional[str] = ...,
|
|
232
|
+
authentications_types: _Optional[str] = ...,
|
|
45
233
|
) -> None: ...
|
|
46
234
|
|
|
47
235
|
class KubernetesScaledObjectSpec(_message.Message):
|
|
@@ -52,6 +240,10 @@ class KubernetesScaledObjectSpec(_message.Message):
|
|
|
52
240
|
"cooldown_period",
|
|
53
241
|
"idle_replica_count",
|
|
54
242
|
"max_replica_count",
|
|
243
|
+
"advanced",
|
|
244
|
+
"triggers",
|
|
245
|
+
"fallback",
|
|
246
|
+
"min_replica_count",
|
|
55
247
|
)
|
|
56
248
|
SCALE_TARGET_REF_FIELD_NUMBER: _ClassVar[int]
|
|
57
249
|
POLLING_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -59,12 +251,20 @@ class KubernetesScaledObjectSpec(_message.Message):
|
|
|
59
251
|
COOLDOWN_PERIOD_FIELD_NUMBER: _ClassVar[int]
|
|
60
252
|
IDLE_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
61
253
|
MAX_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
254
|
+
ADVANCED_FIELD_NUMBER: _ClassVar[int]
|
|
255
|
+
TRIGGERS_FIELD_NUMBER: _ClassVar[int]
|
|
256
|
+
FALLBACK_FIELD_NUMBER: _ClassVar[int]
|
|
257
|
+
MIN_REPLICA_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
62
258
|
scale_target_ref: KubernetesScaledObjectTargetRef
|
|
63
259
|
polling_interval: int
|
|
64
260
|
initial_cooldown_period: int
|
|
65
261
|
cooldown_period: int
|
|
66
262
|
idle_replica_count: int
|
|
67
263
|
max_replica_count: int
|
|
264
|
+
advanced: KubernetesScaledObjectAdvancedConfig
|
|
265
|
+
triggers: _containers.RepeatedCompositeFieldContainer[KubernetesScaledObjectTrigger]
|
|
266
|
+
fallback: KubernetesScaledObjectFallback
|
|
267
|
+
min_replica_count: int
|
|
68
268
|
def __init__(
|
|
69
269
|
self,
|
|
70
270
|
scale_target_ref: _Optional[_Union[KubernetesScaledObjectTargetRef, _Mapping]] = ...,
|
|
@@ -73,6 +273,10 @@ class KubernetesScaledObjectSpec(_message.Message):
|
|
|
73
273
|
cooldown_period: _Optional[int] = ...,
|
|
74
274
|
idle_replica_count: _Optional[int] = ...,
|
|
75
275
|
max_replica_count: _Optional[int] = ...,
|
|
276
|
+
advanced: _Optional[_Union[KubernetesScaledObjectAdvancedConfig, _Mapping]] = ...,
|
|
277
|
+
triggers: _Optional[_Iterable[_Union[KubernetesScaledObjectTrigger, _Mapping]]] = ...,
|
|
278
|
+
fallback: _Optional[_Union[KubernetesScaledObjectFallback, _Mapping]] = ...,
|
|
279
|
+
min_replica_count: _Optional[int] = ...,
|
|
76
280
|
) -> None: ...
|
|
77
281
|
|
|
78
282
|
class KubernetesScaledObjectData(_message.Message):
|
|
@@ -86,3 +290,49 @@ class KubernetesScaledObjectData(_message.Message):
|
|
|
86
290
|
spec: _Optional[_Union[KubernetesScaledObjectSpec, _Mapping]] = ...,
|
|
87
291
|
status: _Optional[_Union[KubernetesScaledObjectStatus, _Mapping]] = ...,
|
|
88
292
|
) -> None: ...
|
|
293
|
+
|
|
294
|
+
class KubernetesScaledObject(_message.Message):
|
|
295
|
+
__slots__ = ("name", "namespace", "labels", "annotations", "creation_timestamp", "spec", "status", "cluster_name")
|
|
296
|
+
class LabelsEntry(_message.Message):
|
|
297
|
+
__slots__ = ("key", "value")
|
|
298
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
299
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
300
|
+
key: str
|
|
301
|
+
value: str
|
|
302
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
303
|
+
|
|
304
|
+
class AnnotationsEntry(_message.Message):
|
|
305
|
+
__slots__ = ("key", "value")
|
|
306
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
307
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
308
|
+
key: str
|
|
309
|
+
value: str
|
|
310
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
311
|
+
|
|
312
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
313
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
314
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
315
|
+
ANNOTATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
316
|
+
CREATION_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
317
|
+
SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
318
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
319
|
+
CLUSTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
320
|
+
name: str
|
|
321
|
+
namespace: str
|
|
322
|
+
labels: _containers.ScalarMap[str, str]
|
|
323
|
+
annotations: _containers.ScalarMap[str, str]
|
|
324
|
+
creation_timestamp: int
|
|
325
|
+
spec: KubernetesScaledObjectSpec
|
|
326
|
+
status: KubernetesScaledObjectStatus
|
|
327
|
+
cluster_name: str
|
|
328
|
+
def __init__(
|
|
329
|
+
self,
|
|
330
|
+
name: _Optional[str] = ...,
|
|
331
|
+
namespace: _Optional[str] = ...,
|
|
332
|
+
labels: _Optional[_Mapping[str, str]] = ...,
|
|
333
|
+
annotations: _Optional[_Mapping[str, str]] = ...,
|
|
334
|
+
creation_timestamp: _Optional[int] = ...,
|
|
335
|
+
spec: _Optional[_Union[KubernetesScaledObjectSpec, _Mapping]] = ...,
|
|
336
|
+
status: _Optional[_Union[KubernetesScaledObjectStatus, _Mapping]] = ...,
|
|
337
|
+
cluster_name: _Optional[str] = ...,
|
|
338
|
+
) -> None: ...
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: chalk/server/v1/benchmark.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.3
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
10
|
+
from google.protobuf.internal import builder as _builder
|
|
11
|
+
# @@protoc_insertion_point(imports)
|
|
12
|
+
|
|
13
|
+
_sym_db = _symbol_database.Default()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from chalk._gen.chalk.auth.v1 import permissions_pb2 as chalk_dot_auth_dot_v1_dot_permissions__pb2
|
|
17
|
+
from chalk._gen.chalk.common.v1 import online_query_pb2 as chalk_dot_common_dot_v1_dot_online__query__pb2
|
|
18
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
22
|
+
b'\n\x1f\x63halk/server/v1/benchmark.proto\x12\x0f\x63halk.server.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a"chalk/common/v1/online_query.proto\x1a\x1egoogle/protobuf/duration.proto"n\n\x1cSimpleOnlineQueryBulkRequest\x12%\n\x0einput_features\x18\x01 \x03(\tR\rinputFeatures\x12\'\n\x0foutput_features\x18\x02 \x03(\tR\x0eoutputFeatures"\xfc\x02\n\x16\x43reateBenchmarkRequest\x12\x1d\n\nwarmup_qps\x18\x01 \x01(\x03R\twarmupQps\x12\x42\n\x0fwarmup_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0ewarmupDuration\x12\x10\n\x03qps\x18\x03 \x01(\x03R\x03qps\x12\x35\n\x08\x64uration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12H\n\nquery_bulk\x18\x05 \x01(\x0b\x32\'.chalk.common.v1.OnlineQueryBulkRequestH\x00R\tqueryBulk\x12[\n\x11simple_query_bulk\x18\x06 \x01(\x0b\x32-.chalk.server.v1.SimpleOnlineQueryBulkRequestH\x00R\x0fsimpleQueryBulkB\x0f\n\rquery_request"S\n\x17\x43reateBenchmarkResponse\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32 .chalk.server.v1.BenchmarkStatusR\x06status*\xe8\x01\n\x0f\x42\x65nchmarkStatus\x12 \n\x1c\x42\x45NCHMARK_STATUS_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x42\x45NCHMARK_STATUS_QUEUED\x10\x01\x12\x1c\n\x18\x42\x45NCHMARK_STATUS_WORKING\x10\x02\x12\x1e\n\x1a\x42\x45NCHMARK_STATUS_COMPLETED\x10\x03\x12\x1b\n\x17\x42\x45NCHMARK_STATUS_FAILED\x10\x04\x12\x1c\n\x18\x42\x45NCHMARK_STATUS_SKIPPED\x10\x05\x12\x1d\n\x19\x42\x45NCHMARK_STATUS_CANCELED\x10\x06\x32}\n\x10\x42\x65nchmarkService\x12i\n\x0f\x43reateBenchmark\x12\'.chalk.server.v1.CreateBenchmarkRequest\x1a(.chalk.server.v1.CreateBenchmarkResponse"\x03\x80}\x03\x42\x97\x01\n\x13\x63om.chalk.server.v1B\x0e\x42\x65nchmarkProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
_globals = globals()
|
|
26
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "chalk.server.v1.benchmark_pb2", _globals)
|
|
28
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
29
|
+
_globals["DESCRIPTOR"]._options = None
|
|
30
|
+
_globals[
|
|
31
|
+
"DESCRIPTOR"
|
|
32
|
+
]._serialized_options = b"\n\023com.chalk.server.v1B\016BenchmarkProtoP\001Z\022server/v1;serverv1\242\002\003CSX\252\002\017Chalk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Server\\V1\\GPBMetadata\352\002\021Chalk::Server::V1"
|
|
33
|
+
_globals["_BENCHMARKSERVICE"].methods_by_name["CreateBenchmark"]._options = None
|
|
34
|
+
_globals["_BENCHMARKSERVICE"].methods_by_name["CreateBenchmark"]._serialized_options = b"\200}\003"
|
|
35
|
+
_globals["_BENCHMARKSTATUS"]._serialized_start = 734
|
|
36
|
+
_globals["_BENCHMARKSTATUS"]._serialized_end = 966
|
|
37
|
+
_globals["_SIMPLEONLINEQUERYBULKREQUEST"]._serialized_start = 153
|
|
38
|
+
_globals["_SIMPLEONLINEQUERYBULKREQUEST"]._serialized_end = 263
|
|
39
|
+
_globals["_CREATEBENCHMARKREQUEST"]._serialized_start = 266
|
|
40
|
+
_globals["_CREATEBENCHMARKREQUEST"]._serialized_end = 646
|
|
41
|
+
_globals["_CREATEBENCHMARKRESPONSE"]._serialized_start = 648
|
|
42
|
+
_globals["_CREATEBENCHMARKRESPONSE"]._serialized_end = 731
|
|
43
|
+
_globals["_BENCHMARKSERVICE"]._serialized_start = 968
|
|
44
|
+
_globals["_BENCHMARKSERVICE"]._serialized_end = 1093
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from chalk._gen.chalk.auth.v1 import permissions_pb2 as _permissions_pb2
|
|
2
|
+
from chalk._gen.chalk.common.v1 import online_query_pb2 as _online_query_pb2
|
|
3
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import (
|
|
9
|
+
ClassVar as _ClassVar,
|
|
10
|
+
Iterable as _Iterable,
|
|
11
|
+
Mapping as _Mapping,
|
|
12
|
+
Optional as _Optional,
|
|
13
|
+
Union as _Union,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
17
|
+
|
|
18
|
+
class BenchmarkStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
19
|
+
__slots__ = ()
|
|
20
|
+
BENCHMARK_STATUS_UNSPECIFIED: _ClassVar[BenchmarkStatus]
|
|
21
|
+
BENCHMARK_STATUS_QUEUED: _ClassVar[BenchmarkStatus]
|
|
22
|
+
BENCHMARK_STATUS_WORKING: _ClassVar[BenchmarkStatus]
|
|
23
|
+
BENCHMARK_STATUS_COMPLETED: _ClassVar[BenchmarkStatus]
|
|
24
|
+
BENCHMARK_STATUS_FAILED: _ClassVar[BenchmarkStatus]
|
|
25
|
+
BENCHMARK_STATUS_SKIPPED: _ClassVar[BenchmarkStatus]
|
|
26
|
+
BENCHMARK_STATUS_CANCELED: _ClassVar[BenchmarkStatus]
|
|
27
|
+
|
|
28
|
+
BENCHMARK_STATUS_UNSPECIFIED: BenchmarkStatus
|
|
29
|
+
BENCHMARK_STATUS_QUEUED: BenchmarkStatus
|
|
30
|
+
BENCHMARK_STATUS_WORKING: BenchmarkStatus
|
|
31
|
+
BENCHMARK_STATUS_COMPLETED: BenchmarkStatus
|
|
32
|
+
BENCHMARK_STATUS_FAILED: BenchmarkStatus
|
|
33
|
+
BENCHMARK_STATUS_SKIPPED: BenchmarkStatus
|
|
34
|
+
BENCHMARK_STATUS_CANCELED: BenchmarkStatus
|
|
35
|
+
|
|
36
|
+
class SimpleOnlineQueryBulkRequest(_message.Message):
|
|
37
|
+
__slots__ = ("input_features", "output_features")
|
|
38
|
+
INPUT_FEATURES_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
OUTPUT_FEATURES_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
input_features: _containers.RepeatedScalarFieldContainer[str]
|
|
41
|
+
output_features: _containers.RepeatedScalarFieldContainer[str]
|
|
42
|
+
def __init__(
|
|
43
|
+
self, input_features: _Optional[_Iterable[str]] = ..., output_features: _Optional[_Iterable[str]] = ...
|
|
44
|
+
) -> None: ...
|
|
45
|
+
|
|
46
|
+
class CreateBenchmarkRequest(_message.Message):
|
|
47
|
+
__slots__ = ("warmup_qps", "warmup_duration", "qps", "duration", "query_bulk", "simple_query_bulk")
|
|
48
|
+
WARMUP_QPS_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
WARMUP_DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
QPS_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
QUERY_BULK_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
SIMPLE_QUERY_BULK_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
warmup_qps: int
|
|
55
|
+
warmup_duration: _duration_pb2.Duration
|
|
56
|
+
qps: int
|
|
57
|
+
duration: _duration_pb2.Duration
|
|
58
|
+
query_bulk: _online_query_pb2.OnlineQueryBulkRequest
|
|
59
|
+
simple_query_bulk: SimpleOnlineQueryBulkRequest
|
|
60
|
+
def __init__(
|
|
61
|
+
self,
|
|
62
|
+
warmup_qps: _Optional[int] = ...,
|
|
63
|
+
warmup_duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,
|
|
64
|
+
qps: _Optional[int] = ...,
|
|
65
|
+
duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,
|
|
66
|
+
query_bulk: _Optional[_Union[_online_query_pb2.OnlineQueryBulkRequest, _Mapping]] = ...,
|
|
67
|
+
simple_query_bulk: _Optional[_Union[SimpleOnlineQueryBulkRequest, _Mapping]] = ...,
|
|
68
|
+
) -> None: ...
|
|
69
|
+
|
|
70
|
+
class CreateBenchmarkResponse(_message.Message):
|
|
71
|
+
__slots__ = ("status",)
|
|
72
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
status: BenchmarkStatus
|
|
74
|
+
def __init__(self, status: _Optional[_Union[BenchmarkStatus, str]] = ...) -> None: ...
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
|
|
4
|
+
import grpc
|
|
5
|
+
|
|
6
|
+
from chalk._gen.chalk.server.v1 import benchmark_pb2 as chalk_dot_server_dot_v1_dot_benchmark__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BenchmarkServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.CreateBenchmark = channel.unary_unary(
|
|
19
|
+
"/chalk.server.v1.BenchmarkService/CreateBenchmark",
|
|
20
|
+
request_serializer=chalk_dot_server_dot_v1_dot_benchmark__pb2.CreateBenchmarkRequest.SerializeToString,
|
|
21
|
+
response_deserializer=chalk_dot_server_dot_v1_dot_benchmark__pb2.CreateBenchmarkResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class BenchmarkServiceServicer(object):
|
|
26
|
+
"""Missing associated documentation comment in .proto file."""
|
|
27
|
+
|
|
28
|
+
def CreateBenchmark(self, request, context):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
|
+
context.set_details("Method not implemented!")
|
|
32
|
+
raise NotImplementedError("Method not implemented!")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_BenchmarkServiceServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
"CreateBenchmark": grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.CreateBenchmark,
|
|
39
|
+
request_deserializer=chalk_dot_server_dot_v1_dot_benchmark__pb2.CreateBenchmarkRequest.FromString,
|
|
40
|
+
response_serializer=chalk_dot_server_dot_v1_dot_benchmark__pb2.CreateBenchmarkResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler("chalk.server.v1.BenchmarkService", rpc_method_handlers)
|
|
44
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# This class is part of an EXPERIMENTAL API.
|
|
48
|
+
class BenchmarkService(object):
|
|
49
|
+
"""Missing associated documentation comment in .proto file."""
|
|
50
|
+
|
|
51
|
+
@staticmethod
|
|
52
|
+
def CreateBenchmark(
|
|
53
|
+
request,
|
|
54
|
+
target,
|
|
55
|
+
options=(),
|
|
56
|
+
channel_credentials=None,
|
|
57
|
+
call_credentials=None,
|
|
58
|
+
insecure=False,
|
|
59
|
+
compression=None,
|
|
60
|
+
wait_for_ready=None,
|
|
61
|
+
timeout=None,
|
|
62
|
+
metadata=None,
|
|
63
|
+
):
|
|
64
|
+
return grpc.experimental.unary_unary(
|
|
65
|
+
request,
|
|
66
|
+
target,
|
|
67
|
+
"/chalk.server.v1.BenchmarkService/CreateBenchmark",
|
|
68
|
+
chalk_dot_server_dot_v1_dot_benchmark__pb2.CreateBenchmarkRequest.SerializeToString,
|
|
69
|
+
chalk_dot_server_dot_v1_dot_benchmark__pb2.CreateBenchmarkResponse.FromString,
|
|
70
|
+
options,
|
|
71
|
+
channel_credentials,
|
|
72
|
+
insecure,
|
|
73
|
+
call_credentials,
|
|
74
|
+
compression,
|
|
75
|
+
wait_for_ready,
|
|
76
|
+
timeout,
|
|
77
|
+
metadata,
|
|
78
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from abc import (
|
|
7
|
+
ABCMeta,
|
|
8
|
+
abstractmethod,
|
|
9
|
+
)
|
|
10
|
+
from chalk._gen.chalk.server.v1.benchmark_pb2 import (
|
|
11
|
+
CreateBenchmarkRequest,
|
|
12
|
+
CreateBenchmarkResponse,
|
|
13
|
+
)
|
|
14
|
+
from grpc import (
|
|
15
|
+
Channel,
|
|
16
|
+
Server,
|
|
17
|
+
ServicerContext,
|
|
18
|
+
UnaryUnaryMultiCallable,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
class BenchmarkServiceStub:
|
|
22
|
+
def __init__(self, channel: Channel) -> None: ...
|
|
23
|
+
CreateBenchmark: UnaryUnaryMultiCallable[
|
|
24
|
+
CreateBenchmarkRequest,
|
|
25
|
+
CreateBenchmarkResponse,
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
class BenchmarkServiceServicer(metaclass=ABCMeta):
|
|
29
|
+
@abstractmethod
|
|
30
|
+
def CreateBenchmark(
|
|
31
|
+
self,
|
|
32
|
+
request: CreateBenchmarkRequest,
|
|
33
|
+
context: ServicerContext,
|
|
34
|
+
) -> CreateBenchmarkResponse: ...
|
|
35
|
+
|
|
36
|
+
def add_BenchmarkServiceServicer_to_server(servicer: BenchmarkServiceServicer, server: Server) -> None: ...
|