"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from .basesdk import BaseSDK
from .sdkconfiguration import SDKConfiguration
from squadcast.extensions_webhooks import ExtensionsWebhooks
from squadcast.msteams_1 import MsTeams1
from squadcast.msteams_2 import Msteams2
from typing import Optional


class Extensions(BaseSDK):
    webhooks: ExtensionsWebhooks
    ms_teams: MsTeams1
    msteams: Msteams2

    def __init__(
        self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
    ) -> None:
        BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
        self.sdk_configuration = sdk_config
        self._init_sdks()

    def _init_sdks(self):
        self.webhooks = ExtensionsWebhooks(
            self.sdk_configuration, parent_ref=self.parent_ref
        )
        self.ms_teams = MsTeams1(self.sdk_configuration, parent_ref=self.parent_ref)
        self.msteams = Msteams2(self.sdk_configuration, parent_ref=self.parent_ref)
