1"""Implementation of Submodel related API calls."""
5from typing
import TYPE_CHECKING
8from pydantic
import BaseModel
11 from aas_http_client.classes.client.aas_client
import AasHttpClient
23_logger = logging.getLogger(__name__)
27 """Implementation of Submodel related API calls."""
29 def __init__(self, client:
"AasHttpClient"):
30 """Initializes the SmImplementation with the given parameters."""
33 session = client.get_session()
36 "HTTP session is not initialized in the client. Call 'initialize()' method of the client before creating SubmodelRegistryImplementation instance."
39 self._session: requests.Session = session
42 def get_submodel_by_id(self, submodel_identifier: str, level: str =
"", extent: str =
"") -> dict |
None:
43 """Returns a specific Submodel.
45 :param submodel_identifier: The Submodels unique id
46 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
47 :param extent: Determines to which extent the resource is being serialized. Available values : withBlobValue, withoutBlobValue
48 :return: Submodel data or None if an error occurred
50 if not self.
_client.encoded_ids:
51 submodel_identifier = encode_base_64(submodel_identifier)
53 url = f
"{self._client.base_url}/submodels/{submodel_identifier}"
55 params: dict[str, str] = {}
57 params[
"level"] = level
59 params[
"extent"] = extent
64 response = self._session.get(url, params=params, timeout=self.
_client.time_out)
65 _logger.debug(f
"Call REST API url '{response.url}'")
67 if response.status_code == STATUS_CODE_404:
68 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
69 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
70 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
71 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
75 if response.status_code != STATUS_CODE_200:
76 log_response(response)
79 except requests.exceptions.RequestException
as e:
80 _logger.error(f
"Error call REST API: {e}")
83 content = response.content.decode(
"utf-8")
84 return json.loads(content)
88 """Updates a existing Submodel.
90 :param submodel_identifier: The Submodels unique id
91 :param request_body: Json data of the Submodel to update
92 :return: True if the update was successful, False otherwise
94 if not self.
_client.encoded_ids:
95 submodel_identifier = encode_base_64(submodel_identifier)
97 url = f
"{self._client.base_url}/submodels/{submodel_identifier}"
102 response = self._session.put(url, json=request_body, timeout=self.
_client.time_out)
103 _logger.debug(f
"Call REST API url '{response.url}'")
105 if response.status_code == STATUS_CODE_404:
106 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
107 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
108 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
109 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
113 if response.status_code != STATUS_CODE_204:
114 log_response(response)
117 except requests.exceptions.RequestException
as e:
118 _logger.error(f
"Error call REST API: {e}")
125 """Deletes a Submodel.
127 :param submodel_identifier: The Submodels unique id
128 :return: True if the deletion was successful, False otherwise
130 if not self.
_client.encoded_ids:
131 submodel_identifier = encode_base_64(submodel_identifier)
133 url = f
"{self._client.base_url}/submodels/{submodel_identifier}"
138 response = self._session.delete(url, timeout=self.
_client.time_out)
139 _logger.debug(f
"Call REST API url '{response.url}'")
141 if response.status_code == STATUS_CODE_404:
142 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
143 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
144 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
145 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
149 if response.status_code != STATUS_CODE_204:
150 log_response(response)
153 except requests.exceptions.RequestException
as e:
154 _logger.error(f
"Error call REST API: {e}")
161 self, submodel_identifier: str, id_short_path: str, level: str =
"", extent: str =
""
163 """Returns a specific submodel element from the Submodel at a specified path.
165 :param submodel_identifier: The Submodels unique id
166 :param id_short_path: IdShort path to the submodel element (dot-separated)
167 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
168 :param extent: Determines to which extent the resource is being serialized. Available values : withBlobValue, withoutBlobValue
169 :return: Submodel element data or None if an error occurred
172 submodel_identifier = encode_base_64(submodel_identifier)
174 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}"
176 params: dict[str, str] = {}
178 params[
"level"] = level
180 params[
"extent"] = extent
185 response = self._session.get(url, params=params, timeout=self.
_client.time_out)
186 _logger.debug(f
"Call REST API url '{response.url}'")
188 if response.status_code == STATUS_CODE_404:
189 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
190 _logger.warning(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
191 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
192 _logger.debug(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
196 if response.status_code != STATUS_CODE_200:
197 log_response(response)
200 except requests.exceptions.RequestException
as e:
201 _logger.error(f
"Error call REST API: {e}")
204 content = response.content.decode(
"utf-8")
205 return json.loads(content)
209 """Creates or updates an existing submodel element at a specified path within submodel elements hierarchy.
211 :param submodel_identifier: The Submodels unique id
212 :param id_short_path: IdShort path to the submodel element (dot-separated)
213 :param request_body: Data for the submodel element
214 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
215 :return: True if the operation was successful, False otherwise
217 if not self.
_client.encoded_ids:
218 submodel_identifier = encode_base_64(submodel_identifier)
220 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}"
222 params: dict[str, str] = {}
224 params[
"level"] = level
229 response = self._session.put(url, json=request_body, params=params, timeout=self.
_client.time_out)
230 _logger.debug(f
"Call REST API url '{response.url}'")
232 if response.status_code == STATUS_CODE_404:
233 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
234 _logger.warning(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
235 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
236 _logger.debug(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
240 if response.status_code != STATUS_CODE_204:
241 log_response(response)
244 except requests.exceptions.RequestException
as e:
245 _logger.error(f
"Error call REST API: {e}")
252 self, submodel_identifier: str, id_short_path: str, request_body: dict, level: str =
"", extent: str =
""
254 """Creates a new submodel element at a specified path within submodel elements hierarchy.
256 :param submodel_identifier: The Submodels unique id
257 :param id_short_path: IdShort path to the submodel element (dot-separated)
258 :param request_body: Data for the new Submodel element
259 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
260 :param extent: Determines to which extent the resource is being serialized. Available values : withBlobValue, withoutBlobValue
261 :return: Submodel element data or None if an error occurred
264 submodel_identifier = encode_base_64(submodel_identifier)
266 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}"
268 params: dict[str, str] = {}
270 params[
"level"] = level
272 params[
"extent"] = extent
277 response = self._session.post(url, json=request_body, params=params, timeout=self.
_client.time_out)
278 _logger.debug(f
"Call REST API url '{response.url}'")
280 if response.status_code == STATUS_CODE_404:
281 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
282 _logger.warning(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
283 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
284 _logger.debug(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
288 if response.status_code != STATUS_CODE_201:
289 log_response(response)
292 except requests.exceptions.RequestException
as e:
293 _logger.error(f
"Error call REST API: {e}")
296 content = response.content.decode(
"utf-8")
297 return json.loads(content)
301 """Deletes a submodel element at a specified path within the submodel elements hierarchy.
303 :param submodel_identifier: The Submodels unique id
304 :param id_short_path: IdShort path to the submodel element (dot-separated)
305 :return: True if the deletion was successful, False otherwise
307 if not self.
_client.encoded_ids:
308 submodel_identifier = encode_base_64(submodel_identifier)
310 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}"
314 response = self._session.delete(url, timeout=self.
_client.time_out)
315 _logger.debug(f
"Call REST API url '{response.url}'")
317 if response.status_code == STATUS_CODE_404:
318 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
319 _logger.warning(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
320 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
321 _logger.debug(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
325 if response.status_code != STATUS_CODE_204:
326 log_response(response)
329 except requests.exceptions.RequestException
as e:
330 _logger.error(f
"Error call REST API: {e}")
337 self, semantic_id: str =
"", id_short: str =
"", limit: int = 0, cursor: str =
"", level: str =
"", extent: str =
""
339 """Returns all Submodels.
341 :param semantic_id: The value of the semantic id reference (UTF8-BASE64-URL-encoded)
342 :param id_short: The Submodels IdShort
343 :param limit: The maximum number of elements in the response array
344 :param cursor: A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue
345 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
346 :param extent: Determines to which extent the resource is being serialized. Available values : withBlobValue, withoutBlobValue
347 :return: List of Submodel data or None if an error occurred
349 url = f
"{self._client.base_url}/submodels"
351 params: dict[str, str] = {}
353 params[
"semanticId"] = semantic_id
355 params[
"idShort"] = id_short
357 params[
"limit"] = str(limit)
359 params[
"cursor"] = cursor
361 params[
"level"] = level
363 params[
"extent"] = extent
368 response = self._session.get(url, params=params, timeout=self.
_client.time_out)
369 _logger.debug(f
"Call REST API url '{response.url}'")
371 if response.status_code != STATUS_CODE_200:
372 log_response(response)
375 except requests.exceptions.RequestException
as e:
376 _logger.error(f
"Error call REST API: {e}")
379 content = response.content.decode(
"utf-8")
380 return json.loads(content)
384 """Creates a new Submodel.
386 :param request_body: Json data of the Submodel to post
387 :return: Submodel data or None if an error occurred
389 url = f
"{self._client.base_url}/submodels"
394 response = self._session.post(url, json=request_body, timeout=self.
_client.time_out)
395 _logger.debug(f
"Call REST API url '{response.url}'")
397 if response.status_code != STATUS_CODE_201:
398 log_response(response)
401 except requests.exceptions.RequestException
as e:
402 _logger.error(f
"Error call REST API: {e}")
405 content = response.content.decode(
"utf-8")
406 return json.loads(content)
410 self, submodel_identifier: str, limit: int = 100, cursor: str =
"", level: str =
"", extent: str =
""
412 """Returns all submodel elements including their hierarchy.
414 :param submodel_identifier: The Submodels unique id
415 :param limit: The maximum number of elements in the response array
416 :param cursor: A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue
417 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
418 :param extent: Determines to which extent the resource is being serialized. Available values : withBlobValue, withoutBlobValue
419 :return: List of Submodel element data or None if an error occurred
422 submodel_identifier = encode_base_64(submodel_identifier)
424 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements"
426 params: dict[str, str] = {}
428 params[
"limit"] = str(limit)
430 params[
"cursor"] = cursor
432 params[
"level"] = level
434 params[
"extent"] = extent
439 response = self._session.get(url, params=params, timeout=self.
_client.time_out)
440 _logger.debug(f
"Call REST API url '{response.url}'")
442 if response.status_code != STATUS_CODE_200:
443 log_response(response)
446 except requests.exceptions.RequestException
as e:
447 _logger.error(f
"Error call REST API: {e}")
450 content = response.content.decode(
"utf-8")
451 return json.loads(content)
455 """Creates a new submodel element.
457 :param submodel_identifier: The Submodels unique id
458 :param request_body: Data for the new Submodel element
459 :return: Submodel element data or None if an error occurred
461 if not self.
_client.encoded_ids:
462 submodel_identifier = encode_base_64(submodel_identifier)
464 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements"
469 response = self._session.post(url, json=request_body, timeout=self.
_client.time_out)
470 _logger.debug(f
"Call REST API url '{response.url}'")
472 if response.status_code != STATUS_CODE_201:
473 log_response(response)
476 except requests.exceptions.RequestException
as e:
477 _logger.error(f
"Error call REST API: {e}")
480 content = response.content.decode(
"utf-8")
481 return json.loads(content)
485 """Synchronously invokes an Operation at a specified path.
487 :param submodel_identifier: The Submodels unique id
488 :param id_short_path: IdShort path to the operation element (dot-separated)
489 :param request_body: Input parameters for the operation
490 :param async_: Determines whether an operation invocation is performed asynchronously or synchronously
491 :return: Operation result or None if an error occurred
493 if not self.
_client.encoded_ids:
494 submodel_identifier = encode_base_64(submodel_identifier)
496 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}/invoke"
501 response = self._session.post(url, json=request_body, timeout=self.
_client.time_out)
502 _logger.debug(f
"Call REST API url '{response.url}'")
504 if response.status_code != STATUS_CODE_200:
505 log_response(response)
508 except requests.exceptions.RequestException
as e:
509 _logger.error(f
"Error call REST API: {e}")
512 content = response.content.decode(
"utf-8")
513 return json.loads(content)
517 """Retrieves the value of a specific SubmodelElement.
519 :param submodel_identifier: The Submodels unique id
520 :param id_short_path: IdShort path to the submodel element (dot-separated)
521 :return: Submodel element value or None if an error occurred
523 if not self.
_client.encoded_ids:
524 submodel_identifier = encode_base_64(submodel_identifier)
526 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}/$value"
531 response = self._session.get(url, timeout=self.
_client.time_out)
532 _logger.debug(f
"Call REST API url '{response.url}'")
534 if response.status_code != STATUS_CODE_200:
535 log_response(response)
538 except requests.exceptions.RequestException
as e:
539 _logger.error(f
"Error call REST API: {e}")
542 content = response.content.decode(
"utf-8")
543 return json.loads(content)
547 self, submodel_identifier: str, id_short_path: str, value: str, level: str =
""
549 """Updates the value of an existing SubmodelElement.
551 :param submodel_identifier: The Submodels unique id
552 :param id_short_path: IdShort path to the submodel element (dot-separated)
553 :param value: Submodel element value to update as string
554 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
555 :return: True if the patch was successful, False otherwise
558 submodel_identifier = encode_base_64(submodel_identifier)
560 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/submodel-elements/{id_short_path}/$value"
562 params: dict[str, str] = {}
564 params[
"level"] = level
569 response = self._session.patch(url, json=value, params=params, timeout=self.
_client.time_out)
570 _logger.debug(f
"Call REST API url '{response.url}'")
572 if response.status_code == STATUS_CODE_404:
573 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
574 _logger.warning(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
575 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
576 _logger.debug(f
"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
580 if response.status_code != STATUS_CODE_204:
581 log_response(response)
584 except requests.exceptions.RequestException
as e:
585 _logger.error(f
"Error call REST API: {e}")
592 """Returns a specific Submodel in the ValueOnly representation.
594 :param submodel_identifier: The Submodels unique id
595 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
596 :param extent: Determines to which extent the resource is being serialized. Available values : withBlobValue, withoutBlobValue
597 :return: Submodel value as dict or None if an error occurred
599 params: dict[str, str] = {}
601 params[
"level"] = level
603 params[
"extent"] = extent
605 if not self.
_client.encoded_ids:
606 submodel_identifier = encode_base_64(submodel_identifier)
608 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/$value"
613 response = self._session.get(url, params=params, timeout=self.
_client.time_out)
614 _logger.debug(f
"Call REST API url '{response.url}'")
616 if response.status_code == STATUS_CODE_404:
617 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
618 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
619 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
620 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
624 if response.status_code != STATUS_CODE_200:
625 log_response(response)
628 except requests.exceptions.RequestException
as e:
629 _logger.error(f
"Error call REST API: {e}")
632 content = response.content.decode(
"utf-8")
633 return json.loads(content)
637 """Updates the values of an existing Submodel.
639 :param submodel_identifier: The Submodels unique id
640 :param request_body: Submodel values to update as dict
641 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
642 :return: True if the patch was successful, False otherwise
644 params: dict[str, str] = {}
646 params[
"level"] = level
648 if not self.
_client.encoded_ids:
649 submodel_identifier = encode_base_64(submodel_identifier)
651 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/$value"
656 response = self._session.patch(url, json=request_body, params=params, timeout=self.
_client.time_out)
657 _logger.debug(f
"Call REST API url '{response.url}'")
659 if response.status_code == STATUS_CODE_404:
660 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
661 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
662 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
663 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
667 if response.status_code != STATUS_CODE_204:
668 log_response(response)
671 except requests.exceptions.RequestException
as e:
672 _logger.error(f
"Error call REST API: {e}")
679 """Returns the metadata attributes of a specific Submodel.
681 :param submodel_identifier: The Submodels unique id
682 :param level: Determines the structural depth of the respective resource content. Available values : deep, core
683 :return: Metadata attributes of the Submodel as dict or None if an error occurred
685 params: dict[str, str] = {}
687 params[
"level"] = level
689 if not self.
_client.encoded_ids:
690 submodel_identifier = encode_base_64(submodel_identifier)
692 url = f
"{self._client.base_url}/submodels/{submodel_identifier}/$metadata"
697 response = self._session.get(url, params=params, timeout=self.
_client.time_out)
698 _logger.debug(f
"Call REST API url '{response.url}'")
700 if response.status_code == STATUS_CODE_404:
701 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
702 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
703 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
704 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
708 if response.status_code != STATUS_CODE_200:
709 log_response(response)
712 except requests.exceptions.RequestException
as e:
713 _logger.error(f
"Error call REST API: {e}")
716 content = response.content.decode(
"utf-8")
717 return json.loads(content)
723 """Updates an existing Submodel.
725 :param submodel_identifier: The Submodels unique id
726 :return: True if the patch was successful, False otherwise
728 if not self.
_client.encoded_ids:
729 submodel_identifier = encode_base_64(submodel_identifier)
731 url = f
"{self._client.base_url}/submodels/{submodel_identifier}"
736 response = self._session.patch(url, json=submodel_data, timeout=self.
_client.time_out)
737 _logger.debug(f
"Call REST API url '{response.url}'")
739 if response.status_code == STATUS_CODE_404:
740 if self.
_client.get_log_intensity() == LogIntensity.HIGH:
741 _logger.warning(f
"Submodel with id '{submodel_identifier}' not found.")
742 elif self.
_client.get_log_intensity() == LogIntensity.STANDARD:
743 _logger.debug(f
"Submodel with id '{submodel_identifier}' not found.")
747 if response.status_code != STATUS_CODE_204:
748 log_response(response)
751 except requests.exceptions.RequestException
as e:
752 _logger.error(f
"Error call REST API: {e}")
Implementation of Submodel related API calls.
dict|None get_submodel_by_id(self, str submodel_identifier, str level="", str extent="")
Returns a specific Submodel.
dict|None get_submodel_element_by_path_submodel_repo(self, str submodel_identifier, str id_short_path, str level="", str extent="")
Returns a specific submodel element from the Submodel at a specified path.
__init__(self, "AasHttpClient" client)
Initializes the SmImplementation with the given parameters.
str|None get_submodel_element_by_path_value_only_submodel_repo(self, str submodel_identifier, str id_short_path)
Retrieves the value of a specific SubmodelElement.
dict|None get_all_submodels(self, str semantic_id="", str id_short="", int limit=0, str cursor="", str level="", str extent="")
Returns all Submodels.
dict|None get_submodel_by_id_metadata(self, str submodel_identifier, str level="")
Returns the metadata attributes of a specific Submodel.
dict|None post_submodel(self, dict request_body)
Creates a new Submodel.
dict|None post_submodel_element_by_path_submodel_repo(self, str submodel_identifier, str id_short_path, dict request_body, str level="", str extent="")
Creates a new submodel element at a specified path within submodel elements hierarchy.
bool patch_submodel_element_by_path_value_only_submodel_repo(self, str submodel_identifier, str id_short_path, str value, str level="")
Updates the value of an existing SubmodelElement.
dict|None post_submodel_element_submodel_repo(self, str submodel_identifier, dict request_body)
Creates a new submodel element.
dict|None get_submodel_by_id_value_only(self, str submodel_identifier, str level="", str extent="")
Returns a specific Submodel in the ValueOnly representation.
bool put_submodel_element_by_path_submodel_repo(self, str submodel_identifier, str id_short_path, dict request_body, str level="")
Creates or updates an existing submodel element at a specified path within submodel elements hierarch...
bool patch_submodel_by_id(self, str submodel_identifier, dict submodel_data)
Updates an existing Submodel.
bool delete_submodel_by_id(self, str submodel_identifier)
Deletes a Submodel.
dict|None invoke_operation_submodel_repo(self, str submodel_identifier, str id_short_path, dict request_body, str async_="async")
Synchronously invokes an Operation at a specified path.
bool delete_submodel_element_by_path_submodel_repo(self, str submodel_identifier, str id_short_path)
Deletes a submodel element at a specified path within the submodel elements hierarchy.
bool put_submodels_by_id(self, str submodel_identifier, dict request_body)
Updates a existing Submodel.
bool patch_submodel_by_id_value_only(self, str submodel_identifier, dict request_body, str level="")
Updates the values of an existing Submodel.
dict|None get_all_submodel_elements_submodel_repository(self, str submodel_identifier, int limit=100, str cursor="", str level="", str extent="")
Returns all submodel elements including their hierarchy.