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#

ApiElementProxy

Provides a proxy object for an API element.

ApiListProxy

Provides a proxy object for API elements that implement the sequence interface.

ApiGridFunctionProxy

ApiExportToolkitProxy

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_apiPyro5.api.Proxy

Pyro5 proxy object for interacting with the Rocky app.

pool_idint

ID of the API element.

__getattr__(attr_name: str) object#
classmethod serialize(obj: ApiElementProxy) dict#

Serialize a proxy object of the API element.

Parameters:
objAny

Object to serialize.

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.

__len__() int#
__getitem__(index: int) ApiElementProxy#
__iter__() collections.abc.Generator[ApiElementProxy, None, None]#
__delitem__(index: int) 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:
objAny

Object to serialize.

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:
objAny

Object to serialize.

Returns:
dict

Dictionary of the serialized object.