# Path: google/cloud/asset_v1p1beta1/types/asset_service.py
# class SearchAllResourcesRequest(proto.Message):
# class SearchAllResourcesResponse(proto.Message):
# class SearchAllIamPoliciesRequest(proto.Message):
# class SearchAllIamPoliciesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/asset_v1p1beta1/types/assets.py
# class StandardResourceMetadata(proto.Message):
# class IamPolicySearchResult(proto.Message):
#     class Explanation(proto.Message):
# class Permissions(proto.Message):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiates the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.asset_v1p1beta1.types.SearchAllResourcesRequest):
                The initial request object.
            response (google.cloud.asset_v1p1beta1.types.SearchAllResourcesResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = asset_service.SearchAllResourcesRequest(request)
        self._response = response
        self._metadata = metadata

    def __getattr__(self, name: str) -> Any:
        return getattr(self._response, name)

    @property
    async def pages(self) -> AsyncIterator[asset_service.SearchAllResourcesResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = await self._method(self._request, metadata=self._metadata)
            yield self._response


# Path: google/cloud/asset_v1p1beta1/types/asset_service.py
# class SearchAllResourcesRequest(proto.Message):
# class SearchAllResourcesResponse(proto.Message):
# class SearchAllIamPoliciesRequest(proto.Message):
# class SearchAllIamPoliciesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/asset_v1p1beta1/types/assets.py
# class StandardResourceMetadata(proto.Message):
# class IamPolicySearchResult(proto.Message):
#     class Explanation(proto.Message):
# class Permissions(proto.Message):


# Path: google/cloud/asset_v1p1beta1/services/asset_service/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets

        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiates the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.asset_v1p1beta1.types.SearchAllResourcesRequest):
                The initial request object.
            response (google.cloud.asset_v1p1beta1.types.SearchAllResourcesResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = asset_service.SearchAllResourcesRequest(request)
        self._response = response
        self._metadata = metadata

    def __getattr__(self, name: str) -> Any:
        return getattr(self._response, name)

    @property
    async def pages(self) -> AsyncIterator[asset_service.SearchAllResourcesResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = await self._method(self._request, metadata=self._metadata)
            yield self._response


    def __aiter__(self) -> AsyncIterator[assets.StandardResourceMetadata]: