t2iapi 4.2.0.dev414__py3-none-any.whl → 4.2.0.dev417__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.
@@ -16,7 +16,7 @@ from t2iapi import basic_responses_pb2 as t2iapi_dot_basic__responses__pb2
16
16
  from t2iapi.biceps import metadata_pb2 as t2iapi_dot_biceps_dot_metadata__pb2
17
17
 
18
18
 
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$t2iapi/device/device_responses.proto\x12\rt2iapi.device\x1a\x1ct2iapi/basic_responses.proto\x1a\x1ct2iapi/biceps/metadata.proto\"X\n\x1fGetRemovableDescriptorsResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x0e\n\x06handle\x18\x02 \x03(\t\"T\n\x1bInsertMdsDescriptorResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x0e\n\x06handle\x18\x02 \x01(\t\"w\n\x1f\x41vailableDeviceMetaDataResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12-\n\tmeta_data\x18\x02 \x01(\x0b\x32\x1a.t2iapi.biceps.MetaDataMsg\"`\n\x1dGetComponentSwVersionResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x18\n\x10software_version\x18\x02 \x01(\tB4\n!com.draeger.medical.t2iapi.deviceB\x0f\x44\x65viceResponsesb\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$t2iapi/device/device_responses.proto\x12\rt2iapi.device\x1a\x1ct2iapi/basic_responses.proto\x1a\x1ct2iapi/biceps/metadata.proto\"X\n\x1fGetRemovableDescriptorsResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x0e\n\x06handle\x18\x02 \x03(\t\"T\n\x1bInsertMdsDescriptorResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x0e\n\x06handle\x18\x02 \x01(\t\"w\n\x1f\x41vailableDeviceMetaDataResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12-\n\tmeta_data\x18\x02 \x01(\x0b\x32\x1a.t2iapi.biceps.MetaDataMsg\"`\n\x1dGetComponentSwVersionResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x18\n\x10software_version\x18\x02 \x01(\t\"`\n\x1dGetComponentHwVersionResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x18\n\x10hardware_version\x18\x02 \x01(\tB4\n!com.draeger.medical.t2iapi.deviceB\x0f\x44\x65viceResponsesb\x06proto3')
20
20
 
21
21
  _globals = globals()
22
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -32,4 +32,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
32
32
  _globals['_AVAILABLEDEVICEMETADATARESPONSE']._serialized_end=410
33
33
  _globals['_GETCOMPONENTSWVERSIONRESPONSE']._serialized_start=412
34
34
  _globals['_GETCOMPONENTSWVERSIONRESPONSE']._serialized_end=508
35
+ _globals['_GETCOMPONENTHWVERSIONRESPONSE']._serialized_start=510
36
+ _globals['_GETCOMPONENTHWVERSIONRESPONSE']._serialized_end=606
35
37
  # @@protoc_insertion_point(module_scope)
@@ -38,3 +38,11 @@ class GetComponentSwVersionResponse(_message.Message):
38
38
  status: _basic_responses_pb2.BasicResponse
39
39
  software_version: str
40
40
  def __init__(self, status: _Optional[_Union[_basic_responses_pb2.BasicResponse, _Mapping]] = ..., software_version: _Optional[str] = ...) -> None: ...
41
+
42
+ class GetComponentHwVersionResponse(_message.Message):
43
+ __slots__ = ("status", "hardware_version")
44
+ STATUS_FIELD_NUMBER: _ClassVar[int]
45
+ HARDWARE_VERSION_FIELD_NUMBER: _ClassVar[int]
46
+ status: _basic_responses_pb2.BasicResponse
47
+ hardware_version: str
48
+ def __init__(self, status: _Optional[_Union[_basic_responses_pb2.BasicResponse, _Mapping]] = ..., hardware_version: _Optional[str] = ...) -> None: ...
@@ -19,7 +19,7 @@ from t2iapi.device import device_requests_pb2 as t2iapi_dot_device_dot_device__r
19
19
  from t2iapi.device import device_responses_pb2 as t2iapi_dot_device_dot_device__responses__pb2
