aas_core3_2.jsonization

Provide de/serialization of meta-model classes to/from JSON.

We can not use one-pass deserialization for JSON since the object properties do not have fixed order, and hence we can not read modelType property ahead of the remaining properties.

class aas_core3_2.jsonization.PropertySegment(instance: Mapping[str, Any], name: str)[source]

Represent a property on a path to the erroneous value.

__init__(instance: Mapping[str, Any], name: str) → None[source]

Initialize with the given values.

instance: Final[Mapping[str, Any]]

Instance that contains the property

name: Final[str]

Name of the property

class aas_core3_2.jsonization.IndexSegment(container: Iterable[Any], index: int)[source]

Represent an index access on a path to the erroneous value.

__init__(container: Iterable[Any], index: int) → None[source]

Initialize with the given values.

container: Final[Iterable[Any]]

Container that contains the item

index: Final[int]

Index of the item

class aas_core3_2.jsonization.KeySegment(mapping: Mapping[str, Any], key: str)[source]

Represent a member access on a path to the erroneous value.

Unlike a PropertySegment, which names a property of one of our classes, a key names a member of an open JSON-able object. It is known only at run time, and can be any string at all, so it is always rendered as a subscript.

__init__(mapping: Mapping[str, Any], key: str) → None[source]

Initialize with the given values.

mapping: Final[Mapping[str, Any]]

Mapping that contains the value at key

key: Final[str]

Key of the value

class aas_core3_2.jsonization.Path[source]

Represent the relative path to the erroneous value.

__init__() → None[source]

Initialize as an empty path.

property segments: Sequence[Union[PropertySegment, IndexSegment, KeySegment]]

Get the segments of the path.

__str__() → str[source]

Return str(self).

exception aas_core3_2.jsonization.DeserializationException(cause: str)[source]

Signal that the JSON de-serialization could not be performed.

__init__(cause: str) → None[source]

Initialize with the given cause and an empty path.

cause: Final[str]

Human-readable explanation of the exception’s cause

path: Final[Path]

Relative path to the erroneous value

aas_core3_2.jsonization.has_semantics_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → HasSemantics[source]

Parse an instance of types.HasSemantics from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.HasSemantics

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.extension_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Extension[source]

Parse an instance of types.Extension from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Extension

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.has_extensions_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → HasExtensions[source]

Parse an instance of types.HasExtensions from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.HasExtensions

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.referable_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Referable[source]

Parse an instance of types.Referable from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.Referable

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.identifiable_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Identifiable[source]

Parse an instance of types.Identifiable from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.Identifiable

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.modelling_kind_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ModellingKind[source]

Convert the JSON-able structure jsonable to a literal of types.ModellingKind.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.has_kind_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → HasKind[source]

Parse an instance of types.HasKind from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.HasKind

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.has_data_specification_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → HasDataSpecification[source]

Parse an instance of types.HasDataSpecification from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.HasDataSpecification

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.administrative_information_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AdministrativeInformation[source]

Parse an instance of types.AdministrativeInformation from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AdministrativeInformation

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.qualifiable_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Qualifiable[source]

Parse an instance of types.Qualifiable from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.Qualifiable

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.qualifier_kind_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → QualifierKind[source]

Convert the JSON-able structure jsonable to a literal of types.QualifierKind.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.qualifier_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Qualifier[source]

Parse an instance of types.Qualifier from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Qualifier

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.asset_administration_shell_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AssetAdministrationShell[source]

Parse an instance of types.AssetAdministrationShell from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AssetAdministrationShell

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.asset_information_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AssetInformation[source]

Parse an instance of types.AssetInformation from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AssetInformation

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.resource_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Resource[source]

Parse an instance of types.Resource from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Resource

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.asset_kind_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AssetKind[source]

Convert the JSON-able structure jsonable to a literal of types.AssetKind.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.specific_asset_id_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SpecificAssetID[source]

Parse an instance of types.SpecificAssetID from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SpecificAssetID

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Submodel[source]

Parse an instance of types.Submodel from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Submodel

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElement[source]

Parse an instance of types.SubmodelElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.SubmodelElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.relationship_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RelationshipElement[source]

Parse an instance of types.RelationshipElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.RelationshipElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.aas_submodel_elements_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AASSubmodelElements[source]

Convert the JSON-able structure jsonable to a literal of types.AASSubmodelElements.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_list_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElementList[source]

Parse an instance of types.SubmodelElementList from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelElementList

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_collection_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElementCollection[source]

Parse an instance of types.SubmodelElementCollection from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelElementCollection

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.data_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DataElement[source]

Parse an instance of types.DataElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.DataElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.property_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Property[source]

Parse an instance of types.Property from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Property

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.multi_language_property_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → MultiLanguageProperty[source]

Parse an instance of types.MultiLanguageProperty from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.MultiLanguageProperty

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.range_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Range[source]

Parse an instance of types.Range from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Range

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.reference_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ReferenceElement[source]

Parse an instance of types.ReferenceElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ReferenceElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.blob_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Blob[source]

Parse an instance of types.Blob from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Blob

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.file_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → File[source]

Parse an instance of types.File from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.File

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.annotated_relationship_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AnnotatedRelationshipElement[source]

Parse an instance of types.AnnotatedRelationshipElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AnnotatedRelationshipElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.entity_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Entity[source]

Parse an instance of types.Entity from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Entity

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.entity_type_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EntityType[source]

Convert the JSON-able structure jsonable to a literal of types.EntityType.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.direction_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Direction[source]

Convert the JSON-able structure jsonable to a literal of types.Direction.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.state_of_event_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → StateOfEvent[source]

Convert the JSON-able structure jsonable to a literal of types.StateOfEvent.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.event_payload_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EventPayload[source]

Parse an instance of types.EventPayload from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.EventPayload

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.event_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EventElement[source]

Parse an instance of types.EventElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.EventElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.basic_event_element_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BasicEventElement[source]

Parse an instance of types.BasicEventElement from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BasicEventElement

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Operation[source]

Parse an instance of types.Operation from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Operation

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_variable_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationVariable[source]

Parse an instance of types.OperationVariable from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationVariable

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.capability_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Capability[source]

Parse an instance of types.Capability from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Capability

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.concept_description_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ConceptDescription[source]

Parse an instance of types.ConceptDescription from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ConceptDescription

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.reference_types_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ReferenceTypes[source]

Convert the JSON-able structure jsonable to a literal of types.ReferenceTypes.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.reference_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Reference[source]

Parse an instance of types.Reference from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Reference

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.key_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Key[source]

Parse an instance of types.Key from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Key

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.key_types_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → KeyTypes[source]

Convert the JSON-able structure jsonable to a literal of types.KeyTypes.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.data_type_def_xsd_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DataTypeDefXSD[source]

Convert the JSON-able structure jsonable to a literal of types.DataTypeDefXSD.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.abstract_lang_string_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AbstractLangString[source]

Parse an instance of types.AbstractLangString from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.AbstractLangString

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.lang_string_name_type_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LangStringNameType[source]

Parse an instance of types.LangStringNameType from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LangStringNameType

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.lang_string_text_type_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LangStringTextType[source]

Parse an instance of types.LangStringTextType from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LangStringTextType

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.environment_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Environment[source]

Parse an instance of types.Environment from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Environment

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.data_specification_content_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DataSpecificationContent[source]

Parse an instance of types.DataSpecificationContent from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.DataSpecificationContent

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.embedded_data_specification_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EmbeddedDataSpecification[source]

Parse an instance of types.EmbeddedDataSpecification from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.EmbeddedDataSpecification

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.data_type_iec_61360_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DataTypeIEC61360[source]

Convert the JSON-able structure jsonable to a literal of types.DataTypeIEC61360.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.level_type_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LevelType[source]

