ReferenceDatapinMetadata#

class ansys.modelcenter.workflow.grpc_modelcenter.reference_datapin_metadata.ReferenceDatapinMetadata#

Bases: ansys.tools.variableinterop.CommonVariableMetadata

Provides metadata for a reference datapin.

Overview#

accept

Invoke the visitor pattern of this object using the passed-in visitor

from_dict

Creates a new metadata object from the data from a call to to_dict().

to_dict

Creates a dictionary representation of this object suitable for JSON

variable_type

Variable type of the object.

Import detail#

from ansys.modelcenter.workflow.grpc_modelcenter.reference_datapin_metadata import ReferenceDatapinMetadata

Property detail#

property ReferenceDatapinMetadata.variable_type: ansys.tools.variableinterop.VariableType#

Variable type of the object.

Returns:
VariableType

Variable type of the object.

Method detail#

abstractmethod ReferenceDatapinMetadata.accept(visitor: ansys.tools.variableinterop.IVariableMetadataVisitor[T]) → T#

Invoke the visitor pattern of this object using the passed-in visitor implementation.

Parameters:
visitorIVariableMetadataVisitor[T]

Visitor object to call.

Returns:
T

Results of the visitor invocation.

ReferenceDatapinMetadata.to_dict() → dict#

Creates a dictionary representation of this object suitable for JSON serialization.

Returns:
dict

The generated dictionary

classmethod ReferenceDatapinMetadata.from_dict(data) → ansys.tools.variableinterop.CommonVariableMetadata#

Creates a new metadata object from the data from a call to to_dict().

Parameters:
data

The serialized dictionary data.

Returns:
CommonVariableMetadata

The new metadata object.