flux_restful.schemas package¶
Submodules¶
flux_restful.schemas.job module¶
-
class flux_restful.schemas.job.Job(*, name: str, output: str | None =
None, id: int, owner_id: int)[source]¶ Bases:
JobInDBBase-
model_config : ClassVar[ConfigDict] =
{'from_attributes': True}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_config : ClassVar[ConfigDict] =
-
class flux_restful.schemas.job.JobBase(*, name: str | None =
None, output: str | None =None)[source]¶ Bases:
BaseModel-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name : str | None¶
- output : str | None¶
-
model_config : ClassVar[ConfigDict] =
-
class flux_restful.schemas.job.JobCreate(*, name: str | None =
None, output: str | None =None)[source]¶ Bases:
JobBase-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_config : ClassVar[ConfigDict] =
-
class flux_restful.schemas.job.JobInDB(*, name: str, output: str | None =
None, id: int, owner_id: int)[source]¶ Bases:
JobInDBBase-
model_config : ClassVar[ConfigDict] =
{'from_attributes': True}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_config : ClassVar[ConfigDict] =
-
class flux_restful.schemas.job.JobInDBBase(*, name: str, output: str | None =
None, id: int, owner_id: int)[source]¶ Bases:
JobBase- id : int¶
-
model_config : ClassVar[ConfigDict] =
{'from_attributes': True}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name : str¶
- owner_id : int¶
-
class flux_restful.schemas.job.JobUpdate(*, name: str | None =
None, output: str | None =None)[source]¶ Bases:
JobBase-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_config : ClassVar[ConfigDict] =
flux_restful.schemas.token module¶
- class flux_restful.schemas.token.Token(*, access_token: str, token_type: str)[source]¶
Bases:
BaseModel- access_token : str¶
-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- token_type : str¶
-
class flux_restful.schemas.token.TokenPayload(*, sub: str | None =
None, backend: str | None =None)[source]¶ Bases:
BaseModel- backend : str | None¶
-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- sub : str | None¶
flux_restful.schemas.user module¶
-
class flux_restful.schemas.user.User(*, is_active: bool | None =
True, is_superuser: bool =False, id: int | None =None)[source]¶ Bases:
UserInDBBase-
model_config : ClassVar[ConfigDict] =
{'from_attributes': True}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_config : ClassVar[ConfigDict] =
-
class flux_restful.schemas.user.UserBase(*, is_active: bool | None =
True, is_superuser: bool =False)[source]¶ Bases:
BaseModel- is_active : bool | None¶
- is_superuser : bool¶
-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
class flux_restful.schemas.user.UserCreate(*, is_active: bool | None =
True, is_superuser: bool =False, user_name: str, password: str)[source]¶ Bases:
UserBase-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- password : str¶
- user_name : str¶
-
model_config : ClassVar[ConfigDict] =
-
class flux_restful.schemas.user.UserInDB(*, is_active: bool | None =
True, is_superuser: bool =False, id: int | None =None, hashed_password: str)[source]¶ Bases:
UserInDBBase- hashed_password : str¶
-
model_config : ClassVar[ConfigDict] =
{'from_attributes': True}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
class flux_restful.schemas.user.UserInDBBase(*, is_active: bool | None =
True, is_superuser: bool =False, id: int | None =None)[source]¶ Bases:
UserBase- id : int | None¶
-
model_config : ClassVar[ConfigDict] =
{'from_attributes': True}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
class flux_restful.schemas.user.UserUpdate(*, is_active: bool | None =
True, is_superuser: bool =False, password: str | None =None)[source]¶ Bases:
UserBase-
model_config : ClassVar[ConfigDict] =
{}¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- password : str | None¶
-
model_config : ClassVar[ConfigDict] =