Parse an instance of types.LevelType from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LevelType

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.value_reference_pair_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ValueReferencePair[source]

Parse an instance of types.ValueReferencePair from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ValueReferencePair

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.value_list_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ValueList[source]

Parse an instance of types.ValueList from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ValueList

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.lang_string_preferred_name_type_iec_61360_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LangStringPreferredNameTypeIEC61360[source]

Parse an instance of types.LangStringPreferredNameTypeIEC61360 from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LangStringPreferredNameTypeIEC61360

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.lang_string_short_name_type_iec_61360_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LangStringShortNameTypeIEC61360[source]

Parse an instance of types.LangStringShortNameTypeIEC61360 from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LangStringShortNameTypeIEC61360

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.lang_string_definition_type_iec_61360_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LangStringDefinitionTypeIEC61360[source]

Parse an instance of types.LangStringDefinitionTypeIEC61360 from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LangStringDefinitionTypeIEC61360

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.lang_string_uom_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LangStringUom[source]

Parse an instance of types.LangStringUom from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LangStringUom

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.definition_type_uom_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DefinitionTypeUom[source]

Parse an instance of types.DefinitionTypeUom from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DefinitionTypeUom

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.data_specification_uom_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DataSpecificationUom[source]

Parse an instance of types.DataSpecificationUom from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DataSpecificationUom

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.data_specification_iec_61360_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DataSpecificationIEC61360[source]

Parse an instance of types.DataSpecificationIEC61360 from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DataSpecificationIEC61360

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.serialization_format_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SerializationFormat[source]

Convert the JSON-able structure jsonable to a literal of types.SerializationFormat.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.descriptor_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Descriptor[source]

Parse an instance of types.Descriptor from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.Descriptor

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.asset_administration_shell_descriptor_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AssetAdministrationShellDescriptor[source]

Parse an instance of types.AssetAdministrationShellDescriptor from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AssetAdministrationShellDescriptor

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_descriptor_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelDescriptor[source]

Parse an instance of types.SubmodelDescriptor from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelDescriptor

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.endpoint_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Endpoint[source]

Parse an instance of types.Endpoint from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Endpoint

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.protocol_information_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ProtocolInformation[source]

Parse an instance of types.ProtocolInformation from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ProtocolInformation

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.security_attribute_object_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SecurityAttributeObject[source]

Parse an instance of types.SecurityAttributeObject from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SecurityAttributeObject

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.security_type_enum_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SecurityTypeEnum[source]

Convert the JSON-able structure jsonable to a literal of types.SecurityTypeEnum.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

Parse an instance of types.AssetLink from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AssetLink

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.service_description_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ServiceDescription[source]

Parse an instance of types.ServiceDescription from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ServiceDescription

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.service_specification_profile_enum_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ServiceSpecificationProfileEnum[source]

Convert the JSON-able structure jsonable to a literal of types.ServiceSpecificationProfileEnum.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.recent_change_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RecentChange[source]

Parse an instance of types.RecentChange from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.RecentChange

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.asset_administration_shell_recent_change_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AssetAdministrationShellRecentChange[source]

Parse an instance of types.AssetAdministrationShellRecentChange from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AssetAdministrationShellRecentChange

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.concept_description_recent_change_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ConceptDescriptionRecentChange[source]

Parse an instance of types.ConceptDescriptionRecentChange from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ConceptDescriptionRecentChange

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_recent_change_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelRecentChange[source]

Parse an instance of types.SubmodelRecentChange from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelRecentChange

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.status_code_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → StatusCode[source]

Convert the JSON-able structure jsonable to a literal of types.StatusCode.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Result[source]

Parse an instance of types.Result from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Result

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.message_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Message[source]

Parse an instance of types.Message from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Message

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.message_type_enum_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → MessageTypeEnum[source]

Convert the JSON-able structure jsonable to a literal of types.MessageTypeEnum.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_request_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationRequest[source]

Parse an instance of types.OperationRequest from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationRequest

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_request_async_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationRequestAsync[source]