20
20
 
21
21
 
22
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bt2iapi/device/service.proto\x12\rt2iapi.device\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1ct2iapi/basic_responses.proto\x1a\x1bt2iapi/basic_requests.proto\x1a#t2iapi/device/device_requests.proto\x1a$t2iapi/device/device_responses.proto2\x87\x0c\n\rDeviceService\x12]\n\x16SetDeviceOperatingMode\x12,.t2iapi.device.SetDeviceOperatingModeRequest\x1a\x15.t2iapi.BasicResponse\x12:\n\tSendHello\x12\x16.google.protobuf.Empty\x1a\x15.t2iapi.BasicResponse\x12?\n\x0eSetClockDevice\x12\x16.google.protobuf.Empty\x1a\x15.t2iapi.BasicResponse\x12G\n\x0bSetLanguage\x12!.t2iapi.device.SetLanguageRequest\x1a\x15.t2iapi.BasicResponse\x12\x86\x01\n\x1eGetRemovableDescriptorsOfClass\x12\x34.t2iapi.device.GetRemovableDescriptorsOfClassRequest\x1a..t2iapi.device.GetRemovableDescriptorsResponse\x12\x45\n\x10RemoveDescriptor\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12\x45\n\x10InsertDescriptor\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12Y\n\x13InsertMdsDescriptor\x12\x16.google.protobuf.Empty\x1a*.t2iapi.device.InsertMdsDescriptorResponse\x12H\n\x13RemoveMdsDescriptor\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12_\n\x17TriggerDescriptorUpdate\x12-.t2iapi.device.TriggerDescriptorUpdateRequest\x1a\x15.t2iapi.BasicResponse\x12K\n\x1aTriggerAnyDescriptorUpdate\x12\x16.google.protobuf.Empty\x1a\x15.t2iapi.BasicResponse\x12K\n\rTriggerReport\x12#.t2iapi.device.TriggerReportRequest\x1a\x15.t2iapi.BasicResponse\x12O\n\x0fSetBatteryUsage\x12%.t2iapi.device.SetBatteryUsageRequest\x1a\x15.t2iapi.BasicResponse\x12}\n&ProvideInformationAboutLastCalibration\x12<.t2iapi.device.ProvideInformationAboutLastCalibrationRequest\x1a\x15.t2iapi.BasicResponse\x12}\n&ProvideInformationAboutNextCalibration\x12<.t2iapi.device.ProvideInformationAboutNextCalibrationRequest\x1a\x15.t2iapi.BasicResponse\x12h\n\x1aGetAvailableDeviceMetaData\x12\x1a.t2iapi.BasicHandleRequest\x1a..t2iapi.device.AvailableDeviceMetaDataResponse\x12\x61\n\x15GetComponentSwVersion\x12\x1a.t2iapi.BasicHandleRequest\x1a,.t2iapi.device.GetComponentSwVersionResponseB5\n!com.draeger.medical.t2iapi.deviceB\x10\x44\x65viceApiServiceb\x06proto3')
22
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bt2iapi/device/service.proto\x12\rt2iapi.device\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1ct2iapi/basic_responses.proto\x1a\x1bt2iapi/basic_requests.proto\x1a#t2iapi/device/device_requests.proto\x1a$t2iapi/device/device_responses.proto2\xea\x0c\n\rDeviceService\x12]\n\x16SetDeviceOperatingMode\x12,.t2iapi.device.SetDeviceOperatingModeRequest\x1a\x15.t2iapi.BasicResponse\x12:\n\tSendHello\x12\x16.google.protobuf.Empty\x1a\x15.t2iapi.BasicResponse\x12?\n\x0eSetClockDevice\x12\x16.google.protobuf.Empty\x1a\x15.t2iapi.BasicResponse\x12G\n\x0bSetLanguage\x12!.t2iapi.device.SetLanguageRequest\x1a\x15.t2iapi.BasicResponse\x12\x86\x01\n\x1eGetRemovableDescriptorsOfClass\x12\x34.t2iapi.device.GetRemovableDescriptorsOfClassRequest\x1a..t2iapi.device.GetRemovableDescriptorsResponse\x12\x45\n\x10RemoveDescriptor\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12\x45\n\x10InsertDescriptor\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12Y\n\x13InsertMdsDescriptor\x12\x16.google.protobuf.Empty\x1a*.t2iapi.device.InsertMdsDescriptorResponse\x12H\n\x13RemoveMdsDescriptor\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12_\n\x17TriggerDescriptorUpdate\x12-.t2iapi.device.TriggerDescriptorUpdateRequest\x1a\x15.t2iapi.BasicResponse\x12K\n\x1aTriggerAnyDescriptorUpdate\x12\x16.google.protobuf.Empty\x1a\x15.t2iapi.BasicResponse\x12K\n\rTriggerReport\x12#.t2iapi.device.TriggerReportRequest\x1a\x15.t2iapi.BasicResponse\x12O\n\x0fSetBatteryUsage\x12%.t2iapi.device.SetBatteryUsageRequest\x1a\x15.t2iapi.BasicResponse\x12}\n&ProvideInformationAboutLastCalibration\x12<.t2iapi.device.ProvideInformationAboutLastCalibrationRequest\x1a\x15.t2iapi.BasicResponse\x12}\n&ProvideInformationAboutNextCalibration\x12<.t2iapi.device.ProvideInformationAboutNextCalibrationRequest\x1a\x15.t2iapi.BasicResponse\x12h\n\x1aGetAvailableDeviceMetaData\x12\x1a.t2iapi.BasicHandleRequest\x1a..t2iapi.device.AvailableDeviceMetaDataResponse\x12\x61\n\x15GetComponentSwVersion\x12\x1a.t2iapi.BasicHandleRequest\x1a,.t2iapi.device.GetComponentSwVersionResponse\x12\x61\n\x15GetComponentHwVersion\x12\x1a.t2iapi.BasicHandleRequest\x1a,.t2iapi.device.GetComponentHwVersionResponseB5\n!com.draeger.medical.t2iapi.deviceB\x10\x44\x65viceApiServiceb\x06proto3')
23
23
 
