t2iapi 4.2.0.dev430__py3-none-any.whl → 4.2.0.dev437__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\";\n\x17SetMdsUiLanguageRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \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')
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\";\n\x17SetMdsUiLanguageRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \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.CalibrationState\"U\n.InsertContainmentTreeEntryForSequenceIdRequest\x12\x0e\n\x06handle\x18\x01 \x01(\t\x12\x13\n\x0bsequence_id\x18\x02 \x01(\tB3\n!com.draeger.medical.t2iapi.deviceB\x0e\x44\x65viceRequestsb\x06proto3')
19
19
 
20
20
  _globals = globals()
21
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -41,4 +41,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
41
41
  _globals['_PROVIDEINFORMATIONABOUTLASTCALIBRATIONREQUEST']._serialized_end=656
42
42
  _globals['_PROVIDEINFORMATIONABOUTNEXTCALIBRATIONREQUEST']._serialized_start=658
43
43
  _globals['_PROVIDEINFORMATIONABOUTNEXTCALIBRATIONREQUEST']._serialized_end=781
44
+ _globals['_INSERTCONTAINMENTTREEENTRYFORSEQUENCEIDREQUEST']._serialized_start=783
45
+ _globals['_INSERTCONTAINMENTTREEENTRYFORSEQUENCEIDREQUEST']._serialized_end=868
44
46
  # @@protoc_insertion_point(module_scope)
@@ -67,3 +67,11 @@ class ProvideInformationAboutNextCalibrationRequest(_message.Message):
67
67
  handle: str
68
68
  calibration_state: _types_pb2.CalibrationState
69
69
  def __init__(self, handle: _Optional[str] = ..., calibration_state: _Optional[_Union[_types_pb2.CalibrationState, str]] = ...) -> None: ...
70
+
71
+ class InsertContainmentTreeEntryForSequenceIdRequest(_message.Message):
72
+ __slots__ = ("handle", "sequence_id")
73
+ HANDLE_FIELD_NUMBER: _ClassVar[int]
74
+ SEQUENCE_ID_FIELD_NUMBER: _ClassVar[int]
75
+ handle: str
76
+ sequence_id: str
77
+ def __init__(self, handle: _Optional[str] = ..., sequence_id: _Optional[str] = ...) -> None: ...
@@ -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\"^\n\"GetMdsUiSupportedLanguagesResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x11\n\tlanguages\x18\x02 \x03(\t\"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')
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\"^\n\"GetMdsUiSupportedLanguagesResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x11\n\tlanguages\x18\x02 \x03(\t\"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(\t\"h\n/InsertContainmentTreeEntryForSequenceIdResponse\x12%\n\x06status\x18\x01 \x01(\x0b\x32\x15.t2iapi.BasicResponse\x12\x0e\n\x06handle\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)
@@ -36,4 +36,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
36
36
  _globals['_GETCOMPONENTSWVERSIONRESPONSE']._serialized_end=604
37
37
  _globals['_GETCOMPONENTHWVERSIONRESPONSE']._serialized_start=606
38
38
  _globals['_GETCOMPONENTHWVERSIONRESPONSE']._serialized_end=702
39
+ _globals['_INSERTCONTAINMENTTREEENTRYFORSEQUENCEIDRESPONSE']._serialized_start=704
40
+ _globals['_INSERTCONTAINMENTTREEENTRYFORSEQUENCEIDRESPONSE']._serialized_end=808
39
41
  # @@protoc_insertion_point(module_scope)
@@ -54,3 +54,11 @@ class GetComponentHwVersionResponse(_message.Message):
54
54
  status: _basic_responses_pb2.BasicResponse
55
55
  hardware_version: str
56
56
  def __init__(self, status: _Optional[_Union[_basic_responses_pb2.BasicResponse, _Mapping]] = ..., hardware_version: _Optional[str] = ...) -> None: ...
