Asset Connector Documentation
Loading...
Searching...
No Matches
set_value_payload.SetValuePayload Class Reference

Defines the model class of the payload for the set_value (URL /set-value) endpoint of this application using Pydantic. More...

Inheritance diagram for set_value_payload.SetValuePayload:
[legend]
Collaboration diagram for set_value_payload.SetValuePayload:
[legend]

Public Member Functions

 __init__ (self, **Any data)
 

Static Public Attributes

dict aid_ref_dict = Field(..., alias="Reference")
 
Any value = Field(..., alias="Value")
 

Protected Member Functions

ModelReference _build_model_reference (self)
 
KeyTypes _get_key_type (self, str key_str)
 

Protected Attributes

 _aid_ref
 

Static Protected Attributes

ModelReference _aid_ref = PrivateAttr(default=None)
 

Detailed Description

Defines the model class of the payload for the set_value (URL /set-value) endpoint of this application using Pydantic.

The JSON payload must contain exactly the following fields:

  • Reference
  • Value

Inside the Reference-field, a properly serialized AAS reference according to the AAS JSON serialization must be provided. Will be parsed as basyx.aas.model.ModelReference. The reference shall point to a SME in an AID submodel known to this application (refer to add_or_update_config).

Example
{ "Reference": { "type": "ModelReference", "keys": [ { "type": "Submodel", "value": "https://fluid40.de/ids/sm/4757_4856_8464_1441" }, { "type": "SubmodelElementCollection", "value": "Interface_MQTT" }, { "type": "SubmodelElementCollection", "value": "InteractionMetadata" }, { "type": "SubmodelElementCollection", "value": "properties" }, { "type": "SubmodelElementCollection", "value": "my_endpoint" } ] }, "Value": "my-value" }

Definition at line 60 of file set_value_payload.py.

Constructor & Destructor Documentation

◆ __init__()

set_value_payload.SetValuePayload.__init__ (   self,
**Any  data 
)

Definition at line 66 of file set_value_payload.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ _build_model_reference()

ModelReference set_value_payload.SetValuePayload._build_model_reference (   self)
protected

Definition at line 70 of file set_value_payload.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _get_key_type()

KeyTypes set_value_payload.SetValuePayload._get_key_type (   self,
str  key_str 
)
protected

Definition at line 77 of file set_value_payload.py.

Here is the caller graph for this function:

Member Data Documentation

◆ _aid_ref [1/2]

ModelReference set_value_payload.SetValuePayload._aid_ref = PrivateAttr(default=None)
staticprotected

Definition at line 64 of file set_value_payload.py.

◆ _aid_ref [2/2]

set_value_payload.SetValuePayload._aid_ref
protected

Definition at line 75 of file set_value_payload.py.

◆ aid_ref_dict

dict set_value_payload.SetValuePayload.aid_ref_dict = Field(..., alias="Reference")
static

Definition at line 62 of file set_value_payload.py.

◆ value

Any set_value_payload.SetValuePayload.value = Field(..., alias="Value")
static

Definition at line 63 of file set_value_payload.py.


The documentation for this class was generated from the following file: