t2iapi 4.2.0.dev388__py3-none-any.whl → 4.2.0.dev393__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.
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
15
15
  from t2iapi.device import types_pb2 as t2iapi_dot_device_dot_types__pb2
16
16
 
17
17
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#t2iapi/device/device_requests.proto\x12\rt2iapi.device\x1a\x19t2iapi/device/types.proto\"A\n\x14TriggerReportRequest\x12)\n\x06report\x18\x01 \x01(\x0e\x32\x19.t2iapi.device.ReportType\"N\n\x1dSetDeviceOperatingModeRequest\x12-\n\x04mode\x18\x01 \x01(\x0e\x32\x1f.t2iapi.device.MdsOperatingMode\"&\n\x12SetLanguageRequest\x12\x10\n\x08language\x18\x01 \x01(\t\"a\n%GetRemovableDescriptorsOfClassRequest\x12\x38\n\x10\x64\x65scriptor_class\x18\x01 \x01(\x0e\x32\x1e.t2iapi.device.DescriptorClass\"5\n\x16SetBatteryUsageRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12\x0b\n\x03use\x18\x02 \x01(\x08\"0\n\x1eTriggerDescriptorUpdateRequest\x12\x0e\n\x06handle\x18\x01 \x03(\t\"{\n-ProvideInformationAboutNextCalibrationRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12:\n\x11\x63\x61libration_state\x18\x02 \x01(\x0e\x32\x1f.t2iapi.device.CalibrationStateB3\n!com.draeger.medical.t2iapi.deviceB\x0e\x44\x65viceRequestsb\x06proto3')
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#t2iapi/device/device_requests.proto\x12\rt2iapi.device\x1a\x19t2iapi/device/types.proto\"A\n\x14TriggerReportRequest\x12)\n\x06report\x18\x01 \x01(\x0e\x32\x19.t2iapi.device.ReportType\"N\n\x1dSetDeviceOperatingModeRequest\x12-\n\x04mode\x18\x01 \x01(\x0e\x32\x1f.t2iapi.device.MdsOperatingMode\"&\n\x12SetLanguageRequest\x12\x10\n\x08language\x18\x01 \x01(\t\"a\n%GetRemovableDescriptorsOfClassRequest\x12\x38\n\x10\x64\x65scriptor_class\x18\x01 \x01(\x0e\x32\x1e.t2iapi.device.DescriptorClass\"5\n\x16SetBatteryUsageRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12\x0b\n\x03use\x18\x02 \x01(\x08\"0\n\x1eTriggerDescriptorUpdateRequest\x12\x0e\n\x06handle\x18\x01 \x03(\t\"{\n-ProvideInformationAboutLastCalibrationRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12:\n\x11\x63\x61libration_state\x18\x02 \x01(\x0e\x32\x1f.t2iapi.device.CalibrationState\"{\n-ProvideInformationAboutNextCalibrationRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12:\n\x11\x63\x61libration_state\x18\x02 \x01(\x0e\x32\x1f.t2iapi.device.CalibrationStateB3\n!com.draeger.medical.t2iapi.deviceB\x0e\x44\x65viceRequestsb\x06proto3')
19
19
 
20
20
  _globals = globals()
21
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -35,6 +35,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
35
35
  _globals['_SETBATTERYUSAGEREQUEST']._serialized_end=420
36
36
  _globals['_TRIGGERDESCRIPTORUPDATEREQUEST']._serialized_start=422
37
37
  _globals['_TRIGGERDESCRIPTORUPDATEREQUEST']._serialized_end=470
38
- _globals['_PROVIDEINFORMATIONABOUTNEXTCALIBRATIONREQUEST']._serialized_start=472
39
- _globals['_PROVIDEINFORMATIONABOUTNEXTCALIBRATIONREQUEST']._serialized_end=595
38
+ _globals['_PROVIDEINFORMATIONABOUTLASTCALIBRATIONREQUEST']._serialized_start=472
39
+ _globals['_PROVIDEINFORMATIONABOUTLASTCALIBRATIONREQUEST']._serialized_end=595
40
+ _globals['_PROVIDEINFORMATIONABOUTNEXTCALIBRATIONREQUEST']._serialized_start=597
41
+ _globals['_PROVIDEINFORMATIONABOUTNEXTCALIBRATIONREQUEST']._serialized_end=720
40
42
  # @@protoc_insertion_point(module_scope)
@@ -44,6 +44,14 @@ class TriggerDescriptorUpdateRequest(_message.Message):
44
44
  handle: _containers.RepeatedScalarFieldContainer[str]
45
45
  def __init__(self, handle: _Optional[_Iterable[str]] = ...) -> None: ...
46
46
 
47
+ class ProvideInformationAboutLastCalibrationRequest(_message.Message):
48
+ __slots__ = ("handle", "calibration_state")
49
+ HANDLE_FIELD_NUMBER: _ClassVar[int]
50
+ CALIBRATION_STATE_FIELD_NUMBER: _ClassVar[int]
51
+ handle: str
52
+ calibration_state: _types_pb2.CalibrationState
53
+ def __init__(self, handle: _Optional[str] = ..., calibration_state: _Optional[_Union[_types_pb2.CalibrationState, str]] = ...) -> None: ...
54
+
47
55
  class ProvideInformationAboutNextCalibrationRequest(_message.Message):
