We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f35bf commit 8b2d3cfCopy full SHA for 8b2d3cf
b2sdk/bucket.py
@@ -60,7 +60,17 @@ class ValueNotSet:
60
61
62
class BucketStructure(metaclass=B2TraceMeta):
63
- """Structure holding all attributes of a bucket."""
+ """
64
+ Structure holding all attributes of a bucket.
65
+
66
+ This structure doesn't hold reference to B2Api, so unlike `Bucket` class
67
+ it cannot be used to perform any actions. Instead, this class is used
68
+ to only hold Bucket's fields for serializing / deserializing.
69
70
+ Also important difference from `Bucket` is that this structure
71
+ allows storing subset of fields, setting others to `ValueNotSet`,
72
+ which preserves from serializing too much information.
73
74
75
id_: Union[str, ValueNotSet]
76
account_id: Union[str, ValueNotSet]
0 commit comments