Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /MTSWebServices_syncmaster /syncmaster /schemas /v1 /auth /basic.py
| # SPDX-FileCopyrightText: 2023-present MTS PJSC | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from typing import Literal | |
| from pydantic import Field, SecretStr | |
| from syncmaster.schemas.v1.auth.mixins import SecretDumpMixin | |
| class ReadBasicAuthSchema(SecretDumpMixin): | |
| type: Literal["basic"] = Field(default="basic", description="Auth type") | |
| user: str | |
| class CreateBasicAuthSchema(ReadBasicAuthSchema): | |
| password: SecretStr | |
| class UpdateBasicAuthSchema(CreateBasicAuthSchema): | |
| password: SecretStr | None = None # type: ignore[assignment] | |
| def get_secret_fields(self) -> tuple[str, ...]: | |
| return ("password",) | |
Xet Storage Details
- Size:
- 630 Bytes
- Xet hash:
- 471bc5380d4bfe3f7b88669e36c2f31588796ea1819265dbb5f872379079749d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.