"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from __future__ import annotations
import dataclasses
from ..shared import iawskmsserviceconfig as shared_iawskmsserviceconfig
from ..shared import secret_provider as shared_secret_provider
from ..shared import vaultkmsengineconfig as shared_vaultkmsengineconfig
from cribl import utils
from dataclasses_json import Undefined, dataclass_json
from typing import Optional


@dataclass_json(undefined=Undefined.EXCLUDE)

@dataclasses.dataclass
class IKMSProviderConfig:
    r"""IKMSProviderConfig object"""
    enable_health_check: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('enableHealthCheck') }})
    provider: shared_secret_provider.SecretProvider = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('provider') }})
    engine: Optional[shared_vaultkmsengineconfig.VaultKMSEngineConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('engine'), 'exclude': lambda f: f is None }})
    health_check_endpoint: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('healthCheckEndpoint'), 'exclude': lambda f: f is None }})
    namespace: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('namespace'), 'exclude': lambda f: f is None }})
    secret_dir: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('secretDir'), 'exclude': lambda f: f is None }})
    service: Optional[shared_iawskmsserviceconfig.IAWSKMSServiceConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('service'), 'exclude': lambda f: f is None }})
    url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url'), 'exclude': lambda f: f is None }})
    

