Coverage for functions \ flipdare \ util \ firebase_file.py: 94%
18 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
1#!/usr/bin/env python
2# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved.
3#
4# This file is part of Flipdare's proprietary software and contains
5# confidential and copyrighted material. Unauthorised copying,
6# modification, distribution, or use of this file is strictly
7# prohibited without prior written permission from Flipdare Pty Ltd.
8#
9# This software includes third-party components licensed under MIT,
10# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details.
11#
14from dataclasses import dataclass
15from pathlib import Path
16from typing import override
18from flipdare.core.storage_file_type import StorageFileType
20__all__ = ["FirebaseFile"]
23@dataclass
24class FirebaseFile:
25 gs_url: str
26 uid: str
27 file_type: StorageFileType
28 bucket_name: str
29 download_dir: Path
30 name: str
31 local_path: Path
32 remote_path: str
34 @override
35 def __str__(self) -> str:
36 return (
37 f"gs_url={self.gs_url}\n"
38 f"uid={self.uid}\n"
39 f"file_type={self.file_type}\n"
40 f"bucket_name={self.bucket_name}\n"
41 f"download_dir={self.download_dir}\n"
42 f"name={self.name}\n"
43 f"local_path={self.local_path}\n"
44 f"remote_name={self.remote_path}\n"
45 )