# Path: clouddq/classes/dataplex_entity_schema_field.py
# class DataplexEntitySchemaField:
#     """ """
# 
#     name: str
#     type: str
#     mode: str
# 
#     def to_dict(self: DataplexEntitySchemaField) -> dict:
#         """
#         Args:
#           self: DataplexEntitySchemaField:
# 
#         Returns:
# 
#         """
# 
#         output = {
#             "name": self.name,
#             "type": self.type,
#             "mode": self.mode,
#         }
# 
#         return dict(output)
# 
#     @classmethod
#     def from_dict(
#         cls: DataplexEntitySchemaField, entity_id: str, kwargs: dict
#     ) -> DataplexEntitySchemaField:
# 
#         name = kwargs.get("name")
#         assert_not_none_or_empty(
#             value=name,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'name'",
#         )
# 
#         type = kwargs.get("type")
#         assert_not_none_or_empty(
#             value=type,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'type'",
#         )
# 
#         mode = kwargs.get("mode")
#         assert_not_none_or_empty(
#             value=mode,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'mode'",
#         )
# 
#         return DataplexEntitySchemaField(
#             name=name,
#             type=type,
#             mode=mode,
#         )
# 
# Path: clouddq/classes/dataplex_entity_schema_partition_fields.py
# class DataplexEntityPartitionSchemaField:
#     """ """
# 
#     name: str
#     type: str
# 
#     def to_dict(self: DataplexEntityPartitionSchemaField) -> dict:
#         """
#         Args:
#           self: DataplexEntityPartitionSchemaField:
# 
#         Returns:
# 
#         """
# 
#         output = {
#             "name": self.name,
#             "type": self.type,
#         }
# 
#         return dict(output)
# 
#     @classmethod
#     def from_dict(
#         cls: DataplexEntityPartitionSchemaField, entity_id: str, kwargs: dict
#     ) -> DataplexEntityPartitionSchemaField:
# 
#         name = kwargs.get("name")
#         assert_not_none_or_empty(
#             value=name,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'name'",
#         )
# 
#         type = kwargs.get("type")
#         assert_not_none_or_empty(
#             value=type,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'type'",
#         )
# 
#         return DataplexEntityPartitionSchemaField(
#             name=name,
#             type=type,
#         )
# 
#     def to_fields_dict(self: DataplexEntityPartitionSchemaField) -> dict:
#         """
#         Args:
#           self: DataplexEntityPartitionSchemaField:
# 
#         Returns:
# 
#         """
# 
#         output = {
#             "name": self.name,
#             "type": "TIMESTAMP",
#             "mode": "Required",
#         }
# 
#         return dict(output)
# 
# Path: clouddq/utils.py
# def assert_not_none_or_empty(value: typing.Any, error_msg: str) -> None:
#     """
# 
#     Args:
#       value: typing.Any:
#       error_msg: str:
# 
#     Returns:
# 
#     """
#     if not value:
#         raise ValueError(error_msg)


from dataclasses import dataclass
from clouddq.classes.dataplex_entity_schema_field import DataplexEntitySchemaField
from clouddq.classes.dataplex_entity_schema_partition_fields import (
    DataplexEntityPartitionSchemaField,
)
from clouddq.utils import assert_not_none_or_empty
            for obj in fields_list:
                field = DataplexEntitySchemaField.from_dict(
                    entity_id=entity_id, kwargs=obj
                )
                assert_not_none_or_empty(
                    value=field,
                    error_msg=f"Entity {entity_id}: must define non-empty value: 'fields'.",
                )
                fields.append(field.to_dict())
        else:
            fields = None
        partition_fields: list[dict] = []
        if kwargs.get("partitionFields"):
            partition_fields_list = kwargs.get("partitionFields")
            for obj in partition_fields_list:
                partition_field = DataplexEntityPartitionSchemaField.from_dict(
                    entity_id=entity_id, kwargs=obj
                )
                assert_not_none_or_empty(
                    value=partition_field,
                    error_msg=f"Entity {entity_id}: must define non-empty value: "
                    f"'partitionFields'.",
                )
                partition_fields.append(partition_field.to_dict())
                fields.append(partition_field.to_fields_dict())
        else:
            partition_fields = None

        if kwargs.get("partitionStyle"):
            partition_style = kwargs.get("partitionStyle", None)

