quilt-hp-python 0.1.1__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.
- quilt_hp/__init__.py +22 -0
- quilt_hp/_paths.py +26 -0
- quilt_hp/_proto/__init__.py +0 -0
- quilt_hp/_proto/quilt_device_pairing_pb2.py +56 -0
- quilt_hp/_proto/quilt_device_pairing_pb2.pyi +317 -0
- quilt_hp/_proto/quilt_device_pairing_pb2_grpc.py +24 -0
- quilt_hp/_proto/quilt_hds_pb2.py +292 -0
- quilt_hp/_proto/quilt_hds_pb2.pyi +3947 -0
- quilt_hp/_proto/quilt_hds_pb2_grpc.py +1732 -0
- quilt_hp/_proto/quilt_notifier_pb2.py +55 -0
- quilt_hp/_proto/quilt_notifier_pb2.pyi +258 -0
- quilt_hp/_proto/quilt_notifier_pb2_grpc.py +97 -0
- quilt_hp/_proto/quilt_services_pb2.py +171 -0
- quilt_hp/_proto/quilt_services_pb2.pyi +1320 -0
- quilt_hp/_proto/quilt_services_pb2_grpc.py +1188 -0
- quilt_hp/_proto/quilt_system_pb2.py +53 -0
- quilt_hp/_proto/quilt_system_pb2.pyi +164 -0
- quilt_hp/_proto/quilt_system_pb2_grpc.py +270 -0
- quilt_hp/auth.py +244 -0
- quilt_hp/cli/__init__.py +1 -0
- quilt_hp/cli/main.py +770 -0
- quilt_hp/cli/settings.py +123 -0
- quilt_hp/cli/store.py +105 -0
- quilt_hp/cli/tui.py +2677 -0
- quilt_hp/client.py +616 -0
- quilt_hp/const.py +57 -0
- quilt_hp/exceptions.py +23 -0
- quilt_hp/models/__init__.py +85 -0
- quilt_hp/models/comfort.py +47 -0
- quilt_hp/models/controller.py +135 -0
- quilt_hp/models/energy.py +31 -0
- quilt_hp/models/enums.py +298 -0
- quilt_hp/models/indoor_unit.py +412 -0
- quilt_hp/models/outdoor_unit.py +71 -0
- quilt_hp/models/qsm.py +105 -0
- quilt_hp/models/schedule.py +98 -0
- quilt_hp/models/sensor.py +92 -0
- quilt_hp/models/software_update.py +74 -0
- quilt_hp/models/space.py +177 -0
- quilt_hp/models/system.py +451 -0
- quilt_hp/py.typed +1 -0
- quilt_hp/services/__init__.py +1 -0
- quilt_hp/services/hds.py +480 -0
- quilt_hp/services/streaming.py +561 -0
- quilt_hp/services/system.py +95 -0
- quilt_hp/services/user.py +143 -0
- quilt_hp/tokens.py +119 -0
- quilt_hp/transport.py +192 -0
- quilt_hp_python-0.1.1.dist-info/METADATA +172 -0
- quilt_hp_python-0.1.1.dist-info/RECORD +53 -0
- quilt_hp_python-0.1.1.dist-info/WHEEL +4 -0
- quilt_hp_python-0.1.1.dist-info/entry_points.txt +2 -0
- quilt_hp_python-0.1.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: quilt_system.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'quilt_system.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12quilt_system.proto\x12\x12\x63ore.protos.system\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x15\n\x13\x43reateSystemRequest\"\x1e\n\x10GetSystemRequest\x12\n\n\x02id\x18\x01 \x01(\t\"A\n\x13UpdateSystemRequest\x12*\n\x06system\x18\x01 \x01(\x0b\x32\x1a.core.protos.system.System\"!\n\x13\x44\x65leteSystemRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x14\n\x12ListSystemsRequest\"B\n\x13ListSystemsResponse\x12+\n\x07systems\x18\x01 \x03(\x0b\x32\x1a.core.protos.system.System\"D\n\x06System\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_ts\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xb9\x03\n\rSystemService\x12M\n\tGetSystem\x12$.core.protos.system.GetSystemRequest\x1a\x1a.core.protos.system.System\x12S\n\x0c\x43reateSystem\x12\'.core.protos.system.CreateSystemRequest\x1a\x1a.core.protos.system.System\x12S\n\x0cUpdateSystem\x12\'.core.protos.system.UpdateSystemRequest\x1a\x1a.core.protos.system.System\x12O\n\x0c\x44\x65leteSystem\x12\'.core.protos.system.DeleteSystemRequest\x1a\x16.google.protobuf.Empty\x12^\n\x0bListSystems\x12&.core.protos.system.ListSystemsRequest\x1a\'.core.protos.system.ListSystemsResponseB \n\x16\x63om.quilt.proto.system\xba\x02\x05Quiltb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'quilt_system_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026com.quilt.proto.system\272\002\005Quilt'
|
|
37
|
+
_globals['_CREATESYSTEMREQUEST']._serialized_start=104
|
|
38
|
+
_globals['_CREATESYSTEMREQUEST']._serialized_end=125
|
|
39
|
+
_globals['_GETSYSTEMREQUEST']._serialized_start=127
|
|
40
|
+
_globals['_GETSYSTEMREQUEST']._serialized_end=157
|
|
41
|
+
_globals['_UPDATESYSTEMREQUEST']._serialized_start=159
|
|
42
|
+
_globals['_UPDATESYSTEMREQUEST']._serialized_end=224
|
|
43
|
+
_globals['_DELETESYSTEMREQUEST']._serialized_start=226
|
|
44
|
+
_globals['_DELETESYSTEMREQUEST']._serialized_end=259
|
|
45
|
+
_globals['_LISTSYSTEMSREQUEST']._serialized_start=261
|
|
46
|
+
_globals['_LISTSYSTEMSREQUEST']._serialized_end=281
|
|
47
|
+
_globals['_LISTSYSTEMSRESPONSE']._serialized_start=283
|
|
48
|
+
_globals['_LISTSYSTEMSRESPONSE']._serialized_end=349
|
|
49
|
+
_globals['_SYSTEM']._serialized_start=351
|
|
50
|
+
_globals['_SYSTEM']._serialized_end=419
|
|
51
|
+
_globals['_SYSTEMSERVICE']._serialized_start=422
|
|
52
|
+
_globals['_SYSTEMSERVICE']._serialized_end=863
|
|
53
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
quilt_system.proto
|
|
5
|
+
SystemService lives in package core.protos.system on the Android wire path.
|
|
6
|
+
|
|
7
|
+
Confirmed in current Android APK:
|
|
8
|
+
- CreateSystem
|
|
9
|
+
- DeleteSystem
|
|
10
|
+
|
|
11
|
+
Present in KMP interfaces but not confirmed in the current Android APK:
|
|
12
|
+
- GetSystem
|
|
13
|
+
- UpdateSystem
|
|
14
|
+
- ListSystems
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from collections import abc as _abc
|
|
18
|
+
from google.protobuf import descriptor as _descriptor
|
|
19
|
+
from google.protobuf import message as _message
|
|
20
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
21
|
+
from google.protobuf.internal import containers as _containers
|
|
22
|
+
import builtins as _builtins
|
|
23
|
+
import sys
|
|
24
|
+
import typing as _typing
|
|
25
|
+
|
|
26
|
+
if sys.version_info >= (3, 11):
|
|
27
|
+
from typing import TypeAlias as _TypeAlias, Never as _Never
|
|
28
|
+
else:
|
|
29
|
+
from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
32
|
+
|
|
33
|
+
@_typing.final
|
|
34
|
+
class CreateSystemRequest(_message.Message):
|
|
35
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self,
|
|
39
|
+
) -> None: ...
|
|
40
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
41
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
42
|
+
_ClearFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
43
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
44
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
45
|
+
|
|
46
|
+
Global___CreateSystemRequest: _TypeAlias = CreateSystemRequest # noqa: Y015
|
|
47
|
+
|
|
48
|
+
@_typing.final
|
|
49
|
+
class GetSystemRequest(_message.Message):
|
|
50
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
51
|
+
|
|
52
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
53
|
+
id: _builtins.str
|
|
54
|
+
def __init__(
|
|
55
|
+
self,
|
|
56
|
+
*,
|
|
57
|
+
id: _builtins.str = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
60
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
61
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015
|
|
62
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
63
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
64
|
+
|
|
65
|
+
Global___GetSystemRequest: _TypeAlias = GetSystemRequest # noqa: Y015
|
|
66
|
+
|
|
67
|
+
@_typing.final
|
|
68
|
+
class UpdateSystemRequest(_message.Message):
|
|
69
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
70
|
+
|
|
71
|
+
SYSTEM_FIELD_NUMBER: _builtins.int
|
|
72
|
+
@_builtins.property
|
|
73
|
+
def system(self) -> Global___System: ...
|
|
74
|
+
def __init__(
|
|
75
|
+
self,
|
|
76
|
+
*,
|
|
77
|
+
system: Global___System | None = ...,
|
|
78
|
+
) -> None: ...
|
|
79
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["system", b"system"] # noqa: Y015
|
|
80
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
81
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["system", b"system"] # noqa: Y015
|
|
82
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
83
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
84
|
+
|
|
85
|
+
Global___UpdateSystemRequest: _TypeAlias = UpdateSystemRequest # noqa: Y015
|
|
86
|
+
|
|
87
|
+
@_typing.final
|
|
88
|
+
class DeleteSystemRequest(_message.Message):
|
|
89
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
90
|
+
|
|
91
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
92
|
+
id: _builtins.str
|
|
93
|
+
def __init__(
|
|
94
|
+
self,
|
|
95
|
+
*,
|
|
96
|
+
id: _builtins.str = ...,
|
|
97
|
+
) -> None: ...
|
|
98
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
99
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
100
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["id", b"id"] # noqa: Y015
|
|
101
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
102
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
103
|
+
|
|
104
|
+
Global___DeleteSystemRequest: _TypeAlias = DeleteSystemRequest # noqa: Y015
|
|
105
|
+
|
|
106
|
+
@_typing.final
|
|
107
|
+
class ListSystemsRequest(_message.Message):
|
|
108
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
109
|
+
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
) -> None: ...
|
|
113
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
114
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
115
|
+
_ClearFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
116
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
117
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
118
|
+
|
|
119
|
+
Global___ListSystemsRequest: _TypeAlias = ListSystemsRequest # noqa: Y015
|
|
120
|
+
|
|
121
|
+
@_typing.final
|
|
122
|
+
class ListSystemsResponse(_message.Message):
|
|
123
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
124
|
+
|
|
125
|
+
SYSTEMS_FIELD_NUMBER: _builtins.int
|
|
126
|
+
@_builtins.property
|
|
127
|
+
def systems(self) -> _containers.RepeatedCompositeFieldContainer[Global___System]: ...
|
|
128
|
+
def __init__(
|
|
129
|
+
self,
|
|
130
|
+
*,
|
|
131
|
+
systems: _abc.Iterable[Global___System] | None = ...,
|
|
132
|
+
) -> None: ...
|
|
133
|
+
_HasFieldArgType: _TypeAlias = _Never # noqa: Y015
|
|
134
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
135
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["systems", b"systems"] # noqa: Y015
|
|
136
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
137
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
138
|
+
|
|
139
|
+
Global___ListSystemsResponse: _TypeAlias = ListSystemsResponse # noqa: Y015
|
|
140
|
+
|
|
141
|
+
@_typing.final
|
|
142
|
+
class System(_message.Message):
|
|
143
|
+
"""KMP exposes a simplified System model (id + created timestamp)."""
|
|
144
|
+
|
|
145
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
146
|
+
|
|
147
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
148
|
+
CREATED_TS_FIELD_NUMBER: _builtins.int
|
|
149
|
+
id: _builtins.str
|
|
150
|
+
@_builtins.property
|
|
151
|
+
def created_ts(self) -> _timestamp_pb2.Timestamp: ...
|
|
152
|
+
def __init__(
|
|
153
|
+
self,
|
|
154
|
+
*,
|
|
155
|
+
id: _builtins.str = ...,
|
|
156
|
+
created_ts: _timestamp_pb2.Timestamp | None = ...,
|
|
157
|
+
) -> None: ...
|
|
158
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["created_ts", b"created_ts"] # noqa: Y015
|
|
159
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
160
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["created_ts", b"created_ts", "id", b"id"] # noqa: Y015
|
|
161
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
162
|
+
def WhichOneof(self, oneof_group: _Never) -> None: ...
|
|
163
|
+
|
|
164
|
+
Global___System: _TypeAlias = System # noqa: Y015
|
|
@@ -0,0 +1,270 @@
|
|
|
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
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
7
|
+
from . import quilt_system_pb2 as quilt__system__pb2
|
|
8
|
+
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
10
|
+
GRPC_VERSION = grpc.__version__
|
|
11
|
+
_version_not_supported = False
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
from grpc._utilities import first_version_is_lower
|
|
15
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
16
|
+
except ImportError:
|
|
17
|
+
_version_not_supported = True
|
|
18
|
+
|
|
19
|
+
if _version_not_supported:
|
|
20
|
+
raise RuntimeError(
|
|
21
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
+
+ ' but the generated code in quilt_system_pb2_grpc.py depends on'
|
|
23
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class SystemServiceStub(object):
|
|
30
|
+
"""Missing associated documentation comment in .proto file."""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.GetSystem = channel.unary_unary(
|
|
39
|
+
'/core.protos.system.SystemService/GetSystem',
|
|
40
|
+
request_serializer=quilt__system__pb2.GetSystemRequest.SerializeToString,
|
|
41
|
+
response_deserializer=quilt__system__pb2.System.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.CreateSystem = channel.unary_unary(
|
|
44
|
+
'/core.protos.system.SystemService/CreateSystem',
|
|
45
|
+
request_serializer=quilt__system__pb2.CreateSystemRequest.SerializeToString,
|
|
46
|
+
response_deserializer=quilt__system__pb2.System.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
self.UpdateSystem = channel.unary_unary(
|
|
49
|
+
'/core.protos.system.SystemService/UpdateSystem',
|
|
50
|
+
request_serializer=quilt__system__pb2.UpdateSystemRequest.SerializeToString,
|
|
51
|
+
response_deserializer=quilt__system__pb2.System.FromString,
|
|
52
|
+
_registered_method=True)
|
|
53
|
+
self.DeleteSystem = channel.unary_unary(
|
|
54
|
+
'/core.protos.system.SystemService/DeleteSystem',
|
|
55
|
+
request_serializer=quilt__system__pb2.DeleteSystemRequest.SerializeToString,
|
|
56
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
57
|
+
_registered_method=True)
|
|
58
|
+
self.ListSystems = channel.unary_unary(
|
|
59
|
+
'/core.protos.system.SystemService/ListSystems',
|
|
60
|
+
request_serializer=quilt__system__pb2.ListSystemsRequest.SerializeToString,
|
|
61
|
+
response_deserializer=quilt__system__pb2.ListSystemsResponse.FromString,
|
|
62
|
+
_registered_method=True)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class SystemServiceServicer(object):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
|
|
68
|
+
def GetSystem(self, request, context):
|
|
69
|
+
"""Missing associated documentation comment in .proto file."""
|
|
70
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
71
|
+
context.set_details('Method not implemented!')
|
|
72
|
+
raise NotImplementedError('Method not implemented!')
|
|
73
|
+
|
|
74
|
+
def CreateSystem(self, request, context):
|
|
75
|
+
"""Missing associated documentation comment in .proto file."""
|
|
76
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
77
|
+
context.set_details('Method not implemented!')
|
|
78
|
+
raise NotImplementedError('Method not implemented!')
|
|
79
|
+
|
|
80
|
+
def UpdateSystem(self, request, context):
|
|
81
|
+
"""Missing associated documentation comment in .proto file."""
|
|
82
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
83
|
+
context.set_details('Method not implemented!')
|
|
84
|
+
raise NotImplementedError('Method not implemented!')
|
|
85
|
+
|
|
86
|
+
def DeleteSystem(self, request, context):
|
|
87
|
+
"""Missing associated documentation comment in .proto file."""
|
|
88
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
89
|
+
context.set_details('Method not implemented!')
|
|
90
|
+
raise NotImplementedError('Method not implemented!')
|
|
91
|
+
|
|
92
|
+
def ListSystems(self, request, context):
|
|
93
|
+
"""Missing associated documentation comment in .proto file."""
|
|
94
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
95
|
+
context.set_details('Method not implemented!')
|
|
96
|
+
raise NotImplementedError('Method not implemented!')
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def add_SystemServiceServicer_to_server(servicer, server):
|
|
100
|
+
rpc_method_handlers = {
|
|
101
|
+
'GetSystem': grpc.unary_unary_rpc_method_handler(
|
|
102
|
+
servicer.GetSystem,
|
|
103
|
+
request_deserializer=quilt__system__pb2.GetSystemRequest.FromString,
|
|
104
|
+
response_serializer=quilt__system__pb2.System.SerializeToString,
|
|
105
|
+
),
|
|
106
|
+
'CreateSystem': grpc.unary_unary_rpc_method_handler(
|
|
107
|
+
servicer.CreateSystem,
|
|
108
|
+
request_deserializer=quilt__system__pb2.CreateSystemRequest.FromString,
|
|
109
|
+
response_serializer=quilt__system__pb2.System.SerializeToString,
|
|
110
|
+
),
|
|
111
|
+
'UpdateSystem': grpc.unary_unary_rpc_method_handler(
|
|
112
|
+
servicer.UpdateSystem,
|
|
113
|
+
request_deserializer=quilt__system__pb2.UpdateSystemRequest.FromString,
|
|
114
|
+
response_serializer=quilt__system__pb2.System.SerializeToString,
|
|
115
|
+
),
|
|
116
|
+
'DeleteSystem': grpc.unary_unary_rpc_method_handler(
|
|
117
|
+
servicer.DeleteSystem,
|
|
118
|
+
request_deserializer=quilt__system__pb2.DeleteSystemRequest.FromString,
|
|
119
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
120
|
+
),
|
|
121
|
+
'ListSystems': grpc.unary_unary_rpc_method_handler(
|
|
122
|
+
servicer.ListSystems,
|
|
123
|
+
request_deserializer=quilt__system__pb2.ListSystemsRequest.FromString,
|
|
124
|
+
response_serializer=quilt__system__pb2.ListSystemsResponse.SerializeToString,
|
|
125
|
+
),
|
|
126
|
+
}
|
|
127
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
128
|
+
'core.protos.system.SystemService', rpc_method_handlers)
|
|
129
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
130
|
+
server.add_registered_method_handlers('core.protos.system.SystemService', rpc_method_handlers)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
# This class is part of an EXPERIMENTAL API.
|
|
134
|
+
class SystemService(object):
|
|
135
|
+
"""Missing associated documentation comment in .proto file."""
|
|
136
|
+
|
|
137
|
+
@staticmethod
|
|
138
|
+
def GetSystem(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(
|
|
149
|
+
request,
|
|
150
|
+
target,
|
|
151
|
+
'/core.protos.system.SystemService/GetSystem',
|
|
152
|
+
quilt__system__pb2.GetSystemRequest.SerializeToString,
|
|
153
|
+
quilt__system__pb2.System.FromString,
|
|
154
|
+
options,
|
|
155
|
+
channel_credentials,
|
|
156
|
+
insecure,
|
|
157
|
+
call_credentials,
|
|
158
|
+
compression,
|
|
159
|
+
wait_for_ready,
|
|
160
|
+
timeout,
|
|
161
|
+
metadata,
|
|
162
|
+
_registered_method=True)
|
|
163
|
+
|
|
164
|
+
@staticmethod
|
|
165
|
+
def CreateSystem(request,
|
|
166
|
+
target,
|
|
167
|
+
options=(),
|
|
168
|
+
channel_credentials=None,
|
|
169
|
+
call_credentials=None,
|
|
170
|
+
insecure=False,
|
|
171
|
+
compression=None,
|
|
172
|
+
wait_for_ready=None,
|
|
173
|
+
timeout=None,
|
|
174
|
+
metadata=None):
|
|
175
|
+
return grpc.experimental.unary_unary(
|
|
176
|
+
request,
|
|
177
|
+
target,
|
|
178
|
+
'/core.protos.system.SystemService/CreateSystem',
|
|
179
|
+
quilt__system__pb2.CreateSystemRequest.SerializeToString,
|
|
180
|
+
quilt__system__pb2.System.FromString,
|
|
181
|
+
options,
|
|
182
|
+
channel_credentials,
|
|
183
|
+
insecure,
|
|
184
|
+
call_credentials,
|
|
185
|
+
compression,
|
|
186
|
+
wait_for_ready,
|
|
187
|
+
timeout,
|
|
188
|
+
metadata,
|
|
189
|
+
_registered_method=True)
|
|
190
|
+
|
|
191
|
+
@staticmethod
|
|
192
|
+
def UpdateSystem(request,
|
|
193
|
+
target,
|
|
194
|
+
options=(),
|
|
195
|
+
channel_credentials=None,
|
|
196
|
+
call_credentials=None,
|
|
197
|
+
insecure=False,
|
|
198
|
+
compression=None,
|
|
199
|
+
wait_for_ready=None,
|
|
200
|
+
timeout=None,
|
|
201
|
+
metadata=None):
|
|
202
|
+
return grpc.experimental.unary_unary(
|
|
203
|
+
request,
|
|
204
|
+
target,
|
|
205
|
+
'/core.protos.system.SystemService/UpdateSystem',
|
|
206
|
+
quilt__system__pb2.UpdateSystemRequest.SerializeToString,
|
|
207
|
+
quilt__system__pb2.System.FromString,
|
|
208
|
+
options,
|
|
209
|
+
channel_credentials,
|
|
210
|
+
insecure,
|
|
211
|
+
call_credentials,
|
|
212
|
+
compression,
|
|
213
|
+
wait_for_ready,
|
|
214
|
+
timeout,
|
|
215
|
+
metadata,
|
|
216
|
+
_registered_method=True)
|
|
217
|
+
|
|
218
|
+
@staticmethod
|
|
219
|
+
def DeleteSystem(request,
|
|
220
|
+
target,
|
|
221
|
+
options=(),
|
|
222
|
+
channel_credentials=None,
|
|
223
|
+
call_credentials=None,
|
|
224
|
+
insecure=False,
|
|
225
|
+
compression=None,
|
|
226
|
+
wait_for_ready=None,
|
|
227
|
+
timeout=None,
|
|
228
|
+
metadata=None):
|
|
229
|
+
return grpc.experimental.unary_unary(
|
|
230
|
+
request,
|
|
231
|
+
target,
|
|
232
|
+
'/core.protos.system.SystemService/DeleteSystem',
|
|
233
|
+
quilt__system__pb2.DeleteSystemRequest.SerializeToString,
|
|
234
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
235
|
+
options,
|
|
236
|
+
channel_credentials,
|
|
237
|
+
insecure,
|
|
238
|
+
call_credentials,
|
|
239
|
+
compression,
|
|
240
|
+
wait_for_ready,
|
|
241
|
+
timeout,
|
|
242
|
+
metadata,
|
|
243
|
+
_registered_method=True)
|
|
244
|
+
|
|
245
|
+
@staticmethod
|
|
246
|
+
def ListSystems(request,
|
|
247
|
+
target,
|
|
248
|
+
options=(),
|
|
249
|
+
channel_credentials=None,
|
|
250
|
+
call_credentials=None,
|
|
251
|
+
insecure=False,
|
|
252
|
+
compression=None,
|
|
253
|
+
wait_for_ready=None,
|
|
254
|
+
timeout=None,
|
|
255
|
+
metadata=None):
|
|
256
|
+
return grpc.experimental.unary_unary(
|
|
257
|
+
request,
|
|
258
|
+
target,
|
|
259
|
+
'/core.protos.system.SystemService/ListSystems',
|
|
260
|
+
quilt__system__pb2.ListSystemsRequest.SerializeToString,
|
|
261
|
+
quilt__system__pb2.ListSystemsResponse.FromString,
|
|
262
|
+
options,
|
|
263
|
+
channel_credentials,
|
|
264
|
+
insecure,
|
|
265
|
+
call_credentials,
|
|
266
|
+
compression,
|
|
267
|
+
wait_for_ready,
|
|
268
|
+
timeout,
|
|
269
|
+
metadata,
|
|
270
|
+
_registered_method=True)
|