57
+
58
+ class InsertContainmentTreeEntryForSequenceIdResponse(_message.Message):
59
+ __slots__ = ("status", "handle")
60
+ STATUS_FIELD_NUMBER: _ClassVar[int]
61
+ HANDLE_FIELD_NUMBER: _ClassVar[int]
62
+ status: _basic_responses_pb2.BasicResponse
63
+ handle: str
64
+ def __init__(self, status: _Optional[_Union[_basic_responses_pb2.BasicResponse, _Mapping]] = ..., handle: _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\xe9\x0f\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\x12Q\n\x10SetMdsUiLanguage\x12&.t2iapi.device.SetMdsUiLanguageRequest\x1a\x15.t2iapi.BasicResponse\x12k\n\x1aGetMdsUiSupportedLanguages\x12\x1a.t2iapi.BasicHandleRequest\x1a\x31.t2iapi.device.GetMdsUiSupportedLanguagesResponse\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.GetComponentHwVersionResponse\x12\x63\n.RequestIndicationOfNextCalibrationTimeRequired\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12X\n#IndicateTimeOfNextCalibrationToUser\x12\x1a.t2iapi.BasicHandleRequest\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\x94\x11\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\x12Q\n\x10SetMdsUiLanguage\x12&.t2iapi.device.SetMdsUiLanguageRequest\x1a\x15.t2iapi.BasicResponse\x12k\n\x1aGetMdsUiSupportedLanguages\x12\x1a.t2iapi.BasicHandleRequest\x1a\x31.t2iapi.device.GetMdsUiSupportedLanguagesResponse\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.GetComponentHwVersionResponse\x12\x63\n.RequestIndicationOfNextCalibrationTimeRequired\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12X\n#IndicateTimeOfNextCalibrationToUser\x12\x1a.t2iapi.BasicHandleRequest\x1a\x15.t2iapi.BasicResponse\x12\xa8\x01\n\'InsertContainmentTreeEntryForSequenceId\x12=.t2iapi.device.InsertContainmentTreeEntryForSequenceIdRequest\x1a>.t2iapi.device.InsertContainmentTreeEntryForSequenceIdResponseB5\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=2235
31
+ _globals['_DEVICESERVICE']._serialized_end=2406
32
32
  # @@protoc_insertion_point(module_scope)
@@ -130,6 +130,11 @@ class DeviceServiceStub(object):
130
130
  request_serializer=t2iapi_dot_basic__requests__pb2.BasicHandleRequest.SerializeToString,
131
131
  response_deserializer=t2iapi_dot_basic__responses__pb2.BasicResponse.FromString,
132
132
  )
133
+ self.InsertContainmentTreeEntryForSequenceId = channel.unary_unary(
134
+ '/t2iapi.device.DeviceService/InsertContainmentTreeEntryForSequenceId',
135
+ request_serializer=t2iapi_dot_device_dot_device__requests__pb2.InsertContainmentTreeEntryForSequenceIdRequest.SerializeToString,
136
+ response_deserializer=t2iapi_dot_device_dot_device__responses__pb2.InsertContainmentTreeEntryForSequenceIdResponse.FromString,
137
+ )
133
138
 
134
139
 
135
140
  class DeviceServiceServicer(object):
@@ -354,6 +359,48 @@ class DeviceServiceServicer(object):
354
359
  context.set_details('Method not implemented!')
355
360
  raise NotImplementedError('Method not implemented!')
356
361
 
