frogml 1.2.32__py3-none-any.whl → 1.2.34__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/qwak/fitness_service/fitness_pb2.py +3 -8
- frogml/_proto/qwak/fitness_service/fitness_pb2.pyi +0 -98
- frogml/_proto/qwak/fitness_service/status_pb2.py +13 -22
- frogml/_proto/qwak/fitness_service/status_pb2.pyi +0 -128
- {frogml-1.2.32.dist-info → frogml-1.2.34.dist-info}/METADATA +1 -1
- {frogml-1.2.32.dist-info → frogml-1.2.34.dist-info}/RECORD +8 -11
- frogml/_proto/qwak/fitness_service/fitness_service_pb2.py +0 -45
- frogml/_proto/qwak/fitness_service/fitness_service_pb2.pyi +0 -126
- frogml/_proto/qwak/fitness_service/fitness_service_pb2_grpc.py +0 -169
- {frogml-1.2.32.dist-info → frogml-1.2.34.dist-info}/WHEEL +0 -0
frogml/__init__.py
CHANGED
|
@@ -12,10 +12,9 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_sym_db = _symbol_database.Default()
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
from frogml._proto.qwak.fitness_service import constructs_pb2 as qwak_dot_fitness__service_dot_constructs__pb2
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"qwak/fitness_service/fitness.proto\x12\x14qwak.fitness.service
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"qwak/fitness_service/fitness.proto\x12\x14qwak.fitness.service*e\n\x0ePurchaseOption\x12\x1b\n\x17INVALID_PURCHASE_OPTION\x10\x00\x12\x18\n\x14SPOT_PURCHASE_OPTION\x10\x01\x12\x1c\n\x18ONDEMAND_PURCHASE_OPTION\x10\x02\x42#\n\x1f\x63om.qwak.ai.fitness.service.apiP\x01\x62\x06proto3')
|
|
19
18
|
|
|
20
19
|
_globals = globals()
|
|
21
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,10 +22,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.fitness_service.fitnes
|
|
|
23
22
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
23
|
_globals['DESCRIPTOR']._options = None
|
|
25
24
|
_globals['DESCRIPTOR']._serialized_options = b'\n\037com.qwak.ai.fitness.service.apiP\001'
|
|
26
|
-
_globals['_PURCHASEOPTION']._serialized_start=
|
|
27
|
-
_globals['_PURCHASEOPTION']._serialized_end=
|
|
28
|
-
_globals['_BUILDSPEC']._serialized_start=100
|
|
29
|
-
_globals['_BUILDSPEC']._serialized_end=686
|
|
30
|
-
_globals['_BUILDPROPERTIESV1']._serialized_start=688
|
|
31
|
-
_globals['_BUILDPROPERTIESV1']._serialized_end=791
|
|
25
|
+
_globals['_PURCHASEOPTION']._serialized_start=60
|
|
26
|
+
_globals['_PURCHASEOPTION']._serialized_end=161
|
|
32
27
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -6,8 +6,6 @@ isort:skip_file
|
|
|
6
6
|
import builtins
|
|
7
7
|
import google.protobuf.descriptor
|
|
8
8
|
import google.protobuf.internal.enum_type_wrapper
|
|
9
|
-
import google.protobuf.message
|
|
10
|
-
import frogml._proto.qwak.fitness_service.constructs_pb2
|
|
11
9
|
import sys
|
|
12
10
|
import typing
|
|
13
11
|
|
|
@@ -34,99 +32,3 @@ INVALID_PURCHASE_OPTION: PurchaseOption.ValueType # 0
|
|
|
34
32
|
SPOT_PURCHASE_OPTION: PurchaseOption.ValueType # 1
|
|
35
33
|
ONDEMAND_PURCHASE_OPTION: PurchaseOption.ValueType # 2
|
|
36
34
|
global___PurchaseOption = PurchaseOption
|
|
37
|
-
|
|
38
|
-
@typing.final
|
|
39
|
-
class BuildSpec(google.protobuf.message.Message):
|
|
40
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
41
|
-
|
|
42
|
-
BUILD_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
43
|
-
BUILD_ENV_FIELD_NUMBER: builtins.int
|
|
44
|
-
CPU_RESOURCES_FIELD_NUMBER: builtins.int
|
|
45
|
-
GPU_RESOURCES_FIELD_NUMBER: builtins.int
|
|
46
|
-
VERBOSE_FIELD_NUMBER: builtins.int
|
|
47
|
-
BUILD_CONFIG_FIELD_NUMBER: builtins.int
|
|
48
|
-
BUILD_V1_FLAG_FIELD_NUMBER: builtins.int
|
|
49
|
-
BUILD_PROPERTIES_V1_FIELD_NUMBER: builtins.int
|
|
50
|
-
PURCHASE_OPTION_FIELD_NUMBER: builtins.int
|
|
51
|
-
BUILD_DESTINED_IMAGE_FIELD_NUMBER: builtins.int
|
|
52
|
-
PROVISION_INSTANCE_TIMEOUT_FIELD_NUMBER: builtins.int
|
|
53
|
-
ARTIFACTORY_PROJECT_KEY_FIELD_NUMBER: builtins.int
|
|
54
|
-
ARTIFACTORY_BASE_URL_FIELD_NUMBER: builtins.int
|
|
55
|
-
verbose: builtins.int
|
|
56
|
-
"""Logs verbose mode 0: warning, 1: info, 2: debug (by qwak.tools.logger.py VERBOSITY_LEVEL_MAPPING from frogml._proto.qwak.sdk)"""
|
|
57
|
-
build_config: builtins.str
|
|
58
|
-
"""replace the config passed as proto json format"""
|
|
59
|
-
build_v1_flag: builtins.bool
|
|
60
|
-
"""Build v1 flag"""
|
|
61
|
-
purchase_option: global___PurchaseOption.ValueType
|
|
62
|
-
"""Purchase Option"""
|
|
63
|
-
build_destined_image: builtins.str
|
|
64
|
-
"""The image name to save build to"""
|
|
65
|
-
provision_instance_timeout: builtins.int
|
|
66
|
-
"""The image name to save build to"""
|
|
67
|
-
artifactory_project_key: builtins.str
|
|
68
|
-
"""artifactory project key"""
|
|
69
|
-
artifactory_base_url: builtins.str
|
|
70
|
-
"""artifactory base url"""
|
|
71
|
-
@property
|
|
72
|
-
def build_properties(self) -> frogml._proto.qwak.fitness_service.constructs_pb2.BuildProperties: ...
|
|
73
|
-
@property
|
|
74
|
-
def build_env(self) -> frogml._proto.qwak.fitness_service.constructs_pb2.BuildEnv: ...
|
|
75
|
-
@property
|
|
76
|
-
def cpu_resources(self) -> frogml._proto.qwak.fitness_service.constructs_pb2.CpuResources:
|
|
77
|
-
"""CPU Properties"""
|
|
78
|
-
|
|
79
|
-
@property
|
|
80
|
-
def gpu_resources(self) -> frogml._proto.qwak.fitness_service.constructs_pb2.GpuResources:
|
|
81
|
-
"""GPU Properties"""
|
|
82
|
-
|
|
83
|
-
@property
|
|
84
|
-
def build_properties_v1(self) -> global___BuildPropertiesV1:
|
|
85
|
-
"""Build Properties V1"""
|
|
86
|
-
|
|
87
|
-
def __init__(
|
|
88
|
-
self,
|
|
89
|
-
*,
|
|
90
|
-
build_properties: frogml._proto.qwak.fitness_service.constructs_pb2.BuildProperties | None = ...,
|
|
91
|
-
build_env: frogml._proto.qwak.fitness_service.constructs_pb2.BuildEnv | None = ...,
|
|
92
|
-
cpu_resources: frogml._proto.qwak.fitness_service.constructs_pb2.CpuResources | None = ...,
|
|
93
|
-
gpu_resources: frogml._proto.qwak.fitness_service.constructs_pb2.GpuResources | None = ...,
|
|
94
|
-
verbose: builtins.int = ...,
|
|
95
|
-
build_config: builtins.str = ...,
|
|
96
|
-
build_v1_flag: builtins.bool = ...,
|
|
97
|
-
build_properties_v1: global___BuildPropertiesV1 | None = ...,
|
|
98
|
-
purchase_option: global___PurchaseOption.ValueType = ...,
|
|
99
|
-
build_destined_image: builtins.str = ...,
|
|
100
|
-
provision_instance_timeout: builtins.int = ...,
|
|
101
|
-
artifactory_project_key: builtins.str = ...,
|
|
102
|
-
artifactory_base_url: builtins.str = ...,
|
|
103
|
-
) -> None: ...
|
|
104
|
-
def HasField(self, field_name: typing.Literal["Resources", b"Resources", "build_env", b"build_env", "build_properties", b"build_properties", "build_properties_v1", b"build_properties_v1", "cpu_resources", b"cpu_resources", "gpu_resources", b"gpu_resources"]) -> builtins.bool: ...
|
|
105
|
-
def ClearField(self, field_name: typing.Literal["Resources", b"Resources", "artifactory_base_url", b"artifactory_base_url", "artifactory_project_key", b"artifactory_project_key", "build_config", b"build_config", "build_destined_image", b"build_destined_image", "build_env", b"build_env", "build_properties", b"build_properties", "build_properties_v1", b"build_properties_v1", "build_v1_flag", b"build_v1_flag", "cpu_resources", b"cpu_resources", "gpu_resources", b"gpu_resources", "provision_instance_timeout", b"provision_instance_timeout", "purchase_option", b"purchase_option", "verbose", b"verbose"]) -> None: ...
|
|
106
|
-
def WhichOneof(self, oneof_group: typing.Literal["Resources", b"Resources"]) -> typing.Literal["cpu_resources", "gpu_resources"] | None: ...
|
|
107
|
-
|
|
108
|
-
global___BuildSpec = BuildSpec
|
|
109
|
-
|
|
110
|
-
@typing.final
|
|
111
|
-
class BuildPropertiesV1(google.protobuf.message.Message):
|
|
112
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
113
|
-
|
|
114
|
-
BUILD_CONFIG_URL_FIELD_NUMBER: builtins.int
|
|
115
|
-
QWAK_SDK_WHEEL_URL_FIELD_NUMBER: builtins.int
|
|
116
|
-
QWAK_SDK_VERSION_URL_FIELD_NUMBER: builtins.int
|
|
117
|
-
build_config_url: builtins.str
|
|
118
|
-
"""Build V1 - build config url"""
|
|
119
|
-
qwak_sdk_wheel_url: builtins.str
|
|
120
|
-
"""Build V1 - qwak-sdk wheel url"""
|
|
121
|
-
qwak_sdk_version_url: builtins.str
|
|
122
|
-
"""Build V1 - qwak-sdk version"""
|
|
123
|
-
def __init__(
|
|
124
|
-
self,
|
|
125
|
-
*,
|
|
126
|
-
build_config_url: builtins.str = ...,
|
|
127
|
-
qwak_sdk_wheel_url: builtins.str = ...,
|
|
128
|
-
qwak_sdk_version_url: builtins.str = ...,
|
|
129
|
-
) -> None: ...
|
|
130
|
-
def ClearField(self, field_name: typing.Literal["build_config_url", b"build_config_url", "qwak_sdk_version_url", b"qwak_sdk_version_url", "qwak_sdk_wheel_url", b"qwak_sdk_wheel_url"]) -> None: ...
|
|
131
|
-
|
|
132
|
-
global___BuildPropertiesV1 = BuildPropertiesV1
|
|
@@ -12,10 +12,9 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_sym_db = _symbol_database.Default()
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!qwak/fitness_service/status.proto\x12\x14qwak.fitness.service\
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!qwak/fitness_service/status.proto\x12\x14qwak.fitness.service\"\xa2\x01\n\tPodStatus\x12\x41\n\x12\x63ontainer_statuses\x18\x01 \x03(\x0b\x32%.qwak.fitness.service.ContainerStatus\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\r\n\x05phase\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x12\n\nstart_time\x18\x05 \x01(\t\x12\x0e\n\x06pod_id\x18\x06 \x01(\t\"\x9d\x01\n\x0f\x43ontainerStatus\x12\x14\n\x0c\x63ontainer_id\x18\x01 \x01(\t\x12\r\n\x05image\x18\x02 \x01(\t\x12\x15\n\rrestart_count\x18\x03 \x01(\x05\x12\x0f\n\x07started\x18\x04 \x01(\x08\x12=\n\x0f\x63ontainer_state\x18\x05 \x01(\x0b\x32$.qwak.fitness.service.ContainerState\"\x8f\x02\n\x0e\x43ontainerState\x12N\n\x17\x63ontainer_state_running\x18\x01 \x01(\x0b\x32+.qwak.fitness.service.ContainerStateRunningH\x00\x12T\n\x1a\x63ontainer_state_terminated\x18\x02 \x01(\x0b\x32..qwak.fitness.service.ContainerStateTerminatedH\x00\x12N\n\x17\x63ontainer_state_waiting\x18\x03 \x01(\x0b\x32+.qwak.fitness.service.ContainerStateWaitingH\x00\x42\x07\n\x05state\"+\n\x15\x43ontainerStateRunning\x12\x12\n\nstarted_at\x18\x01 \x01(\t\"\x9d\x01\n\x18\x43ontainerStateTerminated\x12\x14\n\x0c\x63ontainer_id\x18\x01 \x01(\t\x12\x11\n\texit_code\x18\x02 \x01(\x05\x12\x13\n\x0b\x66inished_at\x18\x03 \x01(\t\x12\x0f\n\x07message\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x0e\n\x06signal\x18\x06 \x01(\x05\x12\x12\n\nstarted_at\x18\x07 \x01(\t\"8\n\x15\x43ontainerStateWaiting\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\tB#\n\x1f\x63om.qwak.ai.fitness.service.apiP\x01\x62\x06proto3')
|
|
19
18
|
|
|
20
19
|
_globals = globals()
|
|
21
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,24 +22,16 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.fitness_service.status
|
|
|
23
22
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
23
|
_globals['DESCRIPTOR']._options = None
|
|
25
24
|
_globals['DESCRIPTOR']._serialized_options = b'\n\037com.qwak.ai.fitness.service.apiP\001'
|
|
26
|
-
_globals['
|
|
27
|
-
_globals['
|
|
28
|
-
_globals['
|
|
29
|
-
_globals['
|
|
30
|
-
_globals['
|
|
31
|
-
_globals['
|
|
32
|
-
_globals['
|
|
33
|
-
_globals['
|
|
34
|
-
_globals['
|
|
35
|
-
_globals['
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['_CONTAINERSTATE']._serialized_start=806
|
|
39
|
-
_globals['_CONTAINERSTATE']._serialized_end=1077
|
|
40
|
-
_globals['_CONTAINERSTATERUNNING']._serialized_start=1079
|
|
41
|
-
_globals['_CONTAINERSTATERUNNING']._serialized_end=1122
|
|
42
|
-
_globals['_CONTAINERSTATETERMINATED']._serialized_start=1125
|
|
43
|
-
_globals['_CONTAINERSTATETERMINATED']._serialized_end=1282
|
|
44
|
-
_globals['_CONTAINERSTATEWAITING']._serialized_start=1284
|
|
45
|
-
_globals['_CONTAINERSTATEWAITING']._serialized_end=1340
|
|
25
|
+
_globals['_PODSTATUS']._serialized_start=60
|
|
26
|
+
_globals['_PODSTATUS']._serialized_end=222
|
|
27
|
+
_globals['_CONTAINERSTATUS']._serialized_start=225
|
|
28
|
+
_globals['_CONTAINERSTATUS']._serialized_end=382
|
|
29
|
+
_globals['_CONTAINERSTATE']._serialized_start=385
|
|
30
|
+
_globals['_CONTAINERSTATE']._serialized_end=656
|
|
31
|
+
_globals['_CONTAINERSTATERUNNING']._serialized_start=658
|
|
32
|
+
_globals['_CONTAINERSTATERUNNING']._serialized_end=701
|
|
33
|
+
_globals['_CONTAINERSTATETERMINATED']._serialized_start=704
|
|
34
|
+
_globals['_CONTAINERSTATETERMINATED']._serialized_end=861
|
|
35
|
+
_globals['_CONTAINERSTATEWAITING']._serialized_start=863
|
|
36
|
+
_globals['_CONTAINERSTATEWAITING']._serialized_end=919
|
|
46
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -7,139 +7,11 @@ import builtins
|
|
|
7
7
|
import collections.abc
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
9
|
import google.protobuf.internal.containers
|
|
10
|
-
import google.protobuf.internal.enum_type_wrapper
|
|
11
10
|
import google.protobuf.message
|
|
12
|
-
import sys
|
|
13
11
|
import typing
|
|
14
12
|
|
|
15
|
-
if sys.version_info >= (3, 10):
|
|
16
|
-
import typing as typing_extensions
|
|
17
|
-
else:
|
|
18
|
-
import typing_extensions
|
|
19
|
-
|
|
20
13
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
21
14
|
|
|
22
|
-
class _RemoteBuildingStatusCode:
|
|
23
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
24
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
25
|
-
|
|
26
|
-
class _RemoteBuildingStatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RemoteBuildingStatusCode.ValueType], builtins.type):
|
|
27
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
28
|
-
INVALID_STATUS: _RemoteBuildingStatusCode.ValueType # 0
|
|
29
|
-
"""Invalid remote build status"""
|
|
30
|
-
INITIALIZING: _RemoteBuildingStatusCode.ValueType # 1
|
|
31
|
-
"""Setting up remote build"""
|
|
32
|
-
IN_PROGRESS: _RemoteBuildingStatusCode.ValueType # 2
|
|
33
|
-
"""Running remote build"""
|
|
34
|
-
SUCCESSFUL: _RemoteBuildingStatusCode.ValueType # 3
|
|
35
|
-
"""Successful remote build"""
|
|
36
|
-
FAILED: _RemoteBuildingStatusCode.ValueType # 4
|
|
37
|
-
"""Failed remote build"""
|
|
38
|
-
CANCELLED: _RemoteBuildingStatusCode.ValueType # 5
|
|
39
|
-
"""Cancelled remote build"""
|
|
40
|
-
TIMED_OUT: _RemoteBuildingStatusCode.ValueType # 6
|
|
41
|
-
"""Timed out while pending remote build"""
|
|
42
|
-
UNKNOWN: _RemoteBuildingStatusCode.ValueType # 7
|
|
43
|
-
"""The status is unknown"""
|
|
44
|
-
|
|
45
|
-
class RemoteBuildingStatusCode(_RemoteBuildingStatusCode, metaclass=_RemoteBuildingStatusCodeEnumTypeWrapper): ...
|
|
46
|
-
|
|
47
|
-
INVALID_STATUS: RemoteBuildingStatusCode.ValueType # 0
|
|
48
|
-
"""Invalid remote build status"""
|
|
49
|
-
INITIALIZING: RemoteBuildingStatusCode.ValueType # 1
|
|
50
|
-
"""Setting up remote build"""
|
|
51
|
-
IN_PROGRESS: RemoteBuildingStatusCode.ValueType # 2
|
|
52
|
-
"""Running remote build"""
|
|
53
|
-
SUCCESSFUL: RemoteBuildingStatusCode.ValueType # 3
|
|
54
|
-
"""Successful remote build"""
|
|
55
|
-
FAILED: RemoteBuildingStatusCode.ValueType # 4
|
|
56
|
-
"""Failed remote build"""
|
|
57
|
-
CANCELLED: RemoteBuildingStatusCode.ValueType # 5
|
|
58
|
-
"""Cancelled remote build"""
|
|
59
|
-
TIMED_OUT: RemoteBuildingStatusCode.ValueType # 6
|
|
60
|
-
"""Timed out while pending remote build"""
|
|
61
|
-
UNKNOWN: RemoteBuildingStatusCode.ValueType # 7
|
|
62
|
-
"""The status is unknown"""
|
|
63
|
-
global___RemoteBuildingStatusCode = RemoteBuildingStatusCode
|
|
64
|
-
|
|
65
|
-
class _RemoteBuildingFailureReasonCode:
|
|
66
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
67
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
68
|
-
|
|
69
|
-
class _RemoteBuildingFailureReasonCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RemoteBuildingFailureReasonCode.ValueType], builtins.type):
|
|
70
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
71
|
-
INVALID_CODE: _RemoteBuildingFailureReasonCode.ValueType # 0
|
|
72
|
-
"""Invalid reason"""
|
|
73
|
-
UNKNOWN_REASON: _RemoteBuildingFailureReasonCode.ValueType # 1
|
|
74
|
-
"""Unknown reason"""
|
|
75
|
-
INSUFFICIENT_RESOURCES: _RemoteBuildingFailureReasonCode.ValueType # 2
|
|
76
|
-
"""Insufficient resources - for unscheduled pods"""
|
|
77
|
-
MISSING_DOCKER_IMAGE: _RemoteBuildingFailureReasonCode.ValueType # 3
|
|
78
|
-
"""The docker image is missing"""
|
|
79
|
-
MEMORY_LIMIT_EXCEEDED: _RemoteBuildingFailureReasonCode.ValueType # 4
|
|
80
|
-
"""Out of memory"""
|
|
81
|
-
|
|
82
|
-
class RemoteBuildingFailureReasonCode(_RemoteBuildingFailureReasonCode, metaclass=_RemoteBuildingFailureReasonCodeEnumTypeWrapper): ...
|
|
83
|
-
|
|
84
|
-
INVALID_CODE: RemoteBuildingFailureReasonCode.ValueType # 0
|
|
85
|
-
"""Invalid reason"""
|
|
86
|
-
UNKNOWN_REASON: RemoteBuildingFailureReasonCode.ValueType # 1
|
|
87
|
-
"""Unknown reason"""
|
|
88
|
-
INSUFFICIENT_RESOURCES: RemoteBuildingFailureReasonCode.ValueType # 2
|
|
89
|
-
"""Insufficient resources - for unscheduled pods"""
|
|
90
|
-
MISSING_DOCKER_IMAGE: RemoteBuildingFailureReasonCode.ValueType # 3
|
|
91
|
-
"""The docker image is missing"""
|
|
92
|
-
MEMORY_LIMIT_EXCEEDED: RemoteBuildingFailureReasonCode.ValueType # 4
|
|
93
|
-
"""Out of memory"""
|
|
94
|
-
global___RemoteBuildingFailureReasonCode = RemoteBuildingFailureReasonCode
|
|
95
|
-
|
|
96
|
-
@typing.final
|
|
97
|
-
class RemoteBuildingStatus(google.protobuf.message.Message):
|
|
98
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
99
|
-
|
|
100
|
-
REMOTE_BUILDING_STATUS_CODE_FIELD_NUMBER: builtins.int
|
|
101
|
-
FAILURE_DETAILS_FIELD_NUMBER: builtins.int
|
|
102
|
-
POD_STATUS_FIELD_NUMBER: builtins.int
|
|
103
|
-
remote_building_status_code: global___RemoteBuildingStatusCode.ValueType
|
|
104
|
-
"""The status of the building"""
|
|
105
|
-
@property
|
|
106
|
-
def failure_details(self) -> global___RemoteBuildingFailureReasonDetails:
|
|
107
|
-
"""Failure details"""
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
def pod_status(self) -> global___PodStatus: ...
|
|
111
|
-
def __init__(
|
|
112
|
-
self,
|
|
113
|
-
*,
|
|
114
|
-
remote_building_status_code: global___RemoteBuildingStatusCode.ValueType = ...,
|
|
115
|
-
failure_details: global___RemoteBuildingFailureReasonDetails | None = ...,
|
|
116
|
-
pod_status: global___PodStatus | None = ...,
|
|
117
|
-
) -> None: ...
|
|
118
|
-
def HasField(self, field_name: typing.Literal["failure_details", b"failure_details", "pod_status", b"pod_status"]) -> builtins.bool: ...
|
|
119
|
-
def ClearField(self, field_name: typing.Literal["failure_details", b"failure_details", "pod_status", b"pod_status", "remote_building_status_code", b"remote_building_status_code"]) -> None: ...
|
|
120
|
-
|
|
121
|
-
global___RemoteBuildingStatus = RemoteBuildingStatus
|
|
122
|
-
|
|
123
|
-
@typing.final
|
|
124
|
-
class RemoteBuildingFailureReasonDetails(google.protobuf.message.Message):
|
|
125
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
126
|
-
|
|
127
|
-
FAILURE_CODE_FIELD_NUMBER: builtins.int
|
|
128
|
-
TECHNICAL_DETAILS_FIELD_NUMBER: builtins.int
|
|
129
|
-
failure_code: global___RemoteBuildingFailureReasonCode.ValueType
|
|
130
|
-
"""failure reason code"""
|
|
131
|
-
technical_details: builtins.str
|
|
132
|
-
"""Extra messages"""
|
|
133
|
-
def __init__(
|
|
134
|
-
self,
|
|
135
|
-
*,
|
|
136
|
-
failure_code: global___RemoteBuildingFailureReasonCode.ValueType = ...,
|
|
137
|
-
technical_details: builtins.str = ...,
|
|
138
|
-
) -> None: ...
|
|
139
|
-
def ClearField(self, field_name: typing.Literal["failure_code", b"failure_code", "technical_details", b"technical_details"]) -> None: ...
|
|
140
|
-
|
|
141
|
-
global___RemoteBuildingFailureReasonDetails = RemoteBuildingFailureReasonDetails
|
|
142
|
-
|
|
143
15
|
@typing.final
|
|
144
16
|
class PodStatus(google.protobuf.message.Message):
|
|
145
17
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
frogml/__init__.py,sha256=
|
|
1
|
+
frogml/__init__.py,sha256=OTSHLf6gkQLVv56_-ecOb2-7HaA9np5sw8XnEDMIjyM,741
|
|
2
2
|
frogml/_proto/jfml/hosting_gateway/v1/build_upload_url_pb2.py,sha256=pY7-QarLJWbL9uNmZ69RfE7IPVzwpVIhtd3A0wztSNY,1942
|
|
3
3
|
frogml/_proto/jfml/hosting_gateway/v1/build_upload_url_pb2.pyi,sha256=505I4uUrCmv2hsUw2H5eT-nlkNOCQOWodpvEkH2fHIo,3073
|
|
4
4
|
frogml/_proto/jfml/hosting_gateway/v1/build_upload_url_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
@@ -458,14 +458,11 @@ frogml/_proto/qwak/file_versioning/file_versioning_service_pb2_grpc.py,sha256=uV
|
|
|
458
458
|
frogml/_proto/qwak/fitness_service/constructs_pb2.py,sha256=XjfE_lWgoxbmFYVDxZrslHQ-AwmJu-KEsfP0uwiACjE,4494
|
|
459
459
|
frogml/_proto/qwak/fitness_service/constructs_pb2.pyi,sha256=K5hYbl-kBqC24Jwvf2R0ULYTrkcLzTY0SbMSICthCZk,12317
|
|
460
460
|
frogml/_proto/qwak/fitness_service/constructs_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
461
|
-
frogml/_proto/qwak/fitness_service/fitness_pb2.py,sha256=
|
|
462
|
-
frogml/_proto/qwak/fitness_service/fitness_pb2.pyi,sha256=
|
|
461
|
+
frogml/_proto/qwak/fitness_service/fitness_pb2.py,sha256=EXVNDh9nxzTi2rJckFUH9jwpMVVfPl6ZN30q6vbFk8c,1381
|
|
462
|
+
frogml/_proto/qwak/fitness_service/fitness_pb2.pyi,sha256=T-2Uea_2JEMXZIuQJeIuXd6raIWG0_PoOkncMPSeIzw,1162
|
|
463
463
|
frogml/_proto/qwak/fitness_service/fitness_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
464
|
-
frogml/_proto/qwak/fitness_service/
|
|
465
|
-
frogml/_proto/qwak/fitness_service/
|
|
466
|
-
frogml/_proto/qwak/fitness_service/fitness_service_pb2_grpc.py,sha256=ZwaUwU3Q9lX36QL_42j2ErjXwHdDrLm0LiYUbVsHYfo,8548
|
|
467
|
-
frogml/_proto/qwak/fitness_service/status_pb2.py,sha256=ads1q1slJree2-ZgcUWnLAc9Fwv5n7UOuD70ZsEeyHs,4947
|
|
468
|
-
frogml/_proto/qwak/fitness_service/status_pb2.pyi,sha256=I7eT4c8ruu97ZHEis7L0uAI8reCiEHgdXViCzWovDz0,12383
|
|
464
|
+
frogml/_proto/qwak/fitness_service/status_pb2.py,sha256=hvQwAcxNoG_TmW9jGOYvHeJJyBsjZrWVzES-3sFe3es,3228
|
|
465
|
+
frogml/_proto/qwak/fitness_service/status_pb2.pyi,sha256=9QW8t_Pqa85CcK1vEE-RHc3ZDVLpEHChaaXThQJl3s0,6611
|
|
469
466
|
frogml/_proto/qwak/fitness_service/status_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
470
467
|
frogml/_proto/qwak/inference/feedback/feedback_pb2.py,sha256=Och9SZXLFFez9zqMYxV6svlpM8pukF56d9bbUX79BRg,5060
|
|
471
468
|
frogml/_proto/qwak/inference/feedback/feedback_pb2.pyi,sha256=vJhQrJYKlph0HkjFFFajhByzTQR3eeuVHJK9w3gsVxc,10832
|
|
@@ -1150,6 +1147,6 @@ frogml_services_mock/mocks/utils/exception_handlers.py,sha256=k_8mez3cwjNjKE9yGQ
|
|
|
1150
1147
|
frogml_services_mock/services_mock.py,sha256=y1_h189Ldu5MdVUW4nj-WMBtvUfkM_aKse7UfAb6Rxk,19419
|
|
1151
1148
|
frogml_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1152
1149
|
frogml_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
|
|
1153
|
-
frogml-1.2.
|
|
1154
|
-
frogml-1.2.
|
|
1155
|
-
frogml-1.2.
|
|
1150
|
+
frogml-1.2.34.dist-info/METADATA,sha256=J1gBfRem4dE7p9DTOi-DYk-GAf6_BdlEGTwENwXiDHY,5599
|
|
1151
|
+
frogml-1.2.34.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
1152
|
+
frogml-1.2.34.dist-info/RECORD,,
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: frogml._proto.qwak.fitness_service/fitness_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.qwak.fitness_service import fitness_pb2 as qwak_dot_fitness__service_dot_fitness__pb2
|
|
16
|
-
from frogml._proto.qwak.fitness_service import status_pb2 as qwak_dot_fitness__service_dot_status__pb2
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*qwak/fitness_service/fitness_service.proto\x12\x14qwak.fitness.service\x1a\"qwak/fitness_service/fitness.proto\x1a!qwak/fitness_service/status.proto\"H\n\x11\x42uildModelRequest\x12\x33\n\nbuild_spec\x18\x01 \x01(\x0b\x32\x1f.qwak.fitness.service.BuildSpec\"\x14\n\x12\x42uildModelResponse\"+\n\x17\x43\x61ncelBuildModelRequest\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\"\x1a\n\x18\x43\x61ncelBuildModelResponse\"2\n\x1eGetRemoteBuildingStatusRequest\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\"]\n\x1fGetRemoteBuildingStatusResponse\x12:\n\x06status\x18\x01 \x01(\x0b\x32*.qwak.fitness.service.RemoteBuildingStatus\"4\n CleanRemoteBuildResourcesRequest\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\"#\n!CleanRemoteBuildResourcesResponse2\xfc\x03\n\x0e\x46itnessService\x12_\n\nBuildModel\x12\'.qwak.fitness.service.BuildModelRequest\x1a(.qwak.fitness.service.BuildModelResponse\x12q\n\x10\x43\x61ncelBuildModel\x12-.qwak.fitness.service.CancelBuildModelRequest\x1a..qwak.fitness.service.CancelBuildModelResponse\x12\x86\x01\n\x17GetRemoteBuildingStatus\x12\x34.qwak.fitness.service.GetRemoteBuildingStatusRequest\x1a\x35.qwak.fitness.service.GetRemoteBuildingStatusResponse\x12\x8c\x01\n\x19\x43leanRemoteBuildResources\x12\x36.qwak.fitness.service.CleanRemoteBuildResourcesRequest\x1a\x37.qwak.fitness.service.CleanRemoteBuildResourcesResponseB#\n\x1f\x63om.qwak.ai.fitness.service.apiP\x01\x62\x06proto3')
|
|
20
|
-
|
|
21
|
-
_globals = globals()
|
|
22
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.fitness_service.fitness_service_pb2', _globals)
|
|
24
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
-
_globals['DESCRIPTOR']._options = None
|
|
26
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\037com.qwak.ai.fitness.service.apiP\001'
|
|
27
|
-
_globals['_BUILDMODELREQUEST']._serialized_start=139
|
|
28
|
-
_globals['_BUILDMODELREQUEST']._serialized_end=211
|
|
29
|
-
_globals['_BUILDMODELRESPONSE']._serialized_start=213
|
|
30
|
-
_globals['_BUILDMODELRESPONSE']._serialized_end=233
|
|
31
|
-
_globals['_CANCELBUILDMODELREQUEST']._serialized_start=235
|
|
32
|
-
_globals['_CANCELBUILDMODELREQUEST']._serialized_end=278
|
|
33
|
-
_globals['_CANCELBUILDMODELRESPONSE']._serialized_start=280
|
|
34
|
-
_globals['_CANCELBUILDMODELRESPONSE']._serialized_end=306
|
|
35
|
-
_globals['_GETREMOTEBUILDINGSTATUSREQUEST']._serialized_start=308
|
|
36
|
-
_globals['_GETREMOTEBUILDINGSTATUSREQUEST']._serialized_end=358
|
|
37
|
-
_globals['_GETREMOTEBUILDINGSTATUSRESPONSE']._serialized_start=360
|
|
38
|
-
_globals['_GETREMOTEBUILDINGSTATUSRESPONSE']._serialized_end=453
|
|
39
|
-
_globals['_CLEANREMOTEBUILDRESOURCESREQUEST']._serialized_start=455
|
|
40
|
-
_globals['_CLEANREMOTEBUILDRESOURCESREQUEST']._serialized_end=507
|
|
41
|
-
_globals['_CLEANREMOTEBUILDRESOURCESRESPONSE']._serialized_start=509
|
|
42
|
-
_globals['_CLEANREMOTEBUILDRESOURCESRESPONSE']._serialized_end=544
|
|
43
|
-
_globals['_FITNESSSERVICE']._serialized_start=547
|
|
44
|
-
_globals['_FITNESSSERVICE']._serialized_end=1055
|
|
45
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
-
isort:skip_file
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
import builtins
|
|
7
|
-
import google.protobuf.descriptor
|
|
8
|
-
import google.protobuf.message
|
|
9
|
-
import frogml._proto.qwak.fitness_service.fitness_pb2
|
|
10
|
-
import frogml._proto.qwak.fitness_service.status_pb2
|
|
11
|
-
import typing
|
|
12
|
-
|
|
13
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
|
-
|
|
15
|
-
@typing.final
|
|
16
|
-
class BuildModelRequest(google.protobuf.message.Message):
|
|
17
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
-
|
|
19
|
-
BUILD_SPEC_FIELD_NUMBER: builtins.int
|
|
20
|
-
@property
|
|
21
|
-
def build_spec(self) -> frogml._proto.qwak.fitness_service.fitness_pb2.BuildSpec:
|
|
22
|
-
"""Requested build model spec"""
|
|
23
|
-
|
|
24
|
-
def __init__(
|
|
25
|
-
self,
|
|
26
|
-
*,
|
|
27
|
-
build_spec: frogml._proto.qwak.fitness_service.fitness_pb2.BuildSpec | None = ...,
|
|
28
|
-
) -> None: ...
|
|
29
|
-
def HasField(self, field_name: typing.Literal["build_spec", b"build_spec"]) -> builtins.bool: ...
|
|
30
|
-
def ClearField(self, field_name: typing.Literal["build_spec", b"build_spec"]) -> None: ...
|
|
31
|
-
|
|
32
|
-
global___BuildModelRequest = BuildModelRequest
|
|
33
|
-
|
|
34
|
-
@typing.final
|
|
35
|
-
class BuildModelResponse(google.protobuf.message.Message):
|
|
36
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
37
|
-
|
|
38
|
-
def __init__(
|
|
39
|
-
self,
|
|
40
|
-
) -> None: ...
|
|
41
|
-
|
|
42
|
-
global___BuildModelResponse = BuildModelResponse
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class CancelBuildModelRequest(google.protobuf.message.Message):
|
|
46
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
47
|
-
|
|
48
|
-
BUILD_ID_FIELD_NUMBER: builtins.int
|
|
49
|
-
build_id: builtins.str
|
|
50
|
-
"""Build id of the build to cancel"""
|
|
51
|
-
def __init__(
|
|
52
|
-
self,
|
|
53
|
-
*,
|
|
54
|
-
build_id: builtins.str = ...,
|
|
55
|
-
) -> None: ...
|
|
56
|
-
def ClearField(self, field_name: typing.Literal["build_id", b"build_id"]) -> None: ...
|
|
57
|
-
|
|
58
|
-
global___CancelBuildModelRequest = CancelBuildModelRequest
|
|
59
|
-
|
|
60
|
-
@typing.final
|
|
61
|
-
class CancelBuildModelResponse(google.protobuf.message.Message):
|
|
62
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
63
|
-
|
|
64
|
-
def __init__(
|
|
65
|
-
self,
|
|
66
|
-
) -> None: ...
|
|
67
|
-
|
|
68
|
-
global___CancelBuildModelResponse = CancelBuildModelResponse
|
|
69
|
-
|
|
70
|
-
@typing.final
|
|
71
|
-
class GetRemoteBuildingStatusRequest(google.protobuf.message.Message):
|
|
72
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
73
|
-
|
|
74
|
-
BUILD_ID_FIELD_NUMBER: builtins.int
|
|
75
|
-
build_id: builtins.str
|
|
76
|
-
"""Build id of the build to get status for"""
|
|
77
|
-
def __init__(
|
|
78
|
-
self,
|
|
79
|
-
*,
|
|
80
|
-
build_id: builtins.str = ...,
|
|
81
|
-
) -> None: ...
|
|
82
|
-
def ClearField(self, field_name: typing.Literal["build_id", b"build_id"]) -> None: ...
|
|
83
|
-
|
|
84
|
-
global___GetRemoteBuildingStatusRequest = GetRemoteBuildingStatusRequest
|
|
85
|
-
|
|
86
|
-
@typing.final
|
|
87
|
-
class GetRemoteBuildingStatusResponse(google.protobuf.message.Message):
|
|
88
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
89
|
-
|
|
90
|
-
STATUS_FIELD_NUMBER: builtins.int
|
|
91
|
-
@property
|
|
92
|
-
def status(self) -> frogml._proto.qwak.fitness_service.status_pb2.RemoteBuildingStatus: ...
|
|
93
|
-
def __init__(
|
|
94
|
-
self,
|
|
95
|
-
*,
|
|
96
|
-
status: frogml._proto.qwak.fitness_service.status_pb2.RemoteBuildingStatus | None = ...,
|
|
97
|
-
) -> None: ...
|
|
98
|
-
def HasField(self, field_name: typing.Literal["status", b"status"]) -> builtins.bool: ...
|
|
99
|
-
def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
|
|
100
|
-
|
|
101
|
-
global___GetRemoteBuildingStatusResponse = GetRemoteBuildingStatusResponse
|
|
102
|
-
|
|
103
|
-
@typing.final
|
|
104
|
-
class CleanRemoteBuildResourcesRequest(google.protobuf.message.Message):
|
|
105
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
106
|
-
|
|
107
|
-
BUILD_ID_FIELD_NUMBER: builtins.int
|
|
108
|
-
build_id: builtins.str
|
|
109
|
-
def __init__(
|
|
110
|
-
self,
|
|
111
|
-
*,
|
|
112
|
-
build_id: builtins.str = ...,
|
|
113
|
-
) -> None: ...
|
|
114
|
-
def ClearField(self, field_name: typing.Literal["build_id", b"build_id"]) -> None: ...
|
|
115
|
-
|
|
116
|
-
global___CleanRemoteBuildResourcesRequest = CleanRemoteBuildResourcesRequest
|
|
117
|
-
|
|
118
|
-
@typing.final
|
|
119
|
-
class CleanRemoteBuildResourcesResponse(google.protobuf.message.Message):
|
|
120
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
121
|
-
|
|
122
|
-
def __init__(
|
|
123
|
-
self,
|
|
124
|
-
) -> None: ...
|
|
125
|
-
|
|
126
|
-
global___CleanRemoteBuildResourcesResponse = CleanRemoteBuildResourcesResponse
|
|
@@ -1,169 +0,0 @@
|
|
|
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.qwak.fitness_service import fitness_service_pb2 as qwak_dot_fitness__service_dot_fitness__service__pb2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class FitnessServiceStub(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.BuildModel = channel.unary_unary(
|
|
18
|
-
'/qwak.fitness.service.FitnessService/BuildModel',
|
|
19
|
-
request_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.BuildModelRequest.SerializeToString,
|
|
20
|
-
response_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.BuildModelResponse.FromString,
|
|
21
|
-
)
|
|
22
|
-
self.CancelBuildModel = channel.unary_unary(
|
|
23
|
-
'/qwak.fitness.service.FitnessService/CancelBuildModel',
|
|
24
|
-
request_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CancelBuildModelRequest.SerializeToString,
|
|
25
|
-
response_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CancelBuildModelResponse.FromString,
|
|
26
|
-
)
|
|
27
|
-
self.GetRemoteBuildingStatus = channel.unary_unary(
|
|
28
|
-
'/qwak.fitness.service.FitnessService/GetRemoteBuildingStatus',
|
|
29
|
-
request_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.GetRemoteBuildingStatusRequest.SerializeToString,
|
|
30
|
-
response_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.GetRemoteBuildingStatusResponse.FromString,
|
|
31
|
-
)
|
|
32
|
-
self.CleanRemoteBuildResources = channel.unary_unary(
|
|
33
|
-
'/qwak.fitness.service.FitnessService/CleanRemoteBuildResources',
|
|
34
|
-
request_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CleanRemoteBuildResourcesRequest.SerializeToString,
|
|
35
|
-
response_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CleanRemoteBuildResourcesResponse.FromString,
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class FitnessServiceServicer(object):
|
|
40
|
-
"""Missing associated documentation comment in .proto file."""
|
|
41
|
-
|
|
42
|
-
def BuildModel(self, request, context):
|
|
43
|
-
"""Build a serving model image
|
|
44
|
-
"""
|
|
45
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
46
|
-
context.set_details('Method not implemented!')
|
|
47
|
-
raise NotImplementedError('Method not implemented!')
|
|
48
|
-
|
|
49
|
-
def CancelBuildModel(self, request, context):
|
|
50
|
-
"""Cancel an ongoing build
|
|
51
|
-
"""
|
|
52
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
-
context.set_details('Method not implemented!')
|
|
54
|
-
raise NotImplementedError('Method not implemented!')
|
|
55
|
-
|
|
56
|
-
def GetRemoteBuildingStatus(self, request, context):
|
|
57
|
-
"""Get the status of remote build
|
|
58
|
-
"""
|
|
59
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
60
|
-
context.set_details('Method not implemented!')
|
|
61
|
-
raise NotImplementedError('Method not implemented!')
|
|
62
|
-
|
|
63
|
-
def CleanRemoteBuildResources(self, request, context):
|
|
64
|
-
"""Clean the remote build resources
|
|
65
|
-
"""
|
|
66
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
-
context.set_details('Method not implemented!')
|
|
68
|
-
raise NotImplementedError('Method not implemented!')
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
def add_FitnessServiceServicer_to_server(servicer, server):
|
|
72
|
-
rpc_method_handlers = {
|
|
73
|
-
'BuildModel': grpc.unary_unary_rpc_method_handler(
|
|
74
|
-
servicer.BuildModel,
|
|
75
|
-
request_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.BuildModelRequest.FromString,
|
|
76
|
-
response_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.BuildModelResponse.SerializeToString,
|
|
77
|
-
),
|
|
78
|
-
'CancelBuildModel': grpc.unary_unary_rpc_method_handler(
|
|
79
|
-
servicer.CancelBuildModel,
|
|
80
|
-
request_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CancelBuildModelRequest.FromString,
|
|
81
|
-
response_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CancelBuildModelResponse.SerializeToString,
|
|
82
|
-
),
|
|
83
|
-
'GetRemoteBuildingStatus': grpc.unary_unary_rpc_method_handler(
|
|
84
|
-
servicer.GetRemoteBuildingStatus,
|
|
85
|
-
request_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.GetRemoteBuildingStatusRequest.FromString,
|
|
86
|
-
response_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.GetRemoteBuildingStatusResponse.SerializeToString,
|
|
87
|
-
),
|
|
88
|
-
'CleanRemoteBuildResources': grpc.unary_unary_rpc_method_handler(
|
|
89
|
-
servicer.CleanRemoteBuildResources,
|
|
90
|
-
request_deserializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CleanRemoteBuildResourcesRequest.FromString,
|
|
91
|
-
response_serializer=qwak_dot_fitness__service_dot_fitness__service__pb2.CleanRemoteBuildResourcesResponse.SerializeToString,
|
|
92
|
-
),
|
|
93
|
-
}
|
|
94
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
95
|
-
'qwak.fitness.service.FitnessService', rpc_method_handlers)
|
|
96
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
# This class is part of an EXPERIMENTAL API.
|
|
100
|
-
class FitnessService(object):
|
|
101
|
-
"""Missing associated documentation comment in .proto file."""
|
|
102
|
-
|
|
103
|
-
@staticmethod
|
|
104
|
-
def BuildModel(request,
|
|
105
|
-
target,
|
|
106
|
-
options=(),
|
|
107
|
-
channel_credentials=None,
|
|
108
|
-
call_credentials=None,
|
|
109
|
-
insecure=False,
|
|
110
|
-
compression=None,
|
|
111
|
-
wait_for_ready=None,
|
|
112
|
-
timeout=None,
|
|
113
|
-
metadata=None):
|
|
114
|
-
return grpc.experimental.unary_unary(request, target, '/qwak.fitness.service.FitnessService/BuildModel',
|
|
115
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.BuildModelRequest.SerializeToString,
|
|
116
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.BuildModelResponse.FromString,
|
|
117
|
-
options, channel_credentials,
|
|
118
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
119
|
-
|
|
120
|
-
@staticmethod
|
|
121
|
-
def CancelBuildModel(request,
|
|
122
|
-
target,
|
|
123
|
-
options=(),
|
|
124
|
-
channel_credentials=None,
|
|
125
|
-
call_credentials=None,
|
|
126
|
-
insecure=False,
|
|
127
|
-
compression=None,
|
|
128
|
-
wait_for_ready=None,
|
|
129
|
-
timeout=None,
|
|
130
|
-
metadata=None):
|
|
131
|
-
return grpc.experimental.unary_unary(request, target, '/qwak.fitness.service.FitnessService/CancelBuildModel',
|
|
132
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.CancelBuildModelRequest.SerializeToString,
|
|
133
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.CancelBuildModelResponse.FromString,
|
|
134
|
-
options, channel_credentials,
|
|
135
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
136
|
-
|
|
137
|
-
@staticmethod
|
|
138
|
-
def GetRemoteBuildingStatus(request,
|
|
139
|
-
target,
|
|
140
|
-
options=(),
|
|
141
|
-
channel_credentials=None,
|
|
142
|
-
call_credentials=None,
|
|
143
|
-
insecure=False,
|
|
144
|
-
compression=None,
|
|
145
|
-
wait_for_ready=None,
|
|
146
|
-
timeout=None,
|
|
147
|
-
metadata=None):
|
|
148
|
-
return grpc.experimental.unary_unary(request, target, '/qwak.fitness.service.FitnessService/GetRemoteBuildingStatus',
|
|
149
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.GetRemoteBuildingStatusRequest.SerializeToString,
|
|
150
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.GetRemoteBuildingStatusResponse.FromString,
|
|
151
|
-
options, channel_credentials,
|
|
152
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
153
|
-
|
|
154
|
-
@staticmethod
|
|
155
|
-
def CleanRemoteBuildResources(request,
|
|
156
|
-
target,
|
|
157
|
-
options=(),
|
|
158
|
-
channel_credentials=None,
|
|
159
|
-
call_credentials=None,
|
|
160
|
-
insecure=False,
|
|
161
|
-
compression=None,
|
|
162
|
-
wait_for_ready=None,
|
|
163
|
-
timeout=None,
|
|
164
|
-
metadata=None):
|
|
165
|
-
return grpc.experimental.unary_unary(request, target, '/qwak.fitness.service.FitnessService/CleanRemoteBuildResources',
|
|
166
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.CleanRemoteBuildResourcesRequest.SerializeToString,
|
|
167
|
-
qwak_dot_fitness__service_dot_fitness__service__pb2.CleanRemoteBuildResourcesResponse.FromString,
|
|
168
|
-
options, channel_credentials,
|
|
169
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
File without changes
|