ansys.rocky.core.rocky_api_proxies
#
Module that defines the ApiElementProxy
classes, which acts as a proxy for a
Rocky application internal objects.
Module Contents#
Classes#
Provides a proxy object for an API element. |
|
Provides a proxy object for API elements that implement the sequence interface. |
|
- class ansys.rocky.core.rocky_api_proxies.ApiElementProxy(pyro_api: Pyro5.api.Proxy, pool_id: str)#
Provides a proxy object for an API element.
- Parameters:
- pyro_api
Pyro5.api.Proxy
Pyro5 proxy object for interacting with the Rocky app.
- pool_id
int
ID of the API element.
- pyro_api
- classmethod serialize(obj: ApiElementProxy) dict #
Serialize a proxy object of the API element.
- Parameters:
- obj
Any
Object to serialize.
- obj
- Returns:
dict
Dictionary of the serialized object.
- class ansys.rocky.core.rocky_api_proxies.ApiListProxy(pyro_api: Pyro5.api.Proxy, pool_id: str)#
Bases:
ApiElementProxy
Provides a proxy object for API elements that implement the sequence interface.
- __getitem__(index: int) ApiElementProxy #
- __iter__() collections.abc.Generator[ApiElementProxy, None, None] #
- class ansys.rocky.core.rocky_api_proxies.ApiGridFunctionProxy(grid_pool_id: str, gf_name: str, pyro_api: Pyro5.api.Proxy)#
- __getattr__(attr_name: str) collections.abc.Callable #
- classmethod serialize(obj: ApiGridFunctionProxy) dict #
Serialize a proxy object of the API Grid Functions.
- Parameters:
- obj
Any
Object to serialize.
- obj
- Returns:
dict
Dictionary of the serialized object.
- class ansys.rocky.core.rocky_api_proxies.ApiExportToolkitProxy(pyro_api: Pyro5.api.Proxy)#
- __getattr__(attr_name: str) collections.abc.Callable #
- classmethod serialize(obj: ApiExportToolkitProxy) dict #
Serialize a proxy object of the API ExportToolkit object.
- Parameters:
- obj
Any
Object to serialize.
- obj
- Returns:
dict
Dictionary of the serialized object.