Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /MTSWebServices_syncmaster /syncmaster /schemas /v1 /connections /hdfs.py
| # SPDX-FileCopyrightText: 2023-present MTS PJSC | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from pydantic import BaseModel, Field | |
| from syncmaster.schemas.v1.auth import ( | |
| CreateBasicAuthSchema, | |
| ReadBasicAuthSchema, | |
| UpdateBasicAuthSchema, | |
| ) | |
| from syncmaster.schemas.v1.connection_types import HDFS_TYPE | |
| from syncmaster.schemas.v1.connections.connection_base import ( | |
| CreateConnectionBaseSchema, | |
| ReadConnectionBaseSchema, | |
| ) | |
| class HDFSConnectionDataSchema(BaseModel): | |
| cluster: str | |
| class CreateHDFSConnectionSchema(CreateConnectionBaseSchema): | |
| type: HDFS_TYPE = Field(description="Connection type") | |
| data: HDFSConnectionDataSchema = Field( | |
| alias="connection_data", | |
| description="Data required to connect to the HDFS cluster", | |
| ) | |
| auth_data: CreateBasicAuthSchema = Field( | |
| description="Credentials for authorization", | |
| ) | |
| class ReadHDFSConnectionSchema(ReadConnectionBaseSchema): | |
| type: HDFS_TYPE = Field(description="Connection type") | |
| data: HDFSConnectionDataSchema = Field( | |
| alias="connection_data", | |
| description="Data required to connect to the HDFS cluster", | |
| ) | |
| auth_data: ReadBasicAuthSchema | None = Field( | |
| default=None, | |
| description="Credentials for authorization", | |
| ) | |
| class UpdateHDFSConnectionSchema(CreateHDFSConnectionSchema): | |
| auth_data: UpdateBasicAuthSchema = Field( | |
| description="Credentials for authorization", | |
| ) | |
Xet Storage Details
- Size:
- 1.45 kB
- Xet hash:
- a6d955c3cccdc8411752a1223539d0d0a677a3397b74515722c33453b4c4092e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.