frogml 1.2.40__py3-none-any.whl → 1.2.42__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.
- frogml/__init__.py +1 -1
- frogml/_proto/com/jfrog/ml/model/deployment/v1/auto_scaling_pb2.py +43 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/auto_scaling_pb2.pyi +218 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/auto_scaling_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/deployment_pb2.py +53 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/deployment_pb2.pyi +258 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/deployment_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/deployment_service_pb2.py +58 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/deployment_service_pb2.pyi +224 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/deployment_service_pb2_grpc.py +206 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/environment_variables_configuration_pb2.py +33 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/environment_variables_configuration_pb2.pyi +99 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/environment_variables_configuration_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_artifact_identifier_pb2.py +31 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_artifact_identifier_pb2.pyi +99 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_artifact_identifier_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_deployment_brief_pb2.py +30 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_deployment_brief_pb2.pyi +55 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_deployment_brief_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_deployment_filter_pb2.py +42 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_deployment_filter_pb2.pyi +204 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/model_deployment_filter_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/probes_configuration_pb2.py +29 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/probes_configuration_pb2.pyi +60 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/probes_configuration_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/realtime_deployment_pb2.py +28 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/realtime_deployment_pb2.pyi +47 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/realtime_deployment_pb2_grpc.py +4 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/resource_configuration_pb2.py +27 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/resource_configuration_pb2.pyi +29 -0
- frogml/_proto/com/jfrog/ml/model/deployment/v1/resource_configuration_pb2_grpc.py +4 -0
- frogml/core/clients/model_deployment_manager/__init__.py +1 -0
- frogml/core/clients/model_deployment_manager/client.py +103 -0
- {frogml-1.2.40.dist-info → frogml-1.2.42.dist-info}/METADATA +1 -1
- {frogml-1.2.40.dist-info → frogml-1.2.42.dist-info}/RECORD +39 -6
- frogml_services_mock/mocks/frogml_mocks.py +11 -3
- frogml_services_mock/mocks/model_deployment_manager_service_mock.py +255 -0
- frogml_services_mock/services_mock.py +18 -2
- {frogml-1.2.40.dist-info → frogml-1.2.42.dist-info}/WHEEL +0 -0
frogml/__init__.py
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: com/jfrog/ml/model/deployment/v1/auto_scaling.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3com/jfrog/ml/model/deployment/v1/auto_scaling.proto\x12 com.jfrog.ml.model.deployment.v1\"\x8e\x02\n\x11\x41utoScalingConfig\x12\x19\n\x11min_replica_count\x18\x01 \x01(\x05\x12\x19\n\x11max_replica_count\x18\x02 \x01(\x05\x12\"\n\x18polling_interval_seconds\x18\x03 \x01(\x05H\x00\x12\"\n\x18\x63ool_down_period_seconds\x18\x04 \x01(\x05H\x01\x12;\n\x08triggers\x18\x05 \x03(\x0b\x32).com.jfrog.ml.model.deployment.v1.TriggerB\x1e\n\x1cpolling_interval_seconds_optB\x1e\n\x1c\x63ool_down_period_seconds_opt\"k\n\x07Trigger\x12P\n\x15scalar_scaling_metric\x18\x01 \x01(\x0b\x32/.com.jfrog.ml.model.deployment.v1.ScalarTriggerH\x00\x42\x0e\n\x0ctrigger_type\"\xd9\x01\n\rScalarTrigger\x12K\n\rmetric_source\x18\x01 \x01(\x0b\x32\x34.com.jfrog.ml.model.deployment.v1.ScalarMetricSource\x12K\n\x10\x61ggregation_type\x18\x02 \x01(\x0e\x32\x31.com.jfrog.ml.model.deployment.v1.AggregationType\x12\x11\n\tthreshold\x18\x03 \x01(\x05\x12\x1b\n\x13time_period_seconds\x18\x04 \x01(\x05\"\xcf\x02\n\x12ScalarMetricSource\x12\x46\n\x03\x63pu\x18\x01 \x01(\x0b\x32\x37.com.jfrog.ml.model.deployment.v1.ScalarMetricSourceCpuH\x00\x12S\n\nerror_rate\x18\x02 \x01(\x0b\x32=.com.jfrog.ml.model.deployment.v1.ScalarMetricSourceErrorRateH\x00\x12\x46\n\x03gpu\x18\x03 \x01(\x0b\x32\x37.com.jfrog.ml.model.deployment.v1.ScalarMetricSourceGpuH\x00\x12L\n\x06memory\x18\x04 \x01(\x0b\x32:.com.jfrog.ml.model.deployment.v1.ScalarMetricSourceMemoryH\x00\x42\x06\n\x04type\"\x17\n\x15ScalarMetricSourceCpu\"\x17\n\x15ScalarMetricSourceGpu\"\x1a\n\x18ScalarMetricSourceMemory\"E\n\x1bScalarMetricSourceErrorRate\x12\x14\n\nerror_code\x18\x04 \x01(\tH\x00\x42\x10\n\x0e\x65rror_code_opt*\x83\x02\n\x0f\x41ggregationType\x12\x1c\n\x18\x41GGREGATION_TYPE_INVALID\x10\x00\x12\x18\n\x14\x41GGREGATION_TYPE_MIN\x10\x01\x12\x18\n\x14\x41GGREGATION_TYPE_MAX\x10\x02\x12\x1c\n\x18\x41GGREGATION_TYPE_AVERAGE\x10\x03\x12\x18\n\x14\x41GGREGATION_TYPE_SUM\x10\x04\x12\x18\n\x14\x41GGREGATION_TYPE_P50\x10\x05\x12\x18\n\x14\x41GGREGATION_TYPE_P90\x10\x06\x12\x18\n\x14\x41GGREGATION_TYPE_P95\x10\x07\x12\x18\n\x14\x41GGREGATION_TYPE_P99\x10\x08\x42(\n$com.jfrog.ml.model.deployment.v1.apiP\x01\x62\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'com.jfrog.ml.model.deployment.v1.auto_scaling_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
_globals['DESCRIPTOR']._options = None
|
|
24
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n$com.jfrog.ml.model.deployment.v1.apiP\001'
|
|
25
|
+
_globals['_AGGREGATIONTYPE']._serialized_start=1179
|
|
26
|
+
_globals['_AGGREGATIONTYPE']._serialized_end=1438
|
|
27
|
+
_globals['_AUTOSCALINGCONFIG']._serialized_start=90
|
|
28
|
+
_globals['_AUTOSCALINGCONFIG']._serialized_end=360
|
|
29
|
+
_globals['_TRIGGER']._serialized_start=362
|
|
30
|
+
_globals['_TRIGGER']._serialized_end=469
|
|
31
|
+
_globals['_SCALARTRIGGER']._serialized_start=472
|
|
32
|
+
_globals['_SCALARTRIGGER']._serialized_end=689
|
|
33
|
+
_globals['_SCALARMETRICSOURCE']._serialized_start=692
|
|
34
|
+
_globals['_SCALARMETRICSOURCE']._serialized_end=1027
|
|
35
|
+
_globals['_SCALARMETRICSOURCECPU']._serialized_start=1029
|
|
36
|
+
_globals['_SCALARMETRICSOURCECPU']._serialized_end=1052
|
|
37
|
+
_globals['_SCALARMETRICSOURCEGPU']._serialized_start=1054
|
|
38
|
+
_globals['_SCALARMETRICSOURCEGPU']._serialized_end=1077
|
|
39
|
+
_globals['_SCALARMETRICSOURCEMEMORY']._serialized_start=1079
|
|
40
|
+
_globals['_SCALARMETRICSOURCEMEMORY']._serialized_end=1105
|
|
41
|
+
_globals['_SCALARMETRICSOURCEERRORRATE']._serialized_start=1107
|
|
42
|
+
_globals['_SCALARMETRICSOURCEERRORRATE']._serialized_end=1176
|
|
43
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import sys
|
|
13
|
+
import typing
|
|
14
|
+
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
import typing as typing_extensions
|
|
17
|
+
else:
|
|
18
|
+
import typing_extensions
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
21
|
+
|
|
22
|
+
class _AggregationType:
|
|
23
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
24
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
25
|
+
|
|
26
|
+
class _AggregationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AggregationType.ValueType], builtins.type):
|
|
27
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
28
|
+
AGGREGATION_TYPE_INVALID: _AggregationType.ValueType # 0
|
|
29
|
+
AGGREGATION_TYPE_MIN: _AggregationType.ValueType # 1
|
|
30
|
+
AGGREGATION_TYPE_MAX: _AggregationType.ValueType # 2
|
|
31
|
+
AGGREGATION_TYPE_AVERAGE: _AggregationType.ValueType # 3
|
|
32
|
+
AGGREGATION_TYPE_SUM: _AggregationType.ValueType # 4
|
|
33
|
+
AGGREGATION_TYPE_P50: _AggregationType.ValueType # 5
|
|
34
|
+
AGGREGATION_TYPE_P90: _AggregationType.ValueType # 6
|
|
35
|
+
AGGREGATION_TYPE_P95: _AggregationType.ValueType # 7
|
|
36
|
+
AGGREGATION_TYPE_P99: _AggregationType.ValueType # 8
|
|
37
|
+
|
|
38
|
+
class AggregationType(_AggregationType, metaclass=_AggregationTypeEnumTypeWrapper): ...
|
|
39
|
+
|
|
40
|
+
AGGREGATION_TYPE_INVALID: AggregationType.ValueType # 0
|
|
41
|
+
AGGREGATION_TYPE_MIN: AggregationType.ValueType # 1
|
|
42
|
+
AGGREGATION_TYPE_MAX: AggregationType.ValueType # 2
|
|
43
|
+
AGGREGATION_TYPE_AVERAGE: AggregationType.ValueType # 3
|
|
44
|
+
AGGREGATION_TYPE_SUM: AggregationType.ValueType # 4
|
|
45
|
+
AGGREGATION_TYPE_P50: AggregationType.ValueType # 5
|
|
46
|
+
AGGREGATION_TYPE_P90: AggregationType.ValueType # 6
|
|
47
|
+
AGGREGATION_TYPE_P95: AggregationType.ValueType # 7
|
|
48
|
+
AGGREGATION_TYPE_P99: AggregationType.ValueType # 8
|
|
49
|
+
global___AggregationType = AggregationType
|
|
50
|
+
|
|
51
|
+
@typing.final
|
|
52
|
+
class AutoScalingConfig(google.protobuf.message.Message):
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
54
|
+
|
|
55
|
+
MIN_REPLICA_COUNT_FIELD_NUMBER: builtins.int
|
|
56
|
+
MAX_REPLICA_COUNT_FIELD_NUMBER: builtins.int
|
|
57
|
+
POLLING_INTERVAL_SECONDS_FIELD_NUMBER: builtins.int
|
|
58
|
+
COOL_DOWN_PERIOD_SECONDS_FIELD_NUMBER: builtins.int
|
|
59
|
+
TRIGGERS_FIELD_NUMBER: builtins.int
|
|
60
|
+
min_replica_count: builtins.int
|
|
61
|
+
"""The minimum number of replicas will scale the resource down to"""
|
|
62
|
+
max_replica_count: builtins.int
|
|
63
|
+
"""The maximum number of replicas of the target resource"""
|
|
64
|
+
polling_interval_seconds: builtins.int
|
|
65
|
+
cool_down_period_seconds: builtins.int
|
|
66
|
+
@property
|
|
67
|
+
def triggers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Trigger]:
|
|
68
|
+
"""List of triggers based on which to scale up/down."""
|
|
69
|
+
|
|
70
|
+
def __init__(
|
|
71
|
+
self,
|
|
72
|
+
*,
|
|
73
|
+
min_replica_count: builtins.int = ...,
|
|
74
|
+
max_replica_count: builtins.int = ...,
|
|
75
|
+
polling_interval_seconds: builtins.int = ...,
|
|
76
|
+
cool_down_period_seconds: builtins.int = ...,
|
|
77
|
+
triggers: collections.abc.Iterable[global___Trigger] | None = ...,
|
|
78
|
+
) -> None: ...
|
|
79
|
+
def HasField(self, field_name: typing.Literal["cool_down_period_seconds", b"cool_down_period_seconds", "cool_down_period_seconds_opt", b"cool_down_period_seconds_opt", "polling_interval_seconds", b"polling_interval_seconds", "polling_interval_seconds_opt", b"polling_interval_seconds_opt"]) -> builtins.bool: ...
|
|
80
|
+
def ClearField(self, field_name: typing.Literal["cool_down_period_seconds", b"cool_down_period_seconds", "cool_down_period_seconds_opt", b"cool_down_period_seconds_opt", "max_replica_count", b"max_replica_count", "min_replica_count", b"min_replica_count", "polling_interval_seconds", b"polling_interval_seconds", "polling_interval_seconds_opt", b"polling_interval_seconds_opt", "triggers", b"triggers"]) -> None: ...
|
|
81
|
+
@typing.overload
|
|
82
|
+
def WhichOneof(self, oneof_group: typing.Literal["cool_down_period_seconds_opt", b"cool_down_period_seconds_opt"]) -> typing.Literal["cool_down_period_seconds"] | None: ...
|
|
83
|
+
@typing.overload
|
|
84
|
+
def WhichOneof(self, oneof_group: typing.Literal["polling_interval_seconds_opt", b"polling_interval_seconds_opt"]) -> typing.Literal["polling_interval_seconds"] | None: ...
|
|
85
|
+
|
|
86
|
+
global___AutoScalingConfig = AutoScalingConfig
|
|
87
|
+
|
|
88
|
+
@typing.final
|
|
89
|
+
class Trigger(google.protobuf.message.Message):
|
|
90
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
91
|
+
|
|
92
|
+
SCALAR_SCALING_METRIC_FIELD_NUMBER: builtins.int
|
|
93
|
+
@property
|
|
94
|
+
def scalar_scaling_metric(self) -> global___ScalarTrigger:
|
|
95
|
+
"""A generic trigger that works by calculating aggregates on scalar time series:"""
|
|
96
|
+
|
|
97
|
+
def __init__(
|
|
98
|
+
self,
|
|
99
|
+
*,
|
|
100
|
+
scalar_scaling_metric: global___ScalarTrigger | None = ...,
|
|
101
|
+
) -> None: ...
|
|
102
|
+
def HasField(self, field_name: typing.Literal["scalar_scaling_metric", b"scalar_scaling_metric", "trigger_type", b"trigger_type"]) -> builtins.bool: ...
|
|
103
|
+
def ClearField(self, field_name: typing.Literal["scalar_scaling_metric", b"scalar_scaling_metric", "trigger_type", b"trigger_type"]) -> None: ...
|
|
104
|
+
def WhichOneof(self, oneof_group: typing.Literal["trigger_type", b"trigger_type"]) -> typing.Literal["scalar_scaling_metric"] | None: ...
|
|
105
|
+
|
|
106
|
+
global___Trigger = Trigger
|
|
107
|
+
|
|
108
|
+
@typing.final
|
|
109
|
+
class ScalarTrigger(google.protobuf.message.Message):
|
|
110
|
+
"""A generic scalar trigger that works by calculating aggregates on scalar time series and firing based on a
|
|
111
|
+
threshold.
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
115
|
+
|
|
116
|
+
METRIC_SOURCE_FIELD_NUMBER: builtins.int
|
|
117
|
+
AGGREGATION_TYPE_FIELD_NUMBER: builtins.int
|
|
118
|
+
THRESHOLD_FIELD_NUMBER: builtins.int
|
|
119
|
+
TIME_PERIOD_SECONDS_FIELD_NUMBER: builtins.int
|
|
120
|
+
aggregation_type: global___AggregationType.ValueType
|
|
121
|
+
"""The type of the aggregation to run over the time series"""
|
|
122
|
+
threshold: builtins.int
|
|
123
|
+
"""Value to trigger from"""
|
|
124
|
+
time_period_seconds: builtins.int
|
|
125
|
+
"""The period over which to aggregate the metric."""
|
|
126
|
+
@property
|
|
127
|
+
def metric_source(self) -> global___ScalarMetricSource:
|
|
128
|
+
"""The source of the metric"""
|
|
129
|
+
|
|
130
|
+
def __init__(
|
|
131
|
+
self,
|
|
132
|
+
*,
|
|
133
|
+
metric_source: global___ScalarMetricSource | None = ...,
|
|
134
|
+
aggregation_type: global___AggregationType.ValueType = ...,
|
|
135
|
+
threshold: builtins.int = ...,
|
|
136
|
+
time_period_seconds: builtins.int = ...,
|
|
137
|
+
) -> None: ...
|
|
138
|
+
def HasField(self, field_name: typing.Literal["metric_source", b"metric_source"]) -> builtins.bool: ...
|
|
139
|
+
def ClearField(self, field_name: typing.Literal["aggregation_type", b"aggregation_type", "metric_source", b"metric_source", "threshold", b"threshold", "time_period_seconds", b"time_period_seconds"]) -> None: ...
|
|
140
|
+
|
|
141
|
+
global___ScalarTrigger = ScalarTrigger
|
|
142
|
+
|
|
143
|
+
@typing.final
|
|
144
|
+
class ScalarMetricSource(google.protobuf.message.Message):
|
|
145
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
146
|
+
|
|
147
|
+
CPU_FIELD_NUMBER: builtins.int
|
|
148
|
+
ERROR_RATE_FIELD_NUMBER: builtins.int
|
|
149
|
+
GPU_FIELD_NUMBER: builtins.int
|
|
150
|
+
MEMORY_FIELD_NUMBER: builtins.int
|
|
151
|
+
@property
|
|
152
|
+
def cpu(self) -> global___ScalarMetricSourceCpu: ...
|
|
153
|
+
@property
|
|
154
|
+
def error_rate(self) -> global___ScalarMetricSourceErrorRate: ...
|
|
155
|
+
@property
|
|
156
|
+
def gpu(self) -> global___ScalarMetricSourceGpu: ...
|
|
157
|
+
@property
|
|
158
|
+
def memory(self) -> global___ScalarMetricSourceMemory: ...
|
|
159
|
+
def __init__(
|
|
160
|
+
self,
|
|
161
|
+
*,
|
|
162
|
+
cpu: global___ScalarMetricSourceCpu | None = ...,
|
|
163
|
+
error_rate: global___ScalarMetricSourceErrorRate | None = ...,
|
|
164
|
+
gpu: global___ScalarMetricSourceGpu | None = ...,
|
|
165
|
+
memory: global___ScalarMetricSourceMemory | None = ...,
|
|
166
|
+
) -> None: ...
|
|
167
|
+
def HasField(self, field_name: typing.Literal["cpu", b"cpu", "error_rate", b"error_rate", "gpu", b"gpu", "memory", b"memory", "type", b"type"]) -> builtins.bool: ...
|
|
168
|
+
def ClearField(self, field_name: typing.Literal["cpu", b"cpu", "error_rate", b"error_rate", "gpu", b"gpu", "memory", b"memory", "type", b"type"]) -> None: ...
|
|
169
|
+
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["cpu", "error_rate", "gpu", "memory"] | None: ...
|
|
170
|
+
|
|
171
|
+
global___ScalarMetricSource = ScalarMetricSource
|
|
172
|
+
|
|
173
|
+
@typing.final
|
|
174
|
+
class ScalarMetricSourceCpu(google.protobuf.message.Message):
|
|
175
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
176
|
+
|
|
177
|
+
def __init__(
|
|
178
|
+
self,
|
|
179
|
+
) -> None: ...
|
|
180
|
+
|
|
181
|
+
global___ScalarMetricSourceCpu = ScalarMetricSourceCpu
|
|
182
|
+
|
|
183
|
+
@typing.final
|
|
184
|
+
class ScalarMetricSourceGpu(google.protobuf.message.Message):
|
|
185
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
186
|
+
|
|
187
|
+
def __init__(
|
|
188
|
+
self,
|
|
189
|
+
) -> None: ...
|
|
190
|
+
|
|
191
|
+
global___ScalarMetricSourceGpu = ScalarMetricSourceGpu
|
|
192
|
+
|
|
193
|
+
@typing.final
|
|
194
|
+
class ScalarMetricSourceMemory(google.protobuf.message.Message):
|
|
195
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
196
|
+
|
|
197
|
+
def __init__(
|
|
198
|
+
self,
|
|
199
|
+
) -> None: ...
|
|
200
|
+
|
|
201
|
+
global___ScalarMetricSourceMemory = ScalarMetricSourceMemory
|
|
202
|
+
|
|
203
|
+
@typing.final
|
|
204
|
+
class ScalarMetricSourceErrorRate(google.protobuf.message.Message):
|
|
205
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
206
|
+
|
|
207
|
+
ERROR_CODE_FIELD_NUMBER: builtins.int
|
|
208
|
+
error_code: builtins.str
|
|
209
|
+
def __init__(
|
|
210
|
+
self,
|
|
211
|
+
*,
|
|
212
|
+
error_code: builtins.str = ...,
|
|
213
|
+
) -> None: ...
|
|
214
|
+
def HasField(self, field_name: typing.Literal["error_code", b"error_code", "error_code_opt", b"error_code_opt"]) -> builtins.bool: ...
|
|
215
|
+
def ClearField(self, field_name: typing.Literal["error_code", b"error_code", "error_code_opt", b"error_code_opt"]) -> None: ...
|
|
216
|
+
def WhichOneof(self, oneof_group: typing.Literal["error_code_opt", b"error_code_opt"]) -> typing.Literal["error_code"] | None: ...
|
|
217
|
+
|
|
218
|
+
global___ScalarMetricSourceErrorRate = ScalarMetricSourceErrorRate
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: com/jfrog/ml/model/deployment/v1/deployment.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import environment_variables_configuration_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_environment__variables__configuration__pb2
|
|
17
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import model_artifact_identifier_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_model__artifact__identifier__pb2
|
|
18
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import probes_configuration_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_probes__configuration__pb2
|
|
19
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import realtime_deployment_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_realtime__deployment__pb2
|
|
20
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import resource_configuration_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_resource__configuration__pb2
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1com/jfrog/ml/model/deployment/v1/deployment.proto\x12 com.jfrog.ml.model.deployment.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1aJcom/jfrog/ml/model/deployment/v1/environment_variables_configuration.proto\x1a@com/jfrog/ml/model/deployment/v1/model_artifact_identifier.proto\x1a;com/jfrog/ml/model/deployment/v1/probes_configuration.proto\x1a:com/jfrog/ml/model/deployment/v1/realtime_deployment.proto\x1a=com/jfrog/ml/model/deployment/v1/resource_configuration.proto\"\xc6\x02\n\x1dMultipleEnvironmentDeployment\x12\\\n\x19model_artifact_identifier\x18\x01 \x01(\x0b\x32\x39.com.jfrog.ml.model.deployment.v1.ModelArtifactIdentifier\x12\x65\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32P.com.jfrog.ml.model.deployment.v1.MultipleEnvironmentDeployment.DeploymentsEntry\x1a`\n\x10\x44\x65ploymentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.com.jfrog.ml.model.deployment.v1.Deployment:\x02\x38\x01\"\x94\x03\n\nDeployment\x12W\n\x16resource_configuration\x18\x01 \x01(\x0b\x32\x37.com.jfrog.ml.model.deployment.v1.ResourceConfiguration\x12p\n#environment_variables_configuration\x18\x02 \x01(\x0b\x32\x43.com.jfrog.ml.model.deployment.v1.EnvironmentVariablesConfiguration\x12S\n\x14probes_configuration\x18\x03 \x01(\x0b\x32\x35.com.jfrog.ml.model.deployment.v1.ProbesConfiguration\x12S\n\x13realtime_deployment\x18\x04 \x01(\x0b\x32\x34.com.jfrog.ml.model.deployment.v1.RealtimeDeploymentH\x00\x42\x11\n\x0f\x64\x65ployment_type\"\xd8\x03\n\x15ModelDeploymentStatus\x12g\n\x1emodel_deployment_status_failed\x18\x01 \x01(\x0b\x32=.com.jfrog.ml.model.deployment.v1.ModelDeploymentStatusFailedH\x00\x12o\n\"model_deployment_status_successful\x18\x02 \x01(\x0b\x32\x41.com.jfrog.ml.model.deployment.v1.ModelDeploymentStatusSuccessfulH\x00\x12p\n#model_deployment_status_in_progress\x18\x03 \x01(\x0b\x32\x41.com.jfrog.ml.model.deployment.v1.ModelDeploymentStatusInProgressH\x00\x12i\n\x1fmodel_deployment_status_failing\x18\x04 \x01(\x0b\x32>.com.jfrog.ml.model.deployment.v1.ModelDeploymentStatusFailingH\x00\x42\x08\n\x06status\"\x1d\n\x1bModelDeploymentStatusFailed\"!\n\x1fModelDeploymentStatusSuccessful\"!\n\x1fModelDeploymentStatusInProgress\"\x1e\n\x1cModelDeploymentStatusFailing\"\xcd\x01\n\x12\x44\x65ploymentMetadata\x12\x15\n\rdeployment_id\x18\x01 \x01(\t\x12G\n\x06status\x18\x02 \x01(\x0b\x32\x37.com.jfrog.ml.model.deployment.v1.ModelDeploymentStatus\x12\x13\n\x0b\x65nvironment\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncreated_by\x18\x05 \x01(\t\"\xa0\x02\n\x1aModelDeploymentInformation\x12\\\n\x19model_artifact_identifier\x18\x01 \x01(\x0b\x32\x39.com.jfrog.ml.model.deployment.v1.ModelArtifactIdentifier\x12K\n\x15model_deployment_spec\x18\x02 \x01(\x0b\x32,.com.jfrog.ml.model.deployment.v1.Deployment\x12W\n\x19model_deployment_metadata\x18\x03 \x01(\x0b\x32\x34.com.jfrog.ml.model.deployment.v1.DeploymentMetadataB(\n$com.jfrog.ml.model.deployment.v1.apiP\x01\x62\x06proto3')
|
|
24
|
+
|
|
25
|
+
_globals = globals()
|
|
26
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'com.jfrog.ml.model.deployment.v1.deployment_pb2', _globals)
|
|
28
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
29
|
+
_globals['DESCRIPTOR']._options = None
|
|
30
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n$com.jfrog.ml.model.deployment.v1.apiP\001'
|
|
31
|
+
_globals['_MULTIPLEENVIRONMENTDEPLOYMENT_DEPLOYMENTSENTRY']._options = None
|
|
32
|
+
_globals['_MULTIPLEENVIRONMENTDEPLOYMENT_DEPLOYMENTSENTRY']._serialized_options = b'8\001'
|
|
33
|
+
_globals['_MULTIPLEENVIRONMENTDEPLOYMENT']._serialized_start=447
|
|
34
|
+
_globals['_MULTIPLEENVIRONMENTDEPLOYMENT']._serialized_end=773
|
|
35
|
+
_globals['_MULTIPLEENVIRONMENTDEPLOYMENT_DEPLOYMENTSENTRY']._serialized_start=677
|
|
36
|
+
_globals['_MULTIPLEENVIRONMENTDEPLOYMENT_DEPLOYMENTSENTRY']._serialized_end=773
|
|
37
|
+
_globals['_DEPLOYMENT']._serialized_start=776
|
|
38
|
+
_globals['_DEPLOYMENT']._serialized_end=1180
|
|
39
|
+
_globals['_MODELDEPLOYMENTSTATUS']._serialized_start=1183
|
|
40
|
+
_globals['_MODELDEPLOYMENTSTATUS']._serialized_end=1655
|
|
41
|
+
_globals['_MODELDEPLOYMENTSTATUSFAILED']._serialized_start=1657
|
|
42
|
+
_globals['_MODELDEPLOYMENTSTATUSFAILED']._serialized_end=1686
|
|
43
|
+
_globals['_MODELDEPLOYMENTSTATUSSUCCESSFUL']._serialized_start=1688
|
|
44
|
+
_globals['_MODELDEPLOYMENTSTATUSSUCCESSFUL']._serialized_end=1721
|
|
45
|
+
_globals['_MODELDEPLOYMENTSTATUSINPROGRESS']._serialized_start=1723
|
|
46
|
+
_globals['_MODELDEPLOYMENTSTATUSINPROGRESS']._serialized_end=1756
|
|
47
|
+
_globals['_MODELDEPLOYMENTSTATUSFAILING']._serialized_start=1758
|
|
48
|
+
_globals['_MODELDEPLOYMENTSTATUSFAILING']._serialized_end=1788
|
|
49
|
+
_globals['_DEPLOYMENTMETADATA']._serialized_start=1791
|
|
50
|
+
_globals['_DEPLOYMENTMETADATA']._serialized_end=1996
|
|
51
|
+
_globals['_MODELDEPLOYMENTINFORMATION']._serialized_start=1999
|
|
52
|
+
_globals['_MODELDEPLOYMENTINFORMATION']._serialized_end=2287
|
|
53
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.environment_variables_configuration_pb2
|
|
9
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.model_artifact_identifier_pb2
|
|
10
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.probes_configuration_pb2
|
|
11
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.realtime_deployment_pb2
|
|
12
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.resource_configuration_pb2
|
|
13
|
+
import google.protobuf.descriptor
|
|
14
|
+
import google.protobuf.internal.containers
|
|
15
|
+
import google.protobuf.message
|
|
16
|
+
import google.protobuf.timestamp_pb2
|
|
17
|
+
import typing
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class MultipleEnvironmentDeployment(google.protobuf.message.Message):
|
|
23
|
+
"""Multi Environment Deployment."""
|
|
24
|
+
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
26
|
+
|
|
27
|
+
@typing.final
|
|
28
|
+
class DeploymentsEntry(google.protobuf.message.Message):
|
|
29
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
30
|
+
|
|
31
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
32
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
33
|
+
key: builtins.str
|
|
34
|
+
@property
|
|
35
|
+
def value(self) -> global___Deployment: ...
|
|
36
|
+
def __init__(
|
|
37
|
+
self,
|
|
38
|
+
*,
|
|
39
|
+
key: builtins.str = ...,
|
|
40
|
+
value: global___Deployment | None = ...,
|
|
41
|
+
) -> None: ...
|
|
42
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
43
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
44
|
+
|
|
45
|
+
MODEL_ARTIFACT_IDENTIFIER_FIELD_NUMBER: builtins.int
|
|
46
|
+
DEPLOYMENTS_FIELD_NUMBER: builtins.int
|
|
47
|
+
@property
|
|
48
|
+
def model_artifact_identifier(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.model_artifact_identifier_pb2.ModelArtifactIdentifier:
|
|
49
|
+
"""What should be deployed:"""
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def deployments(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Deployment]:
|
|
53
|
+
"""Where and how should it be deployed:
|
|
54
|
+
Multi environment deployment request. A mapping of Environment ID to deploy in, to Deployment
|
|
55
|
+
to deploy.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
def __init__(
|
|
59
|
+
self,
|
|
60
|
+
*,
|
|
61
|
+
model_artifact_identifier: frogml._proto.com.jfrog.ml.model.deployment.v1.model_artifact_identifier_pb2.ModelArtifactIdentifier | None = ...,
|
|
62
|
+
deployments: collections.abc.Mapping[builtins.str, global___Deployment] | None = ...,
|
|
63
|
+
) -> None: ...
|
|
64
|
+
def HasField(self, field_name: typing.Literal["model_artifact_identifier", b"model_artifact_identifier"]) -> builtins.bool: ...
|
|
65
|
+
def ClearField(self, field_name: typing.Literal["deployments", b"deployments", "model_artifact_identifier", b"model_artifact_identifier"]) -> None: ...
|
|
66
|
+
|
|
67
|
+
global___MultipleEnvironmentDeployment = MultipleEnvironmentDeployment
|
|
68
|
+
|
|
69
|
+
@typing.final
|
|
70
|
+
class Deployment(google.protobuf.message.Message):
|
|
71
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
72
|
+
|
|
73
|
+
RESOURCE_CONFIGURATION_FIELD_NUMBER: builtins.int
|
|
74
|
+
ENVIRONMENT_VARIABLES_CONFIGURATION_FIELD_NUMBER: builtins.int
|
|
75
|
+
PROBES_CONFIGURATION_FIELD_NUMBER: builtins.int
|
|
76
|
+
REALTIME_DEPLOYMENT_FIELD_NUMBER: builtins.int
|
|
77
|
+
@property
|
|
78
|
+
def resource_configuration(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.resource_configuration_pb2.ResourceConfiguration:
|
|
79
|
+
"""Resources of the deployment. CPU/RAM/ROM/GPU."""
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def environment_variables_configuration(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.environment_variables_configuration_pb2.EnvironmentVariablesConfiguration:
|
|
83
|
+
"""Configuration of Environment Variables that should be available to the instances at runtime.
|
|
84
|
+
Additional Environment variables are going to be injected into the runtime container like the `HF_URL` and tokens
|
|
85
|
+
e.g. for JPD access. The Environment variables specified here are recessive and may be overwritten by the service.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def probes_configuration(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.probes_configuration_pb2.ProbesConfiguration:
|
|
90
|
+
"""Configuration of Probes that should be used to check the health of instances in the deployment."""
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def realtime_deployment(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.realtime_deployment_pb2.RealtimeDeployment:
|
|
94
|
+
"""Deployment type for a Kubernetes deployment."""
|
|
95
|
+
|
|
96
|
+
def __init__(
|
|
97
|
+
self,
|
|
98
|
+
*,
|
|
99
|
+
resource_configuration: frogml._proto.com.jfrog.ml.model.deployment.v1.resource_configuration_pb2.ResourceConfiguration | None = ...,
|
|
100
|
+
environment_variables_configuration: frogml._proto.com.jfrog.ml.model.deployment.v1.environment_variables_configuration_pb2.EnvironmentVariablesConfiguration | None = ...,
|
|
101
|
+
probes_configuration: frogml._proto.com.jfrog.ml.model.deployment.v1.probes_configuration_pb2.ProbesConfiguration | None = ...,
|
|
102
|
+
realtime_deployment: frogml._proto.com.jfrog.ml.model.deployment.v1.realtime_deployment_pb2.RealtimeDeployment | None = ...,
|
|
103
|
+
) -> None: ...
|
|
104
|
+
def HasField(self, field_name: typing.Literal["deployment_type", b"deployment_type", "environment_variables_configuration", b"environment_variables_configuration", "probes_configuration", b"probes_configuration", "realtime_deployment", b"realtime_deployment", "resource_configuration", b"resource_configuration"]) -> builtins.bool: ...
|
|
105
|
+
def ClearField(self, field_name: typing.Literal["deployment_type", b"deployment_type", "environment_variables_configuration", b"environment_variables_configuration", "probes_configuration", b"probes_configuration", "realtime_deployment", b"realtime_deployment", "resource_configuration", b"resource_configuration"]) -> None: ...
|
|
106
|
+
def WhichOneof(self, oneof_group: typing.Literal["deployment_type", b"deployment_type"]) -> typing.Literal["realtime_deployment"] | None: ...
|
|
107
|
+
|
|
108
|
+
global___Deployment = Deployment
|
|
109
|
+
|
|
110
|
+
@typing.final
|
|
111
|
+
class ModelDeploymentStatus(google.protobuf.message.Message):
|
|
112
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
113
|
+
|
|
114
|
+
MODEL_DEPLOYMENT_STATUS_FAILED_FIELD_NUMBER: builtins.int
|
|
115
|
+
MODEL_DEPLOYMENT_STATUS_SUCCESSFUL_FIELD_NUMBER: builtins.int
|
|
116
|
+
MODEL_DEPLOYMENT_STATUS_IN_PROGRESS_FIELD_NUMBER: builtins.int
|
|
117
|
+
MODEL_DEPLOYMENT_STATUS_FAILING_FIELD_NUMBER: builtins.int
|
|
118
|
+
@property
|
|
119
|
+
def model_deployment_status_failed(self) -> global___ModelDeploymentStatusFailed:
|
|
120
|
+
"""The deployment has failed."""
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def model_deployment_status_successful(self) -> global___ModelDeploymentStatusSuccessful:
|
|
124
|
+
"""The deployment is successful."""
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def model_deployment_status_in_progress(self) -> global___ModelDeploymentStatusInProgress:
|
|
128
|
+
"""The deployment is in progress."""
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def model_deployment_status_failing(self) -> global___ModelDeploymentStatusFailing:
|
|
132
|
+
"""The deployment is failing and requires intervention"""
|
|
133
|
+
|
|
134
|
+
def __init__(
|
|
135
|
+
self,
|
|
136
|
+
*,
|
|
137
|
+
model_deployment_status_failed: global___ModelDeploymentStatusFailed | None = ...,
|
|
138
|
+
model_deployment_status_successful: global___ModelDeploymentStatusSuccessful | None = ...,
|
|
139
|
+
model_deployment_status_in_progress: global___ModelDeploymentStatusInProgress | None = ...,
|
|
140
|
+
model_deployment_status_failing: global___ModelDeploymentStatusFailing | None = ...,
|
|
141
|
+
) -> None: ...
|
|
142
|
+
def HasField(self, field_name: typing.Literal["model_deployment_status_failed", b"model_deployment_status_failed", "model_deployment_status_failing", b"model_deployment_status_failing", "model_deployment_status_in_progress", b"model_deployment_status_in_progress", "model_deployment_status_successful", b"model_deployment_status_successful", "status", b"status"]) -> builtins.bool: ...
|
|
143
|
+
def ClearField(self, field_name: typing.Literal["model_deployment_status_failed", b"model_deployment_status_failed", "model_deployment_status_failing", b"model_deployment_status_failing", "model_deployment_status_in_progress", b"model_deployment_status_in_progress", "model_deployment_status_successful", b"model_deployment_status_successful", "status", b"status"]) -> None: ...
|
|
144
|
+
def WhichOneof(self, oneof_group: typing.Literal["status", b"status"]) -> typing.Literal["model_deployment_status_failed", "model_deployment_status_successful", "model_deployment_status_in_progress", "model_deployment_status_failing"] | None: ...
|
|
145
|
+
|
|
146
|
+
global___ModelDeploymentStatus = ModelDeploymentStatus
|
|
147
|
+
|
|
148
|
+
@typing.final
|
|
149
|
+
class ModelDeploymentStatusFailed(google.protobuf.message.Message):
|
|
150
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
151
|
+
|
|
152
|
+
def __init__(
|
|
153
|
+
self,
|
|
154
|
+
) -> None: ...
|
|
155
|
+
|
|
156
|
+
global___ModelDeploymentStatusFailed = ModelDeploymentStatusFailed
|
|
157
|
+
|
|
158
|
+
@typing.final
|
|
159
|
+
class ModelDeploymentStatusSuccessful(google.protobuf.message.Message):
|
|
160
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
161
|
+
|
|
162
|
+
def __init__(
|
|
163
|
+
self,
|
|
164
|
+
) -> None: ...
|
|
165
|
+
|
|
166
|
+
global___ModelDeploymentStatusSuccessful = ModelDeploymentStatusSuccessful
|
|
167
|
+
|
|
168
|
+
@typing.final
|
|
169
|
+
class ModelDeploymentStatusInProgress(google.protobuf.message.Message):
|
|
170
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
171
|
+
|
|
172
|
+
def __init__(
|
|
173
|
+
self,
|
|
174
|
+
) -> None: ...
|
|
175
|
+
|
|
176
|
+
global___ModelDeploymentStatusInProgress = ModelDeploymentStatusInProgress
|
|
177
|
+
|
|
178
|
+
@typing.final
|
|
179
|
+
class ModelDeploymentStatusFailing(google.protobuf.message.Message):
|
|
180
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
181
|
+
|
|
182
|
+
def __init__(
|
|
183
|
+
self,
|
|
184
|
+
) -> None: ...
|
|
185
|
+
|
|
186
|
+
global___ModelDeploymentStatusFailing = ModelDeploymentStatusFailing
|
|
187
|
+
|
|
188
|
+
@typing.final
|
|
189
|
+
class DeploymentMetadata(google.protobuf.message.Message):
|
|
190
|
+
"""Metadata about the deployment, such as status, environment, timestamp, and ID."""
|
|
191
|
+
|
|
192
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
193
|
+
|
|
194
|
+
DEPLOYMENT_ID_FIELD_NUMBER: builtins.int
|
|
195
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
196
|
+
ENVIRONMENT_FIELD_NUMBER: builtins.int
|
|
197
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
198
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
199
|
+
deployment_id: builtins.str
|
|
200
|
+
"""The unique UUID of the deployment."""
|
|
201
|
+
environment: builtins.str
|
|
202
|
+
"""The environment where the deployment is located."""
|
|
203
|
+
created_by: builtins.str
|
|
204
|
+
"""The user who created the deployment."""
|
|
205
|
+
@property
|
|
206
|
+
def status(self) -> global___ModelDeploymentStatus:
|
|
207
|
+
"""The status of the deployment."""
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
211
|
+
"""The timestamp of the deployments creation"""
|
|
212
|
+
|
|
213
|
+
def __init__(
|
|
214
|
+
self,
|
|
215
|
+
*,
|
|
216
|
+
deployment_id: builtins.str = ...,
|
|
217
|
+
status: global___ModelDeploymentStatus | None = ...,
|
|
218
|
+
environment: builtins.str = ...,
|
|
219
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
220
|
+
created_by: builtins.str = ...,
|
|
221
|
+
) -> None: ...
|
|
222
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "status", b"status"]) -> builtins.bool: ...
|
|
223
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "deployment_id", b"deployment_id", "environment", b"environment", "status", b"status"]) -> None: ...
|
|
224
|
+
|
|
225
|
+
global___DeploymentMetadata = DeploymentMetadata
|
|
226
|
+
|
|
227
|
+
@typing.final
|
|
228
|
+
class ModelDeploymentInformation(google.protobuf.message.Message):
|
|
229
|
+
"""Detailed information about a model deployment, including the requested deployment."""
|
|
230
|
+
|
|
231
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
232
|
+
|
|
233
|
+
MODEL_ARTIFACT_IDENTIFIER_FIELD_NUMBER: builtins.int
|
|
234
|
+
MODEL_DEPLOYMENT_SPEC_FIELD_NUMBER: builtins.int
|
|
235
|
+
MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER: builtins.int
|
|
236
|
+
@property
|
|
237
|
+
def model_artifact_identifier(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.model_artifact_identifier_pb2.ModelArtifactIdentifier:
|
|
238
|
+
"""The model artifact identifier of the deployment."""
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def model_deployment_spec(self) -> global___Deployment:
|
|
242
|
+
"""The currently requested deployment."""
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def model_deployment_metadata(self) -> global___DeploymentMetadata:
|
|
246
|
+
"""Metadata about the deployment."""
|
|
247
|
+
|
|
248
|
+
def __init__(
|
|
249
|
+
self,
|
|
250
|
+
*,
|
|
251
|
+
model_artifact_identifier: frogml._proto.com.jfrog.ml.model.deployment.v1.model_artifact_identifier_pb2.ModelArtifactIdentifier | None = ...,
|
|
252
|
+
model_deployment_spec: global___Deployment | None = ...,
|
|
253
|
+
model_deployment_metadata: global___DeploymentMetadata | None = ...,
|
|
254
|
+
) -> None: ...
|
|
255
|
+
def HasField(self, field_name: typing.Literal["model_artifact_identifier", b"model_artifact_identifier", "model_deployment_metadata", b"model_deployment_metadata", "model_deployment_spec", b"model_deployment_spec"]) -> builtins.bool: ...
|
|
256
|
+
def ClearField(self, field_name: typing.Literal["model_artifact_identifier", b"model_artifact_identifier", "model_deployment_metadata", b"model_deployment_metadata", "model_deployment_spec", b"model_deployment_spec"]) -> None: ...
|
|
257
|
+
|
|
258
|
+
global___ModelDeploymentInformation = ModelDeploymentInformation
|