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.logs_metric_compute import LogsMetricCompute
      from datadog_api_client.v2.model.logs_metric_filter import LogsMetricFilter
      from datadog_api_client.v2.model.logs_metric_group_by import LogsMetricGroupBy
  
      globals()["LogsMetricCompute"] = LogsMetricCompute
      globals()["LogsMetricFilter"] = LogsMetricFilter
      globals()["LogsMetricGroupBy"] = LogsMetricGroupBy
  
  
  class LogsMetricCreateAttributes(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 {
              "compute": (LogsMetricCompute,),
              "filter": (LogsMetricFilter,),
              "group_by": ([LogsMetricGroupBy],),
          }
  
      attribute_map = {
          "compute": "compute",
          "filter": "filter",
          "group_by": "group_by",
      }
  
      read_only_vars = {}
  
      def __init__(self, compute, *args, **kwargs):
          """LogsMetricCreateAttributes - a model defined in OpenAPI
  
          Args:
              compute (LogsMetricCompute):
  
          Keyword Args:
              filter (LogsMetricFilter): [optional]
              group_by ([LogsMetricGroupBy]): [optional] The rules for the group by.
          """
          super().__init__(kwargs)
  
          self._check_pos_args(args)
  
          self.compute = compute
  
      @classmethod
      def _from_openapi_data(cls, compute, *args, **kwargs):
          """Helper creating a new instance from a response."""
  
          self = super(LogsMetricCreateAttributes, cls)._from_openapi_data(kwargs)
  
          self._check_pos_args(args)
  
          self.compute = compute
          return self
  