class documentation
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.
| Method | discard |
Discard an AddressChannel, ensuring the underlying transport is closed and not reused. |
| 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, or None if none was configured. |
| Method | return |
Return an AddressChannel previously obtained from the channel back to the pool for reuse. |
| Method | run |
Run an awaitable synchronously using the channel's configured event loop and return the result. |
overridden in
nebius.aio.constant_channel.ConstantDiscard an AddressChannel, ensuring the underlying
transport is closed and not reused.
overridden in
nebius.aio.constant_channel.ConstantGet the configured AuthorizationProvider or None.
overridden in
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. |
overridden in
nebius.aio.constant_channel.ConstantGet the default parent id applied to some requests, or None if none was configured.
overridden in
nebius.aio.constant_channel.ConstantReturn an AddressChannel previously obtained from the
channel back to the pool for reuse.