PrimitiveConstraint#

class ansys.sam.sysml2.dto.query.constraints_classes.PrimitiveConstraint#

Bases: Constraint

Provides a primitive constraint for a simple query constraint.

Overview#

to_json

Return JSON using the API key property for the property name.

Import detail#

from ansys.sam.sysml2.dto.query.constraints_classes import PrimitiveConstraint

Attribute detail#

PrimitiveConstraint.property_name: str#
PrimitiveConstraint.value: str#
PrimitiveConstraint.inverse: bool = False#
PrimitiveConstraint.operator: ansys.sam.sysml2.dto.query.query_enum.Operator = '='#

Method detail#

PrimitiveConstraint.to_json() dict#

Return JSON using the API key property for the property name.