File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,22 @@ def __eq__(self, other):
73
73
74
74
75
75
class FileRetentionSetting :
76
- """Represent file retention settings, i.e. whether the file is retained, in which mode and until when"""
76
+ """
77
+ Represent file retention settings, i.e. whether the file is retained, in which mode and until when
78
+
79
+ :param mode: retention mode
80
+ :type mode: RetentionMode
81
+ :param retain_until: retain until timestamp (in milliseconds since :abbr:`epoch (1970-01-01 00:00:00)`)
82
+ :type retain_until: int
83
+ """
77
84
78
85
def __init__ (self , mode : RetentionMode , retain_until : int | None = None ):
86
+ """
87
+ :param mode: retention mode
88
+ :type mode: RetentionMode
89
+ :param retain_until: retain until timestamp (in milliseconds since :abbr:`epoch (1970-01-01 00:00:00)`)
90
+ :type retain_until: int
91
+ """
79
92
if mode in RETENTION_MODES_REQUIRING_PERIODS and retain_until is None :
80
93
raise ValueError (f'must specify retain_until for retention mode { mode } ' )
81
94
self .mode = mode
Original file line number Diff line number Diff line change
1
+ Document params in FileRetentionSetting class.
You can’t perform that action at this time.
0 commit comments