24
24
  _globals = globals()
25
25
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -28,5 +28,5 @@ if _descriptor._USE_C_DESCRIPTORS == False:
28
28
  _globals['DESCRIPTOR']._options = None
29
29
  _globals['DESCRIPTOR']._serialized_options = b'\n!com.draeger.medical.t2iapi.deviceB\020DeviceApiService'
30
30
  _globals['_DEVICESERVICE']._serialized_start=210
31
- _globals['_DEVICESERVICE']._serialized_end=1753
31
+ _globals['_DEVICESERVICE']._serialized_end=1852
32
32
  # @@protoc_insertion_point(module_scope)
@@ -105,6 +105,11 @@ class DeviceServiceStub(object):
105
105
  request_serializer=t2iapi_dot_basic__requests__pb2.BasicHandleRequest.SerializeToString,
106
106
  response_deserializer=t2iapi_dot_device_dot_device__responses__pb2.GetComponentSwVersionResponse.FromString,
107
107
  )
108
+ self.GetComponentHwVersion = channel.unary_unary(
109
+ '/t2iapi.device.DeviceService/GetComponentHwVersion',
110
+ request_serializer=t2iapi_dot_basic__requests__pb2.BasicHandleRequest.SerializeToString,
111
+ response_deserializer=t2iapi_dot_device_dot_device__responses__pb2.GetComponentHwVersionResponse.FromString,
112
+ )
108
113
 
109
114
 
110
115
  class DeviceServiceServicer(object):