Parse an instance of types.OperationRequestAsync from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationRequestAsync

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_request_value_only_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationRequestValueOnly[source]

Parse an instance of types.OperationRequestValueOnly from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationRequestValueOnly

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_request_async_value_only_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationRequestAsyncValueOnly[source]

Parse an instance of types.OperationRequestAsyncValueOnly from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationRequestAsyncValueOnly

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.base_operation_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BaseOperationResult[source]

Parse an instance of types.BaseOperationResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BaseOperationResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationResult[source]

Parse an instance of types.OperationResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_result_value_only_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationResultValueOnly[source]

Parse an instance of types.OperationResultValueOnly from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationResultValueOnly

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.execution_state_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ExecutionState[source]

Convert the JSON-able structure jsonable to a literal of types.ExecutionState.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_handle_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationHandle[source]

Parse an instance of types.OperationHandle from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationHandle

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.level_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Level[source]

Convert the JSON-able structure jsonable to a literal of types.Level.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.content_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Content[source]

Convert the JSON-able structure jsonable to a literal of types.Content.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.extent_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Extent[source]

Convert the JSON-able structure jsonable to a literal of types.Extent.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.paged_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → PagedResult[source]

Parse an instance of types.PagedResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.PagedResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.paging_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → PagingMetadata[source]

Parse an instance of types.PagingMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.PagingMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.package_description_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → PackageDescription[source]

Parse an instance of types.PackageDescription from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.PackageDescription

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_attributes_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElementAttributes[source]

Parse an instance of types.SubmodelElementAttributes from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.SubmodelElementAttributes

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElementMetadata[source]

Parse an instance of types.SubmodelElementMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance of types.SubmodelElementMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.property_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → PropertyMetadata[source]

Parse an instance of types.PropertyMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.PropertyMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.range_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RangeMetadata[source]

Parse an instance of types.RangeMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.RangeMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.blob_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BlobMetadata[source]

Parse an instance of types.BlobMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BlobMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.file_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → FileMetadata[source]

Parse an instance of types.FileMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.FileMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.multi_language_property_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → MultiLanguagePropertyMetadata[source]

Parse an instance of types.MultiLanguagePropertyMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.MultiLanguagePropertyMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.reference_element_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ReferenceElementMetadata[source]

Parse an instance of types.ReferenceElementMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ReferenceElementMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.relationship_element_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RelationshipElementMetadata[source]

Parse an instance of types.RelationshipElementMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.RelationshipElementMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.annotated_relationship_element_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AnnotatedRelationshipElementMetadata[source]

Parse an instance of types.AnnotatedRelationshipElementMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AnnotatedRelationshipElementMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.entity_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EntityMetadata[source]

Parse an instance of types.EntityMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.EntityMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.capability_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → CapabilityMetadata[source]

Parse an instance of types.CapabilityMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.CapabilityMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.operation_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OperationMetadata[source]

Parse an instance of types.OperationMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OperationMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_collection_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElementCollectionMetadata[source]

Parse an instance of types.SubmodelElementCollectionMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelElementCollectionMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.basic_event_element_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BasicEventElementMetadata[source]

Parse an instance of types.BasicEventElementMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BasicEventElementMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_element_list_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelElementListMetadata[source]

Parse an instance of types.SubmodelElementListMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelElementListMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.submodel_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → SubmodelMetadata[source]

Parse an instance of types.SubmodelMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.SubmodelMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.asset_administration_shell_metadata_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AssetAdministrationShellMetadata[source]

Parse an instance of types.AssetAdministrationShellMetadata from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AssetAdministrationShellMetadata

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.reference_element_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ReferenceElementValue[source]

Parse an instance of types.ReferenceElementValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ReferenceElementValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.blob_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BlobValue[source]

Parse an instance of types.BlobValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BlobValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.file_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → FileValue[source]

Parse an instance of types.FileValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.FileValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.range_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RangeValue[source]

