# 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
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""todo: add classes docstring."""
from __future__ import annotations




@dataclass
class DataplexEntitySchema:
    """ """


# 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

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""todo: add classes docstring."""
from __future__ import annotations




@dataclass
class DataplexEntitySchema:
    """ """


    fields: list[DataplexEntitySchemaField]