class documentation
class _NexusClient(NexusClient[
Constructor: _NexusClient(endpoint, service)
Undocumented
| Method | __init__ |
Create a Nexus client. |
| Async Method | execute |
Execute a Nexus operation and return its result. |
| Async Method | start |
Start a Nexus operation and return its handle. |
| Instance Variable | endpoint |
Undocumented |
| Instance Variable | service |
Undocumented |
async def execute_operation(self, operation:
Any, input: Any, *, output_type: type | None = None, schedule_to_close_timeout: timedelta | None = None, cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[ str, str] | None = None) -> Any:
(source)
¶
Execute a Nexus operation and return its result.
| Parameters | |
operation:Any | The Nexus operation. |
input:Any | The Nexus operation input. |
outputtype | None | The Nexus operation output type. |
scheduletimedelta | None | Timeout for the entire operation attempt. |
cancellationNexusOperationCancellationType | Undocumented |
headers:Mapping[ | Headers to send with the Nexus HTTP request. |
| Returns | |
Any | The operation result. |
async def start_operation(self, operation:
Any, input: Any, *, output_type: type | None = None, schedule_to_close_timeout: timedelta | None = None, cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[ str, str] | None = None) -> Any:
(source)
¶
Start a Nexus operation and return its handle.
| Parameters | |
operation:Any | The Nexus operation. |
input:Any | The Nexus operation input. |
outputtype | None | The Nexus operation output type. |
scheduletimedelta | None | Timeout for the entire operation attempt. |
cancellationNexusOperationCancellationType | Undocumented |
headers:Mapping[ | Headers to send with the Nexus HTTP request. |
| Returns | |
Any | A handle to the Nexus operation. The result can be obtained as `python await handle.result() ` |