qwak-core 0.5.17__py3-none-any.whl → 0.5.18__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.
- _qwak_proto/qwak/fitness_service/fitness_pb2.py +3 -8
- _qwak_proto/qwak/fitness_service/fitness_pb2.pyi +0 -93
- _qwak_proto/qwak/fitness_service/status_pb2.py +13 -22
- _qwak_proto/qwak/fitness_service/status_pb2.pyi +1 -121
- qwak/__init__.py +1 -1
- {qwak_core-0.5.17.dist-info → qwak_core-0.5.18.dist-info}/METADATA +1 -1
- {qwak_core-0.5.17.dist-info → qwak_core-0.5.18.dist-info}/RECORD +8 -11
- _qwak_proto/qwak/fitness_service/fitness_service_pb2.py +0 -45
- _qwak_proto/qwak/fitness_service/fitness_service_pb2.pyi +0 -121
- _qwak_proto/qwak/fitness_service/fitness_service_pb2_grpc.py +0 -169
- {qwak_core-0.5.17.dist-info → qwak_core-0.5.18.dist-info}/WHEEL +0 -0
|
@@ -11,10 +11,9 @@ from google.protobuf.internal import builder as _builder
|
|
|
11
11
|
_sym_db = _symbol_database.Default()
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
from _qwak_proto.qwak.fitness_service import constructs_pb2 as qwak_dot_fitness__service_dot_constructs__pb2
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"qwak/fitness_service/fitness.proto\x12\x14qwak.fitness.service
|
|
16
|
+
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')
|
|
18
17
|
|
|
19
18
|
_globals = globals()
|
|
20
19
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,10 +22,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
23
22
|
|
|
24
23
|
DESCRIPTOR._options = None
|
|
25
24
|
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)
|
|
@@ -5,8 +5,6 @@ isort:skip_file
|
|
|
5
5
|
import builtins
|
|
6
6
|
import google.protobuf.descriptor
|
|
7
7
|
import google.protobuf.internal.enum_type_wrapper
|
|
8
|
-
import google.protobuf.message
|
|
9
|
-
import qwak.fitness_service.constructs_pb2
|
|
10
8
|
import sys
|
|
11
9
|
import typing
|
|
12
10
|
|
|
@@ -33,94 +31,3 @@ INVALID_PURCHASE_OPTION: PurchaseOption.ValueType # 0
|
|
|
33
31
|
SPOT_PURCHASE_OPTION: PurchaseOption.ValueType # 1
|
|
34
32
|
ONDEMAND_PURCHASE_OPTION: PurchaseOption.ValueType # 2
|
|
35
33
|
global___PurchaseOption = PurchaseOption
|
|
36
|
-
|
|
37
|
-
class BuildSpec(google.protobuf.message.Message):
|
|
38
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
39
|
-
|
|
40
|
-
BUILD_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
41
|
-
BUILD_ENV_FIELD_NUMBER: builtins.int
|
|
42
|
-
CPU_RESOURCES_FIELD_NUMBER: builtins.int
|
|
43
|
-
GPU_RESOURCES_FIELD_NUMBER: builtins.int
|
|
44
|
-
VERBOSE_FIELD_NUMBER: builtins.int
|
|
45
|
-
BUILD_CONFIG_FIELD_NUMBER: builtins.int
|
|
46
|
-
BUILD_V1_FLAG_FIELD_NUMBER: builtins.int
|
|
47
|
-
BUILD_PROPERTIES_V1_FIELD_NUMBER: builtins.int
|
|
48
|
-
PURCHASE_OPTION_FIELD_NUMBER: builtins.int
|
|
49
|
-
BUILD_DESTINED_IMAGE_FIELD_NUMBER: builtins.int
|
|
50
|
-
PROVISION_INSTANCE_TIMEOUT_FIELD_NUMBER: builtins.int
|
|
51
|
-
ARTIFACTORY_PROJECT_KEY_FIELD_NUMBER: builtins.int
|
|
52
|
-
ARTIFACTORY_BASE_URL_FIELD_NUMBER: builtins.int
|
|
53
|
-
@property
|
|
54
|
-
def build_properties(self) -> qwak.fitness_service.constructs_pb2.BuildProperties: ...
|
|
55
|
-
@property
|
|
56
|
-
def build_env(self) -> qwak.fitness_service.constructs_pb2.BuildEnv: ...
|
|
57
|
-
@property
|
|
58
|
-
def cpu_resources(self) -> qwak.fitness_service.constructs_pb2.CpuResources:
|
|
59
|
-
"""CPU Properties"""
|
|
60
|
-
@property
|
|
61
|
-
def gpu_resources(self) -> qwak.fitness_service.constructs_pb2.GpuResources:
|
|
62
|
-
"""GPU Properties"""
|
|
63
|
-
verbose: builtins.int
|
|
64
|
-
"""Logs verbose mode 0: warning, 1: info, 2: debug (by qwak.tools.logger.py VERBOSITY_LEVEL_MAPPING from qwak-sdk)"""
|
|
65
|
-
build_config: builtins.str
|
|
66
|
-
"""replace the config passed as proto json format"""
|
|
67
|
-
build_v1_flag: builtins.bool
|
|
68
|
-
"""Build v1 flag"""
|
|
69
|
-
@property
|
|
70
|
-
def build_properties_v1(self) -> global___BuildPropertiesV1:
|
|
71
|
-
"""Build Properties V1"""
|
|
72
|
-
purchase_option: global___PurchaseOption.ValueType
|
|
73
|
-
"""Purchase Option"""
|
|
74
|
-
build_destined_image: builtins.str
|
|
75
|
-
"""The image name to save build to"""
|
|
76
|
-
provision_instance_timeout: builtins.int
|
|
77
|
-
"""The image name to save build to"""
|
|
78
|
-
artifactory_project_key: builtins.str
|
|
79
|
-
"""artifactory project key"""
|
|
80
|
-
artifactory_base_url: builtins.str
|
|
81
|
-
"""artifactory base url"""
|
|
82
|
-
def __init__(
|
|
83
|
-
self,
|
|
84
|
-
*,
|
|
85
|
-
build_properties: qwak.fitness_service.constructs_pb2.BuildProperties | None = ...,
|
|
86
|
-
build_env: qwak.fitness_service.constructs_pb2.BuildEnv | None = ...,
|
|
87
|
-
cpu_resources: qwak.fitness_service.constructs_pb2.CpuResources | None = ...,
|
|
88
|
-
gpu_resources: qwak.fitness_service.constructs_pb2.GpuResources | None = ...,
|
|
89
|
-
verbose: builtins.int = ...,
|
|
90
|
-
build_config: builtins.str = ...,
|
|
91
|
-
build_v1_flag: builtins.bool = ...,
|
|
92
|
-
build_properties_v1: global___BuildPropertiesV1 | None = ...,
|
|
93
|
-
purchase_option: global___PurchaseOption.ValueType = ...,
|
|
94
|
-
build_destined_image: builtins.str = ...,
|
|
95
|
-
provision_instance_timeout: builtins.int = ...,
|
|
96
|
-
artifactory_project_key: builtins.str = ...,
|
|
97
|
-
artifactory_base_url: builtins.str = ...,
|
|
98
|
-
) -> None: ...
|
|
99
|
-
def HasField(self, field_name: typing_extensions.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: ...
|
|
100
|
-
def ClearField(self, field_name: typing_extensions.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: ...
|
|
101
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["Resources", b"Resources"]) -> typing_extensions.Literal["cpu_resources", "gpu_resources"] | None: ...
|
|
102
|
-
|
|
103
|
-
global___BuildSpec = BuildSpec
|
|
104
|
-
|
|
105
|
-
class BuildPropertiesV1(google.protobuf.message.Message):
|
|
106
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
107
|
-
|
|
108
|
-
BUILD_CONFIG_URL_FIELD_NUMBER: builtins.int
|
|
109
|
-
QWAK_SDK_WHEEL_URL_FIELD_NUMBER: builtins.int
|
|
110
|
-
QWAK_SDK_VERSION_URL_FIELD_NUMBER: builtins.int
|
|
111
|
-
build_config_url: builtins.str
|
|
112
|
-
"""Build V1 - build config url"""
|
|
113
|
-
qwak_sdk_wheel_url: builtins.str
|
|
114
|
-
"""Build V1 - qwak-sdk wheel url"""
|
|
115
|
-
qwak_sdk_version_url: builtins.str
|
|
116
|
-
"""Build V1 - qwak-sdk version"""
|
|
117
|
-
def __init__(
|
|
118
|
-
self,
|
|
119
|
-
*,
|
|
120
|
-
build_config_url: builtins.str = ...,
|
|
121
|
-
qwak_sdk_wheel_url: builtins.str = ...,
|
|
122
|
-
qwak_sdk_version_url: builtins.str = ...,
|
|
123
|
-
) -> None: ...
|
|
124
|
-
def ClearField(self, field_name: typing_extensions.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: ...
|
|
125
|
-
|
|
126
|
-
global___BuildPropertiesV1 = BuildPropertiesV1
|
|
@@ -11,10 +11,9 @@ from google.protobuf.internal import builder as _builder
|
|
|
11
11
|
_sym_db = _symbol_database.Default()
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!qwak/fitness_service/status.proto\x12\x14qwak.fitness.service\
|
|
16
|
+
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')
|
|
18
17
|
|
|
19
18
|
_globals = globals()
|
|
20
19
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,24 +22,16 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
23
22
|
|
|
24
23
|
DESCRIPTOR._options = None
|
|
25
24
|
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)
|
|
@@ -6,136 +6,16 @@ import builtins
|
|
|
6
6
|
import collections.abc
|
|
7
7
|
import google.protobuf.descriptor
|
|
8
8
|
import google.protobuf.internal.containers
|
|
9
|
-
import google.protobuf.internal.enum_type_wrapper
|
|
10
9
|
import google.protobuf.message
|
|
11
10
|
import sys
|
|
12
|
-
import typing
|
|
13
11
|
|
|
14
|
-
if sys.version_info >= (3,
|
|
12
|
+
if sys.version_info >= (3, 8):
|
|
15
13
|
import typing as typing_extensions
|
|
16
14
|
else:
|
|
17
15
|
import typing_extensions
|
|
18
16
|
|
|
19
17
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
18
|
|
|
21
|
-
class _RemoteBuildingStatusCode:
|
|
22
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
23
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
24
|
-
|
|
25
|
-
class _RemoteBuildingStatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RemoteBuildingStatusCode.ValueType], builtins.type): # noqa: F821
|
|
26
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
27
|
-
INVALID_STATUS: _RemoteBuildingStatusCode.ValueType # 0
|
|
28
|
-
"""Invalid remote build status"""
|
|
29
|
-
INITIALIZING: _RemoteBuildingStatusCode.ValueType # 1
|
|
30
|
-
"""Setting up remote build"""
|
|
31
|
-
IN_PROGRESS: _RemoteBuildingStatusCode.ValueType # 2
|
|
32
|
-
"""Running remote build"""
|
|
33
|
-
SUCCESSFUL: _RemoteBuildingStatusCode.ValueType # 3
|
|
34
|
-
"""Successful remote build"""
|
|
35
|
-
FAILED: _RemoteBuildingStatusCode.ValueType # 4
|
|
36
|
-
"""Failed remote build"""
|
|
37
|
-
CANCELLED: _RemoteBuildingStatusCode.ValueType # 5
|
|
38
|
-
"""Cancelled remote build"""
|
|
39
|
-
TIMED_OUT: _RemoteBuildingStatusCode.ValueType # 6
|
|
40
|
-
"""Timed out while pending remote build"""
|
|
41
|
-
UNKNOWN: _RemoteBuildingStatusCode.ValueType # 7
|
|
42
|
-
"""The status is unknown"""
|
|
43
|
-
|
|
44
|
-
class RemoteBuildingStatusCode(_RemoteBuildingStatusCode, metaclass=_RemoteBuildingStatusCodeEnumTypeWrapper): ...
|
|
45
|
-
|
|
46
|
-
INVALID_STATUS: RemoteBuildingStatusCode.ValueType # 0
|
|
47
|
-
"""Invalid remote build status"""
|
|
48
|
-
INITIALIZING: RemoteBuildingStatusCode.ValueType # 1
|
|
49
|
-
"""Setting up remote build"""
|
|
50
|
-
IN_PROGRESS: RemoteBuildingStatusCode.ValueType # 2
|
|
51
|
-
"""Running remote build"""
|
|
52
|
-
SUCCESSFUL: RemoteBuildingStatusCode.ValueType # 3
|
|
53
|
-
"""Successful remote build"""
|
|
54
|
-
FAILED: RemoteBuildingStatusCode.ValueType # 4
|
|
55
|
-
"""Failed remote build"""
|
|
56
|
-
CANCELLED: RemoteBuildingStatusCode.ValueType # 5
|
|
57
|
-
"""Cancelled remote build"""
|
|
58
|
-
TIMED_OUT: RemoteBuildingStatusCode.ValueType # 6
|
|
59
|
-
"""Timed out while pending remote build"""
|
|
60
|
-
UNKNOWN: RemoteBuildingStatusCode.ValueType # 7
|
|
61
|
-
"""The status is unknown"""
|
|
62
|
-
global___RemoteBuildingStatusCode = RemoteBuildingStatusCode
|
|
63
|
-
|
|
64
|
-
class _RemoteBuildingFailureReasonCode:
|
|
65
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
66
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
67
|
-
|
|
68
|
-
class _RemoteBuildingFailureReasonCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RemoteBuildingFailureReasonCode.ValueType], builtins.type): # noqa: F821
|
|
69
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
70
|
-
INVALID_CODE: _RemoteBuildingFailureReasonCode.ValueType # 0
|
|
71
|
-
"""Invalid reason"""
|
|
72
|
-
UNKNOWN_REASON: _RemoteBuildingFailureReasonCode.ValueType # 1
|
|
73
|
-
"""Unknown reason"""
|
|
74
|
-
INSUFFICIENT_RESOURCES: _RemoteBuildingFailureReasonCode.ValueType # 2
|
|
75
|
-
"""Insufficient resources - for unscheduled pods"""
|
|
76
|
-
MISSING_DOCKER_IMAGE: _RemoteBuildingFailureReasonCode.ValueType # 3
|
|
77
|
-
"""The docker image is missing"""
|
|
78
|
-
MEMORY_LIMIT_EXCEEDED: _RemoteBuildingFailureReasonCode.ValueType # 4
|
|
79
|
-
"""Out of memory"""
|
|
80
|
-
|
|
81
|
-
class RemoteBuildingFailureReasonCode(_RemoteBuildingFailureReasonCode, metaclass=_RemoteBuildingFailureReasonCodeEnumTypeWrapper): ...
|
|
82
|
-
|
|
83
|
-
INVALID_CODE: RemoteBuildingFailureReasonCode.ValueType # 0
|
|
84
|
-
"""Invalid reason"""
|
|
85
|
-
UNKNOWN_REASON: RemoteBuildingFailureReasonCode.ValueType # 1
|
|
86
|
-
"""Unknown reason"""
|
|
87
|
-
INSUFFICIENT_RESOURCES: RemoteBuildingFailureReasonCode.ValueType # 2
|
|
88
|
-
"""Insufficient resources - for unscheduled pods"""
|
|
89
|
-
MISSING_DOCKER_IMAGE: RemoteBuildingFailureReasonCode.ValueType # 3
|
|
90
|
-
"""The docker image is missing"""
|
|
91
|
-
MEMORY_LIMIT_EXCEEDED: RemoteBuildingFailureReasonCode.ValueType # 4
|
|
92
|
-
"""Out of memory"""
|
|
93
|
-
global___RemoteBuildingFailureReasonCode = RemoteBuildingFailureReasonCode
|
|
94
|
-
|
|
95
|
-
class RemoteBuildingStatus(google.protobuf.message.Message):
|
|
96
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
97
|
-
|
|
98
|
-
REMOTE_BUILDING_STATUS_CODE_FIELD_NUMBER: builtins.int
|
|
99
|
-
FAILURE_DETAILS_FIELD_NUMBER: builtins.int
|
|
100
|
-
POD_STATUS_FIELD_NUMBER: builtins.int
|
|
101
|
-
remote_building_status_code: global___RemoteBuildingStatusCode.ValueType
|
|
102
|
-
"""The status of the building"""
|
|
103
|
-
@property
|
|
104
|
-
def failure_details(self) -> global___RemoteBuildingFailureReasonDetails:
|
|
105
|
-
"""Failure details"""
|
|
106
|
-
@property
|
|
107
|
-
def pod_status(self) -> global___PodStatus: ...
|
|
108
|
-
def __init__(
|
|
109
|
-
self,
|
|
110
|
-
*,
|
|
111
|
-
remote_building_status_code: global___RemoteBuildingStatusCode.ValueType = ...,
|
|
112
|
-
failure_details: global___RemoteBuildingFailureReasonDetails | None = ...,
|
|
113
|
-
pod_status: global___PodStatus | None = ...,
|
|
114
|
-
) -> None: ...
|
|
115
|
-
def HasField(self, field_name: typing_extensions.Literal["failure_details", b"failure_details", "pod_status", b"pod_status"]) -> builtins.bool: ...
|
|
116
|
-
def ClearField(self, field_name: typing_extensions.Literal["failure_details", b"failure_details", "pod_status", b"pod_status", "remote_building_status_code", b"remote_building_status_code"]) -> None: ...
|
|
117
|
-
|
|
118
|
-
global___RemoteBuildingStatus = RemoteBuildingStatus
|
|
119
|
-
|
|
120
|
-
class RemoteBuildingFailureReasonDetails(google.protobuf.message.Message):
|
|
121
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
122
|
-
|
|
123
|
-
FAILURE_CODE_FIELD_NUMBER: builtins.int
|
|
124
|
-
TECHNICAL_DETAILS_FIELD_NUMBER: builtins.int
|
|
125
|
-
failure_code: global___RemoteBuildingFailureReasonCode.ValueType
|
|
126
|
-
"""failure reason code"""
|
|
127
|
-
technical_details: builtins.str
|
|
128
|
-
"""Extra messages"""
|
|
129
|
-
def __init__(
|
|
130
|
-
self,
|
|
131
|
-
*,
|
|
132
|
-
failure_code: global___RemoteBuildingFailureReasonCode.ValueType = ...,
|
|
133
|
-
technical_details: builtins.str = ...,
|
|
134
|
-
) -> None: ...
|
|
135
|
-
def ClearField(self, field_name: typing_extensions.Literal["failure_code", b"failure_code", "technical_details", b"technical_details"]) -> None: ...
|
|
136
|
-
|
|
137
|
-
global___RemoteBuildingFailureReasonDetails = RemoteBuildingFailureReasonDetails
|
|
138
|
-
|
|
139
19
|
class PodStatus(google.protobuf.message.Message):
|
|
140
20
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
141
21
|
|
qwak/__init__.py
CHANGED
|
@@ -433,14 +433,11 @@ _qwak_proto/qwak/file_versioning/file_versioning_service_pb2_grpc.py,sha256=Sq8B
|
|
|
433
433
|
_qwak_proto/qwak/fitness_service/constructs_pb2.py,sha256=lv8ky1JwNx-UO5y1SXV7fJm0DA5LCp6bBPRWhQGTbVM,4423
|
|
434
434
|
_qwak_proto/qwak/fitness_service/constructs_pb2.pyi,sha256=7vpg2ziRJMDOTJrH0gKW_4PnBKMLOqn5Li6c799eRy8,12342
|
|
435
435
|
_qwak_proto/qwak/fitness_service/constructs_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
436
|
-
_qwak_proto/qwak/fitness_service/fitness_pb2.py,sha256=
|
|
437
|
-
_qwak_proto/qwak/fitness_service/fitness_pb2.pyi,sha256=
|
|
436
|
+
_qwak_proto/qwak/fitness_service/fitness_pb2.py,sha256=iae50ftCHGef_Nj1vysbkPpqCfBQ-o8R7VJvYtzeFg0,1310
|
|
437
|
+
_qwak_proto/qwak/fitness_service/fitness_pb2.pyi,sha256=O7kdFQnhyFPPSvgjc0TkN24MOs8RcbjP6h4WYspIIYU,1175
|
|
438
438
|
_qwak_proto/qwak/fitness_service/fitness_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
439
|
-
_qwak_proto/qwak/fitness_service/
|
|
440
|
-
_qwak_proto/qwak/fitness_service/
|
|
441
|
-
_qwak_proto/qwak/fitness_service/fitness_service_pb2_grpc.py,sha256=HdL_Yx-X7a5_Dj6F1eSIE3VDwERyrmKneNVL3FaSsXQ,8546
|
|
442
|
-
_qwak_proto/qwak/fitness_service/status_pb2.py,sha256=ZtnBEFcqsTFhOuZRiceL55pH_Ll8f-7oR8XL9NQJkTU,4876
|
|
443
|
-
_qwak_proto/qwak/fitness_service/status_pb2.pyi,sha256=i2MhYQtfxosJbFbwr8Y5Bit4_4QhL4Z85F_UIhBvwTE,12440
|
|
439
|
+
_qwak_proto/qwak/fitness_service/status_pb2.py,sha256=foIps3sSJ5OF3bupWCxNKgmtm9Zk_HaVx_38oxPjaWU,3157
|
|
440
|
+
_qwak_proto/qwak/fitness_service/status_pb2.pyi,sha256=bbNUmBu3vbzLMpT8RWqS3Hk2GSVsCW-SQw2YwovwonE,6739
|
|
444
441
|
_qwak_proto/qwak/fitness_service/status_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
445
442
|
_qwak_proto/qwak/inference/feedback/feedback_pb2.py,sha256=8F-EPsO9YXes2G2GwwVrniGuUb02_trWVQtmdluu75Q,4989
|
|
446
443
|
_qwak_proto/qwak/inference/feedback/feedback_pb2.pyi,sha256=_gURfNxm6IMCDeAqEm1wP6oGmmvBedfktPsioOb0eiw,10867
|
|
@@ -622,7 +619,7 @@ _qwak_proto/qwak/workspace/workspace_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
|
|
|
622
619
|
_qwak_proto/qwak/workspace/workspace_service_pb2.py,sha256=93uNm83VVrkLG_XVsuBOBTPs4UJF91YD1xJTOEbRyig,9239
|
|
623
620
|
_qwak_proto/qwak/workspace/workspace_service_pb2.pyi,sha256=nKKCHwnovZhsy8TSVmdz-Vtl0nviOOoX56HD-41Xo08,13726
|
|
624
621
|
_qwak_proto/qwak/workspace/workspace_service_pb2_grpc.py,sha256=yKGuexxTBza99Ihe0DSTniV2ZSd_AG47inHenqfi890,27193
|
|
625
|
-
qwak/__init__.py,sha256=
|
|
622
|
+
qwak/__init__.py,sha256=f6xNF8Iv7kI-Um4ySiT_oDNU4Mzrdx4LlBlPLxCMFrA,586
|
|
626
623
|
qwak/automations/__init__.py,sha256=qFZRvCxUUn8gcxkJR0v19ulHW2oJ0x6-Rif7HiheDP4,1522
|
|
627
624
|
qwak/automations/automation_executions.py,sha256=5MeH_epYYWb8NKXgAozwT_jPyyUDednBHG7izloi7RY,3228
|
|
628
625
|
qwak/automations/automations.py,sha256=2Wyrgj2mW5VmJzTKAXj3vQM_svYCuq_Bsu3_Vu9SdR4,12732
|
|
@@ -1098,6 +1095,6 @@ qwak_services_mock/mocks/workspace_manager_service_mock.py,sha256=O9ZSwln4T4kHVk
|
|
|
1098
1095
|
qwak_services_mock/services_mock.py,sha256=0BWwS2re9ryO3JrJJgSNyEQ0lDOjyrpV36oa8t7Pd7A,19163
|
|
1099
1096
|
qwak_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1100
1097
|
qwak_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
|
|
1101
|
-
qwak_core-0.5.
|
|
1102
|
-
qwak_core-0.5.
|
|
1103
|
-
qwak_core-0.5.
|
|
1098
|
+
qwak_core-0.5.18.dist-info/METADATA,sha256=Jack_6XPKd3Ss-xQ4-U0DPDUeCyrSfUNieiz_ecEwhc,1987
|
|
1099
|
+
qwak_core-0.5.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
1100
|
+
qwak_core-0.5.18.dist-info/RECORD,,
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: qwak/fitness_service/fitness_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 symbol_database as _symbol_database
|
|
8
|
-
from google.protobuf.internal import builder as _builder
|
|
9
|
-
# @@protoc_insertion_point(imports)
|
|
10
|
-
|
|
11
|
-
_sym_db = _symbol_database.Default()
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
from _qwak_proto.qwak.fitness_service import fitness_pb2 as qwak_dot_fitness__service_dot_fitness__pb2
|
|
15
|
-
from _qwak_proto.qwak.fitness_service import status_pb2 as qwak_dot_fitness__service_dot_status__pb2
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
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')
|
|
19
|
-
|
|
20
|
-
_globals = globals()
|
|
21
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.fitness_service.fitness_service_pb2', _globals)
|
|
23
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
-
|
|
25
|
-
DESCRIPTOR._options = None
|
|
26
|
-
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,121 +0,0 @@
|
|
|
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 qwak.fitness_service.fitness_pb2
|
|
9
|
-
import qwak.fitness_service.status_pb2
|
|
10
|
-
import sys
|
|
11
|
-
|
|
12
|
-
if sys.version_info >= (3, 8):
|
|
13
|
-
import typing as typing_extensions
|
|
14
|
-
else:
|
|
15
|
-
import typing_extensions
|
|
16
|
-
|
|
17
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
18
|
-
|
|
19
|
-
class BuildModelRequest(google.protobuf.message.Message):
|
|
20
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
|
-
|
|
22
|
-
BUILD_SPEC_FIELD_NUMBER: builtins.int
|
|
23
|
-
@property
|
|
24
|
-
def build_spec(self) -> qwak.fitness_service.fitness_pb2.BuildSpec:
|
|
25
|
-
"""Requested build model spec"""
|
|
26
|
-
def __init__(
|
|
27
|
-
self,
|
|
28
|
-
*,
|
|
29
|
-
build_spec: qwak.fitness_service.fitness_pb2.BuildSpec | None = ...,
|
|
30
|
-
) -> None: ...
|
|
31
|
-
def HasField(self, field_name: typing_extensions.Literal["build_spec", b"build_spec"]) -> builtins.bool: ...
|
|
32
|
-
def ClearField(self, field_name: typing_extensions.Literal["build_spec", b"build_spec"]) -> None: ...
|
|
33
|
-
|
|
34
|
-
global___BuildModelRequest = BuildModelRequest
|
|
35
|
-
|
|
36
|
-
class BuildModelResponse(google.protobuf.message.Message):
|
|
37
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
38
|
-
|
|
39
|
-
def __init__(
|
|
40
|
-
self,
|
|
41
|
-
) -> None: ...
|
|
42
|
-
|
|
43
|
-
global___BuildModelResponse = BuildModelResponse
|
|
44
|
-
|
|
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_extensions.Literal["build_id", b"build_id"]) -> None: ...
|
|
57
|
-
|
|
58
|
-
global___CancelBuildModelRequest = CancelBuildModelRequest
|
|
59
|
-
|
|
60
|
-
class CancelBuildModelResponse(google.protobuf.message.Message):
|
|
61
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
62
|
-
|
|
63
|
-
def __init__(
|
|
64
|
-
self,
|
|
65
|
-
) -> None: ...
|
|
66
|
-
|
|
67
|
-
global___CancelBuildModelResponse = CancelBuildModelResponse
|
|
68
|
-
|
|
69
|
-
class GetRemoteBuildingStatusRequest(google.protobuf.message.Message):
|
|
70
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
71
|
-
|
|
72
|
-
BUILD_ID_FIELD_NUMBER: builtins.int
|
|
73
|
-
build_id: builtins.str
|
|
74
|
-
"""Build id of the build to get status for"""
|
|
75
|
-
def __init__(
|
|
76
|
-
self,
|
|
77
|
-
*,
|
|
78
|
-
build_id: builtins.str = ...,
|
|
79
|
-
) -> None: ...
|
|
80
|
-
def ClearField(self, field_name: typing_extensions.Literal["build_id", b"build_id"]) -> None: ...
|
|
81
|
-
|
|
82
|
-
global___GetRemoteBuildingStatusRequest = GetRemoteBuildingStatusRequest
|
|
83
|
-
|
|
84
|
-
class GetRemoteBuildingStatusResponse(google.protobuf.message.Message):
|
|
85
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
86
|
-
|
|
87
|
-
STATUS_FIELD_NUMBER: builtins.int
|
|
88
|
-
@property
|
|
89
|
-
def status(self) -> qwak.fitness_service.status_pb2.RemoteBuildingStatus: ...
|
|
90
|
-
def __init__(
|
|
91
|
-
self,
|
|
92
|
-
*,
|
|
93
|
-
status: qwak.fitness_service.status_pb2.RemoteBuildingStatus | None = ...,
|
|
94
|
-
) -> None: ...
|
|
95
|
-
def HasField(self, field_name: typing_extensions.Literal["status", b"status"]) -> builtins.bool: ...
|
|
96
|
-
def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ...
|
|
97
|
-
|
|
98
|
-
global___GetRemoteBuildingStatusResponse = GetRemoteBuildingStatusResponse
|
|
99
|
-
|
|
100
|
-
class CleanRemoteBuildResourcesRequest(google.protobuf.message.Message):
|
|
101
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
102
|
-
|
|
103
|
-
BUILD_ID_FIELD_NUMBER: builtins.int
|
|
104
|
-
build_id: builtins.str
|
|
105
|
-
def __init__(
|
|
106
|
-
self,
|
|
107
|
-
*,
|
|
108
|
-
build_id: builtins.str = ...,
|
|
109
|
-
) -> None: ...
|
|
110
|
-
def ClearField(self, field_name: typing_extensions.Literal["build_id", b"build_id"]) -> None: ...
|
|
111
|
-
|
|
112
|
-
global___CleanRemoteBuildResourcesRequest = CleanRemoteBuildResourcesRequest
|
|
113
|
-
|
|
114
|
-
class CleanRemoteBuildResourcesResponse(google.protobuf.message.Message):
|
|
115
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
116
|
-
|
|
117
|
-
def __init__(
|
|
118
|
-
self,
|
|
119
|
-
) -> None: ...
|
|
120
|
-
|
|
121
|
-
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 _qwak_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
|