class documentation
Bearer that requests a fresh token from a metadata service.
| Method | __init__ |
Undocumented |
| Method | receiver |
Return a Receiver to be used for a single request. |
| Property | metrics |
Provider label used for auth metrics. |
| Property | name |
Optional human-readable name for the bearer. |
| Instance Variable | _endpoint |
Undocumented |
Inherited from Bearer:
| Class Method | default |
Return this bearer's default fully qualified metric provider label. |
| Async Method | close |
Close the bearer and any wrapped resources. |
| Property | acquisition |
Return how long one fetch through this bearer can take, or None. |
| Property | wrapped |
Return the wrapped bearer or None if not wrapping. |
Provider label used for auth metrics.
Custom bearers may override this property to control their metric provider label. By default the label is the fully qualified class name, or the wrapped bearer's provider label for wrapper bearers.
overrides
nebius.aio.token.token.Bearer.nameOptional human-readable name for the bearer.
This may be used in some wrapper providers to cache the results of the shared receiver, or to report diagnostics.
This name should reflect the unique configuration of the bearer.
If the bearer wraps another bearer, the default behaviour is to forward the name lookup to the wrapped instance.
| Returns | |
str or None | Undocumented |