frogml-core 0.0.44__py3-none-any.whl → 0.0.46__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_core/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  """Top-level package for frogml."""
2
2
 
3
3
  __author__ = "jfrog"
4
- __version__ = "0.0.44"
4
+ __version__ = "0.0.46"
5
5
 
6
6
  from frogml_core.inner.di_configuration import wire_dependencies
7
7
  from frogml_core.model.model_version_tracking import ( # noqa: F401,E501
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: frogml-core
3
- Version: 0.0.44
3
+ Version: 0.0.46
4
4
  Summary: frogml Core contains the necessary objects and communication tools for using the Jfrog ml Platform
5
5
  License: Apache-2.0
6
6
  Keywords: mlops,ml,deployment,serving,model
@@ -1,4 +1,4 @@
1
- frogml_core/__init__.py,sha256=mpUvgThoXhvUkPKkiIiydDsyjs7hizVka4Qna_Yu-6w,777
1
+ frogml_core/__init__.py,sha256=Myxbpn00uVlTUP0-qUzYEoj7uaUAUcal20Jn_wQOysM,777
2
2
  frogml_core/automations/__init__.py,sha256=j2gD15MN-xVWhI5rAFsDwhL0CIyICLNT0scXsKvNBkU,1547
3
3
  frogml_core/automations/automation_executions.py,sha256=xpOb9Dq8gPPGNQDJTvBBZbNz4woZDRZY0HqnLSu7pwU,3230
4
4
  frogml_core/automations/automations.py,sha256=GKEQyQMi8sxX5oZn62PaxPi0zD8IaJRjBkhczRJxHNs,13070
@@ -431,6 +431,12 @@ frogml_core/vector_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
431
431
  frogml_core/vector_store/utils/filter_utils.py,sha256=n80IlmS7lGelCNEpZ8o3rAHzrZpHc-3EykEd8tZoeAE,854
432
432
  frogml_core/vector_store/utils/upsert_utils.py,sha256=vqnyAJOl46WqpZMUiOa4I8Zf2CDIXQxR7wM4Z8rgooc,7517
433
433
  frogml_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
434
+ frogml_proto/jfml/hosting_gateway/v1/build_upload_url_pb2.py,sha256=dbxw7rgdWh38JDI7F1X6PFei4xvjAgsqKWihemdFyCs,2449
435
+ frogml_proto/jfml/hosting_gateway/v1/build_upload_url_pb2.pyi,sha256=HFrUIrEJFdKls7PhmadzZ-daVPV1i062w-71wPMMPa4,3116
436
+ frogml_proto/jfml/hosting_gateway/v1/build_upload_url_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
437
+ frogml_proto/jfml/hosting_gateway/v1/hosting_gateway_service_pb2.py,sha256=yOxiJNcuXeCaeTBLm5KlIpvp18S0RglzdJRFcHpTawc,3075
438
+ frogml_proto/jfml/hosting_gateway/v1/hosting_gateway_service_pb2.pyi,sha256=XV6h6X3zJnqXocbRvXqG_hr9AYAJJJVjExCgC5l7QBs,1729
439
+ frogml_proto/jfml/hosting_gateway/v1/hosting_gateway_service_pb2_grpc.py,sha256=tAHU1JMZ-5BODK4it2-yNAG6XzMGAmhoWcWoyeDjNAs,3277
434
440
  frogml_proto/jfml/model_version/v1/artifact_pb2.py,sha256=HjSD0Tp2XGxwMBnDzFAYhCBftaJwiJRoYSkTcr1pJyA,1973
435
441
  frogml_proto/jfml/model_version/v1/artifact_pb2.pyi,sha256=5CGU58qXOSbe0KSu0ovjIbXWrpS9r-PIvdq4qhqPQIc,1673
436
442
  frogml_proto/jfml/model_version/v1/artifact_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
@@ -575,8 +581,8 @@ frogml_proto/qwak/build_settings/build_settings_pb2_grpc.py,sha256=1oboBPFxaTEXt
575
581
  frogml_proto/qwak/builds/build_pb2.py,sha256=e1fecTsRZgEWlBtRoFP93yMPp-kbui0xozBCRPwptLE,15189
576
582
  frogml_proto/qwak/builds/build_pb2.pyi,sha256=YGGVicG6kMMQpYDT67WCoy4NJN5-iB1tLPnlIiDR4aw,25381
577
583
  frogml_proto/qwak/builds/build_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
578
- frogml_proto/qwak/builds/build_url_pb2.py,sha256=anKHqrZRH82uplaN_LvxRm3wIIaf9DDjh9AHQ1J1u70,5565
579
- frogml_proto/qwak/builds/build_url_pb2.pyi,sha256=IC0L3D7zg5vf_4U9Ubc-V4lLqviPknUaBKCCrVK6w9k,7299
584
+ frogml_proto/qwak/builds/build_url_pb2.py,sha256=fGRVl0cMS2U7oEFMGmj_4VxDNX2ZXV1TfdugG5sHY3s,5663
585
+ frogml_proto/qwak/builds/build_url_pb2.pyi,sha256=S-G1wACYvNpCrjiK64BOu1zNo9qQU94RYnpFQjjNKgA,8008
580
586
  frogml_proto/qwak/builds/build_url_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
581
587
  frogml_proto/qwak/builds/builds_orchestrator_service_pb2.py,sha256=1b9kaFQ3b5KXVZe6fnuxN9l3OdRqm3EZBrtSxWm9X-k,15687
582
588
  frogml_proto/qwak/builds/builds_orchestrator_service_pb2.pyi,sha256=3GGNRcoviu3BppOv8wWOkfYVvC96HYzOEu3Kqzhzj-A,12923
@@ -1019,6 +1025,6 @@ frogml_services_mock/mocks/workspace_manager_service_mock.py,sha256=WbOiWgOyr-xT
1019
1025
  frogml_services_mock/services_mock.py,sha256=_34z6rFCHFwcSni-9eyJlrH264xsL_QDNmG-EBv0zMc,20281
1020
1026
  frogml_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1021
1027
  frogml_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
1022
- frogml_core-0.0.44.dist-info/METADATA,sha256=k3xkBof6b6DjS8G3Mcwi21e662VqxxMrTpJGudZlo68,2004
1023
- frogml_core-0.0.44.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
1024
- frogml_core-0.0.44.dist-info/RECORD,,
1028
+ frogml_core-0.0.46.dist-info/METADATA,sha256=3vdwJyAVS5VG3_4KExHO5zCeL-51RnSngakZREPI-o8,2004
1029
+ frogml_core-0.0.46.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
1030
+ frogml_core-0.0.46.dist-info/RECORD,,
@@ -0,0 +1,44 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: frogml_proto.jfml.hosting_gateway/v1/build_upload_url.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import enum_type_wrapper
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import message as _message
9
+ from google.protobuf import reflection as _reflection
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ # @@protoc_insertion_point(imports)
12
+
13
+ _sym_db = _symbol_database.Default()
14
+
15
+
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.jfml/hosting_gateway/v1/build_upload_url.proto\x12\x17jfml.hosting_gateway.v1\"\xd3\x01\n\x18\x42uildUploadUrlParameters\x12\x10\n\x08model_id\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12\x11\n\ttag_value\x18\x03 \x01(\t\x12\x41\n\rartifact_type\x18\x04 \x01(\x0e\x32*.jfml.hosting_gateway.v1.BuildArtifactType\x12$\n\x1ause_cloud_provider_storage\x18\x05 \x01(\x08H\x00\x42\x17\n\x15\x63loud_provider_option*v\n\x11\x42uildArtifactType\x12\x19\n\x15INVALID_ARTIFACT_TYPE\x10\x00\x12\x16\n\x12\x44\x41TA_ARTIFACT_TYPE\x10\x01\x12\x16\n\x12\x46ILE_ARTIFACT_TYPE\x10\x02\x12\x16\n\x12\x43ODE_ARTIFACT_TYPE\x10\x03\x42\'\n#com.jfrog.ml.hosting_gateway.api.v1P\x01\x62\x06proto3')
19
+
20
+ _BUILDARTIFACTTYPE = DESCRIPTOR.enum_types_by_name['BuildArtifactType']
21
+ BuildArtifactType = enum_type_wrapper.EnumTypeWrapper(_BUILDARTIFACTTYPE)
22
+ INVALID_ARTIFACT_TYPE = 0
23
+ DATA_ARTIFACT_TYPE = 1
24
+ FILE_ARTIFACT_TYPE = 2
25
+ CODE_ARTIFACT_TYPE = 3
26
+
27
+
28
+ _BUILDUPLOADURLPARAMETERS = DESCRIPTOR.message_types_by_name['BuildUploadUrlParameters']
29
+ BuildUploadUrlParameters = _reflection.GeneratedProtocolMessageType('BuildUploadUrlParameters', (_message.Message,), {
30
+ 'DESCRIPTOR' : _BUILDUPLOADURLPARAMETERS,
31
+ '__module__' : 'jfml.hosting_gateway.v1.build_upload_url_pb2'
32
+ # @@protoc_insertion_point(class_scope:jfml.hosting_gateway.v1.BuildUploadUrlParameters)
33
+ })
34
+ _sym_db.RegisterMessage(BuildUploadUrlParameters)
35
+
36
+ if _descriptor._USE_C_DESCRIPTORS == False:
37
+
38
+ DESCRIPTOR._options = None
39
+ DESCRIPTOR._serialized_options = b'\n#com.jfrog.ml.hosting_gateway.api.v1P\001'
40
+ _BUILDARTIFACTTYPE._serialized_start=289
41
+ _BUILDARTIFACTTYPE._serialized_end=407
42
+ _BUILDUPLOADURLPARAMETERS._serialized_start=76
43
+ _BUILDUPLOADURLPARAMETERS._serialized_end=287
44
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,70 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.internal.enum_type_wrapper
8
+ import google.protobuf.message
9
+ import sys
10
+ import typing
11
+
12
+ if sys.version_info >= (3, 10):
13
+ import typing as typing_extensions
14
+ else:
15
+ import typing_extensions
16
+
17
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
+
19
+ class _BuildArtifactType:
20
+ ValueType = typing.NewType("ValueType", builtins.int)
21
+ V: typing_extensions.TypeAlias = ValueType
22
+
23
+ class _BuildArtifactTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BuildArtifactType.ValueType], builtins.type): # noqa: F821
24
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
25
+ INVALID_ARTIFACT_TYPE: _BuildArtifactType.ValueType # 0
26
+ DATA_ARTIFACT_TYPE: _BuildArtifactType.ValueType # 1
27
+ FILE_ARTIFACT_TYPE: _BuildArtifactType.ValueType # 2
28
+ CODE_ARTIFACT_TYPE: _BuildArtifactType.ValueType # 3
29
+
30
+ class BuildArtifactType(_BuildArtifactType, metaclass=_BuildArtifactTypeEnumTypeWrapper):
31
+ """build artifact Types"""
32
+
33
+ INVALID_ARTIFACT_TYPE: BuildArtifactType.ValueType # 0
34
+ DATA_ARTIFACT_TYPE: BuildArtifactType.ValueType # 1
35
+ FILE_ARTIFACT_TYPE: BuildArtifactType.ValueType # 2
36
+ CODE_ARTIFACT_TYPE: BuildArtifactType.ValueType # 3
37
+ global___BuildArtifactType = BuildArtifactType
38
+
39
+ class BuildUploadUrlParameters(google.protobuf.message.Message):
40
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
41
+
42
+ MODEL_ID_FIELD_NUMBER: builtins.int
43
+ BUILD_ID_FIELD_NUMBER: builtins.int
44
+ TAG_VALUE_FIELD_NUMBER: builtins.int
45
+ ARTIFACT_TYPE_FIELD_NUMBER: builtins.int
46
+ USE_CLOUD_PROVIDER_STORAGE_FIELD_NUMBER: builtins.int
47
+ model_id: builtins.str
48
+ """Model ID"""
49
+ build_id: builtins.str
50
+ """Build Id"""
51
+ tag_value: builtins.str
52
+ """Tag to save the artifact by"""
53
+ artifact_type: global___BuildArtifactType.ValueType
54
+ """The type of the artifact to upload"""
55
+ use_cloud_provider_storage: builtins.bool
56
+ """When true, will use the cloud provider URL"""
57
+ def __init__(
58
+ self,
59
+ *,
60
+ model_id: builtins.str = ...,
61
+ build_id: builtins.str = ...,
62
+ tag_value: builtins.str = ...,
63
+ artifact_type: global___BuildArtifactType.ValueType = ...,
64
+ use_cloud_provider_storage: builtins.bool = ...,
65
+ ) -> None: ...
66
+ def HasField(self, field_name: typing_extensions.Literal["cloud_provider_option", b"cloud_provider_option", "use_cloud_provider_storage", b"use_cloud_provider_storage"]) -> builtins.bool: ...
67
+ def ClearField(self, field_name: typing_extensions.Literal["artifact_type", b"artifact_type", "build_id", b"build_id", "cloud_provider_option", b"cloud_provider_option", "model_id", b"model_id", "tag_value", b"tag_value", "use_cloud_provider_storage", b"use_cloud_provider_storage"]) -> None: ...
68
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["cloud_provider_option", b"cloud_provider_option"]) -> typing_extensions.Literal["use_cloud_provider_storage"] | None: ...
69
+
70
+ global___BuildUploadUrlParameters = BuildUploadUrlParameters
@@ -0,0 +1,4 @@
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
+
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: frogml_proto.jfml.hosting_gateway/v1/hosting_gateway_service.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import message as _message
8
+ from google.protobuf import reflection as _reflection
9
+ from google.protobuf import symbol_database as _symbol_database
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from frogml_proto.jfml.hosting_gateway.v1 import build_upload_url_pb2 as jfml_dot_hosting__gateway_dot_v1_dot_build__upload__url__pb2
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5jfml/hosting_gateway/v1/hosting_gateway_service.proto\x12\x17jfml.hosting_gateway.v1\x1a.jfml/hosting_gateway/v1/build_upload_url.proto\"g\n\"GetBuildVersioningUploadURLRequest\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32\x31.jfml.hosting_gateway.v1.BuildUploadUrlParameters\"9\n#GetBuildVersioningUploadURLResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t2\xb2\x01\n\x15HostingGatewayService\x12\x98\x01\n\x1bGetBuildVersioningUploadURL\x12;.jfml.hosting_gateway.v1.GetBuildVersioningUploadURLRequest\x1a<.jfml.hosting_gateway.v1.GetBuildVersioningUploadURLResponseB\'\n#com.jfrog.ml.hosting_gateway.api.v1P\x01\x62\x06proto3')
19
+
20
+
21
+
22
+ _GETBUILDVERSIONINGUPLOADURLREQUEST = DESCRIPTOR.message_types_by_name['GetBuildVersioningUploadURLRequest']
23
+ _GETBUILDVERSIONINGUPLOADURLRESPONSE = DESCRIPTOR.message_types_by_name['GetBuildVersioningUploadURLResponse']
24
+ GetBuildVersioningUploadURLRequest = _reflection.GeneratedProtocolMessageType('GetBuildVersioningUploadURLRequest', (_message.Message,), {
25
+ 'DESCRIPTOR' : _GETBUILDVERSIONINGUPLOADURLREQUEST,
26
+ '__module__' : 'jfml.hosting_gateway.v1.hosting_gateway_service_pb2'
27
+ # @@protoc_insertion_point(class_scope:jfml.hosting_gateway.v1.GetBuildVersioningUploadURLRequest)
28
+ })
29
+ _sym_db.RegisterMessage(GetBuildVersioningUploadURLRequest)
30
+
31
+ GetBuildVersioningUploadURLResponse = _reflection.GeneratedProtocolMessageType('GetBuildVersioningUploadURLResponse', (_message.Message,), {
32
+ 'DESCRIPTOR' : _GETBUILDVERSIONINGUPLOADURLRESPONSE,
33
+ '__module__' : 'jfml.hosting_gateway.v1.hosting_gateway_service_pb2'
34
+ # @@protoc_insertion_point(class_scope:jfml.hosting_gateway.v1.GetBuildVersioningUploadURLResponse)
35
+ })
36
+ _sym_db.RegisterMessage(GetBuildVersioningUploadURLResponse)
37
+
38
+ _HOSTINGGATEWAYSERVICE = DESCRIPTOR.services_by_name['HostingGatewayService']
39
+ if _descriptor._USE_C_DESCRIPTORS == False:
40
+
41
+ DESCRIPTOR._options = None
42
+ DESCRIPTOR._serialized_options = b'\n#com.jfrog.ml.hosting_gateway.api.v1P\001'
43
+ _GETBUILDVERSIONINGUPLOADURLREQUEST._serialized_start=130
44
+ _GETBUILDVERSIONINGUPLOADURLREQUEST._serialized_end=233
45
+ _GETBUILDVERSIONINGUPLOADURLRESPONSE._serialized_start=235
46
+ _GETBUILDVERSIONINGUPLOADURLRESPONSE._serialized_end=292
47
+ _HOSTINGGATEWAYSERVICE._serialized_start=295
48
+ _HOSTINGGATEWAYSERVICE._serialized_end=473
49
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,48 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.message
8
+ import frogml_proto.jfml.hosting_gateway.v1.build_upload_url_pb2
9
+ import sys
10
+
11
+ if sys.version_info >= (3, 8):
12
+ import typing as typing_extensions
13
+ else:
14
+ import typing_extensions
15
+
16
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
17
+
18
+ class GetBuildVersioningUploadURLRequest(google.protobuf.message.Message):
19
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
20
+
21
+ PARAMS_FIELD_NUMBER: builtins.int
22
+ @property
23
+ def params(self) -> frogml_proto.jfml.hosting_gateway.v1.build_upload_url_pb2.BuildUploadUrlParameters:
24
+ """The params to define the url."""
25
+ def __init__(
26
+ self,
27
+ *,
28
+ params: frogml_proto.jfml.hosting_gateway.v1.build_upload_url_pb2.BuildUploadUrlParameters | None = ...,
29
+ ) -> None: ...
30
+ def HasField(self, field_name: typing_extensions.Literal["params", b"params"]) -> builtins.bool: ...
31
+ def ClearField(self, field_name: typing_extensions.Literal["params", b"params"]) -> None: ...
32
+
33
+ global___GetBuildVersioningUploadURLRequest = GetBuildVersioningUploadURLRequest
34
+
35
+ class GetBuildVersioningUploadURLResponse(google.protobuf.message.Message):
36
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
37
+
38
+ UPLOAD_URL_FIELD_NUMBER: builtins.int
39
+ upload_url: builtins.str
40
+ """Upload url intended for the upload"""
41
+ def __init__(
42
+ self,
43
+ *,
44
+ upload_url: builtins.str = ...,
45
+ ) -> None: ...
46
+ def ClearField(self, field_name: typing_extensions.Literal["upload_url", b"upload_url"]) -> None: ...
47
+
48
+ global___GetBuildVersioningUploadURLResponse = GetBuildVersioningUploadURLResponse
@@ -0,0 +1,67 @@
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.jfml.hosting_gateway.v1 import hosting_gateway_service_pb2 as jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2
6
+
7
+
8
+ class HostingGatewayServiceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.GetBuildVersioningUploadURL = channel.unary_unary(
18
+ '/jfml.hosting_gateway.v1.HostingGatewayService/GetBuildVersioningUploadURL',
19
+ request_serializer=jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2.GetBuildVersioningUploadURLRequest.SerializeToString,
20
+ response_deserializer=jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2.GetBuildVersioningUploadURLResponse.FromString,
21
+ )
22
+
23
+
24
+ class HostingGatewayServiceServicer(object):
25
+ """Missing associated documentation comment in .proto file."""
26
+
27
+ def GetBuildVersioningUploadURL(self, request, context):
28
+ """Request the service for a path ready for upload in purpose of uploading local model code or data
29
+ """
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_HostingGatewayServiceServicer_to_server(servicer, server):
36
+ rpc_method_handlers = {
37
+ 'GetBuildVersioningUploadURL': grpc.unary_unary_rpc_method_handler(
38
+ servicer.GetBuildVersioningUploadURL,
39
+ request_deserializer=jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2.GetBuildVersioningUploadURLRequest.FromString,
40
+ response_serializer=jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2.GetBuildVersioningUploadURLResponse.SerializeToString,
41
+ ),
42
+ }
43
+ generic_handler = grpc.method_handlers_generic_handler(
44
+ 'jfml.hosting_gateway.v1.HostingGatewayService', rpc_method_handlers)
45
+ server.add_generic_rpc_handlers((generic_handler,))
46
+
47
+
48
+ # This class is part of an EXPERIMENTAL API.
49
+ class HostingGatewayService(object):
50
+ """Missing associated documentation comment in .proto file."""
51
+
52
+ @staticmethod
53
+ def GetBuildVersioningUploadURL(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
+ return grpc.experimental.unary_unary(request, target, '/jfml.hosting_gateway.v1.HostingGatewayService/GetBuildVersioningUploadURL',
64
+ jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2.GetBuildVersioningUploadURLRequest.SerializeToString,
65
+ jfml_dot_hosting__gateway_dot_v1_dot_hosting__gateway__service__pb2.GetBuildVersioningUploadURLResponse.FromString,
66
+ options, channel_credentials,
67
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
15
15
 
16
16
 
17
17
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bqwak/builds/build_url.proto\x12\x18qwak.builds.orchestrator\"\xa8\x01\n\x18\x42uildVersioningUrlParams\x12\x10\n\x08model_id\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\x16\n\x0e\x65nvironment_id\x18\x04 \x01(\t\x12\x43\n\x08tag_type\x18\x05 \x01(\x0e\x32\x31.qwak.builds.orchestrator.BuildVersioningTagsType\"\xb5\x01\n\x13\x42uildVersioningTags\x12\x10\n\x08model_id\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12\x10\n\x04tags\x18\x03 \x03(\tB\x02\x18\x01\x12P\n\x0ftags_definition\x18\x04 \x03(\x0b\x32\x37.qwak.builds.orchestrator.BuildVersioningTagsDefinition\x12\x16\n\x0e\x65nvironment_id\x18\x05 \x01(\t\"n\n\x1d\x42uildVersioningTagsDefinition\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.qwak.builds.orchestrator.BuildVersioningTagsType\"\xf8\x01\n\x1d\x42uildVersioningTagsProperties\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x14\n\x0c\x64ownload_url\x18\x02 \x01(\t\x12\x11\n\tfile_size\x18\x03 \x01(\x03\x12\x43\n\x08tag_type\x18\x04 \x01(\x0e\x32\x31.qwak.builds.orchestrator.BuildVersioningTagsType\x12\x44\n\x15\x65xternal_download_url\x18\x05 \x01(\x0b\x32%.qwak.builds.orchestrator.ExternalUrl\x12\x16\n\x0eui_direct_link\x18\x06 \x01(\t\"5\n\x0b\x45xternalUrl\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x19\n\x11original_hostname\x18\x02 \x01(\t*h\n\x17\x42uildVersioningTagsType\x12\x14\n\x10INVALID_TAG_TYPE\x10\x00\x12\x11\n\rDATA_TAG_TYPE\x10\x01\x12\x11\n\rFILE_TAG_TYPE\x10\x02\x12\x11\n\rCODE_TAG_TYPE\x10\x03\x42\'\n#com.qwak.ai.builds.orchestrator.apiP\x01\x62\x06proto3')
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bqwak/builds/build_url.proto\x12\x18qwak.builds.orchestrator\"\xe7\x01\n\x18\x42uildVersioningUrlParams\x12\x10\n\x08model_id\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\x16\n\x0e\x65nvironment_id\x18\x04 \x01(\t\x12\x43\n\x08tag_type\x18\x05 \x01(\x0e\x32\x31.qwak.builds.orchestrator.BuildVersioningTagsType\x12$\n\x1ause_cloud_provider_storage\x18\x06 \x01(\x08H\x00\x42\x17\n\x15\x63loud_provider_option\"\xb5\x01\n\x13\x42uildVersioningTags\x12\x10\n\x08model_id\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12\x10\n\x04tags\x18\x03 \x03(\tB\x02\x18\x01\x12P\n\x0ftags_definition\x18\x04 \x03(\x0b\x32\x37.qwak.builds.orchestrator.BuildVersioningTagsDefinition\x12\x16\n\x0e\x65nvironment_id\x18\x05 \x01(\t\"n\n\x1d\x42uildVersioningTagsDefinition\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.qwak.builds.orchestrator.BuildVersioningTagsType\"\xf8\x01\n\x1d\x42uildVersioningTagsProperties\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x14\n\x0c\x64ownload_url\x18\x02 \x01(\t\x12\x11\n\tfile_size\x18\x03 \x01(\x03\x12\x43\n\x08tag_type\x18\x04 \x01(\x0e\x32\x31.qwak.builds.orchestrator.BuildVersioningTagsType\x12\x44\n\x15\x65xternal_download_url\x18\x05 \x01(\x0b\x32%.qwak.builds.orchestrator.ExternalUrl\x12\x16\n\x0eui_direct_link\x18\x06 \x01(\t\"5\n\x0b\x45xternalUrl\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x19\n\x11original_hostname\x18\x02 \x01(\t*h\n\x17\x42uildVersioningTagsType\x12\x14\n\x10INVALID_TAG_TYPE\x10\x00\x12\x11\n\rDATA_TAG_TYPE\x10\x01\x12\x11\n\rFILE_TAG_TYPE\x10\x02\x12\x11\n\rCODE_TAG_TYPE\x10\x03\x42\'\n#com.qwak.ai.builds.orchestrator.apiP\x01\x62\x06proto3')
19
19
 
20
20
  _BUILDVERSIONINGTAGSTYPE = DESCRIPTOR.enum_types_by_name['BuildVersioningTagsType']
21
21
  BuildVersioningTagsType = enum_type_wrapper.EnumTypeWrapper(_BUILDVERSIONINGTAGSTYPE)
@@ -71,16 +71,16 @@ if _descriptor._USE_C_DESCRIPTORS == False:
71
71
  DESCRIPTOR._serialized_options = b'\n#com.qwak.ai.builds.orchestrator.apiP\001'
72
72
  _BUILDVERSIONINGTAGS.fields_by_name['tags']._options = None
73
73
  _BUILDVERSIONINGTAGS.fields_by_name['tags']._serialized_options = b'\030\001'
74
- _BUILDVERSIONINGTAGSTYPE._serialized_start=830
75
- _BUILDVERSIONINGTAGSTYPE._serialized_end=934
74
+ _BUILDVERSIONINGTAGSTYPE._serialized_start=893
75
+ _BUILDVERSIONINGTAGSTYPE._serialized_end=997
76
76
  _BUILDVERSIONINGURLPARAMS._serialized_start=58
77
- _BUILDVERSIONINGURLPARAMS._serialized_end=226
78
- _BUILDVERSIONINGTAGS._serialized_start=229
79
- _BUILDVERSIONINGTAGS._serialized_end=410
80
- _BUILDVERSIONINGTAGSDEFINITION._serialized_start=412
81
- _BUILDVERSIONINGTAGSDEFINITION._serialized_end=522
82
- _BUILDVERSIONINGTAGSPROPERTIES._serialized_start=525
83
- _BUILDVERSIONINGTAGSPROPERTIES._serialized_end=773
84
- _EXTERNALURL._serialized_start=775
85
- _EXTERNALURL._serialized_end=828
77
+ _BUILDVERSIONINGURLPARAMS._serialized_end=289
78
+ _BUILDVERSIONINGTAGS._serialized_start=292
79
+ _BUILDVERSIONINGTAGS._serialized_end=473
80
+ _BUILDVERSIONINGTAGSDEFINITION._serialized_start=475
81
+ _BUILDVERSIONINGTAGSDEFINITION._serialized_end=585
82
+ _BUILDVERSIONINGTAGSPROPERTIES._serialized_start=588
83
+ _BUILDVERSIONINGTAGSPROPERTIES._serialized_end=836
84
+ _EXTERNALURL._serialized_start=838
85
+ _EXTERNALURL._serialized_end=891
86
86
  # @@protoc_insertion_point(module_scope)
@@ -46,6 +46,7 @@ class BuildVersioningUrlParams(google.protobuf.message.Message):
46
46
  TAG_FIELD_NUMBER: builtins.int
47
47
  ENVIRONMENT_ID_FIELD_NUMBER: builtins.int
48
48
  TAG_TYPE_FIELD_NUMBER: builtins.int
49
+ USE_CLOUD_PROVIDER_STORAGE_FIELD_NUMBER: builtins.int
49
50
  model_id: builtins.str
50
51
  """Model ID"""
51
52
  build_id: builtins.str
@@ -56,6 +57,8 @@ class BuildVersioningUrlParams(google.protobuf.message.Message):
56
57
  """Environment to save the artifact under"""
57
58
  tag_type: global___BuildVersioningTagsType.ValueType
58
59
  """The type of the tags"""
60
+ use_cloud_provider_storage: builtins.bool
61
+ """When true, will use the cloud provider URL"""
59
62
  def __init__(
60
63
  self,
61
64
  *,
@@ -64,8 +67,11 @@ class BuildVersioningUrlParams(google.protobuf.message.Message):
64
67
  tag: builtins.str = ...,
65
68
  environment_id: builtins.str = ...,
66
69
  tag_type: global___BuildVersioningTagsType.ValueType = ...,
70
+ use_cloud_provider_storage: builtins.bool = ...,
67
71
  ) -> None: ...
68
- def ClearField(self, field_name: typing_extensions.Literal["build_id", b"build_id", "environment_id", b"environment_id", "model_id", b"model_id", "tag", b"tag", "tag_type", b"tag_type"]) -> None: ...
72
+ def HasField(self, field_name: typing_extensions.Literal["cloud_provider_option", b"cloud_provider_option", "use_cloud_provider_storage", b"use_cloud_provider_storage"]) -> builtins.bool: ...
73
+ def ClearField(self, field_name: typing_extensions.Literal["build_id", b"build_id", "cloud_provider_option", b"cloud_provider_option", "environment_id", b"environment_id", "model_id", b"model_id", "tag", b"tag", "tag_type", b"tag_type", "use_cloud_provider_storage", b"use_cloud_provider_storage"]) -> None: ...
74
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["cloud_provider_option", b"cloud_provider_option"]) -> typing_extensions.Literal["use_cloud_provider_storage"] | None: ...
69
75
 
70
76
  global___BuildVersioningUrlParams = BuildVersioningUrlParams
71
77