class documentation

class Conventional(Resolver): (source)

View In Hierarchy

Convention-based resolver for Nebius services.

This resolver recognizes service ids that follow the Nebius naming convention (for example nebius.foo.v1.FooService). It extracts the service short-name (foo in the example) and returns a templated address <service>.{domain}.

If the protobuf service descriptor defines the api_service_name extension the extension value will be used as the service short-name instead of the second dot-separated path element.

Method resolve Resolve a conventional Nebius service id to <service>.{domain}.
def resolve(self, service_id: str) -> str: (source) ΒΆ

Resolve a conventional Nebius service id to <service>.{domain}.

Parameters
service_id:strService identifier to resolve.
Returns
strThe resolved address template.
Raises
UnknownServiceErrorwhen the provided id does not follow the recognized convention.