Parse an instance of types.RangeValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.RangeValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.relationship_element_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RelationshipElementValue[source]

Parse an instance of types.RelationshipElementValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.RelationshipElementValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.basic_event_element_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BasicEventElementValue[source]

Parse an instance of types.BasicEventElementValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BasicEventElementValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.annotated_relationship_element_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AnnotatedRelationshipElementValue[source]

Parse an instance of types.AnnotatedRelationshipElementValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AnnotatedRelationshipElementValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.entity_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EntityValue[source]

Parse an instance of types.EntityValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.EntityValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_asset_administration_shells_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetAssetAdministrationShellsResult[source]

Parse an instance of types.GetAssetAdministrationShellsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetAssetAdministrationShellsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_asset_administration_shells_metadata_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetAssetAdministrationShellsMetadataResult[source]

Parse an instance of types.GetAssetAdministrationShellsMetadataResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetAssetAdministrationShellsMetadataResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_all_asset_administration_shells_recent_changes_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetAllAssetAdministrationShellsRecentChangesResult[source]

Parse an instance of types.GetAllAssetAdministrationShellsRecentChangesResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetAllAssetAdministrationShellsRecentChangesResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_asset_administration_shell_descriptors_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetAssetAdministrationShellDescriptorsResult[source]

Parse an instance of types.GetAssetAdministrationShellDescriptorsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetAssetAdministrationShellDescriptorsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_concept_descriptions_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetConceptDescriptionsResult[source]

Parse an instance of types.GetConceptDescriptionsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetConceptDescriptionsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_all_concept_descriptions_recent_changes_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetAllConceptDescriptionsRecentChangesResult[source]

Parse an instance of types.GetAllConceptDescriptionsRecentChangesResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetAllConceptDescriptionsRecentChangesResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_package_descriptions_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetPackageDescriptionsResult[source]

Parse an instance of types.GetPackageDescriptionsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetPackageDescriptionsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_path_items_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetPathItemsResult[source]

Parse an instance of types.GetPathItemsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetPathItemsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_references_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetReferencesResult[source]

Parse an instance of types.GetReferencesResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetReferencesResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodel_descriptors_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelDescriptorsResult[source]

Parse an instance of types.GetSubmodelDescriptorsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelDescriptorsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodel_elements_metadata_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelElementsMetadataResult[source]

Parse an instance of types.GetSubmodelElementsMetadataResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelElementsMetadataResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodel_elements_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelElementsResult[source]

Parse an instance of types.GetSubmodelElementsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelElementsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodel_elements_value_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelElementsValueResult[source]

Parse an instance of types.GetSubmodelElementsValueResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelElementsValueResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_all_submodels_recent_changes_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetAllSubmodelsRecentChangesResult[source]

Parse an instance of types.GetAllSubmodelsRecentChangesResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetAllSubmodelsRecentChangesResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodels_metadata_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelsMetadataResult[source]

Parse an instance of types.GetSubmodelsMetadataResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelsMetadataResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodels_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelsResult[source]

Parse an instance of types.GetSubmodelsResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelsResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.get_submodels_value_result_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GetSubmodelsValueResult[source]

Parse an instance of types.GetSubmodelsValueResult from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GetSubmodelsValueResult

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.global_attribute_kind_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GlobalAttributeKind[source]

Convert the JSON-able structure jsonable to a literal of types.GlobalAttributeKind.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.date_time_global_attribute_kind_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DateTimeGlobalAttributeKind[source]

Convert the JSON-able structure jsonable to a literal of types.DateTimeGlobalAttributeKind.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.claim_attribute_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ClaimAttribute[source]

Parse an instance of types.ClaimAttribute from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ClaimAttribute

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.global_attribute_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GlobalAttribute[source]

Parse an instance of types.GlobalAttribute from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GlobalAttribute

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.reference_attribute_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ReferenceAttribute[source]

Parse an instance of types.ReferenceAttribute from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ReferenceAttribute

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.date_time_attribute_item_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DateTimeAttributeItem[source]

