module documentation
Service address resolvers used by the SDK and generated clients.
Resolvers map a logical service ID to a network address or address template. For example, a logical ID can be a fully qualified Protocol Buffers service name.
Common usage patterns:
Singlemaps a single explicit id to an address.Prefixmaps any service id beginning with a prefix to an address.BasicselectsSingleorPrefixaccording to a final * in the ID.Constantalways returns the same address regardless of id.Conventionalmaps names such as nebius.<service>...Service. By default, it returns <service>.{domain}. The api_service_name Protocol Buffers extension can replace the service name.Chaincomposes multiple resolvers and returns the first match.Cachedmemoizes results from another resolver.TemplateExpanderapplies simple string substitutions on resolved- addresses (useful for replacing templated placeholders such as {domain}).
All resolvers implement Resolver and raise UnknownServiceError
when a service id cannot be resolved.
| Class | |
Select a Single or Prefix resolver. |
| Class | |
Memoizing resolver that caches results from another resolver. |
| Class | |
Compose several resolvers and return the first successful result. |
| Class | |
Resolver that always returns a fixed address. |
| Class | |
Convention-based resolver for Nebius services. |
| Class | |
Resolver that matches service ids by prefix. |
| Class | |
Abstract resolver interface. |
| Class | |
Resolver that matches a single explicit service id. |
| Class | |
Resolver that applies simple string substitutions to results. |
| Exception | |
Raised when a resolver cannot map a service id to an address. |
| Variable | log |
Undocumented |