Instance#
- class ansys.platform.instancemanagement.Instance(definition_name: str, name: str, ready: bool, status_message: str, services: Mapping[str, Service], stub: ProductInstanceManagerStub | None = None)#
Provides a remote instance of a product.
This class is a context manager and can be used with the
with
statement to automatically stop the remote instance when the tasks are finished.Methods
Instance.build_grpc_channel
([service_name])Build a gRPC channel to communicate with this instance.
Instance.delete
([timeout])Delete the remote product instance.
Instance.update
([timeout])Update the instance information from the remote status.
Instance.wait_for_ready
([polling_interval, ...])Wait for the instance to be ready.
Attributes
Name of the definition that created this instance.
Name of the instance.
Whether the instance is ready.
List of entry points exposed by the instance.
Status of the instance.