"""
@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.operation.operation_pb2
import yandex.cloud.organizationmanager.v1.saml.federation_pb2
import yandex.cloud.organizationmanager.v1.saml.federation_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 FederationServiceStub:
    """A set of methods for managing federations."""

    def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
    Get: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.GetFederationRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_pb2.Federation,
    ]
    """Returns the specified federation.

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

    List: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsResponse,
    ]
    """Retrieves the list of federations in the specified organization."""

    Create: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.CreateFederationRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Creates a federation in the specified organization."""

    Update: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.UpdateFederationRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Updates the specified federation."""

    Delete: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederationRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes the specified federation."""

    AddUserAccounts: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.AddFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Adds users to the specified federation."""

    DeleteUserAccounts: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes users from the specified federation."""

    ListUserAccounts: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsResponse,
    ]
    """Lists users for the specified federation."""

    ListOperations: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsResponse,
    ]
    """Lists operations for the specified federation."""

    GetDomain: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.GetFederationDomainRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_pb2.Domain,
    ]
    """Returns the specified domain in the federation.

    To get the list of available domains, make a [ListDomains] request.
    """

    ListDomains: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsResponse,
    ]
    """Retrieves the list of domains in the specified federation."""

    AddDomain: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.AddFederationDomainRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Adds a domain to the specified federation."""

    ValidateDomain: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ValidateFederationDomainRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Validates a domain in the specified federation."""

    DeleteDomain: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederationDomainRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes the specified domain from the federation."""

    SuspendUserAccounts: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.SuspendFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Suspend federated user accounts.
    Method skips non-existent federated user accounts and returns ones that were actually suspended.
    """

    ReactivateUserAccounts: grpc.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ReactivateFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Reactivate federated user accounts.
    Method skips non-existent federated user accounts and returns ones that were actually reactivated.
    """

class FederationServiceAsyncStub:
    """A set of methods for managing federations."""

    Get: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.GetFederationRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_pb2.Federation,
    ]
    """Returns the specified federation.

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

    List: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsResponse,
    ]
    """Retrieves the list of federations in the specified organization."""

    Create: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.CreateFederationRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Creates a federation in the specified organization."""

    Update: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.UpdateFederationRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Updates the specified federation."""

    Delete: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederationRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes the specified federation."""

    AddUserAccounts: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.AddFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Adds users to the specified federation."""

    DeleteUserAccounts: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes users from the specified federation."""

    ListUserAccounts: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsResponse,
    ]
    """Lists users for the specified federation."""

    ListOperations: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsResponse,
    ]
    """Lists operations for the specified federation."""

    GetDomain: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.GetFederationDomainRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_pb2.Domain,
    ]
    """Returns the specified domain in the federation.

    To get the list of available domains, make a [ListDomains] request.
    """

    ListDomains: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsRequest,
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsResponse,
    ]
    """Retrieves the list of domains in the specified federation."""

    AddDomain: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.AddFederationDomainRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Adds a domain to the specified federation."""

    ValidateDomain: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ValidateFederationDomainRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Validates a domain in the specified federation."""

    DeleteDomain: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederationDomainRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Deletes the specified domain from the federation."""

    SuspendUserAccounts: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.SuspendFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Suspend federated user accounts.
    Method skips non-existent federated user accounts and returns ones that were actually suspended.
    """

    ReactivateUserAccounts: grpc.aio.UnaryUnaryMultiCallable[
        yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ReactivateFederatedUserAccountsRequest,
        yandex.cloud.operation.operation_pb2.Operation,
    ]
    """Reactivate federated user accounts.
    Method skips non-existent federated user accounts and returns ones that were actually reactivated.
    """

class FederationServiceServicer(metaclass=abc.ABCMeta):
    """A set of methods for managing federations."""

    @abc.abstractmethod
    def Get(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.GetFederationRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.organizationmanager.v1.saml.federation_pb2.Federation, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.saml.federation_pb2.Federation]]:
        """Returns the specified federation.

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

    @abc.abstractmethod
    def List(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationsResponse]]:
        """Retrieves the list of federations in the specified organization."""

    @abc.abstractmethod
    def Create(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.CreateFederationRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Creates a federation in the specified organization."""

    @abc.abstractmethod
    def Update(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.UpdateFederationRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Updates the specified federation."""

    @abc.abstractmethod
    def Delete(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederationRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Deletes the specified federation."""

    @abc.abstractmethod
    def AddUserAccounts(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.AddFederatedUserAccountsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Adds users to the specified federation."""

    @abc.abstractmethod
    def DeleteUserAccounts(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederatedUserAccountsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Deletes users from the specified federation."""

    @abc.abstractmethod
    def ListUserAccounts(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederatedUserAccountsResponse]]:
        """Lists users for the specified federation."""

    @abc.abstractmethod
    def ListOperations(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationOperationsResponse]]:
        """Lists operations for the specified federation."""

    @abc.abstractmethod
    def GetDomain(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.GetFederationDomainRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.organizationmanager.v1.saml.federation_pb2.Domain, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.saml.federation_pb2.Domain]]:
        """Returns the specified domain in the federation.

        To get the list of available domains, make a [ListDomains] request.
        """

    @abc.abstractmethod
    def ListDomains(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsResponse, collections.abc.Awaitable[yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ListFederationDomainsResponse]]:
        """Retrieves the list of domains in the specified federation."""

    @abc.abstractmethod
    def AddDomain(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.AddFederationDomainRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Adds a domain to the specified federation."""

    @abc.abstractmethod
    def ValidateDomain(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ValidateFederationDomainRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Validates a domain in the specified federation."""

    @abc.abstractmethod
    def DeleteDomain(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.DeleteFederationDomainRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Deletes the specified domain from the federation."""

    @abc.abstractmethod
    def SuspendUserAccounts(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.SuspendFederatedUserAccountsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Suspend federated user accounts.
        Method skips non-existent federated user accounts and returns ones that were actually suspended.
        """

    @abc.abstractmethod
    def ReactivateUserAccounts(
        self,
        request: yandex.cloud.organizationmanager.v1.saml.federation_service_pb2.ReactivateFederatedUserAccountsRequest,
        context: _ServicerContext,
    ) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
        """Reactivate federated user accounts.
        Method skips non-existent federated user accounts and returns ones that were actually reactivated.
        """

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