# Path: clouddq/classes/dataplex_entity_schema_field.py
# class DataplexEntitySchemaField:
#     """ """
# 
#     name: str
#     type: str
#     mode: str
# 
#     def to_dict(self: DataplexEntitySchemaField) -> dict:
#         """
#         Args:
#           self: DataplexEntitySchemaField:
# 
#         Returns:
# 
#         """
# 
#         output = {
#             "name": self.name,
#             "type": self.type,
#             "mode": self.mode,
#         }
# 
#         return dict(output)
# 
#     @classmethod
#     def from_dict(
#         cls: DataplexEntitySchemaField, entity_id: str, kwargs: dict
#     ) -> DataplexEntitySchemaField:
# 
#         name = kwargs.get("name")
#         assert_not_none_or_empty(
#             value=name,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'name'",
#         )
# 
#         type = kwargs.get("type")
#         assert_not_none_or_empty(
#             value=type,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'type'",
#         )
# 
#         mode = kwargs.get("mode")
#         assert_not_none_or_empty(
#             value=mode,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'mode'",
#         )
# 
#         return DataplexEntitySchemaField(
#             name=name,
#             type=type,
#             mode=mode,
#         )
# 
# Path: clouddq/classes/dataplex_entity_schema_partition_fields.py
# class DataplexEntityPartitionSchemaField:
#     """ """
# 
#     name: str
#     type: str
# 
#     def to_dict(self: DataplexEntityPartitionSchemaField) -> dict:
#         """
#         Args:
#           self: DataplexEntityPartitionSchemaField:
# 
#         Returns:
# 
#         """
# 
#         output = {
#             "name": self.name,
#             "type": self.type,
#         }
# 
#         return dict(output)
# 
#     @classmethod
#     def from_dict(
#         cls: DataplexEntityPartitionSchemaField, entity_id: str, kwargs: dict
#     ) -> DataplexEntityPartitionSchemaField:
# 
#         name = kwargs.get("name")
#         assert_not_none_or_empty(
#             value=name,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'name'",
#         )
# 
#         type = kwargs.get("type")
#         assert_not_none_or_empty(
#             value=type,
#             error_msg=f"DataplexEntity {entity_id}: must define non-empty value: 'type'",
#         )
# 
#         return DataplexEntityPartitionSchemaField(
#             name=name,
#             type=type,
#         )
# 
#     def to_fields_dict(self: DataplexEntityPartitionSchemaField) -> dict:
#         """
#         Args:
#           self: DataplexEntityPartitionSchemaField:
# 
#         Returns:
# 
#         """
# 
#         output = {
#             "name": self.name,
#             "type": "TIMESTAMP",
#             "mode": "Required",
#         }
# 
#         return dict(output)
# 
# Path: clouddq/utils.py
# def assert_not_none_or_empty(value: typing.Any, error_msg: str) -> None:
#     """
# 
#     Args:
#       value: typing.Any:
#       error_msg: str:
# 
#     Returns:
# 
#     """
#     if not value:
#         raise ValueError(error_msg)


# Path: clouddq/classes/dataplex_entity_schema.py
from dataclasses import dataclass
from clouddq.classes.dataplex_entity_schema_field import DataplexEntitySchemaField
from clouddq.classes.dataplex_entity_schema_partition_fields import (
    DataplexEntityPartitionSchemaField,
)
from clouddq.utils import assert_not_none_or_empty

            for obj in fields_list:
                field = DataplexEntitySchemaField.from_dict(
                    entity_id=entity_id, kwargs=obj
                )
                assert_not_none_or_empty(
                    value=field,
                    error_msg=f"Entity {entity_id}: must define non-empty value: 'fields'.",
                )
                fields.append(field.to_dict())
        else:
            fields = None
        partition_fields: list[dict] = []
        if kwargs.get("partitionFields"):
            partition_fields_list = kwargs.get("partitionFields")
            for obj in partition_fields_list:
                partition_field = DataplexEntityPartitionSchemaField.from_dict(
                    entity_id=entity_id, kwargs=obj
                )
                assert_not_none_or_empty(
                    value=partition_field,
                    error_msg=f"Entity {entity_id}: must define non-empty value: "
                    f"'partitionFields'.",
                )
                partition_fields.append(partition_field.to_dict())
                fields.append(partition_field.to_fields_dict())
        else:
            partition_fields = None

        if kwargs.get("partitionStyle"):
            partition_style = kwargs.get("partitionStyle", None)

            assert_not_none_or_empty(