# Path: google/cloud/orchestration/airflow/service_v1/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 EnvironmentConfig(proto.Message):
# class WebServerNetworkAccessControl(proto.Message):
#     class AllowedIpRange(proto.Message):
# class DatabaseConfig(proto.Message):
# class WebServerConfig(proto.Message):
# class EncryptionConfig(proto.Message):
# class SoftwareConfig(proto.Message):
# class IPAllocationPolicy(proto.Message):
# class NodeConfig(proto.Message):
# class PrivateClusterConfig(proto.Message):
# class PrivateEnvironmentConfig(proto.Message):
# class Environment(proto.Message):
#     class State(proto.Enum):
# class CheckUpgradeResponse(proto.Message):
#     class ConflictResult(proto.Enum):
#     def raw_page(self):
#         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_v1.types import environments
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



class ListEnvironmentsPager:
    """A pager for iterating through ``list_environments`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.orchestration.airflow.service_v1.types.ListEnvironmentsResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``environments`` field.

    If there are more pages, the ``__iter__`` method will make additional
    ``ListEnvironments`` requests and continue to iterate
    through the ``environments`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.orchestration.airflow.service_v1.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[..., environments.ListEnvironmentsResponse],
        request: environments.ListEnvironmentsRequest,

# Path: google/cloud/orchestration/airflow/service_v1/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 EnvironmentConfig(proto.Message):
# class WebServerNetworkAccessControl(proto.Message):
#     class AllowedIpRange(proto.Message):
# class DatabaseConfig(proto.Message):
# class WebServerConfig(proto.Message):
# class EncryptionConfig(proto.Message):
# class SoftwareConfig(proto.Message):
# class IPAllocationPolicy(proto.Message):
# class NodeConfig(proto.Message):
# class PrivateClusterConfig(proto.Message):
# class PrivateEnvironmentConfig(proto.Message):
# class Environment(proto.Message):
#     class State(proto.Enum):
# class CheckUpgradeResponse(proto.Message):
#     class ConflictResult(proto.Enum):
#     def raw_page(self):
#         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_v1/services/environments/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.orchestration.airflow.service_v1.types import environments

# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



class ListEnvironmentsPager:
    """A pager for iterating through ``list_environments`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.orchestration.airflow.service_v1.types.ListEnvironmentsResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``environments`` field.

    If there are more pages, the ``__iter__`` method will make additional
    ``ListEnvironments`` requests and continue to iterate
    through the ``environments`` field on the
    corresponding responses.

    All the usual :class:`google.cloud.orchestration.airflow.service_v1.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[..., environments.ListEnvironmentsResponse],
        request: environments.ListEnvironmentsRequest,

        response: environments.ListEnvironmentsResponse,