Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /MTSWebServices_syncmaster /syncmaster /schemas /v1 /auth /samba.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 ReadSambaAuthSchema(SecretDumpMixin): | |
| type: Literal["samba"] = Field(default="samba", description="Auth type") | |
| user: str | |
| auth_type: Literal["NTLMv1", "NTLMv2"] = "NTLMv2" | |
| class CreateSambaAuthSchema(ReadSambaAuthSchema): | |
| password: SecretStr | |
| class UpdateSambaAuthSchema(CreateSambaAuthSchema): | |
| password: SecretStr | None = None # type: ignore[assignment] | |
| def get_secret_fields(self) -> tuple[str, ...]: | |
| return ("password",) | |
Xet Storage Details
- Size:
- 684 Bytes
- Xet hash:
- 80e3f62c371acb3028952e900c6dea4a094671f6796e1234b34740004cdc3b20
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.