# coding: utf-8

"""
    WordLift API

    WordLift API

    The version of the OpenAPI document: 1.0
    Contact: hello@wordlift.io
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import pprint
import re  # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional, Union
from typing import Optional, Set
from typing_extensions import Self

class SnapshotResponse(BaseModel):
    """
    SnapshotResponse
    """ # noqa: E501
    graph_id: StrictStr = Field(description="Public WordLift graph identifier.")
    snapshot_date: StrictStr = Field(description="Logical KPI day for this snapshot in `YYYY-MM-DD` format.")
    calculated_at: Optional[StrictStr] = None
    dataset_id: Optional[StrictStr] = None
    snapshot_origin: Optional[StrictStr] = None
    cloned_from_snapshot_date: Optional[StrictStr] = None
    source_watermark: Optional[StrictStr] = None
    kpi_worker_version: Optional[StrictStr] = None
    validation_rules_fingerprint: Optional[StrictStr] = None
    validated_at: Optional[StrictStr] = None
    all_total_entities: Optional[StrictInt] = None
    public_total_entities: Optional[StrictInt] = None
    private_total_entities: Optional[StrictInt] = None
    all_total_properties: Optional[StrictInt] = None
    public_total_properties: Optional[StrictInt] = None
    private_total_properties: Optional[StrictInt] = None
    all_total_triples: Optional[StrictInt] = None
    public_total_triples: Optional[StrictInt] = None
    private_total_triples: Optional[StrictInt] = None
    all_internal_edges_count: Optional[StrictInt] = None
    public_internal_edges_count: Optional[StrictInt] = None
    private_internal_edges_count: Optional[StrictInt] = None
    all_external_edges_count: Optional[StrictInt] = None
    public_external_edges_count: Optional[StrictInt] = None
    private_external_edges_count: Optional[StrictInt] = None
    all_edges_count: Optional[StrictInt] = None
    public_edges_count: Optional[StrictInt] = None
    private_edges_count: Optional[StrictInt] = None
    all_edge_node_ratio: Optional[Union[StrictFloat, StrictInt]] = None
    public_edge_node_ratio: Optional[Union[StrictFloat, StrictInt]] = None
    private_edge_node_ratio: Optional[Union[StrictFloat, StrictInt]] = None
    all_edge_node_ratio_edges: Optional[StrictInt] = None
    public_edge_node_ratio_edges: Optional[StrictInt] = None
    private_edge_node_ratio_edges: Optional[StrictInt] = None
    all_edge_node_ratio_nodes: Optional[StrictInt] = None
    public_edge_node_ratio_nodes: Optional[StrictInt] = None
    private_edge_node_ratio_nodes: Optional[StrictInt] = None
    all_unique_urls_count: Optional[StrictInt] = None
    public_unique_urls_count: Optional[StrictInt] = None
    private_unique_urls_count: Optional[StrictInt] = None
    all_orphans_count: Optional[StrictInt] = None
    public_orphans_count: Optional[StrictInt] = None
    private_orphans_count: Optional[StrictInt] = None
    all_broken_links_count: Optional[StrictInt] = None
    public_broken_links_count: Optional[StrictInt] = None
    private_broken_links_count: Optional[StrictInt] = None
    all_isolated_graphs_count: Optional[StrictInt] = None
    public_isolated_graphs_count: Optional[StrictInt] = None
    private_isolated_graphs_count: Optional[StrictInt] = None
    all_duplicates_count: Optional[StrictInt] = None
    public_duplicates_count: Optional[StrictInt] = None
    private_duplicates_count: Optional[StrictInt] = None
    all_entity_types: Optional[Dict[str, StrictInt]] = None
    public_entity_types: Optional[Dict[str, StrictInt]] = None
    private_entity_types: Optional[Dict[str, StrictInt]] = None
    all_properties_by_predicate: Optional[Dict[str, StrictInt]] = None
    public_properties_by_predicate: Optional[Dict[str, StrictInt]] = None
    private_properties_by_predicate: Optional[Dict[str, StrictInt]] = None
    rich_snippets_valid_count: Optional[StrictInt] = None
    rich_snippets_invalid_count: Optional[StrictInt] = None
    rich_snippets_by_type: Optional[Dict[str, Dict[str, StrictInt]]] = None
    schema_compliance_errors: Optional[StrictInt] = None
    schema_compliance_warnings: Optional[StrictInt] = None
    schema_compliance_urls_checked: Optional[StrictInt] = None
    graph_health_score: Optional[StrictInt] = None
    graph_health_validation_health: Optional[StrictInt] = None
    graph_health_structural_integrity: Optional[StrictInt] = None
    graph_health_public_footprint_quality: Optional[StrictInt] = None
    graph_health_freshness_momentum: Optional[StrictInt] = None
    additional_properties: Dict[str, Any] = {}
    __properties: ClassVar[List[str]] = ["graph_id", "snapshot_date", "calculated_at", "dataset_id", "snapshot_origin", "cloned_from_snapshot_date", "source_watermark", "kpi_worker_version", "validation_rules_fingerprint", "validated_at", "all_total_entities", "public_total_entities", "private_total_entities", "all_total_properties", "public_total_properties", "private_total_properties", "all_total_triples", "public_total_triples", "private_total_triples", "all_internal_edges_count", "public_internal_edges_count", "private_internal_edges_count", "all_external_edges_count", "public_external_edges_count", "private_external_edges_count", "all_edges_count", "public_edges_count", "private_edges_count", "all_edge_node_ratio", "public_edge_node_ratio", "private_edge_node_ratio", "all_edge_node_ratio_edges", "public_edge_node_ratio_edges", "private_edge_node_ratio_edges", "all_edge_node_ratio_nodes", "public_edge_node_ratio_nodes", "private_edge_node_ratio_nodes", "all_unique_urls_count", "public_unique_urls_count", "private_unique_urls_count", "all_orphans_count", "public_orphans_count", "private_orphans_count", "all_broken_links_count", "public_broken_links_count", "private_broken_links_count", "all_isolated_graphs_count", "public_isolated_graphs_count", "private_isolated_graphs_count", "all_duplicates_count", "public_duplicates_count", "private_duplicates_count", "all_entity_types", "public_entity_types", "private_entity_types", "all_properties_by_predicate", "public_properties_by_predicate", "private_properties_by_predicate", "rich_snippets_valid_count", "rich_snippets_invalid_count", "rich_snippets_by_type", "schema_compliance_errors", "schema_compliance_warnings", "schema_compliance_urls_checked", "graph_health_score", "graph_health_validation_health", "graph_health_structural_integrity", "graph_health_public_footprint_quality", "graph_health_freshness_momentum"]

    model_config = ConfigDict(
        populate_by_name=True,
        validate_assignment=True,
        protected_namespaces=(),
    )


    def to_str(self) -> str:
        """Returns the string representation of the model using alias"""
        return pprint.pformat(self.model_dump(by_alias=True))

    def to_json(self) -> str:
        """Returns the JSON representation of the model using alias"""
        # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
        return json.dumps(self.to_dict())

    @classmethod
    def from_json(cls, json_str: str) -> Optional[Self]:
        """Create an instance of SnapshotResponse from a JSON string"""
        return cls.from_dict(json.loads(json_str))

    def to_dict(self) -> Dict[str, Any]:
        """Return the dictionary representation of the model using alias.

        This has the following differences from calling pydantic's
        `self.model_dump(by_alias=True)`:

        * `None` is only added to the output dict for nullable fields that
          were set at model initialization. Other fields with value `None`
          are ignored.
        * Fields in `self.additional_properties` are added to the output dict.
        """
        excluded_fields: Set[str] = set([
            "additional_properties",
        ])

        _dict = self.model_dump(
            by_alias=True,
            exclude=excluded_fields,
            exclude_none=True,
        )
        # puts key-value pairs in additional_properties in the top level
        if self.additional_properties is not None:
            for _key, _value in self.additional_properties.items():
                _dict[_key] = _value

        # set to None if calculated_at (nullable) is None
        # and model_fields_set contains the field
        if self.calculated_at is None and "calculated_at" in self.model_fields_set:
            _dict['calculated_at'] = None

        # set to None if dataset_id (nullable) is None
        # and model_fields_set contains the field
        if self.dataset_id is None and "dataset_id" in self.model_fields_set:
            _dict['dataset_id'] = None

        # set to None if snapshot_origin (nullable) is None
        # and model_fields_set contains the field
        if self.snapshot_origin is None and "snapshot_origin" in self.model_fields_set:
            _dict['snapshot_origin'] = None

        # set to None if cloned_from_snapshot_date (nullable) is None
        # and model_fields_set contains the field
        if self.cloned_from_snapshot_date is None and "cloned_from_snapshot_date" in self.model_fields_set:
            _dict['cloned_from_snapshot_date'] = None

        # set to None if source_watermark (nullable) is None
        # and model_fields_set contains the field
        if self.source_watermark is None and "source_watermark" in self.model_fields_set:
            _dict['source_watermark'] = None

        # set to None if kpi_worker_version (nullable) is None
        # and model_fields_set contains the field
        if self.kpi_worker_version is None and "kpi_worker_version" in self.model_fields_set:
            _dict['kpi_worker_version'] = None

        # set to None if validation_rules_fingerprint (nullable) is None
        # and model_fields_set contains the field
        if self.validation_rules_fingerprint is None and "validation_rules_fingerprint" in self.model_fields_set:
            _dict['validation_rules_fingerprint'] = None

        # set to None if validated_at (nullable) is None
        # and model_fields_set contains the field
        if self.validated_at is None and "validated_at" in self.model_fields_set:
            _dict['validated_at'] = None

        # set to None if all_total_entities (nullable) is None
        # and model_fields_set contains the field
        if self.all_total_entities is None and "all_total_entities" in self.model_fields_set:
            _dict['all_total_entities'] = None

        # set to None if public_total_entities (nullable) is None
        # and model_fields_set contains the field
        if self.public_total_entities is None and "public_total_entities" in self.model_fields_set:
            _dict['public_total_entities'] = None

        # set to None if private_total_entities (nullable) is None
        # and model_fields_set contains the field
        if self.private_total_entities is None and "private_total_entities" in self.model_fields_set:
            _dict['private_total_entities'] = None

        # set to None if all_total_properties (nullable) is None
        # and model_fields_set contains the field
        if self.all_total_properties is None and "all_total_properties" in self.model_fields_set:
            _dict['all_total_properties'] = None

        # set to None if public_total_properties (nullable) is None
        # and model_fields_set contains the field
        if self.public_total_properties is None and "public_total_properties" in self.model_fields_set:
            _dict['public_total_properties'] = None

        # set to None if private_total_properties (nullable) is None
        # and model_fields_set contains the field
        if self.private_total_properties is None and "private_total_properties" in self.model_fields_set:
            _dict['private_total_properties'] = None

        # set to None if all_total_triples (nullable) is None
        # and model_fields_set contains the field
        if self.all_total_triples is None and "all_total_triples" in self.model_fields_set:
            _dict['all_total_triples'] = None

        # set to None if public_total_triples (nullable) is None
        # and model_fields_set contains the field
        if self.public_total_triples is None and "public_total_triples" in self.model_fields_set:
            _dict['public_total_triples'] = None

        # set to None if private_total_triples (nullable) is None
        # and model_fields_set contains the field
        if self.private_total_triples is None and "private_total_triples" in self.model_fields_set:
            _dict['private_total_triples'] = None

        # set to None if all_internal_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_internal_edges_count is None and "all_internal_edges_count" in self.model_fields_set:
            _dict['all_internal_edges_count'] = None

        # set to None if public_internal_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_internal_edges_count is None and "public_internal_edges_count" in self.model_fields_set:
            _dict['public_internal_edges_count'] = None

        # set to None if private_internal_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_internal_edges_count is None and "private_internal_edges_count" in self.model_fields_set:
            _dict['private_internal_edges_count'] = None

        # set to None if all_external_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_external_edges_count is None and "all_external_edges_count" in self.model_fields_set:
            _dict['all_external_edges_count'] = None

        # set to None if public_external_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_external_edges_count is None and "public_external_edges_count" in self.model_fields_set:
            _dict['public_external_edges_count'] = None

        # set to None if private_external_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_external_edges_count is None and "private_external_edges_count" in self.model_fields_set:
            _dict['private_external_edges_count'] = None

        # set to None if all_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_edges_count is None and "all_edges_count" in self.model_fields_set:
            _dict['all_edges_count'] = None

        # set to None if public_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_edges_count is None and "public_edges_count" in self.model_fields_set:
            _dict['public_edges_count'] = None

        # set to None if private_edges_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_edges_count is None and "private_edges_count" in self.model_fields_set:
            _dict['private_edges_count'] = None

        # set to None if all_edge_node_ratio (nullable) is None
        # and model_fields_set contains the field
        if self.all_edge_node_ratio is None and "all_edge_node_ratio" in self.model_fields_set:
            _dict['all_edge_node_ratio'] = None

        # set to None if public_edge_node_ratio (nullable) is None
        # and model_fields_set contains the field
        if self.public_edge_node_ratio is None and "public_edge_node_ratio" in self.model_fields_set:
            _dict['public_edge_node_ratio'] = None

        # set to None if private_edge_node_ratio (nullable) is None
        # and model_fields_set contains the field
        if self.private_edge_node_ratio is None and "private_edge_node_ratio" in self.model_fields_set:
            _dict['private_edge_node_ratio'] = None

        # set to None if all_edge_node_ratio_edges (nullable) is None
        # and model_fields_set contains the field
        if self.all_edge_node_ratio_edges is None and "all_edge_node_ratio_edges" in self.model_fields_set:
            _dict['all_edge_node_ratio_edges'] = None

        # set to None if public_edge_node_ratio_edges (nullable) is None
        # and model_fields_set contains the field
        if self.public_edge_node_ratio_edges is None and "public_edge_node_ratio_edges" in self.model_fields_set:
            _dict['public_edge_node_ratio_edges'] = None

        # set to None if private_edge_node_ratio_edges (nullable) is None
        # and model_fields_set contains the field
        if self.private_edge_node_ratio_edges is None and "private_edge_node_ratio_edges" in self.model_fields_set:
            _dict['private_edge_node_ratio_edges'] = None

        # set to None if all_edge_node_ratio_nodes (nullable) is None
        # and model_fields_set contains the field
        if self.all_edge_node_ratio_nodes is None and "all_edge_node_ratio_nodes" in self.model_fields_set:
            _dict['all_edge_node_ratio_nodes'] = None

        # set to None if public_edge_node_ratio_nodes (nullable) is None
        # and model_fields_set contains the field
        if self.public_edge_node_ratio_nodes is None and "public_edge_node_ratio_nodes" in self.model_fields_set:
            _dict['public_edge_node_ratio_nodes'] = None

        # set to None if private_edge_node_ratio_nodes (nullable) is None
        # and model_fields_set contains the field
        if self.private_edge_node_ratio_nodes is None and "private_edge_node_ratio_nodes" in self.model_fields_set:
            _dict['private_edge_node_ratio_nodes'] = None

        # set to None if all_unique_urls_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_unique_urls_count is None and "all_unique_urls_count" in self.model_fields_set:
            _dict['all_unique_urls_count'] = None

        # set to None if public_unique_urls_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_unique_urls_count is None and "public_unique_urls_count" in self.model_fields_set:
            _dict['public_unique_urls_count'] = None

        # set to None if private_unique_urls_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_unique_urls_count is None and "private_unique_urls_count" in self.model_fields_set:
            _dict['private_unique_urls_count'] = None

        # set to None if all_orphans_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_orphans_count is None and "all_orphans_count" in self.model_fields_set:
            _dict['all_orphans_count'] = None

        # set to None if public_orphans_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_orphans_count is None and "public_orphans_count" in self.model_fields_set:
            _dict['public_orphans_count'] = None

        # set to None if private_orphans_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_orphans_count is None and "private_orphans_count" in self.model_fields_set:
            _dict['private_orphans_count'] = None

        # set to None if all_broken_links_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_broken_links_count is None and "all_broken_links_count" in self.model_fields_set:
            _dict['all_broken_links_count'] = None

        # set to None if public_broken_links_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_broken_links_count is None and "public_broken_links_count" in self.model_fields_set:
            _dict['public_broken_links_count'] = None

        # set to None if private_broken_links_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_broken_links_count is None and "private_broken_links_count" in self.model_fields_set:
            _dict['private_broken_links_count'] = None

        # set to None if all_isolated_graphs_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_isolated_graphs_count is None and "all_isolated_graphs_count" in self.model_fields_set:
            _dict['all_isolated_graphs_count'] = None

        # set to None if public_isolated_graphs_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_isolated_graphs_count is None and "public_isolated_graphs_count" in self.model_fields_set:
            _dict['public_isolated_graphs_count'] = None

        # set to None if private_isolated_graphs_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_isolated_graphs_count is None and "private_isolated_graphs_count" in self.model_fields_set:
            _dict['private_isolated_graphs_count'] = None

        # set to None if all_duplicates_count (nullable) is None
        # and model_fields_set contains the field
        if self.all_duplicates_count is None and "all_duplicates_count" in self.model_fields_set:
            _dict['all_duplicates_count'] = None

        # set to None if public_duplicates_count (nullable) is None
        # and model_fields_set contains the field
        if self.public_duplicates_count is None and "public_duplicates_count" in self.model_fields_set:
            _dict['public_duplicates_count'] = None

        # set to None if private_duplicates_count (nullable) is None
        # and model_fields_set contains the field
        if self.private_duplicates_count is None and "private_duplicates_count" in self.model_fields_set:
            _dict['private_duplicates_count'] = None

        # set to None if all_entity_types (nullable) is None
        # and model_fields_set contains the field
        if self.all_entity_types is None and "all_entity_types" in self.model_fields_set:
            _dict['all_entity_types'] = None

        # set to None if public_entity_types (nullable) is None
        # and model_fields_set contains the field
        if self.public_entity_types is None and "public_entity_types" in self.model_fields_set:
            _dict['public_entity_types'] = None

        # set to None if private_entity_types (nullable) is None
        # and model_fields_set contains the field
        if self.private_entity_types is None and "private_entity_types" in self.model_fields_set:
            _dict['private_entity_types'] = None

        # set to None if all_properties_by_predicate (nullable) is None
        # and model_fields_set contains the field
        if self.all_properties_by_predicate is None and "all_properties_by_predicate" in self.model_fields_set:
            _dict['all_properties_by_predicate'] = None

        # set to None if public_properties_by_predicate (nullable) is None
        # and model_fields_set contains the field
        if self.public_properties_by_predicate is None and "public_properties_by_predicate" in self.model_fields_set:
            _dict['public_properties_by_predicate'] = None

        # set to None if private_properties_by_predicate (nullable) is None
        # and model_fields_set contains the field
        if self.private_properties_by_predicate is None and "private_properties_by_predicate" in self.model_fields_set:
            _dict['private_properties_by_predicate'] = None

        # set to None if rich_snippets_valid_count (nullable) is None
        # and model_fields_set contains the field
        if self.rich_snippets_valid_count is None and "rich_snippets_valid_count" in self.model_fields_set:
            _dict['rich_snippets_valid_count'] = None

        # set to None if rich_snippets_invalid_count (nullable) is None
        # and model_fields_set contains the field
        if self.rich_snippets_invalid_count is None and "rich_snippets_invalid_count" in self.model_fields_set:
            _dict['rich_snippets_invalid_count'] = None

        # set to None if rich_snippets_by_type (nullable) is None
        # and model_fields_set contains the field
        if self.rich_snippets_by_type is None and "rich_snippets_by_type" in self.model_fields_set:
            _dict['rich_snippets_by_type'] = None

        # set to None if schema_compliance_errors (nullable) is None
        # and model_fields_set contains the field
        if self.schema_compliance_errors is None and "schema_compliance_errors" in self.model_fields_set:
            _dict['schema_compliance_errors'] = None

        # set to None if schema_compliance_warnings (nullable) is None
        # and model_fields_set contains the field
        if self.schema_compliance_warnings is None and "schema_compliance_warnings" in self.model_fields_set:
            _dict['schema_compliance_warnings'] = None

        # set to None if schema_compliance_urls_checked (nullable) is None
        # and model_fields_set contains the field
        if self.schema_compliance_urls_checked is None and "schema_compliance_urls_checked" in self.model_fields_set:
            _dict['schema_compliance_urls_checked'] = None

        # set to None if graph_health_score (nullable) is None
        # and model_fields_set contains the field
        if self.graph_health_score is None and "graph_health_score" in self.model_fields_set:
            _dict['graph_health_score'] = None

        # set to None if graph_health_validation_health (nullable) is None
        # and model_fields_set contains the field
        if self.graph_health_validation_health is None and "graph_health_validation_health" in self.model_fields_set:
            _dict['graph_health_validation_health'] = None

        # set to None if graph_health_structural_integrity (nullable) is None
        # and model_fields_set contains the field
        if self.graph_health_structural_integrity is None and "graph_health_structural_integrity" in self.model_fields_set:
            _dict['graph_health_structural_integrity'] = None

        # set to None if graph_health_public_footprint_quality (nullable) is None
        # and model_fields_set contains the field
        if self.graph_health_public_footprint_quality is None and "graph_health_public_footprint_quality" in self.model_fields_set:
            _dict['graph_health_public_footprint_quality'] = None

        # set to None if graph_health_freshness_momentum (nullable) is None
        # and model_fields_set contains the field
        if self.graph_health_freshness_momentum is None and "graph_health_freshness_momentum" in self.model_fields_set:
            _dict['graph_health_freshness_momentum'] = None

        return _dict

    @classmethod
    def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
        """Create an instance of SnapshotResponse from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return cls.model_validate(obj)

        _obj = cls.model_validate({
            "graph_id": obj.get("graph_id"),
            "snapshot_date": obj.get("snapshot_date"),
            "calculated_at": obj.get("calculated_at"),
            "dataset_id": obj.get("dataset_id"),
            "snapshot_origin": obj.get("snapshot_origin"),
            "cloned_from_snapshot_date": obj.get("cloned_from_snapshot_date"),
            "source_watermark": obj.get("source_watermark"),
            "kpi_worker_version": obj.get("kpi_worker_version"),
            "validation_rules_fingerprint": obj.get("validation_rules_fingerprint"),
            "validated_at": obj.get("validated_at"),
            "all_total_entities": obj.get("all_total_entities"),
            "public_total_entities": obj.get("public_total_entities"),
            "private_total_entities": obj.get("private_total_entities"),
            "all_total_properties": obj.get("all_total_properties"),
            "public_total_properties": obj.get("public_total_properties"),
            "private_total_properties": obj.get("private_total_properties"),
            "all_total_triples": obj.get("all_total_triples"),
            "public_total_triples": obj.get("public_total_triples"),
            "private_total_triples": obj.get("private_total_triples"),
            "all_internal_edges_count": obj.get("all_internal_edges_count"),
            "public_internal_edges_count": obj.get("public_internal_edges_count"),
            "private_internal_edges_count": obj.get("private_internal_edges_count"),
            "all_external_edges_count": obj.get("all_external_edges_count"),
            "public_external_edges_count": obj.get("public_external_edges_count"),
            "private_external_edges_count": obj.get("private_external_edges_count"),
            "all_edges_count": obj.get("all_edges_count"),
            "public_edges_count": obj.get("public_edges_count"),
            "private_edges_count": obj.get("private_edges_count"),
            "all_edge_node_ratio": obj.get("all_edge_node_ratio"),
            "public_edge_node_ratio": obj.get("public_edge_node_ratio"),
            "private_edge_node_ratio": obj.get("private_edge_node_ratio"),
            "all_edge_node_ratio_edges": obj.get("all_edge_node_ratio_edges"),
            "public_edge_node_ratio_edges": obj.get("public_edge_node_ratio_edges"),
            "private_edge_node_ratio_edges": obj.get("private_edge_node_ratio_edges"),
            "all_edge_node_ratio_nodes": obj.get("all_edge_node_ratio_nodes"),
            "public_edge_node_ratio_nodes": obj.get("public_edge_node_ratio_nodes"),
            "private_edge_node_ratio_nodes": obj.get("private_edge_node_ratio_nodes"),
            "all_unique_urls_count": obj.get("all_unique_urls_count"),
            "public_unique_urls_count": obj.get("public_unique_urls_count"),
            "private_unique_urls_count": obj.get("private_unique_urls_count"),
            "all_orphans_count": obj.get("all_orphans_count"),
            "public_orphans_count": obj.get("public_orphans_count"),
            "private_orphans_count": obj.get("private_orphans_count"),
            "all_broken_links_count": obj.get("all_broken_links_count"),
            "public_broken_links_count": obj.get("public_broken_links_count"),
            "private_broken_links_count": obj.get("private_broken_links_count"),
            "all_isolated_graphs_count": obj.get("all_isolated_graphs_count"),
            "public_isolated_graphs_count": obj.get("public_isolated_graphs_count"),
            "private_isolated_graphs_count": obj.get("private_isolated_graphs_count"),
            "all_duplicates_count": obj.get("all_duplicates_count"),
            "public_duplicates_count": obj.get("public_duplicates_count"),
            "private_duplicates_count": obj.get("private_duplicates_count"),
            "all_entity_types": obj.get("all_entity_types"),
            "public_entity_types": obj.get("public_entity_types"),
            "private_entity_types": obj.get("private_entity_types"),
            "all_properties_by_predicate": obj.get("all_properties_by_predicate"),
            "public_properties_by_predicate": obj.get("public_properties_by_predicate"),
            "private_properties_by_predicate": obj.get("private_properties_by_predicate"),
            "rich_snippets_valid_count": obj.get("rich_snippets_valid_count"),
            "rich_snippets_invalid_count": obj.get("rich_snippets_invalid_count"),
            "rich_snippets_by_type": obj.get("rich_snippets_by_type"),
            "schema_compliance_errors": obj.get("schema_compliance_errors"),
            "schema_compliance_warnings": obj.get("schema_compliance_warnings"),
            "schema_compliance_urls_checked": obj.get("schema_compliance_urls_checked"),
            "graph_health_score": obj.get("graph_health_score"),
            "graph_health_validation_health": obj.get("graph_health_validation_health"),
            "graph_health_structural_integrity": obj.get("graph_health_structural_integrity"),
            "graph_health_public_footprint_quality": obj.get("graph_health_public_footprint_quality"),
            "graph_health_freshness_momentum": obj.get("graph_health_freshness_momentum")
        })
        # store additional fields in additional_properties
        for _key in obj.keys():
            if _key not in cls.__properties:
                _obj.additional_properties[_key] = obj.get(_key)

        return _obj


