"""
@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.iam.v1.awscompatibility.temporary_access_key_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 TemporaryAccessKeyServiceStub:
    """A set of methods for managing temporary and ephemeral access keys."""

    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    CreateEphemeral: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyRequest,
        yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyResponse,
    ]
    """Creates an ephemeral access key for the specified subject."""

class TemporaryAccessKeyServiceAsyncStub:
    """A set of methods for managing temporary and ephemeral access keys."""

    CreateEphemeral: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyRequest,
        yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyResponse,
    ]
    """Creates an ephemeral access key for the specified subject."""

class TemporaryAccessKeyServiceServicer(metaclass=abc.ABCMeta):
    """A set of methods for managing temporary and ephemeral access keys."""

    @abc.abstractmethod
    def CreateEphemeral(
        self,
        request: yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyResponse, collections.abc.Awaitable[yandex.cloud.iam.v1.awscompatibility.temporary_access_key_service_pb2.CreateEphemeralAccessKeyResponse]]:
        """Creates an ephemeral access key for the specified subject."""

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