Parse an instance of types.DateTimeAttributeItem from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DateTimeAttributeItem

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.field_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → FieldOperand[source]

Parse an instance of types.FieldOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.FieldOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.string_literal_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → StringLiteral[source]

Parse an instance of types.StringLiteral from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.StringLiteral

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.attribute_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AttributeOperand[source]

Parse an instance of types.AttributeOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AttributeOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.number_literal_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → NumberLiteral[source]

Parse an instance of types.NumberLiteral from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.NumberLiteral

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.hex_literal_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → HexLiteral[source]

Parse an instance of types.HexLiteral from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.HexLiteral

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.date_time_literal_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DateTimeLiteral[source]

Parse an instance of types.DateTimeLiteral from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DateTimeLiteral

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.time_literal_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → TimeLiteral[source]

Parse an instance of types.TimeLiteral from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.TimeLiteral

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.boolean_literal_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BooleanLiteral[source]

Parse an instance of types.BooleanLiteral from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BooleanLiteral

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.string_cast_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → StringCast[source]

Parse an instance of types.StringCast from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.StringCast

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.number_cast_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → NumberCast[source]

Parse an instance of types.NumberCast from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.NumberCast

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.hex_cast_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → HexCast[source]

Parse an instance of types.HexCast from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.HexCast

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.boolean_cast_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → BooleanCast[source]

Parse an instance of types.BooleanCast from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.BooleanCast

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.date_time_cast_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DateTimeCast[source]

Parse an instance of types.DateTimeCast from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DateTimeCast

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.time_cast_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → TimeCast[source]

Parse an instance of types.TimeCast from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.TimeCast

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.day_of_week_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DayOfWeek[source]

Parse an instance of types.DayOfWeek from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DayOfWeek

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.day_of_month_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DayOfMonth[source]

Parse an instance of types.DayOfMonth from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DayOfMonth

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.month_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Month[source]

Parse an instance of types.Month from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Month

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.year_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Year[source]

Parse an instance of types.Year from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Year

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.date_time_attribute_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → DateTimeAttributeOperand[source]

Parse an instance of types.DateTimeAttributeOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.DateTimeAttributeOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.equal_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EqualComparison[source]

Parse an instance of types.EqualComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.EqualComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.not_equal_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → NotEqualComparison[source]

Parse an instance of types.NotEqualComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.NotEqualComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.greater_than_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GreaterThanComparison[source]

Parse an instance of types.GreaterThanComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GreaterThanComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.greater_than_or_equal_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → GreaterThanOrEqualComparison[source]

Parse an instance of types.GreaterThanOrEqualComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.GreaterThanOrEqualComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.less_than_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LessThanComparison[source]

Parse an instance of types.LessThanComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LessThanComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.less_than_or_equal_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → LessThanOrEqualComparison[source]

Parse an instance of types.LessThanOrEqualComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.LessThanOrEqualComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.contains_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → ContainsComparison[source]

Parse an instance of types.ContainsComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.ContainsComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.starts_with_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → StartsWithComparison[source]

Parse an instance of types.StartsWithComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.StartsWithComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.ends_with_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → EndsWithComparison[source]

Parse an instance of types.EndsWithComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.EndsWithComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.regex_comparison_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → RegexComparison[source]

Parse an instance of types.RegexComparison from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.RegexComparison

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.match_clause_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → MatchClause[source]

Parse an instance of types.MatchClause from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.MatchClause

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.and_expression_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → AndExpression[source]

Parse an instance of types.AndExpression from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.AndExpression

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.or_expression_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → OrExpression[source]

Parse an instance of types.OrExpression from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.OrExpression

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.not_expression_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → NotExpression[source]

Parse an instance of types.NotExpression from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.NotExpression

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.query_select_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → QuerySelect[source]

