class ClientChannelInterface(Protocol): (source)
Known subclasses: nebius.aio.constant_channel.Constant
Protocol describing the minimal channel operations required by SDK clients.
Typical implementations are nebius.aio.channel.Channel or
simple test doubles that provide access to transport channels and
authorization providers. The built-in channel additionally exposes
run_async. It schedules work immediately and returns a reusable
cross-loop awaitable. That capability remains optional so existing custom
channels which implement this minimal protocol keep their local-awaitable
compatibility path.
| Method | discard |
Discard an AddressChannel. |
| Method | get |
Get the configured AuthorizationProvider or None. |
| Method | get |
Obtain an AddressChannel for the specified RPC method. |
| Method | parent |
Get the default parent id applied to some requests. |
| Method | return |
Return an AddressChannel to the channel pool for reuse. |
| Method | run |
Run an awaitable synchronously using the channel's configured event loop. |
nebius.aio.constant_channel.ConstantDiscard an AddressChannel.
The underlying transport is closed and not reused.
nebius.aio.constant_channel.ConstantGet the configured AuthorizationProvider or None.
nebius.aio.constant_channel.ConstantObtain an AddressChannel for the specified RPC method.
| Parameters | |
methodstr | Fully-qualified RPC method name ('/pkg.Service/Method'). |
| Returns | |
AddressChannel | An AddressChannel for the resolved address. |
nebius.aio.constant_channel.ConstantGet the default parent id applied to some requests.
Return None if no parent id was configured.
nebius.aio.constant_channel.ConstantReturn an AddressChannel to the channel pool for reuse.