48
56
  __slots__ = ("handle", "calibration_state")
49
57
  HANDLE_FIELD_NUMBER: _ClassVar[int]
@@ -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\xbb\t\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&ProvideInformationAboutNextCalibration\x12<.t2iapi.device.ProvideInformationAboutNextCalibrationRequest\x1a\x15.t2iapi.BasicResponseB5\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\xba\n\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.BasicResponseB5\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=1421
31
+ _globals['_DEVICESERVICE']._serialized_end=1548
32
32
  # @@protoc_insertion_point(module_scope)
@@ -85,6 +85,11 @@ class DeviceServiceStub(object):
85
85
  request_serializer=t2iapi_dot_device_dot_device__requests__pb2.SetBatteryUsageRequest.SerializeToString,
86
86
  response_deserializer=t2iapi_dot_basic__responses__pb2.BasicResponse.FromString,
87
87
  )
88
+ self.ProvideInformationAboutLastCalibration = channel.unary_unary(
89
+ '/t2iapi.device.DeviceService/ProvideInformationAboutLastCalibration',
90
+ request_serializer=t2iapi_dot_device_dot_device__requests__pb2.ProvideInformationAboutLastCalibrationRequest.SerializeToString,
91
+ response_deserializer=t2iapi_dot_basic__responses__pb2.BasicResponse.FromString,
92
+ )
88
93
  self.ProvideInformationAboutNextCalibration = channel.unary_unary(
89
94
  '/t2iapi.device.DeviceService/ProvideInformationAboutNextCalibration',
90
95
  request_serializer=t2iapi_dot_device_dot_device__requests__pb2.ProvideInformationAboutNextCalibrationRequest.SerializeToString,
@@ -232,6 +237,15 @@ class DeviceServiceServicer(object):
232
237
  context.set_details('Method not implemented!')
233
238
  raise NotImplementedError('Method not implemented!')
234
239
 
240
+ def ProvideInformationAboutLastCalibration(self, request, context):
241
+ """
242
+ Provide information about the pm:CalibrationInfo for the given pm:AbstractDeviceComponentDescriptor.
243
+ If the device is not able to provide the information, it shall return RESULT_NOT_SUPPORTED.
244
+ """
245
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
246
+ context.set_details('Method not implemented!')
247
+ raise NotImplementedError('Method not implemented!')
248
+
235
249
  def ProvideInformationAboutNextCalibration(self, request, context):
236
250
  """
237
251
  Provide information about the pm:NextCalibration for the given pm:AbstractDeviceComponentDescriptor.
@@ -309,6 +323,11 @@ def add_DeviceServiceServicer_to_server(servicer, server):
309
323
  request_deserializer=t2iapi_dot_device_dot_device__requests__pb2.SetBatteryUsageRequest.FromString,
310
324
  response_serializer=t2iapi_dot_basic__responses__pb2.BasicResponse.SerializeToString,
311
325
  ),
326
+ 'ProvideInformationAboutLastCalibration': grpc.unary_unary_rpc_method_handler(
327
+ servicer.ProvideInformationAboutLastCalibration,
328
+ request_deserializer=t2iapi_dot_device_dot_device__requests__pb2.ProvideInformationAboutLastCalibrationRequest.FromString,
329
+ response_serializer=t2iapi_dot_basic__responses__pb2.BasicResponse.SerializeToString,
330
+ ),
312
331
  'ProvideInformationAboutNextCalibration': grpc.unary_unary_rpc_method_handler(
313
332
  servicer.ProvideInformationAboutNextCalibration,
314
333
  request_deserializer=t2iapi_dot_device_dot_device__requests__pb2.ProvideInformationAboutNextCalibrationRequest.FromString,
@@ -547,6 +566,23 @@ class DeviceService(object):
547
566
  options, channel_credentials,
548
567
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
549
568
 
569
+ @staticmethod
570
+ def ProvideInformationAboutLastCalibration(request,
571
+ target,
572
+ options=(),
573
+ channel_credentials=None,
574
+ call_credentials=None,
575
+ insecure=False,
576
+ compression=None,
577
+ wait_for_ready=None,
578
+ timeout=None,
579
+ metadata=None):
580
+ return grpc.experimental.unary_unary(request, target, '/t2iapi.device.DeviceService/ProvideInformationAboutLastCalibration',
581
+ t2iapi_dot_device_dot_device__requests__pb2.ProvideInformationAboutLastCalibrationRequest.SerializeToString,
582
+ t2iapi_dot_basic__responses__pb2.BasicResponse.FromString,
583
+ options, channel_credentials,
584
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
585
+
550
586
  @staticmethod
551
587
  def ProvideInformationAboutNextCalibration(request,
552
588
  target,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: t2iapi
3
- Version: 4.2.0.dev388
3
+ Version: 4.2.0.dev393
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
@@ -55,15 +55,15 @@ t2iapi/context/types_pb2.pyi,sha256=r507x_S7T9Wl3Uh88RJ16fKoRZ7GSizZAgUmM_3EpIc,
55
55
  t2iapi/context/types_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
56
56
  t2iapi/device/__init__.py,sha256=yICa5h_fgNAUxTFqTH8kcDhu8X-Cn0yR2UAL1z8fN6o,149
57
57
  t2iapi/device/__init__.pyi,sha256=e6L498_aQ6SdthmzO_wKsxVSBGUM26CN2Xl54sAcEwo,149
58
- t2iapi/device/device_requests_pb2.py,sha256=xr7Umiknp3ovi9HgzYV3gHiusZUbzQjQbudRhTa735Y,2913
59
- t2iapi/device/device_requests_pb2.pyi,sha256=7UZSEk3-WwE9qtRliQ-DJ4EH8l4LuAF5Dxy0rXsdy6c,2335
58
+ t2iapi/device/device_requests_pb2.py,sha256=HiqmAm3sjvXBoo3Dznb5ABZwLMCMk_MEds6JcGpvhyQ,3255
59
+ t2iapi/device/device_requests_pb2.pyi,sha256=tbsdzajJDFJXB8K8SI7JMMcqF5_qXHgEVmKRWotJDVY,2757
60
60
  t2iapi/device/device_requests_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
61
61
  t2iapi/device/device_responses_pb2.py,sha256=AtTYw3Z8wgrCceXCiP9MPIGMI33SPuiPvYqOsig6JfE,1782
62
62
  t2iapi/device/device_responses_pb2.pyi,sha256=WSRgTCoIb-plhwByMt-PkjNo8-tZoOnu1H8hLDcihcc,1208
63
63
  t2iapi/device/device_responses_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
64
- t2iapi/device/service_pb2.py,sha256=iDv7_oVRXLsup_bWtEbTM_KL8PSmFq2VemR46k4bvrY,3277
64
+ t2iapi/device/service_pb2.py,sha256=HAmNYv6hTSP-dPaC2nHHxF87HZqYLeyOhdCatJ1Vje4,3417
65
65
  t2iapi/device/service_pb2.pyi,sha256=X09RG7V_2JjDB4Gv1sMdROcl-vwJhS0Z3OpEqY2A0TA,453
66
- t2iapi/device/service_pb2_grpc.py,sha256=r9Vt3LLRSy2MiyLpsp23yLzCvi2l6k1EHYL5HCBMJ3U,28332
66
+ t2iapi/device/service_pb2_grpc.py,sha256=KF0SXiVGC18uCB0HcMk3GZluevCJXeD6XxofeyQJdp4,30447
67
67
  t2iapi/device/types_pb2.py,sha256=j8HfZJf1teqA0oY8UICkWg_C_mMfIVXjoT5AzeyUuzE,3321
68
68
  t2iapi/device/types_pb2.pyi,sha256=Cy6c3d2HXACCIo7n2Grab_8j6JHB_toKid8WNTxlxWY,3962
69
69
  t2iapi/device/types_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
@@ -94,9 +94,9 @@ t2iapi/operation/service_pb2_grpc.py,sha256=yPxuVXTxpVy5wSGVmsIkj_kfeHHm-AJ_4sgu
94
94
  t2iapi/operation/types_pb2.py,sha256=pdM7ob1_SBFZ6ndx0MPkCo6AdV_pZKtDwFiWBBtT6r4,1374
95
95
  t2iapi/operation/types_pb2.pyi,sha256=DplrhCrEW7nHBLLOWlNeka5FzX2gFPv1QGNHyT0tvRM,591
96
96
  t2iapi/operation/types_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
97
- t2iapi-4.2.0.dev388.dist-info/LICENSE,sha256=8ZnuIeCzXNlN6lfSNcmIr6gDfOtFoZ9TKDlf2AAfYdQ,1086
98
- t2iapi-4.2.0.dev388.dist-info/METADATA,sha256=QR7REMe1y83FAwbIX3irPEG9pnv_rwgqyli4iewPzBc,835
99
- t2iapi-4.2.0.dev388.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
100
- t2iapi-4.2.0.dev388.dist-info/top_level.txt,sha256=c0UvkS5osT7vNcji3Ic5KzEpauWa_lqRAB66A0tqA1w,7
101
- t2iapi-4.2.0.dev388.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
102
- t2iapi-4.2.0.dev388.dist-info/RECORD,,
97
+ t2iapi-4.2.0.dev393.dist-info/LICENSE,sha256=8ZnuIeCzXNlN6lfSNcmIr6gDfOtFoZ9TKDlf2AAfYdQ,1086
98
+ t2iapi-4.2.0.dev393.dist-info/METADATA,sha256=dC-xD08D63ARv7bqKceQ2fSdwmqgHiO6xzo_adsWRBg,835
99
+ t2iapi-4.2.0.dev393.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
100
+ t2iapi-4.2.0.dev393.dist-info/top_level.txt,sha256=c0UvkS5osT7vNcji3Ic5KzEpauWa_lqRAB66A0tqA1w,7
101
+ t2iapi-4.2.0.dev393.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
102
+ t2iapi-4.2.0.dev393.dist-info/RECORD,,