Convert the JSON-able structure jsonable to a literal of types.QuerySelect.

Parameters

jsonable – JSON-able structure to be parsed

Returns

parsed literal

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.query_filter_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → QueryFilter[source]

Parse an instance of types.QueryFilter from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.QueryFilter

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.query_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Query[source]

Parse an instance of types.Query from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Parsed instance of types.Query

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.attribute_item_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[ClaimAttribute, GlobalAttribute, ReferenceAttribute][source]

Parse an instance of types.AttributeItem from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.AttributeItem

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.string_value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[FieldOperand, StringLiteral, StringCast, AttributeOperand][source]

Parse an instance of types.StringValue from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.StringValue

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.date_time_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[DateTimeLiteral, DateTimeCast, DateTimeAttributeOperand][source]

Parse an instance of types.DateTimeOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.DateTimeOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.time_cast_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[FieldOperand, StringLiteral, StringCast, AttributeOperand, DateTimeLiteral, DateTimeCast][source]

Parse an instance of types.TimeCastOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.TimeCastOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.numerical_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[NumberLiteral, NumberCast, DayOfWeek, DayOfMonth, Month, Year][source]

Parse an instance of types.NumericalOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.NumericalOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.hex_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[HexLiteral, HexCast][source]

Parse an instance of types.HexOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.HexOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.bool_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[BooleanLiteral, BooleanCast][source]

Parse an instance of types.BoolOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.BoolOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.time_operand_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[TimeLiteral, TimeCast][source]

Parse an instance of types.TimeOperand from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.TimeOperand

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.value_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[FieldOperand, StringLiteral, StringCast, AttributeOperand, NumberLiteral, NumberCast, DayOfWeek, DayOfMonth, Month, Year, HexLiteral, HexCast, BooleanLiteral, BooleanCast, DateTimeLiteral, DateTimeCast, TimeLiteral, TimeCast][source]

Parse an instance of types.Value from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.Value

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.match_expression_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[MatchClause, EqualComparison, NotEqualComparison, GreaterThanComparison, GreaterThanOrEqualComparison, LessThanComparison, LessThanOrEqualComparison, ContainsComparison, StartsWithComparison, EndsWithComparison, RegexComparison][source]

Parse an instance of types.MatchExpression from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.MatchExpression

Raise

DeserializationException if unexpected jsonable

aas_core3_2.jsonization.logical_expression_from_jsonable(jsonable: Union[None, bool, int, float, str, Sequence[Any], Mapping[str, Any]]) → Union[AndExpression, OrExpression, NotExpression, BooleanLiteral, MatchClause, EqualComparison, NotEqualComparison, GreaterThanComparison, GreaterThanOrEqualComparison, LessThanComparison, LessThanOrEqualComparison, ContainsComparison, StartsWithComparison, EndsWithComparison, RegexComparison][source]

Parse an instance of types.LogicalExpression from the JSON-able structure jsonable.

Parameters

jsonable – structure to be parsed

Returns

Concrete instance corresponding to types.LogicalExpression

Raise

DeserializationException if unexpected jsonable

exception aas_core3_2.jsonization.SerializationException(cause: str)[source]

Signal that the JSON serialization could not be performed.

__init__(cause: str) → None[source]

Initialize with the given cause and an empty path.

cause: Final[str]

Human-readable explanation of the exception’s cause

property path: str

Render the path to the erroneous value as a Python access expression.

The path points into the instance which you handed over for the serialization, and not into a JSON document – at the point of the failure, there is no document yet. For example, .submodels[0].value tells you that the serialization broke on that.submodels[0].value.

__str__() → str[source]

Return str(self).

aas_core3_2.jsonization.to_jsonable(that: Class) → Union[None, bool, int, float, str, List[Any], MutableMapping[str, Any]][source]

Convert that to a JSON-able structure.

Parameters

that – Model instance to be recursively converted to a JSON-able structure

Returns

JSON-able structure which can be further encoded with, e.g., json

Raise

SerializationException if that contains a number which JSON can not represent