Constraint is not used as an independent entity, it is
retrieved as part of another entity such as Table or View.
Attributes
Name
Description
name
str
The name of the table constraint.
type_
str
Type of constraint, for example unique,
primary key, foreign key (currently only primary
key is supported).
table_columns
MutableSequence[str]
Table columns used as part of the Constraint,
for example primary key constraint should list
the columns which constitutes the key.
custom_features
google.protobuf.struct_pb2.Struct
Custom engine specific features.
reference_columns
MutableSequence[str]
Reference columns which may be associated with the
constraint. For example, if the constraint is a FOREIGN_KEY,
this represents the list of full names of referenced columns
by the foreign key.
reference_table
str
Reference table which may be associated with the constraint.
For example, if the constraint is a FOREIGN_KEY, this
represents the list of full name of the referenced table by
the foreign key.
table_name
str
Table which is associated with the constraint. In case the
constraint is defined on a table, this field is left empty
as this information is stored in parent_name. However, if
constraint is defined on a view, this field stores the table
name on which the view is defined.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class ConstraintEntity (1.12.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.12.4 (latest)](/python/docs/reference/datamigration/latest/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.12.2](/python/docs/reference/datamigration/1.12.2/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.11.0](/python/docs/reference/datamigration/1.11.0/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.10.1](/python/docs/reference/datamigration/1.10.1/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.9.5](/python/docs/reference/datamigration/1.9.5/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.8.0](/python/docs/reference/datamigration/1.8.0/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.7.1](/python/docs/reference/datamigration/1.7.1/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.6.2](/python/docs/reference/datamigration/1.6.2/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.5.0](/python/docs/reference/datamigration/1.5.0/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.4.3](/python/docs/reference/datamigration/1.4.3/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.3.2](/python/docs/reference/datamigration/1.3.2/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.2.1](/python/docs/reference/datamigration/1.2.1/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.1.0](/python/docs/reference/datamigration/1.1.0/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [1.0.2](/python/docs/reference/datamigration/1.0.2/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [0.2.4](/python/docs/reference/datamigration/0.2.4/google.cloud.clouddms_v1.types.ConstraintEntity)\n- [0.1.0](/python/docs/reference/datamigration/0.1.0/google.cloud.clouddms_v1.types.ConstraintEntity) \n\n ConstraintEntity(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nConstraint is not used as an independent entity, it is\nretrieved as part of another entity such as Table or View."]]