IStorageScopeFactory#

class ansys.bdm.api.istorage_scope_factory.IStorageScopeFactory#

Bases: IReadStorageScopeFactory, Protocol

Factory pattern for creating instances of IStorageScope and IAsyncStorageScope.

Overview#

create_storage_scope

Create a new storage scope.

create_async_storage_scope

Create a new asynchronous storage scope.

Import detail#

from ansys.bdm.api.istorage_scope_factory import IStorageScopeFactory

Method detail#

IStorageScopeFactory.create_storage_scope(context: str, template_vars: dict[str, str]) → ansys.bdm.api.istorage_scope.IStorageScope#

Create a new storage scope.

Parameters:
context: str

TODO: How to word what this genericaly does.

template_vars: Dict[str, str]

Template variables that may be used by the configuration system to return an appropriate IStorageScope. TODO: Define whether certain fields need to be passed in?

Returns:
IStorageScope

A configured and ready to use IStorageScope

async IStorageScopeFactory.create_async_storage_scope(context: str, template_vars: dict[str, str]) → ansys.bdm.api.iasync_storage_scope.IAsyncStorageScope#

Create a new asynchronous storage scope.

Parameters:
context: str

TODO: How to word what this genericaly does.

template_vars: Dict[str, str]

Template variables that may be used by the configuration system to return an appropriate IAsyncStorageScope. TODO: Define whether certain fields need to be passed in?

Returns:
IAsyncStorageScope

A configured and ready to use IAsyncStorageScope