# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Iterable
from typing_extensions import Required, TypedDict

__all__ = ["DatasetUpdateParams", "Field"]


class DatasetUpdateParams(TypedDict, total=False):
    enabled: Required[bool]
    """Whether to enable or disable log ingest for this dataset."""

    account_id: str
    """The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""

    zone_id: str
    """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""

    fields: Iterable[Field]
    """Controls which fields the API ingests after the update.

    Defaults to all available fields when absent.
    """


class Field(TypedDict, total=False):
    enabled: Required[bool]
    """Whether the API includes this field in log ingest."""

    name: Required[str]
    """Field name in lowercase."""
