Source code for pyrestsdk.request.supports_types._supports_base_invoke_request

from __future__ import annotations
from typing import Protocol, Optional, Union, List, TypeVar, Type
from abc import abstractmethod
from pyrestsdk.type.model import BaseEntity

T = TypeVar("T", bound=BaseEntity)


[docs]class SupportsBaseInvokeRequest(Protocol): """Supports Base Invoke Request Type""" @property @abstractmethod def generic_type(self) -> Type[T]: ... @property @abstractmethod def input_object(self) -> T: ...
[docs] @abstractmethod def Send(self) -> Optional[Union[List[T], T]]: ...
[docs] @abstractmethod def invoke_request(self) -> Optional[Union[List[T], T]]: """Invokes the prepared request"""