CommonMapper#
- class pyedb.generic.constants.CommonMapper#
Overview#
Bidirectional converter: |
|
Import detail#
from pyedb.generic.constants import CommonMapper
Method detail#
- classmethod CommonMapper.get(value, *, as_grpc: bool = True)#
- Bidirectional converter:
If ‘value’ is GRPC (enum or string), return the corresponding DOTNET enum (or .value if as_value=True).
If ‘value’ is DOTNET (enum or string), return the corresponding GRPC enum (or .value if as_value=True).
Auto-detects the side by trying enum construction and membership. Raises ValueError on unknown inputs.
- classmethod CommonMapper.get_grpc(value)#
- classmethod CommonMapper.get_dotnet(value)#