frogml 1.2.38__py3-none-any.whl → 1.2.47__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/_proto/qwak/administration/cluster/v2/cluster_service_pb2.py +52 -0
- frogml/_proto/qwak/administration/cluster/v2/cluster_service_pb2.pyi +208 -0
- frogml/_proto/qwak/administration/cluster/v2/cluster_service_pb2_grpc.py +237 -0
- frogml/_proto/qwak/administration/v1/environments/environment_pb2.py +29 -0
- frogml/_proto/qwak/administration/v1/environments/environment_pb2.pyi +35 -0
- frogml/_proto/qwak/administration/v1/environments/environment_pb2_grpc.py +4 -0
- frogml/_proto/qwak/administration/v1/environments/environment_service_pb2.py +33 -0
- frogml/_proto/qwak/administration/v1/environments/environment_service_pb2.pyi +59 -0
- frogml/_proto/qwak/administration/v1/environments/environment_service_pb2_grpc.py +67 -0
- frogml/_proto/qwak/admiral/secret/v0/account_secret_pb2.py +33 -0
- frogml/_proto/qwak/admiral/secret/v0/account_secret_pb2.pyi +76 -0
- frogml/_proto/qwak/admiral/secret/v0/account_secret_pb2_grpc.py +4 -0
- frogml/_proto/qwak/admiral/secret/v0/system_secret_service_pb2.py +28 -15
- frogml/_proto/qwak/admiral/secret/v0/system_secret_service_pb2.pyi +89 -0
- frogml/_proto/qwak/admiral/secret/v0/system_secret_service_pb2_grpc.py +102 -0
- frogml/_proto/qwak/models/models_pb2.py +81 -79
- frogml/_proto/qwak/models/models_pb2.pyi +24 -0
- frogml/_proto/qwak/models/models_pb2_grpc.py +34 -0
- frogml/core/clients/administration/cluster_v2/__init__.py +1 -0
- frogml/core/clients/administration/cluster_v2/client.py +122 -0
- frogml/core/clients/administration/environment/client.py +28 -0
- frogml/core/clients/administration/environment_v1/__init__.py +1 -0
- frogml/core/clients/administration/environment_v1/client.py +53 -0
- frogml/core/clients/model_deployment_manager/__init__.py +1 -0
- frogml/core/clients/model_deployment_manager/client.py +103 -0
- frogml/core/inner/di_configuration/dependency_wiring.py +18 -16
- {frogml-1.2.38.dist-info → frogml-1.2.47.dist-info}/METADATA +1 -1
- {frogml-1.2.38.dist-info → frogml-1.2.47.dist-info}/RECORD +66 -14
- frogml_services_mock/mocks/cluster_v2_service.py +146 -0
- frogml_services_mock/mocks/environment_v0_service.py +175 -0
- frogml_services_mock/mocks/environment_v1_service.py +37 -0
- frogml_services_mock/mocks/frogml_mocks.py +17 -3
- frogml_services_mock/mocks/model_deployment_manager_service_mock.py +255 -0
- frogml_services_mock/services_mock.py +51 -2
- {frogml-1.2.38.dist-info → frogml-1.2.47.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: com/jfrog/ml/model/deployment/v1/deployment_service.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 frogml._proto.com.jfrog.ml.model.deployment.v1 import deployment_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__pb2
|
|
16
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import model_deployment_brief_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_model__deployment__brief__pb2
|
|
17
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import model_deployment_filter_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_model__deployment__filter__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9com/jfrog/ml/model/deployment/v1/deployment_service.proto\x12 com.jfrog.ml.model.deployment.v1\x1a\x31\x63om/jfrog/ml/model/deployment/v1/deployment.proto\x1a=com/jfrog/ml/model/deployment/v1/model_deployment_brief.proto\x1a>com/jfrog/ml/model/deployment/v1/model_deployment_filter.proto\"~\n\x12\x44\x65ployModelRequest\x12h\n\x1fmultiple_environment_deployment\x18\x01 \x01(\x0b\x32?.com.jfrog.ml.model.deployment.v1.MultipleEnvironmentDeployment\"\x15\n\x13\x44\x65ployModelResponse\"\xa1\x01\n\x1a\x45\x64itModelDeploymentRequest\x12q\n$deployment_id_to_deployment_spec_map\x18\x01 \x01(\x0b\x32\x41.com.jfrog.ml.model.deployment.v1.DeploymentIdToDeploymentSpecMapH\x00\x42\x10\n\x0e\x64\x65ployment_map\"\xec\x01\n\x1f\x44\x65ploymentIdToDeploymentSpecMap\x12g\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32R.com.jfrog.ml.model.deployment.v1.DeploymentIdToDeploymentSpecMap.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\"\x1d\n\x1b\x45\x64itModelDeploymentResponse\"{\n\x14UndeployModelRequest\x12I\n\x0e\x64\x65ployment_ids\x18\x01 \x01(\x0b\x32/.com.jfrog.ml.model.deployment.v1.DeploymentIdsH\x00\x42\x18\n\x16\x64\x65ployment_identifiers\"&\n\rDeploymentIds\x12\x15\n\rdeployment_id\x18\x01 \x03(\t\"\x17\n\x15UndeployModelResponse\"2\n\x19GetModelDeploymentRequest\x12\x15\n\rdeployment_id\x18\x01 \x01(\t\"\x80\x01\n\x1aGetModelDeploymentResponse\x12\x62\n\x1cmodel_deployment_information\x18\x01 \x01(\x0b\x32<.com.jfrog.ml.model.deployment.v1.ModelDeploymentInformation\"w\n\x1bListModelDeploymentsRequest\x12X\n\x17model_deployment_filter\x18\x01 \x01(\x0b\x32\x37.com.jfrog.ml.model.deployment.v1.ModelDeploymentFilter\"v\n\x1cListModelDeploymentsResponse\x12V\n\x16model_deployment_brief\x18\x01 \x03(\x0b\x32\x36.com.jfrog.ml.model.deployment.v1.ModelDeploymentBrief2\xd6\x05\n\x16ModelDeploymentService\x12z\n\x0b\x44\x65ployModel\x12\x34.com.jfrog.ml.model.deployment.v1.DeployModelRequest\x1a\x35.com.jfrog.ml.model.deployment.v1.DeployModelResponse\x12\x80\x01\n\rUndeployModel\x12\x36.com.jfrog.ml.model.deployment.v1.UndeployModelRequest\x1a\x37.com.jfrog.ml.model.deployment.v1.UndeployModelResponse\x12\x92\x01\n\x13\x45\x64itModelDeployment\x12<.com.jfrog.ml.model.deployment.v1.EditModelDeploymentRequest\x1a=.com.jfrog.ml.model.deployment.v1.EditModelDeploymentResponse\x12\x8f\x01\n\x12GetModelDeployment\x12;.com.jfrog.ml.model.deployment.v1.GetModelDeploymentRequest\x1a<.com.jfrog.ml.model.deployment.v1.GetModelDeploymentResponse\x12\x95\x01\n\x14ListModelDeployments\x12=.com.jfrog.ml.model.deployment.v1.ListModelDeploymentsRequest\x1a>.com.jfrog.ml.model.deployment.v1.ListModelDeploymentsResponseB(\n$com.jfrog.ml.model.deployment.v1.apiP\x01\x62\x06proto3')
|
|
21
|
+
|
|
22
|
+
_globals = globals()
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'com.jfrog.ml.model.deployment.v1.deployment_service_pb2', _globals)
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
_globals['DESCRIPTOR']._options = None
|
|
27
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n$com.jfrog.ml.model.deployment.v1.apiP\001'
|
|
28
|
+
_globals['_DEPLOYMENTIDTODEPLOYMENTSPECMAP_DEPLOYMENTSENTRY']._options = None
|
|
29
|
+
_globals['_DEPLOYMENTIDTODEPLOYMENTSPECMAP_DEPLOYMENTSENTRY']._serialized_options = b'8\001'
|
|
30
|
+
_globals['_DEPLOYMODELREQUEST']._serialized_start=273
|
|
31
|
+
_globals['_DEPLOYMODELREQUEST']._serialized_end=399
|
|
32
|
+
_globals['_DEPLOYMODELRESPONSE']._serialized_start=401
|
|
33
|
+
_globals['_DEPLOYMODELRESPONSE']._serialized_end=422
|
|
34
|
+
_globals['_EDITMODELDEPLOYMENTREQUEST']._serialized_start=425
|
|
35
|
+
_globals['_EDITMODELDEPLOYMENTREQUEST']._serialized_end=586
|
|
36
|
+
_globals['_DEPLOYMENTIDTODEPLOYMENTSPECMAP']._serialized_start=589
|
|
37
|
+
_globals['_DEPLOYMENTIDTODEPLOYMENTSPECMAP']._serialized_end=825
|
|
38
|
+
_globals['_DEPLOYMENTIDTODEPLOYMENTSPECMAP_DEPLOYMENTSENTRY']._serialized_start=729
|
|
39
|
+
_globals['_DEPLOYMENTIDTODEPLOYMENTSPECMAP_DEPLOYMENTSENTRY']._serialized_end=825
|
|
40
|
+
_globals['_EDITMODELDEPLOYMENTRESPONSE']._serialized_start=827
|
|
41
|
+
_globals['_EDITMODELDEPLOYMENTRESPONSE']._serialized_end=856
|
|
42
|
+
_globals['_UNDEPLOYMODELREQUEST']._serialized_start=858
|
|
43
|
+
_globals['_UNDEPLOYMODELREQUEST']._serialized_end=981
|
|
44
|
+
_globals['_DEPLOYMENTIDS']._serialized_start=983
|
|
45
|
+
_globals['_DEPLOYMENTIDS']._serialized_end=1021
|
|
46
|
+
_globals['_UNDEPLOYMODELRESPONSE']._serialized_start=1023
|
|
47
|
+
_globals['_UNDEPLOYMODELRESPONSE']._serialized_end=1046
|
|
48
|
+
_globals['_GETMODELDEPLOYMENTREQUEST']._serialized_start=1048
|
|
49
|
+
_globals['_GETMODELDEPLOYMENTREQUEST']._serialized_end=1098
|
|
50
|
+
_globals['_GETMODELDEPLOYMENTRESPONSE']._serialized_start=1101
|
|
51
|
+
_globals['_GETMODELDEPLOYMENTRESPONSE']._serialized_end=1229
|
|
52
|
+
_globals['_LISTMODELDEPLOYMENTSREQUEST']._serialized_start=1231
|
|
53
|
+
_globals['_LISTMODELDEPLOYMENTSREQUEST']._serialized_end=1350
|
|
54
|
+
_globals['_LISTMODELDEPLOYMENTSRESPONSE']._serialized_start=1352
|
|
55
|
+
_globals['_LISTMODELDEPLOYMENTSRESPONSE']._serialized_end=1470
|
|
56
|
+
_globals['_MODELDEPLOYMENTSERVICE']._serialized_start=1473
|
|
57
|
+
_globals['_MODELDEPLOYMENTSERVICE']._serialized_end=2199
|
|
58
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,224 @@
|
|
|
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.deployment_pb2
|
|
9
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.model_deployment_brief_pb2
|
|
10
|
+
import frogml._proto.com.jfrog.ml.model.deployment.v1.model_deployment_filter_pb2
|
|
11
|
+
import google.protobuf.descriptor
|
|
12
|
+
import google.protobuf.internal.containers
|
|
13
|
+
import google.protobuf.message
|
|
14
|
+
import typing
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class DeployModelRequest(google.protobuf.message.Message):
|
|
20
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
|
+
|
|
22
|
+
MULTIPLE_ENVIRONMENT_DEPLOYMENT_FIELD_NUMBER: builtins.int
|
|
23
|
+
@property
|
|
24
|
+
def multiple_environment_deployment(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.deployment_pb2.MultipleEnvironmentDeployment: ...
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
*,
|
|
28
|
+
multiple_environment_deployment: frogml._proto.com.jfrog.ml.model.deployment.v1.deployment_pb2.MultipleEnvironmentDeployment | None = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def HasField(self, field_name: typing.Literal["multiple_environment_deployment", b"multiple_environment_deployment"]) -> builtins.bool: ...
|
|
31
|
+
def ClearField(self, field_name: typing.Literal["multiple_environment_deployment", b"multiple_environment_deployment"]) -> None: ...
|
|
32
|
+
|
|
33
|
+
global___DeployModelRequest = DeployModelRequest
|
|
34
|
+
|
|
35
|
+
@typing.final
|
|
36
|
+
class DeployModelResponse(google.protobuf.message.Message):
|
|
37
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
38
|
+
|
|
39
|
+
def __init__(
|
|
40
|
+
self,
|
|
41
|
+
) -> None: ...
|
|
42
|
+
|
|
43
|
+
global___DeployModelResponse = DeployModelResponse
|
|
44
|
+
|
|
45
|
+
@typing.final
|
|
46
|
+
class EditModelDeploymentRequest(google.protobuf.message.Message):
|
|
47
|
+
"""A request to edit an existing model deployment"""
|
|
48
|
+
|
|
49
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
50
|
+
|
|
51
|
+
DEPLOYMENT_ID_TO_DEPLOYMENT_SPEC_MAP_FIELD_NUMBER: builtins.int
|
|
52
|
+
@property
|
|
53
|
+
def deployment_id_to_deployment_spec_map(self) -> global___DeploymentIdToDeploymentSpecMap:
|
|
54
|
+
"""A map from deployment id to the new requested spec of that deployment"""
|
|
55
|
+
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
*,
|
|
59
|
+
deployment_id_to_deployment_spec_map: global___DeploymentIdToDeploymentSpecMap | None = ...,
|
|
60
|
+
) -> None: ...
|
|
61
|
+
def HasField(self, field_name: typing.Literal["deployment_id_to_deployment_spec_map", b"deployment_id_to_deployment_spec_map", "deployment_map", b"deployment_map"]) -> builtins.bool: ...
|
|
62
|
+
def ClearField(self, field_name: typing.Literal["deployment_id_to_deployment_spec_map", b"deployment_id_to_deployment_spec_map", "deployment_map", b"deployment_map"]) -> None: ...
|
|
63
|
+
def WhichOneof(self, oneof_group: typing.Literal["deployment_map", b"deployment_map"]) -> typing.Literal["deployment_id_to_deployment_spec_map"] | None: ...
|
|
64
|
+
|
|
65
|
+
global___EditModelDeploymentRequest = EditModelDeploymentRequest
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class DeploymentIdToDeploymentSpecMap(google.protobuf.message.Message):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class DeploymentsEntry(google.protobuf.message.Message):
|
|
73
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
74
|
+
|
|
75
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
76
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
77
|
+
key: builtins.str
|
|
78
|
+
@property
|
|
79
|
+
def value(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.deployment_pb2.Deployment: ...
|
|
80
|
+
def __init__(
|
|
81
|
+
self,
|
|
82
|
+
*,
|
|
83
|
+
key: builtins.str = ...,
|
|
84
|
+
value: frogml._proto.com.jfrog.ml.model.deployment.v1.deployment_pb2.Deployment | None = ...,
|
|
85
|
+
) -> None: ...
|
|
86
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
87
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
88
|
+
|
|
89
|
+
DEPLOYMENTS_FIELD_NUMBER: builtins.int
|
|
90
|
+
@property
|
|
91
|
+
def deployments(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, com.jfrog.ml.model.deployment.v1.deployment_pb2.Deployment]:
|
|
92
|
+
"""maps deployment id to requested spec to be updated"""
|
|
93
|
+
|
|
94
|
+
def __init__(
|
|
95
|
+
self,
|
|
96
|
+
*,
|
|
97
|
+
deployments: collections.abc.Mapping[builtins.str, com.jfrog.ml.model.deployment.v1.deployment_pb2.Deployment] | None = ...,
|
|
98
|
+
) -> None: ...
|
|
99
|
+
def ClearField(self, field_name: typing.Literal["deployments", b"deployments"]) -> None: ...
|
|
100
|
+
|
|
101
|
+
global___DeploymentIdToDeploymentSpecMap = DeploymentIdToDeploymentSpecMap
|
|
102
|
+
|
|
103
|
+
@typing.final
|
|
104
|
+
class EditModelDeploymentResponse(google.protobuf.message.Message):
|
|
105
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
106
|
+
|
|
107
|
+
def __init__(
|
|
108
|
+
self,
|
|
109
|
+
) -> None: ...
|
|
110
|
+
|
|
111
|
+
global___EditModelDeploymentResponse = EditModelDeploymentResponse
|
|
112
|
+
|
|
113
|
+
@typing.final
|
|
114
|
+
class UndeployModelRequest(google.protobuf.message.Message):
|
|
115
|
+
"""A request to take a Deployment offline."""
|
|
116
|
+
|
|
117
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
118
|
+
|
|
119
|
+
DEPLOYMENT_IDS_FIELD_NUMBER: builtins.int
|
|
120
|
+
@property
|
|
121
|
+
def deployment_ids(self) -> global___DeploymentIds:
|
|
122
|
+
"""deployment entity ids to undeploy."""
|
|
123
|
+
|
|
124
|
+
def __init__(
|
|
125
|
+
self,
|
|
126
|
+
*,
|
|
127
|
+
deployment_ids: global___DeploymentIds | None = ...,
|
|
128
|
+
) -> None: ...
|
|
129
|
+
def HasField(self, field_name: typing.Literal["deployment_identifiers", b"deployment_identifiers", "deployment_ids", b"deployment_ids"]) -> builtins.bool: ...
|
|
130
|
+
def ClearField(self, field_name: typing.Literal["deployment_identifiers", b"deployment_identifiers", "deployment_ids", b"deployment_ids"]) -> None: ...
|
|
131
|
+
def WhichOneof(self, oneof_group: typing.Literal["deployment_identifiers", b"deployment_identifiers"]) -> typing.Literal["deployment_ids"] | None: ...
|
|
132
|
+
|
|
133
|
+
global___UndeployModelRequest = UndeployModelRequest
|
|
134
|
+
|
|
135
|
+
@typing.final
|
|
136
|
+
class DeploymentIds(google.protobuf.message.Message):
|
|
137
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
138
|
+
|
|
139
|
+
DEPLOYMENT_ID_FIELD_NUMBER: builtins.int
|
|
140
|
+
@property
|
|
141
|
+
def deployment_id(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
142
|
+
def __init__(
|
|
143
|
+
self,
|
|
144
|
+
*,
|
|
145
|
+
deployment_id: collections.abc.Iterable[builtins.str] | None = ...,
|
|
146
|
+
) -> None: ...
|
|
147
|
+
def ClearField(self, field_name: typing.Literal["deployment_id", b"deployment_id"]) -> None: ...
|
|
148
|
+
|
|
149
|
+
global___DeploymentIds = DeploymentIds
|
|
150
|
+
|
|
151
|
+
@typing.final
|
|
152
|
+
class UndeployModelResponse(google.protobuf.message.Message):
|
|
153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
154
|
+
|
|
155
|
+
def __init__(
|
|
156
|
+
self,
|
|
157
|
+
) -> None: ...
|
|
158
|
+
|
|
159
|
+
global___UndeployModelResponse = UndeployModelResponse
|
|
160
|
+
|
|
161
|
+
@typing.final
|
|
162
|
+
class GetModelDeploymentRequest(google.protobuf.message.Message):
|
|
163
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
164
|
+
|
|
165
|
+
DEPLOYMENT_ID_FIELD_NUMBER: builtins.int
|
|
166
|
+
deployment_id: builtins.str
|
|
167
|
+
def __init__(
|
|
168
|
+
self,
|
|
169
|
+
*,
|
|
170
|
+
deployment_id: builtins.str = ...,
|
|
171
|
+
) -> None: ...
|
|
172
|
+
def ClearField(self, field_name: typing.Literal["deployment_id", b"deployment_id"]) -> None: ...
|
|
173
|
+
|
|
174
|
+
global___GetModelDeploymentRequest = GetModelDeploymentRequest
|
|
175
|
+
|
|
176
|
+
@typing.final
|
|
177
|
+
class GetModelDeploymentResponse(google.protobuf.message.Message):
|
|
178
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
179
|
+
|
|
180
|
+
MODEL_DEPLOYMENT_INFORMATION_FIELD_NUMBER: builtins.int
|
|
181
|
+
@property
|
|
182
|
+
def model_deployment_information(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.deployment_pb2.ModelDeploymentInformation: ...
|
|
183
|
+
def __init__(
|
|
184
|
+
self,
|
|
185
|
+
*,
|
|
186
|
+
model_deployment_information: frogml._proto.com.jfrog.ml.model.deployment.v1.deployment_pb2.ModelDeploymentInformation | None = ...,
|
|
187
|
+
) -> None: ...
|
|
188
|
+
def HasField(self, field_name: typing.Literal["model_deployment_information", b"model_deployment_information"]) -> builtins.bool: ...
|
|
189
|
+
def ClearField(self, field_name: typing.Literal["model_deployment_information", b"model_deployment_information"]) -> None: ...
|
|
190
|
+
|
|
191
|
+
global___GetModelDeploymentResponse = GetModelDeploymentResponse
|
|
192
|
+
|
|
193
|
+
@typing.final
|
|
194
|
+
class ListModelDeploymentsRequest(google.protobuf.message.Message):
|
|
195
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
196
|
+
|
|
197
|
+
MODEL_DEPLOYMENT_FILTER_FIELD_NUMBER: builtins.int
|
|
198
|
+
@property
|
|
199
|
+
def model_deployment_filter(self) -> frogml._proto.com.jfrog.ml.model.deployment.v1.model_deployment_filter_pb2.ModelDeploymentFilter: ...
|
|
200
|
+
def __init__(
|
|
201
|
+
self,
|
|
202
|
+
*,
|
|
203
|
+
model_deployment_filter: frogml._proto.com.jfrog.ml.model.deployment.v1.model_deployment_filter_pb2.ModelDeploymentFilter | None = ...,
|
|
204
|
+
) -> None: ...
|
|
205
|
+
def HasField(self, field_name: typing.Literal["model_deployment_filter", b"model_deployment_filter"]) -> builtins.bool: ...
|
|
206
|
+
def ClearField(self, field_name: typing.Literal["model_deployment_filter", b"model_deployment_filter"]) -> None: ...
|
|
207
|
+
|
|
208
|
+
global___ListModelDeploymentsRequest = ListModelDeploymentsRequest
|
|
209
|
+
|
|
210
|
+
@typing.final
|
|
211
|
+
class ListModelDeploymentsResponse(google.protobuf.message.Message):
|
|
212
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
213
|
+
|
|
214
|
+
MODEL_DEPLOYMENT_BRIEF_FIELD_NUMBER: builtins.int
|
|
215
|
+
@property
|
|
216
|
+
def model_deployment_brief(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[com.jfrog.ml.model.deployment.v1.model_deployment_brief_pb2.ModelDeploymentBrief]: ...
|
|
217
|
+
def __init__(
|
|
218
|
+
self,
|
|
219
|
+
*,
|
|
220
|
+
model_deployment_brief: collections.abc.Iterable[com.jfrog.ml.model.deployment.v1.model_deployment_brief_pb2.ModelDeploymentBrief] | None = ...,
|
|
221
|
+
) -> None: ...
|
|
222
|
+
def ClearField(self, field_name: typing.Literal["model_deployment_brief", b"model_deployment_brief"]) -> None: ...
|
|
223
|
+
|
|
224
|
+
global___ListModelDeploymentsResponse = ListModelDeploymentsResponse
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from frogml._proto.com.jfrog.ml.model.deployment.v1 import deployment_service_pb2 as com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ModelDeploymentServiceStub(object):
|
|
9
|
+
"""Management of Deployments in JML.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.DeployModel = channel.unary_unary(
|
|
19
|
+
'/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/DeployModel',
|
|
20
|
+
request_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.DeployModelRequest.SerializeToString,
|
|
21
|
+
response_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.DeployModelResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.UndeployModel = channel.unary_unary(
|
|
24
|
+
'/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/UndeployModel',
|
|
25
|
+
request_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.UndeployModelRequest.SerializeToString,
|
|
26
|
+
response_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.UndeployModelResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.EditModelDeployment = channel.unary_unary(
|
|
29
|
+
'/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/EditModelDeployment',
|
|
30
|
+
request_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.EditModelDeploymentRequest.SerializeToString,
|
|
31
|
+
response_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.EditModelDeploymentResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.GetModelDeployment = channel.unary_unary(
|
|
34
|
+
'/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/GetModelDeployment',
|
|
35
|
+
request_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.GetModelDeploymentRequest.SerializeToString,
|
|
36
|
+
response_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.GetModelDeploymentResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.ListModelDeployments = channel.unary_unary(
|
|
39
|
+
'/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/ListModelDeployments',
|
|
40
|
+
request_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.ListModelDeploymentsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.ListModelDeploymentsResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class ModelDeploymentServiceServicer(object):
|
|
46
|
+
"""Management of Deployments in JML.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def DeployModel(self, request, context):
|
|
50
|
+
"""Request a Deployment based on an image and return the Deployments ID.
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
def UndeployModel(self, request, context):
|
|
57
|
+
"""Request to take a previously created Deployment offline based on its ID -- Empty response
|
|
58
|
+
"""
|
|
59
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
60
|
+
context.set_details('Method not implemented!')
|
|
61
|
+
raise NotImplementedError('Method not implemented!')
|
|
62
|
+
|
|
63
|
+
def EditModelDeployment(self, request, context):
|
|
64
|
+
"""Request to modify a previously created Deployment based on its ID
|
|
65
|
+
"""
|
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
+
context.set_details('Method not implemented!')
|
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
|
+
|
|
70
|
+
def GetModelDeployment(self, request, context):
|
|
71
|
+
"""Get detailed information about a Deployment
|
|
72
|
+
"""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def ListModelDeployments(self, request, context):
|
|
78
|
+
"""List Brief descriptions of Deployments based on filters
|
|
79
|
+
"""
|
|
80
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
+
context.set_details('Method not implemented!')
|
|
82
|
+
raise NotImplementedError('Method not implemented!')
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def add_ModelDeploymentServiceServicer_to_server(servicer, server):
|
|
86
|
+
rpc_method_handlers = {
|
|
87
|
+
'DeployModel': grpc.unary_unary_rpc_method_handler(
|
|
88
|
+
servicer.DeployModel,
|
|
89
|
+
request_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.DeployModelRequest.FromString,
|
|
90
|
+
response_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.DeployModelResponse.SerializeToString,
|
|
91
|
+
),
|
|
92
|
+
'UndeployModel': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.UndeployModel,
|
|
94
|
+
request_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.UndeployModelRequest.FromString,
|
|
95
|
+
response_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.UndeployModelResponse.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'EditModelDeployment': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.EditModelDeployment,
|
|
99
|
+
request_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.EditModelDeploymentRequest.FromString,
|
|
100
|
+
response_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.EditModelDeploymentResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'GetModelDeployment': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.GetModelDeployment,
|
|
104
|
+
request_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.GetModelDeploymentRequest.FromString,
|
|
105
|
+
response_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.GetModelDeploymentResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'ListModelDeployments': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.ListModelDeployments,
|
|
109
|
+
request_deserializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.ListModelDeploymentsRequest.FromString,
|
|
110
|
+
response_serializer=com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.ListModelDeploymentsResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
}
|
|
113
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
114
|
+
'com.jfrog.ml.model.deployment.v1.ModelDeploymentService', rpc_method_handlers)
|
|
115
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# This class is part of an EXPERIMENTAL API.
|
|
119
|
+
class ModelDeploymentService(object):
|
|
120
|
+
"""Management of Deployments in JML.
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
@staticmethod
|
|
124
|
+
def DeployModel(request,
|
|
125
|
+
target,
|
|
126
|
+
options=(),
|
|
127
|
+
channel_credentials=None,
|
|
128
|
+
call_credentials=None,
|
|
129
|
+
insecure=False,
|
|
130
|
+
compression=None,
|
|
131
|
+
wait_for_ready=None,
|
|
132
|
+
timeout=None,
|
|
133
|
+
metadata=None):
|
|
134
|
+
return grpc.experimental.unary_unary(request, target, '/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/DeployModel',
|
|
135
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.DeployModelRequest.SerializeToString,
|
|
136
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.DeployModelResponse.FromString,
|
|
137
|
+
options, channel_credentials,
|
|
138
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
139
|
+
|
|
140
|
+
@staticmethod
|
|
141
|
+
def UndeployModel(request,
|
|
142
|
+
target,
|
|
143
|
+
options=(),
|
|
144
|
+
channel_credentials=None,
|
|
145
|
+
call_credentials=None,
|
|
146
|
+
insecure=False,
|
|
147
|
+
compression=None,
|
|
148
|
+
wait_for_ready=None,
|
|
149
|
+
timeout=None,
|
|
150
|
+
metadata=None):
|
|
151
|
+
return grpc.experimental.unary_unary(request, target, '/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/UndeployModel',
|
|
152
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.UndeployModelRequest.SerializeToString,
|
|
153
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.UndeployModelResponse.FromString,
|
|
154
|
+
options, channel_credentials,
|
|
155
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
156
|
+
|
|
157
|
+
@staticmethod
|
|
158
|
+
def EditModelDeployment(request,
|
|
159
|
+
target,
|
|
160
|
+
options=(),
|
|
161
|
+
channel_credentials=None,
|
|
162
|
+
call_credentials=None,
|
|
163
|
+
insecure=False,
|
|
164
|
+
compression=None,
|
|
165
|
+
wait_for_ready=None,
|
|
166
|
+
timeout=None,
|
|
167
|
+
metadata=None):
|
|
168
|
+
return grpc.experimental.unary_unary(request, target, '/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/EditModelDeployment',
|
|
169
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.EditModelDeploymentRequest.SerializeToString,
|
|
170
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.EditModelDeploymentResponse.FromString,
|
|
171
|
+
options, channel_credentials,
|
|
172
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
173
|
+
|
|
174
|
+
@staticmethod
|
|
175
|
+
def GetModelDeployment(request,
|
|
176
|
+
target,
|
|
177
|
+
options=(),
|
|
178
|
+
channel_credentials=None,
|
|
179
|
+
call_credentials=None,
|
|
180
|
+
insecure=False,
|
|
181
|
+
compression=None,
|
|
182
|
+
wait_for_ready=None,
|
|
183
|
+
timeout=None,
|
|
184
|
+
metadata=None):
|
|
185
|
+
return grpc.experimental.unary_unary(request, target, '/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/GetModelDeployment',
|
|
186
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.GetModelDeploymentRequest.SerializeToString,
|
|
187
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.GetModelDeploymentResponse.FromString,
|
|
188
|
+
options, channel_credentials,
|
|
189
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
190
|
+
|
|
191
|
+
@staticmethod
|
|
192
|
+
def ListModelDeployments(request,
|
|
193
|
+
target,
|
|
194
|
+
options=(),
|
|
195
|
+
channel_credentials=None,
|
|
196
|
+
call_credentials=None,
|
|
197
|
+
insecure=False,
|
|
198
|
+
compression=None,
|
|
199
|
+
wait_for_ready=None,
|
|
200
|
+
timeout=None,
|
|
201
|
+
metadata=None):
|
|
202
|
+
return grpc.experimental.unary_unary(request, target, '/com.jfrog.ml.model.deployment.v1.ModelDeploymentService/ListModelDeployments',
|
|
203
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.ListModelDeploymentsRequest.SerializeToString,
|
|
204
|
+
com_dot_jfrog_dot_ml_dot_model_dot_deployment_dot_v1_dot_deployment__service__pb2.ListModelDeploymentsResponse.FromString,
|
|
205
|
+
options, channel_credentials,
|
|
206
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: com/jfrog/ml/model/deployment/v1/environment_variables_configuration.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'\nJcom/jfrog/ml/model/deployment/v1/environment_variables_configuration.proto\x12 com.jfrog.ml.model.deployment.v1\"y\n!EnvironmentVariablesConfiguration\x12T\n\x15\x65nvironment_variables\x18\x01 \x03(\x0b\x32\x35.com.jfrog.ml.model.deployment.v1.EnvironmentVariable\"\xff\x01\n\x13\x45nvironmentVariable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12[\n\rliteral_value\x18\x02 \x01(\x0b\x32\x42.com.jfrog.ml.model.deployment.v1.EnvironmentVariableSourceLiteralH\x00\x12Y\n\x0csecret_value\x18\x03 \x01(\x0b\x32\x41.com.jfrog.ml.model.deployment.v1.EnvironmentVariableSourceSecretH\x00\x42\"\n environment_variable_source_type\"1\n EnvironmentVariableSourceLiteral\x12\r\n\x05value\x18\x01 \x01(\t\"6\n\x1f\x45nvironmentVariableSourceSecret\x12\x13\n\x0bsecret_name\x18\x01 \x01(\tB(\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.environment_variables_configuration_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['_ENVIRONMENTVARIABLESCONFIGURATION']._serialized_start=112
|
|
26
|
+
_globals['_ENVIRONMENTVARIABLESCONFIGURATION']._serialized_end=233
|
|
27
|
+
_globals['_ENVIRONMENTVARIABLE']._serialized_start=236
|
|
28
|
+
_globals['_ENVIRONMENTVARIABLE']._serialized_end=491
|
|
29
|
+
_globals['_ENVIRONMENTVARIABLESOURCELITERAL']._serialized_start=493
|
|
30
|
+
_globals['_ENVIRONMENTVARIABLESOURCELITERAL']._serialized_end=542
|
|
31
|
+
_globals['_ENVIRONMENTVARIABLESOURCESECRET']._serialized_start=544
|
|
32
|
+
_globals['_ENVIRONMENTVARIABLESOURCESECRET']._serialized_end=598
|
|
33
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,99 @@
|
|
|
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.message
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
@typing.final
|
|
16
|
+
class EnvironmentVariablesConfiguration(google.protobuf.message.Message):
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
ENVIRONMENT_VARIABLES_FIELD_NUMBER: builtins.int
|
|
20
|
+
@property
|
|
21
|
+
def environment_variables(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnvironmentVariable]:
|
|
22
|
+
"""Environment variables to set for the deployment."""
|
|
23
|
+
|
|
24
|
+
def __init__(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
environment_variables: collections.abc.Iterable[global___EnvironmentVariable] | None = ...,
|
|
28
|
+
) -> None: ...
|
|
29
|
+
def ClearField(self, field_name: typing.Literal["environment_variables", b"environment_variables"]) -> None: ...
|
|
30
|
+
|
|
31
|
+
global___EnvironmentVariablesConfiguration = EnvironmentVariablesConfiguration
|
|
32
|
+
|
|
33
|
+
@typing.final
|
|
34
|
+
class EnvironmentVariable(google.protobuf.message.Message):
|
|
35
|
+
"""Represents an Environment Variable to set."""
|
|
36
|
+
|
|
37
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
38
|
+
|
|
39
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
40
|
+
LITERAL_VALUE_FIELD_NUMBER: builtins.int
|
|
41
|
+
SECRET_VALUE_FIELD_NUMBER: builtins.int
|
|
42
|
+
name: builtins.str
|
|
43
|
+
"""The name of the Environment Variable"""
|
|
44
|
+
@property
|
|
45
|
+
def literal_value(self) -> global___EnvironmentVariableSourceLiteral:
|
|
46
|
+
"""Literal value to set as an environment variable"""
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def secret_value(self) -> global___EnvironmentVariableSourceSecret:
|
|
50
|
+
"""Secret value to set as an environment variable"""
|
|
51
|
+
|
|
52
|
+
def __init__(
|
|
53
|
+
self,
|
|
54
|
+
*,
|
|
55
|
+
name: builtins.str = ...,
|
|
56
|
+
literal_value: global___EnvironmentVariableSourceLiteral | None = ...,
|
|
57
|
+
secret_value: global___EnvironmentVariableSourceSecret | None = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def HasField(self, field_name: typing.Literal["environment_variable_source_type", b"environment_variable_source_type", "literal_value", b"literal_value", "secret_value", b"secret_value"]) -> builtins.bool: ...
|
|
60
|
+
def ClearField(self, field_name: typing.Literal["environment_variable_source_type", b"environment_variable_source_type", "literal_value", b"literal_value", "name", b"name", "secret_value", b"secret_value"]) -> None: ...
|
|
61
|
+
def WhichOneof(self, oneof_group: typing.Literal["environment_variable_source_type", b"environment_variable_source_type"]) -> typing.Literal["literal_value", "secret_value"] | None: ...
|
|
62
|
+
|
|
63
|
+
global___EnvironmentVariable = EnvironmentVariable
|
|
64
|
+
|
|
65
|
+
@typing.final
|
|
66
|
+
class EnvironmentVariableSourceLiteral(google.protobuf.message.Message):
|
|
67
|
+
"""An Environment variable sourced from a literal."""
|
|
68
|
+
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
|
+
|
|
71
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
72
|
+
value: builtins.str
|
|
73
|
+
"""The literal value that the environment variable should have."""
|
|
74
|
+
def __init__(
|
|
75
|
+
self,
|
|
76
|
+
*,
|
|
77
|
+
value: builtins.str = ...,
|
|
78
|
+
) -> None: ...
|
|
79
|
+
def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ...
|
|
80
|
+
|
|
81
|
+
global___EnvironmentVariableSourceLiteral = EnvironmentVariableSourceLiteral
|
|
82
|
+
|
|
83
|
+
@typing.final
|
|
84
|
+
class EnvironmentVariableSourceSecret(google.protobuf.message.Message):
|
|
85
|
+
"""An Environment variable sourced from a JML Secret."""
|
|
86
|
+
|
|
87
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
88
|
+
|
|
89
|
+
SECRET_NAME_FIELD_NUMBER: builtins.int
|
|
90
|
+
secret_name: builtins.str
|
|
91
|
+
"""The name of the JML Secret."""
|
|
92
|
+
def __init__(
|
|
93
|
+
self,
|
|
94
|
+
*,
|
|
95
|
+
secret_name: builtins.str = ...,
|
|
96
|
+
) -> None: ...
|
|
97
|
+
def ClearField(self, field_name: typing.Literal["secret_name", b"secret_name"]) -> None: ...
|
|
98
|
+
|
|
99
|
+
global___EnvironmentVariableSourceSecret = EnvironmentVariableSourceSecret
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: com/jfrog/ml/model/deployment/v1/model_artifact_identifier.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'\n@com/jfrog/ml/model/deployment/v1/model_artifact_identifier.proto\x12 com.jfrog.ml.model.deployment.v1\"\xf4\x01\n\x17ModelArtifactIdentifier\x12\x61\n\x17model_based_artifact_id\x18\x01 \x01(\x0b\x32>.com.jfrog.ml.model.deployment.v1.ModelBasedArtifactIdentifierH\x00\x12\x63\n\x18\x63ustom_model_artifact_id\x18\x02 \x01(\x0b\x32?.com.jfrog.ml.model.deployment.v1.CustomModelArtifactIdentifierH\x00\x42\x11\n\x0fidentifier_type\"w\n\x1cModelBasedArtifactIdentifier\x12\x16\n\x0emodel_group_id\x18\x01 \x01(\t\x12\x10\n\x08model_id\x18\x02 \x01(\t\x12\x12\n\nimage_path\x18\x03 \x01(\t\x12\x19\n\x11jfrog_project_key\x18\x04 \x01(\t\"v\n\x1d\x43ustomModelArtifactIdentifier\x12\x16\n\x0emodel_group_id\x18\x01 \x01(\t\x12\x10\n\x08model_id\x18\x02 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x03 \x01(\t\x12\x19\n\x11jfrog_project_key\x18\x04 \x01(\tB(\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.model_artifact_identifier_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['_MODELARTIFACTIDENTIFIER']._serialized_start=103
|
|
26
|
+
_globals['_MODELARTIFACTIDENTIFIER']._serialized_end=347
|
|
27
|
+
_globals['_MODELBASEDARTIFACTIDENTIFIER']._serialized_start=349
|
|
28
|
+
_globals['_MODELBASEDARTIFACTIDENTIFIER']._serialized_end=468
|
|
29
|
+
_globals['_CUSTOMMODELARTIFACTIDENTIFIER']._serialized_start=470
|
|
30
|
+
_globals['_CUSTOMMODELARTIFACTIDENTIFIER']._serialized_end=588
|
|
31
|
+
# @@protoc_insertion_point(module_scope)
|