# Path: google/cloud/orchestration/airflow/service_v1beta1/types/environments.py
# class CreateEnvironmentRequest(proto.Message):
# class GetEnvironmentRequest(proto.Message):
# class ListEnvironmentsRequest(proto.Message):
# class ListEnvironmentsResponse(proto.Message):
# class DeleteEnvironmentRequest(proto.Message):
# class UpdateEnvironmentRequest(proto.Message):
# class RestartWebServerRequest(proto.Message):
# class EnvironmentConfig(proto.Message):
#     class EnvironmentSize(proto.Enum):
# class WebServerNetworkAccessControl(proto.Message):
#     class AllowedIpRange(proto.Message):
# class SoftwareConfig(proto.Message):
# class IPAllocationPolicy(proto.Message):
# class NodeConfig(proto.Message):
# class PrivateClusterConfig(proto.Message):
# class PrivateEnvironmentConfig(proto.Message):
# class DatabaseConfig(proto.Message):
# class WebServerConfig(proto.Message):
# class EncryptionConfig(proto.Message):
# class MaintenanceWindow(proto.Message):
# class WorkloadsConfig(proto.Message):
#     class SchedulerResource(proto.Message):
#     class WebServerResource(proto.Message):
#     class WorkerResource(proto.Message):
# class Environment(proto.Message):
#     class State(proto.Enum):
# class CheckUpgradeRequest(proto.Message):
# class CheckUpgradeResponse(proto.Message):
#     class ConflictResult(proto.Enum):
#     def raw_page(self):
#         ENVIRONMENT_SIZE_UNSPECIFIED = 0
#         ENVIRONMENT_SIZE_SMALL = 1
#         ENVIRONMENT_SIZE_MEDIUM = 2
#         ENVIRONMENT_SIZE_LARGE = 3
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         RUNNING = 2
#         UPDATING = 3
#         DELETING = 4
#         ERROR = 5
#         CONFLICT_RESULT_UNSPECIFIED = 0
#         CONFLICT = 1
#         NO_CONFLICT = 2


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.orchestration.airflow.service_v1beta1.types import environments
    ``ListEnvironments`` requests and continue to iterate
    through the ``environments`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.orchestration.airflow.service_v1beta1.types.ListEnvironmentsResponse`
    attributes are available on the pager. If multiple requests are made, only
    the most recent response is retained, and thus used for attribute lookup.
    """

    def __init__(
        self,
        method: Callable[..., Awaitable[environments.ListEnvironmentsResponse]],
        request: environments.ListEnvironmentsRequest,
        response: environments.ListEnvironmentsResponse,
        *,
        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.orchestration.airflow.service_v1beta1.types.ListEnvironmentsRequest):
                The initial request object.
            response (google.cloud.orchestration.airflow.service_v1beta1.types.ListEnvironmentsResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method

# Path: google/cloud/orchestration/airflow/service_v1beta1/types/environments.py
# class CreateEnvironmentRequest(proto.Message):
# class GetEnvironmentRequest(proto.Message):
# class ListEnvironmentsRequest(proto.Message):
# class ListEnvironmentsResponse(proto.Message):
# class DeleteEnvironmentRequest(proto.Message):
# class UpdateEnvironmentRequest(proto.Message):
# class RestartWebServerRequest(proto.Message):
# class EnvironmentConfig(proto.Message):
#     class EnvironmentSize(proto.Enum):
# class WebServerNetworkAccessControl(proto.Message):
#     class AllowedIpRange(proto.Message):
# class SoftwareConfig(proto.Message):
# class IPAllocationPolicy(proto.Message):
# class NodeConfig(proto.Message):
# class PrivateClusterConfig(proto.Message):
# class PrivateEnvironmentConfig(proto.Message):
# class DatabaseConfig(proto.Message):
# class WebServerConfig(proto.Message):
# class EncryptionConfig(proto.Message):
# class MaintenanceWindow(proto.Message):
# class WorkloadsConfig(proto.Message):
#     class SchedulerResource(proto.Message):
#     class WebServerResource(proto.Message):
#     class WorkerResource(proto.Message):
# class Environment(proto.Message):
#     class State(proto.Enum):
# class CheckUpgradeRequest(proto.Message):
# class CheckUpgradeResponse(proto.Message):
#     class ConflictResult(proto.Enum):
#     def raw_page(self):
#         ENVIRONMENT_SIZE_UNSPECIFIED = 0
#         ENVIRONMENT_SIZE_SMALL = 1
#         ENVIRONMENT_SIZE_MEDIUM = 2
#         ENVIRONMENT_SIZE_LARGE = 3
#         STATE_UNSPECIFIED = 0
#         CREATING = 1
#         RUNNING = 2
#         UPDATING = 3
#         DELETING = 4
#         ERROR = 5
#         CONFLICT_RESULT_UNSPECIFIED = 0
#         CONFLICT = 1
#         NO_CONFLICT = 2


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

    ``ListEnvironments`` requests and continue to iterate
    through the ``environments`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.orchestration.airflow.service_v1beta1.types.ListEnvironmentsResponse`
    attributes are available on the pager. If multiple requests are made, only
    the most recent response is retained, and thus used for attribute lookup.
    """

    def __init__(
        self,
        method: Callable[..., Awaitable[environments.ListEnvironmentsResponse]],
        request: environments.ListEnvironmentsRequest,
        response: environments.ListEnvironmentsResponse,
        *,
        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.orchestration.airflow.service_v1beta1.types.ListEnvironmentsRequest):
                The initial request object.
            response (google.cloud.orchestration.airflow.service_v1beta1.types.ListEnvironmentsResponse):
                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 = environments.ListEnvironmentsRequest(request)