@@ -285,6 +290,15 @@ class DeviceServiceServicer(object):
285
290
  context.set_details('Method not implemented!')
286
291
  raise NotImplementedError('Method not implemented!')
287
292
 
293
+ def GetComponentHwVersion(self, request, context):
294
+ """
295
+ Get the hardware version of the requested pm:AbstractDeviceComponentDescriptor handle if it is representing
296
+ a component with a hardware version.
297
+ """
298
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
299
+ context.set_details('Method not implemented!')
300
+ raise NotImplementedError('Method not implemented!')
301
+
288
302
 
289
303
  def add_DeviceServiceServicer_to_server(servicer, server):
290
304
  rpc_method_handlers = {
@@ -373,6 +387,11 @@ def add_DeviceServiceServicer_to_server(servicer, server):
373
387
  request_deserializer=t2iapi_dot_basic__requests__pb2.BasicHandleRequest.FromString,
374
388
  response_serializer=t2iapi_dot_device_dot_device__responses__pb2.GetComponentSwVersionResponse.SerializeToString,
375
389
  ),
390
+ 'GetComponentHwVersion': grpc.unary_unary_rpc_method_handler(
391
+ servicer.GetComponentHwVersion,
392
+ request_deserializer=t2iapi_dot_basic__requests__pb2.BasicHandleRequest.FromString,
393
+ response_serializer=t2iapi_dot_device_dot_device__responses__pb2.GetComponentHwVersionResponse.SerializeToString,
394
+ ),
376
395
  }
377
396
  generic_handler = grpc.method_handlers_generic_handler(
378
397
  't2iapi.device.DeviceService', rpc_method_handlers)
@@ -673,3 +692,20 @@ class DeviceService(object):
673
692
  t2iapi_dot_device_dot_device__responses__pb2.GetComponentSwVersionResponse.FromString,
674
693
  options, channel_credentials,
675
694
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
695
+
696
+ @staticmethod
697
+ def GetComponentHwVersion(request,
698
+ target,
699
+ options=(),
700
+ channel_credentials=None,
701
+ call_credentials=None,
702
+ insecure=False,
703
+ compression=None,
704
+ wait_for_ready=None,
705
+ timeout=None,
706
+ metadata=None):
707
+ return grpc.experimental.unary_unary(request, target, '/t2iapi.device.DeviceService/GetComponentHwVersion',
708
+ t2iapi_dot_basic__requests__pb2.BasicHandleRequest.SerializeToString,
709
+ t2iapi_dot_device_dot_device__responses__pb2.GetComponentHwVersionResponse.FromString,
710
+ options, channel_credentials,
711
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: t2iapi
3
- Version: 4.2.0.dev414
3
+ Version: 4.2.0.dev417
4
4
  Summary: T2I API for device communication in test scenarios
5
5
  Home-page: https://github.com/Draegerwerk/t2iapi
6
6
  Author: T2I Team
@@ -75,12 +75,12 @@ t2iapi/device/__init__.pyi,sha256=e6L498_aQ6SdthmzO_wKsxVSBGUM26CN2Xl54sAcEwo,14
75
75
  t2iapi/device/device_requests_pb2.py,sha256=HiqmAm3sjvXBoo3Dznb5ABZwLMCMk_MEds6JcGpvhyQ,3255
76
76
  t2iapi/device/device_requests_pb2.pyi,sha256=tbsdzajJDFJXB8K8SI7JMMcqF5_qXHgEVmKRWotJDVY,2757
77
77
  t2iapi/device/device_requests_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
78
- t2iapi/device/device_responses_pb2.py,sha256=5bu5GQkkmerX0WcjbF0PaV4u0SIGKyELarytSBu7NVk,2490
79
- t2iapi/device/device_responses_pb2.pyi,sha256=AR9T74j7_GNLvetsYQI3eE8VsJosuGlQDlqD9YRVjJ8,2142
78
+ t2iapi/device/device_responses_pb2.py,sha256=MGYnB3UJx0BLrqgyQJwfTXmHCYSxBmVuPJiY5HhuSw8,2770
79
+ t2iapi/device/device_responses_pb2.pyi,sha256=jpBN54tv2zgp6Q6L5Y06qH7ScJAIEKLCNG6k-aySSwM,2563
80
80
  t2iapi/device/device_responses_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
81
- t2iapi/device/service_pb2.py,sha256=V66vSeqvvgt-8qzF9LycUZoaz-Zl9O8Tphtd-TY7BqQ,3659
81
+ t2iapi/device/service_pb2.py,sha256=btAllH-Pt013KrdUlQnjnIiUKcoNBFKdEW0SqGJk9uM,3777
82
82
  t2iapi/device/service_pb2.pyi,sha256=X09RG7V_2JjDB4Gv1sMdROcl-vwJhS0Z3OpEqY2A0TA,453
83
- t2iapi/device/service_pb2_grpc.py,sha256=jlaVmYvKLTeS7FLo-yvNFPNBCxB7JVxs0UmCn9EtAWE,34570
83
+ t2iapi/device/service_pb2_grpc.py,sha256=llLacR3ZwFFxSEUlWXIVXut1Q8mly1Ek1ZTzNp4hpgc,36485
84
84
  t2iapi/device/types_pb2.py,sha256=j8HfZJf1teqA0oY8UICkWg_C_mMfIVXjoT5AzeyUuzE,3321
85
85
  t2iapi/device/types_pb2.pyi,sha256=Cy6c3d2HXACCIo7n2Grab_8j6JHB_toKid8WNTxlxWY,3962
86
86
  t2iapi/device/types_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
@@ -111,9 +111,9 @@ t2iapi/operation/service_pb2_grpc.py,sha256=yPxuVXTxpVy5wSGVmsIkj_kfeHHm-AJ_4sgu
111
111
  t2iapi/operation/types_pb2.py,sha256=pdM7ob1_SBFZ6ndx0MPkCo6AdV_pZKtDwFiWBBtT6r4,1374
112
112
  t2iapi/operation/types_pb2.pyi,sha256=DplrhCrEW7nHBLLOWlNeka5FzX2gFPv1QGNHyT0tvRM,591
113
113
  t2iapi/operation/types_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
114
- t2iapi-4.2.0.dev414.dist-info/LICENSE,sha256=8ZnuIeCzXNlN6lfSNcmIr6gDfOtFoZ9TKDlf2AAfYdQ,1086
115
- t2iapi-4.2.0.dev414.dist-info/METADATA,sha256=FYcmgp7Me_5aeVCQZ8YUrwIQhfRkYTO62e7xetDoW7g,835
116
- t2iapi-4.2.0.dev414.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
117
- t2iapi-4.2.0.dev414.dist-info/top_level.txt,sha256=c0UvkS5osT7vNcji3Ic5KzEpauWa_lqRAB66A0tqA1w,7
118
- t2iapi-4.2.0.dev414.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
119
- t2iapi-4.2.0.dev414.dist-info/RECORD,,
114
+ t2iapi-4.2.0.dev417.dist-info/LICENSE,sha256=8ZnuIeCzXNlN6lfSNcmIr6gDfOtFoZ9TKDlf2AAfYdQ,1086
115
+ t2iapi-4.2.0.dev417.dist-info/METADATA,sha256=ar5kOWwqAMRdDQh-tzx7SLXNTFDb7qF0GTkyvvtiy2w,835
116
+ t2iapi-4.2.0.dev417.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
117
+ t2iapi-4.2.0.dev417.dist-info/top_level.txt,sha256=c0UvkS5osT7vNcji3Ic5KzEpauWa_lqRAB66A0tqA1w,7
118
+ t2iapi-4.2.0.dev417.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
119
+ t2iapi-4.2.0.dev417.dist-info/RECORD,,