iqm.iqm_client.iqm_client.ExternalToken#
- class iqm.iqm_client.iqm_client.ExternalToken(*, auth_server_url, access_token)#
Bases:
BaseModel
Externally managed token for maintaining a session with the authentication server.
Fields
auth_server_url
andaccess_token
are loaded from an external resource, e.g. file generated by Cortex CLI’s token manager.
Attributes
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
Base URL of the authentication server
current access token of the session
Methods
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'access_token': FieldInfo(annotation=str, required=True), 'auth_server_url': FieldInfo(annotation=str, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.