text: # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
  # This product includes software developed at Datadog (https://www.datadoghq.com/).
  # Copyright 2019-Present Datadog, Inc.
  
  
  from datadog_api_client.v2.model_utils import (
      ModelNormal,
      cached_property,
  )
  
  
  def lazy_import():
      from datadog_api_client.v2.model.incident_type import IncidentType
      from datadog_api_client.v2.model.incident_update_attributes import IncidentUpdateAttributes
      from datadog_api_client.v2.model.incident_update_relationships import IncidentUpdateRelationships
  
      globals()["IncidentType"] = IncidentType
      globals()["IncidentUpdateAttributes"] = IncidentUpdateAttributes
      globals()["IncidentUpdateRelationships"] = IncidentUpdateRelationships
  
  
  class IncidentUpdateData(ModelNormal):
      """NOTE: This class is auto generated by OpenAPI Generator.
      Ref: https://openapi-generator.tech
  
      Do not edit the class manually.
      """
  
      validations = {}
  
      @cached_property
      def openapi_types():
          lazy_import()
          return {
              "attributes": (IncidentUpdateAttributes,),
              "id": (str,),
              "relationships": (IncidentUpdateRelationships,),
              "type": (IncidentType,),
          }
  
      attribute_map = {
          "id": "id",
          "type": "type",
          "attributes": "attributes",
          "relationships": "relationships",
      }
  
      read_only_vars = {}
  
      def __init__(self, id, type, *args, **kwargs):
          """IncidentUpdateData - a model defined in OpenAPI
  
          Args:
              id (str): The team's ID.
              type (IncidentType):
  
          Keyword Args:
              attributes (IncidentUpdateAttributes): [optional]
              relationships (IncidentUpdateRelationships): [optional]
          """
          super().__init__(kwargs)
  
          self._check_pos_args(args)
  
          self.id = id
          self.type = type
  
      @classmethod
      def _from_openapi_data(cls, id, type, *args, **kwargs):
          """Helper creating a new instance from a response."""
  
          self = super(IncidentUpdateData, cls)._from_openapi_data(kwargs)
  
          self._check_pos_args(args)
  
          self.id = id
          self.type = type
          return self
  