362
+ def InsertContainmentTreeEntryForSequenceId(self, request, context):
363
+ """
364
+ Make available the BICEPS CONTAINMENT TREE ENTRY (as defined in IEEE Std 11073-10700-2022) that was previously
365
+ represented by the provided handle in the MDIB with the provided @SequenceId. If the BICEPS CONTAINMENT TREE ENTRY
366
+ is absent in the current MDIB, it shall be inserted and its handle in the current MDIB shall be returned.
367
+ If the BICEPS CONTAINMENT TREE ENTRY is already present in the current MDIB, only its handle shall be returned,
368
+ no further action is required.
369
+
370
+ Hint: Devices which use static handles for descriptors do not have to look up the entity that was previously
371
+ represented by the requested handle, since they stay the same between the changes of the @SequenceId. It is
372
+ sufficient to ensure the descriptor is present and return the handle.
373
+
374
+ Example 1: returning the same handle for the Metric
375
+ - device presented an MDIB with the Metric handle "metric_1" in @SequenceID "123"
376
+ - device changes @SequenceID to "789" and presents a new MDIB
377
+ - metric with the handle "metric_1" is still present in the current MDIB and represents the *same* metric
378
+ as in @SequenceID "123"
379
+ - InsertContainmentTreeEntryForSequenceId with handle="metric_1" and sequence_id="123" is executed
380
+ - the handle "metric_1" is returned as the descriptor with this handle it is still available in the current MDIB
381
+ - no further action from the device is required
382
+
383
+ Example 2: returning a new handle for the MDS:
384
+ - device presented an MDIB with MDS handle "mds0" in @SequenceID "123"
385
+ - device changes @SequenceID to "789" and presents a new MDIB
386
+ - MDS which had the Handle "mds0" in @SequenceId "123" is still present in the current MDIB, but it's Handle
387
+ changed to "mds10"
388
+ - InsertContainmentTreeEntryForSequenceId with handle="mds0" and sequence_id="123" is executed
389
+ - the handle "mds10" is returned as the descriptor handle for that MDS has changed
390
+ - no further action from the device is required
391
+
392
+ Example 3: inserting the Channel into the current MDIB and returning the (new) handle:
393
+ - device presented the Channel with handle "channel123" in @SequenceID "123"
394
+ - device changes @SequenceID to "789" and presents a new MDIB
395
+ - Channel which had the Handle "channel123" in @SequenceId "123" is no longer present in the current MDIB
396
+ - InsertContainmentTreeEntryForSequenceId with handle="channel123" and sequence_id="123" is executed
397
+ - Channel is inserted into the device's current MDIB with the handle "channel789"
398
+ - the handle "channel789" is returned
399
+ """
400
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
401
+ context.set_details('Method not implemented!')
402
+ raise NotImplementedError('Method not implemented!')
403
+
357
404
 
358
405
  def add_DeviceServiceServicer_to_server(servicer, server):
359
406
  rpc_method_handlers = {
@@ -467,6 +514,11 @@ def add_DeviceServiceServicer_to_server(servicer, server):
467
514
  request_deserializer=t2iapi_dot_basic__requests__pb2.BasicHandleRequest.FromString,
468
515
  response_serializer=t2iapi_dot_basic__responses__pb2.BasicResponse.SerializeToString,
469
516
  ),
517
+ 'InsertContainmentTreeEntryForSequenceId': grpc.unary_unary_rpc_method_handler(
518
+ servicer.InsertContainmentTreeEntryForSequenceId,
519
+ request_deserializer=t2iapi_dot_device_dot_device__requests__pb2.InsertContainmentTreeEntryForSequenceIdRequest.FromString,
520
+ response_serializer=t2iapi_dot_device_dot_device__responses__pb2.InsertContainmentTreeEntryForSequenceIdResponse.SerializeToString,
521
+ ),
470
522
  }
471
523
  generic_handler = grpc.method_handlers_generic_handler(
472
524
  't2iapi.device.DeviceService', rpc_method_handlers)
@@ -852,3 +904,20 @@ class DeviceService(object):
852
904
  t2iapi_dot_basic__responses__pb2.BasicResponse.FromString,
853
905
  options, channel_credentials,
