"""
@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.configuration_pb2
import yandex.cloud.baremetal.v1alpha.configuration_service_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 ConfigurationServiceStub:
    """A set of methods to retrieve information about Configuration resources."""

    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Get: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.configuration_service_pb2.GetConfigurationRequest,
        yandex.cloud.baremetal.v1alpha.configuration_pb2.Configuration,
    ]
    """Returns the specific Configuration resource.

    To get the list of available Configuration resources, make a [List] request.
    """

    List: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsRequest,
        yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsResponse,
    ]
    """Retrieves the list of Configuration resources."""

class ConfigurationServiceAsyncStub:
    """A set of methods to retrieve information about Configuration resources."""

    Get: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.configuration_service_pb2.GetConfigurationRequest,
        yandex.cloud.baremetal.v1alpha.configuration_pb2.Configuration,
    ]
    """Returns the specific Configuration resource.

    To get the list of available Configuration resources, make a [List] request.
    """

    List: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsRequest,
        yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsResponse,
    ]
    """Retrieves the list of Configuration resources."""

class ConfigurationServiceServicer(metaclass=abc.ABCMeta):
    """A set of methods to retrieve information about Configuration resources."""

    @abc.abstractmethod
    def Get(
        self,
        request: yandex.cloud.baremetal.v1alpha.configuration_service_pb2.GetConfigurationRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.baremetal.v1alpha.configuration_pb2.Configuration, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.configuration_pb2.Configuration]]:
        """Returns the specific Configuration resource.

        To get the list of available Configuration resources, make a [List] request.
        """

    @abc.abstractmethod
    def List(
        self,
        request: yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsResponse, collections.abc.Awaitable[yandex.cloud.baremetal.v1alpha.configuration_service_pb2.ListConfigurationsResponse]]:
        """Retrieves the list of Configuration resources."""

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