@@ -33,22 +33,27 @@ class BucketRetentionRules(object):
33
33
"""
34
34
openapi_types = {
35
35
'type' : 'str' ,
36
- 'every_seconds' : 'int'
36
+ 'every_seconds' : 'int' ,
37
+ 'shard_group_duration_seconds' : 'int'
37
38
}
38
39
39
40
attribute_map = {
40
41
'type' : 'type' ,
41
- 'every_seconds' : 'everySeconds'
42
+ 'every_seconds' : 'everySeconds' ,
43
+ 'shard_group_duration_seconds' : 'shardGroupDurationSeconds'
42
44
}
43
45
44
- def __init__ (self , type = 'expire' , every_seconds = None ): # noqa: E501,D401,D403
46
+ def __init__ (self , type = 'expire' , every_seconds = None , shard_group_duration_seconds = None ): # noqa: E501,D401,D403
45
47
"""BucketRetentionRules - a model defined in OpenAPI.""" # noqa: E501
46
48
self ._type = None
47
49
self ._every_seconds = None
50
+ self ._shard_group_duration_seconds = None
48
51
self .discriminator = None
49
52
50
53
self .type = type
51
54
self .every_seconds = every_seconds
55
+ if shard_group_duration_seconds is not None :
56
+ self .shard_group_duration_seconds = shard_group_duration_seconds
52
57
53
58
@property
54
59
def type (self ):
@@ -74,7 +79,7 @@ def type(self, type):
74
79
def every_seconds (self ):
75
80
"""Get the every_seconds of this BucketRetentionRules.
76
81
77
- Duration in seconds for how long data will be kept in the database.
82
+ Duration in seconds for how long data will be kept in the database. 0 means infinite.
78
83
79
84
:return: The every_seconds of this BucketRetentionRules.
80
85
:rtype: int
@@ -85,17 +90,39 @@ def every_seconds(self):
85
90
def every_seconds (self , every_seconds ):
86
91
"""Set the every_seconds of this BucketRetentionRules.
87
92
88
- Duration in seconds for how long data will be kept in the database.
93
+ Duration in seconds for how long data will be kept in the database. 0 means infinite.
89
94
90
95
:param every_seconds: The every_seconds of this BucketRetentionRules.
91
96
:type: int
92
97
""" # noqa: E501
93
98
if every_seconds is None :
94
99
raise ValueError ("Invalid value for `every_seconds`, must not be `None`" ) # noqa: E501
95
- if every_seconds is not None and every_seconds < 1 : # noqa: E501
96
- raise ValueError ("Invalid value for `every_seconds`, must be a value greater than or equal to `1 `" ) # noqa: E501
100
+ if every_seconds is not None and every_seconds < 0 : # noqa: E501
101
+ raise ValueError ("Invalid value for `every_seconds`, must be a value greater than or equal to `0 `" ) # noqa: E501
97
102
self ._every_seconds = every_seconds
98
103
104
+ @property
105
+ def shard_group_duration_seconds (self ):
106
+ """Get the shard_group_duration_seconds of this BucketRetentionRules.
107
+
108
+ Shard duration measured in seconds.
109
+
110
+ :return: The shard_group_duration_seconds of this BucketRetentionRules.
111
+ :rtype: int
112
+ """ # noqa: E501
113
+ return self ._shard_group_duration_seconds
114
+
115
+ @shard_group_duration_seconds .setter
116
+ def shard_group_duration_seconds (self , shard_group_duration_seconds ):
117
+ """Set the shard_group_duration_seconds of this BucketRetentionRules.
118
+
119
+ Shard duration measured in seconds.
120
+
121
+ :param shard_group_duration_seconds: The shard_group_duration_seconds of this BucketRetentionRules.
122
+ :type: int
123
+ """ # noqa: E501
124
+ self ._shard_group_duration_seconds = shard_group_duration_seconds
125
+
99
126
def to_dict (self ):
100
127
"""Return the model properties as a dict."""
101
128
result = {}
0 commit comments