854
906
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
907
+
908
+ @staticmethod
909
+ def InsertContainmentTreeEntryForSequenceId(request,
910
+ target,
911
+ options=(),
912
+ channel_credentials=None,
913
+ call_credentials=None,
914
+ insecure=False,
915
+ compression=None,
916
+ wait_for_ready=None,
917
+ timeout=None,
918
+ metadata=None):
919
+ return grpc.experimental.unary_unary(request, target, '/t2iapi.device.DeviceService/InsertContainmentTreeEntryForSequenceId',
920
+ t2iapi_dot_device_dot_device__requests__pb2.InsertContainmentTreeEntryForSequenceIdRequest.SerializeToString,
921
+ t2iapi_dot_device_dot_device__responses__pb2.InsertContainmentTreeEntryForSequenceIdResponse.FromString,
922
+ options, channel_credentials,
923
+ 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.dev430
3
+ Version: 4.2.0.dev437
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
@@ -72,15 +72,15 @@ t2iapi/context/types_pb2.pyi,sha256=r507x_S7T9Wl3Uh88RJ16fKoRZ7GSizZAgUmM_3EpIc,
72
72
  t2iapi/context/types_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
73
73
  t2iapi/device/__init__.py,sha256=yICa5h_fgNAUxTFqTH8kcDhu8X-Cn0yR2UAL1z8fN6o,149
74
74
  t2iapi/device/__init__.pyi,sha256=e6L498_aQ6SdthmzO_wKsxVSBGUM26CN2Xl54sAcEwo,149
75
- t2iapi/device/device_requests_pb2.py,sha256=ZCEVQ2LDPKh8RA9uLsXPgAEqCwNQv-d9zmtQKcIiqWM,3481
76
- t2iapi/device/device_requests_pb2.pyi,sha256=XgIMnw6sBPmOP_cRI8I3m-i4E137dYdaleHg4hxQsyg,3060
75
+ t2iapi/device/device_requests_pb2.py,sha256=fVfDBygpoT88RATaCpQVJEKhhABOXltxhF2bRHXaBH0,3776
76
+ t2iapi/device/device_requests_pb2.pyi,sha256=RKVMbWRC_hJQCn4jfF55y4wptLQsV9JETsC7N1oQGMg,3398
77
77
  t2iapi/device/device_requests_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
78
- t2iapi/device/device_responses_pb2.py,sha256=LPr5H0_Q0ycwPNWFbgNHdwOqZOW5cEzWaD1MuHlg3ig,3054
79
- t2iapi/device/device_responses_pb2.pyi,sha256=nZOQfGDFjJW3eW_My7Wh8tsnavnlmDi6R9fP_OYdiJk,3014
78
+ t2iapi/device/device_responses_pb2.py,sha256=Nn8qEUZ1Tgrke1sq7_PDQtgCwBzTzQnCAvMD3giyAN0,3375
79
+ t2iapi/device/device_responses_pb2.pyi,sha256=O-eKvccSYz3FJkjd1_7WAdfgu6f1v9ecyREktLoc5oQ,3413
80
80
  t2iapi/device/device_responses_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
81
- t2iapi/device/service_pb2.py,sha256=xV_rZ9aEdfro0gQoyS6N3pKo_Mpcui42sV0FVmRZ6Xw,4230
81
+ t2iapi/device/service_pb2.py,sha256=sFAh7so6gQ0oprgM_axiKrsXiCb4QtziclWkhxR42HY,4418
82
82
  t2iapi/device/service_pb2.pyi,sha256=X09RG7V_2JjDB4Gv1sMdROcl-vwJhS0Z3OpEqY2A0TA,453
83
- t2iapi/device/service_pb2_grpc.py,sha256=tdWbC8f11dCw4XJbXp02RdVhEKbETaSXXj6tWQxiuAs,44318
83
+ t2iapi/device/service_pb2_grpc.py,sha256=cha9r2EpmQh7xF-wUV1bqaQdfK7ifPpuRO47I3srJC0,49059
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.dev430.dist-info/LICENSE,sha256=8ZnuIeCzXNlN6lfSNcmIr6gDfOtFoZ9TKDlf2AAfYdQ,1086
115
- t2iapi-4.2.0.dev430.dist-info/METADATA,sha256=RqWsnGd0_t-DzqsFDa1C8n9_Ay3espOeaCARvUp9zKk,835
116
- t2iapi-4.2.0.dev430.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
117
- t2iapi-4.2.0.dev430.dist-info/top_level.txt,sha256=c0UvkS5osT7vNcji3Ic5KzEpauWa_lqRAB66A0tqA1w,7
118
- t2iapi-4.2.0.dev430.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
119
- t2iapi-4.2.0.dev430.dist-info/RECORD,,
114
+ t2iapi-4.2.0.dev437.dist-info/LICENSE,sha256=8ZnuIeCzXNlN6lfSNcmIr6gDfOtFoZ9TKDlf2AAfYdQ,1086
115
+ t2iapi-4.2.0.dev437.dist-info/METADATA,sha256=_KwMf63SmskrWXNzHNdafkOSjvbnFjYM7Fn08jTbnV8,835
116
+ t2iapi-4.2.0.dev437.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
117
+ t2iapi-4.2.0.dev437.dist-info/top_level.txt,sha256=c0UvkS5osT7vNcji3Ic5KzEpauWa_lqRAB66A0tqA1w,7
118
+ t2iapi-4.2.0.dev437.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
119
+ t2iapi-4.2.0.dev437.dist-info/RECORD,,