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

from __future__ import annotations

from .top import (
    TopResource,
    AsyncTopResource,
    TopResourceWithRawResponse,
    AsyncTopResourceWithRawResponse,
    TopResourceWithStreamingResponse,
    AsyncTopResourceWithStreamingResponse,
)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource

__all__ = ["VerifiedBotsResource", "AsyncVerifiedBotsResource"]


class VerifiedBotsResource(SyncAPIResource):
    @cached_property
    def top(self) -> TopResource:
        return TopResource(self._client)

    @cached_property
    def with_raw_response(self) -> VerifiedBotsResourceWithRawResponse:
        """
        This property can be used as a prefix for any HTTP method call to return the
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
        """
        return VerifiedBotsResourceWithRawResponse(self)

    @cached_property
    def with_streaming_response(self) -> VerifiedBotsResourceWithStreamingResponse:
        """
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
        """
        return VerifiedBotsResourceWithStreamingResponse(self)


class AsyncVerifiedBotsResource(AsyncAPIResource):
    @cached_property
    def top(self) -> AsyncTopResource:
        return AsyncTopResource(self._client)

    @cached_property
    def with_raw_response(self) -> AsyncVerifiedBotsResourceWithRawResponse:
        """
        This property can be used as a prefix for any HTTP method call to return the
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
        """
        return AsyncVerifiedBotsResourceWithRawResponse(self)

    @cached_property
    def with_streaming_response(self) -> AsyncVerifiedBotsResourceWithStreamingResponse:
        """
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
        """
        return AsyncVerifiedBotsResourceWithStreamingResponse(self)


class VerifiedBotsResourceWithRawResponse:
    def __init__(self, verified_bots: VerifiedBotsResource) -> None:
        self._verified_bots = verified_bots

    @cached_property
    def top(self) -> TopResourceWithRawResponse:
        return TopResourceWithRawResponse(self._verified_bots.top)


class AsyncVerifiedBotsResourceWithRawResponse:
    def __init__(self, verified_bots: AsyncVerifiedBotsResource) -> None:
        self._verified_bots = verified_bots

    @cached_property
    def top(self) -> AsyncTopResourceWithRawResponse:
        return AsyncTopResourceWithRawResponse(self._verified_bots.top)


class VerifiedBotsResourceWithStreamingResponse:
    def __init__(self, verified_bots: VerifiedBotsResource) -> None:
        self._verified_bots = verified_bots

    @cached_property
    def top(self) -> TopResourceWithStreamingResponse:
        return TopResourceWithStreamingResponse(self._verified_bots.top)


class AsyncVerifiedBotsResourceWithStreamingResponse:
    def __init__(self, verified_bots: AsyncVerifiedBotsResource) -> None:
        self._verified_bots = verified_bots

    @cached_property
    def top(self) -> AsyncTopResourceWithStreamingResponse:
        return AsyncTopResourceWithStreamingResponse(self._verified_bots.top)
