"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""

import abc
import collections.abc
import grpc
import grpc.aio
import typing
import yandex.cloud.baremetal.v1alpha.public_prefix_pool_pb2
import yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2
import yandex.cloud.operation.operation_pb2

_T = typing.TypeVar("_T")

class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...

class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext):  # type: ignore[misc, type-arg]
    ...

class PublicPrefixPoolServiceStub:
    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Get: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.GetPublicPrefixPoolRequest,
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_pb2.PublicPrefixPool,
    ]
    """Returns the specified public prefix pool."""

    List: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolRequest,
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolResponse,
    ]
    """Lists public prefix pools in the specified folder."""

    Update: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.UpdatePublicPrefixPoolRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Updates the specified public prefix pool."""

    ListOperations: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsRequest,
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsResponse,
    ]
    """Lists operations for the specified public prefix pool."""

class PublicPrefixPoolServiceAsyncStub:
    Get: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.GetPublicPrefixPoolRequest,
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_pb2.PublicPrefixPool,
    ]
    """Returns the specified public prefix pool."""

    List: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolRequest,
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolResponse,
    ]
    """Lists public prefix pools in the specified folder."""

    Update: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.UpdatePublicPrefixPoolRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Updates the specified public prefix pool."""

    ListOperations: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsRequest,
        yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsResponse,
    ]
    """Lists operations for the specified public prefix pool."""

class PublicPrefixPoolServiceServicer(metaclass=abc.ABCMeta):
    @abc.abstractmethod
    def Get(
        self,
        request: yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.GetPublicPrefixPoolRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.baremetal.v1alpha.public_prefix_pool_pb2.PublicPrefixPool, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.public_prefix_pool_pb2.PublicPrefixPool]]:
        """Returns the specified public prefix pool."""

    @abc.abstractmethod
    def List(
        self,
        request: yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolResponse]]:
        """Lists public prefix pools in the specified folder."""

    @abc.abstractmethod
    def Update(
        self,
        request: yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.UpdatePublicPrefixPoolRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Updates the specified public prefix pool."""

    @abc.abstractmethod
    def ListOperations(
        self,
        request: yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.public_prefix_pool_service_pb2.ListPublicPrefixPoolOperationsResponse]]:
        """Lists operations for the specified public prefix pool."""

def add_PublicPrefixPoolServiceServicer_to_server(servicer: PublicPrefixPoolServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
