|
AAS HTTP Client Documentation
|
Implementation of Asset Administration Shell related API calls. More...
Public Member Functions | |
| __init__ (self, "AasHttpClient" client) | |
| Initializes the ShellImplementation with the given parameters. | |
| dict|None | get_asset_administration_shell_by_id (self, str aas_identifier) |
| Returns a specific Asset Administration Shell. | |
| bool | put_asset_administration_shell_by_id (self, str aas_identifier, dict request_body) |
| Creates or replaces an existing Asset Administration Shell. | |
| bool | delete_asset_administration_shell_by_id (self, str aas_identifier) |
| Deletes an Asset Administration Shell. | |
| bytes|None | get_thumbnail_aas_repository (self, str aas_identifier) |
| Returns the thumbnail of the Asset Administration Shell. | |
| bool | put_thumbnail_aas_repository (self, str aas_identifier, str file_name, Path file) |
| Creates or updates the thumbnail of the Asset Administration Shell. | |
| bool | delete_thumbnail_aas_repository (self, str aas_identifier) |
| Deletes the thumbnail of the Asset Administration Shell. | |
| dict|None | get_all_asset_administration_shells (self, list[dict]|None asset_ids=None, str id_short="", int limit=100, str cursor="") |
| Returns all Asset Administration Shells. | |
| dict|None | post_asset_administration_shell (self, dict request_body) |
| Creates a new Asset Administration Shell. | |
| dict|None | get_all_submodel_references_aas_repository (self, str aas_identifier, int limit=100, str cursor="") |
| Returns all submodel references. | |
| dict|None | post_submodel_reference_aas_repository (self, str aas_identifier, dict request_body) |
| Creates a submodel reference at the Asset Administration Shell. | |
| bool | delete_submodel_reference_by_id_aas_repository (self, str aas_identifier, str submodel_identifier) |
| Deletes the submodel reference from the Asset Administration Shell. | |
| bool | put_submodel_by_id_aas_repository (self, str aas_identifier, str submodel_identifier, dict request_body) |
| Updates the Submodel. | |
| dict|None | get_asset_administration_shell_by_id_reference_aas_repository (self, str aas_identifier) |
| Returns a specific Asset Administration Shell as a Reference. | |
| dict|None | get_submodel_by_id_aas_repository (self, str aas_identifier, str submodel_identifier) |
| Returns the Submodel. | |
Protected Attributes | |
| _client | |
Implementation of Asset Administration Shell related API calls.
Definition at line 31 of file shell_implementation.py.
| implementations.shell_implementation.ShellRepoImplementation.__init__ | ( | self, | |
| "AasHttpClient" | client | ||
| ) |
Initializes the ShellImplementation with the given parameters.
Definition at line 34 of file shell_implementation.py.
| bool implementations.shell_implementation.ShellRepoImplementation.delete_asset_administration_shell_by_id | ( | self, | |
| str | aas_identifier | ||
| ) |
Deletes an Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
Definition at line 119 of file shell_implementation.py.
| bool implementations.shell_implementation.ShellRepoImplementation.delete_submodel_reference_by_id_aas_repository | ( | self, | |
| str | aas_identifier, | ||
| str | submodel_identifier | ||
| ) |
Deletes the submodel reference from the Asset Administration Shell.
Does not delete the submodel itself.
| aas_identifier | The Asset Administration Shells unique id |
| submodel_identifier | The Submodels unique id |
Definition at line 414 of file shell_implementation.py.
| bool implementations.shell_implementation.ShellRepoImplementation.delete_thumbnail_aas_repository | ( | self, | |
| str | aas_identifier | ||
| ) |
Deletes the thumbnail of the Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
Definition at line 232 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.get_all_asset_administration_shells | ( | self, | |
| list[dict] | None | asset_ids = None, |
||
| str | id_short = "", |
||
| int | limit = 100, |
||
| str | cursor = "" |
||
| ) |
Returns all Asset Administration Shells.
| assetIds | A list of specific Asset identifiers (format: {"identifier": "string", "encodedIdentifier": "string"}) |
| idShort | The Asset Administration Shells IdShort |
| limit | The maximum number of elements in the response array |
| cursor | A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue |
Definition at line 268 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.get_all_submodel_references_aas_repository | ( | self, | |
| str | aas_identifier, | ||
| int | limit = 100, |
||
| str | cursor = "" |
||
| ) |
Returns all submodel references.
| aas_identifier | The Asset Administration Shells unique id |
| limit | The maximum number of elements in the response array |
| cursor | A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue |
Definition at line 338 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.get_asset_administration_shell_by_id | ( | self, | |
| str | aas_identifier | ||
| ) |
Returns a specific Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
Definition at line 51 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.get_asset_administration_shell_by_id_reference_aas_repository | ( | self, | |
| str | aas_identifier | ||
| ) |
Returns a specific Asset Administration Shell as a Reference.
| aas_identifier | ID of the AAS reference to retrieve |
Definition at line 486 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.get_submodel_by_id_aas_repository | ( | self, | |
| str | aas_identifier, | ||
| str | submodel_identifier | ||
| ) |
Returns the Submodel.
| aas_identifier | ID of the AAS to retrieve the submodel from |
| submodel_identifier | ID of the submodel to retrieve |
Definition at line 521 of file shell_implementation.py.
| bytes | None implementations.shell_implementation.ShellRepoImplementation.get_thumbnail_aas_repository | ( | self, | |
| str | aas_identifier | ||
| ) |
Returns the thumbnail of the Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
Definition at line 152 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.post_asset_administration_shell | ( | self, | |
| dict | request_body | ||
| ) |
Creates a new Asset Administration Shell.
| request_body | Json data of the Asset Administration Shell to post |
Definition at line 310 of file shell_implementation.py.
| dict | None implementations.shell_implementation.ShellRepoImplementation.post_submodel_reference_aas_repository | ( | self, | |
| str | aas_identifier, | ||
| dict | request_body | ||
| ) |
Creates a submodel reference at the Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
| request_body | Reference to the Submodel |
Definition at line 379 of file shell_implementation.py.
| bool implementations.shell_implementation.ShellRepoImplementation.put_asset_administration_shell_by_id | ( | self, | |
| str | aas_identifier, | ||
| dict | request_body | ||
| ) |
Creates or replaces an existing Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
| request_body | Json data of the Asset Administration Shell data to put |
Definition at line 86 of file shell_implementation.py.
| bool implementations.shell_implementation.ShellRepoImplementation.put_submodel_by_id_aas_repository | ( | self, | |
| str | aas_identifier, | ||
| str | submodel_identifier, | ||
| dict | request_body | ||
| ) |
Updates the Submodel.
| aas_identifier | ID of the AAS to update the submodel for |
| submodel_identifier | ID of the submodel to update |
| request_body | Json data to the Submodel to put |
Definition at line 452 of file shell_implementation.py.
| bool implementations.shell_implementation.ShellRepoImplementation.put_thumbnail_aas_repository | ( | self, | |
| str | aas_identifier, | ||
| str | file_name, | ||
| Path | file | ||
| ) |
Creates or updates the thumbnail of the Asset Administration Shell.
| aas_identifier | The Asset Administration Shells unique id |
| file_name | The name of the thumbnail file |
| file | Path to the thumbnail file to upload as attachment |
Definition at line 187 of file shell_implementation.py.
|
protected |
Definition at line 35 of file shell_implementation.py.