# Path: google/cloud/orchestration/airflow/service_v1beta1/types/image_versions.py
# class ListImageVersionsRequest(proto.Message):
# class ListImageVersionsResponse(proto.Message):
# class ImageVersion(proto.Message):
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.orchestration.airflow.service_v1beta1.types import image_versions
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.orchestration.airflow.service_v1beta1.types.ListImageVersionsRequest):
                The initial request object.
            response (google.cloud.orchestration.airflow.service_v1beta1.types.ListImageVersionsResponse):
                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 = image_versions.ListImageVersionsRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    def pages(self) -> Iterator[image_versions.ListImageVersionsResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = self._method(self._request, metadata=self._metadata)
            yield self._response

    def __iter__(self) -> Iterator[image_versions.ImageVersion]:
        for page in self.pages:

# Path: google/cloud/orchestration/airflow/service_v1beta1/types/image_versions.py
# class ListImageVersionsRequest(proto.Message):
# class ListImageVersionsResponse(proto.Message):
# class ImageVersion(proto.Message):
#     def raw_page(self):


# Path: google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.orchestration.airflow.service_v1beta1.types import image_versions

        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.orchestration.airflow.service_v1beta1.types.ListImageVersionsRequest):
                The initial request object.
            response (google.cloud.orchestration.airflow.service_v1beta1.types.ListImageVersionsResponse):
                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 = image_versions.ListImageVersionsRequest(request)
        self._response = response
        self._metadata = metadata

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

    @property
    def pages(self) -> Iterator[image_versions.ListImageVersionsResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = self._method(self._request, metadata=self._metadata)
            yield self._response

    def __iter__(self) -> Iterator[image_versions.ImageVersion]:
        for page in self.pages:

            yield from page.image_versions