IceGrid.UserAccountMapperPrx¶
- class IceGrid.UserAccountMapperPrx¶
Bases:
ObjectPrxMaps user strings in server descriptors to actual user account names. You can configure the user account mapper of an IceGrid node with the property
IceGrid.Node.UserAccountMapper.Notes
The Slice compiler generated this proxy class from Slice interface
::IceGrid::UserAccountMapper.- getUserAccount(user: str, context: dict[str, str] | None = None) str¶
Gets the name of the user account for the given user. This is used by IceGrid nodes to figure out the user account to use to run servers.
- Parameters:
- Returns:
The user account name.
- Return type:
- Raises:
UserAccountNotFoundException – Thrown when no user account is found for the given user.
- getUserAccountAsync(user: str, context: dict[str, str] | None = None) Awaitable[str]¶
Gets the name of the user account for the given user. This is used by IceGrid nodes to figure out the user account to use to run servers.
- Parameters:
- Returns:
The user account name.
- Return type:
Awaitable[str]
- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) UserAccountMapperPrx | None¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested facet, or
Noneif the source proxy isNoneor if the target object/facet does not support the requested type.- Return type:
ObjectPrx | None
- static checkedCastAsync(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) Awaitable[UserAccountMapperPrx | None]¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested facet, or
Noneif the source proxy isNoneor if the target object/facet does not support the requested type.- Return type:
ObjectPrx | None