influxdb-client-apis 1.13.0.pre.2098 → 1.13.0.pre.2143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/influxdb2/apis/generated/models/retention_rule.rb +18 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43f8184aa637c26d4e890500bd949f9c1fd0aba7bf62d27e61dc615008488e91
|
4
|
+
data.tar.gz: db2152550e760067a8678c7481e75eda04b035f15d333ba8874647d16cb4108a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bb35cf7584e405a8d22eb7117e52a73ab1d8f4bbd879a3cd1d660b8da0a747f4230ecc730078d6f057bdb1fae53cc61ad55ec53c27225342f0a1a0631b9955f
|
7
|
+
data.tar.gz: 5914cee9bb247436bacbc229aaaddb960b4308c9ee467c144d385c95315319b1f6d43a912643d5a2da52a7dfafe59605234f608ae29632202a618f79765a4d74
|
@@ -17,9 +17,12 @@ module InfluxDB2::API
|
|
17
17
|
class RetentionRule
|
18
18
|
attr_reader :type
|
19
19
|
|
20
|
-
# Duration in seconds for how long data will be kept in the database.
|
20
|
+
# Duration in seconds for how long data will be kept in the database. 0 means infinite.
|
21
21
|
attr_reader :every_seconds
|
22
22
|
|
23
|
+
# Shard duration measured in seconds.
|
24
|
+
attr_accessor :shard_group_duration_seconds
|
25
|
+
|
23
26
|
class EnumAttributeValidator
|
24
27
|
attr_reader :datatype
|
25
28
|
attr_reader :allowable_values
|
@@ -47,6 +50,7 @@ module InfluxDB2::API
|
|
47
50
|
{
|
48
51
|
:'type' => :'type',
|
49
52
|
:'every_seconds' => :'everySeconds',
|
53
|
+
:'shard_group_duration_seconds' => :'shardGroupDurationSeconds',
|
50
54
|
}
|
51
55
|
end
|
52
56
|
|
@@ -55,6 +59,7 @@ module InfluxDB2::API
|
|
55
59
|
{
|
56
60
|
:'type' => :'String',
|
57
61
|
:'every_seconds' => :'Integer',
|
62
|
+
:'shard_group_duration_seconds' => :'Integer',
|
58
63
|
}
|
59
64
|
end
|
60
65
|
|
@@ -88,6 +93,10 @@ module InfluxDB2::API
|
|
88
93
|
if attributes.key?(:'every_seconds')
|
89
94
|
self.every_seconds = attributes[:'every_seconds']
|
90
95
|
end
|
96
|
+
|
97
|
+
if attributes.key?(:'shard_group_duration_seconds')
|
98
|
+
self.shard_group_duration_seconds = attributes[:'shard_group_duration_seconds']
|
99
|
+
end
|
91
100
|
end
|
92
101
|
|
93
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -102,8 +111,8 @@ module InfluxDB2::API
|
|
102
111
|
invalid_properties.push('invalid value for "every_seconds", every_seconds cannot be nil.')
|
103
112
|
end
|
104
113
|
|
105
|
-
if @every_seconds <
|
106
|
-
invalid_properties.push('invalid value for "every_seconds", must be greater than or equal to
|
114
|
+
if @every_seconds < 0
|
115
|
+
invalid_properties.push('invalid value for "every_seconds", must be greater than or equal to 0.')
|
107
116
|
end
|
108
117
|
|
109
118
|
invalid_properties
|
@@ -116,7 +125,7 @@ module InfluxDB2::API
|
|
116
125
|
type_validator = EnumAttributeValidator.new('String', ["expire"])
|
117
126
|
return false unless type_validator.valid?(@type)
|
118
127
|
return false if @every_seconds.nil?
|
119
|
-
return false if @every_seconds <
|
128
|
+
return false if @every_seconds < 0
|
120
129
|
true
|
121
130
|
end
|
122
131
|
|
@@ -137,8 +146,8 @@ module InfluxDB2::API
|
|
137
146
|
fail ArgumentError, 'every_seconds cannot be nil'
|
138
147
|
end
|
139
148
|
|
140
|
-
if every_seconds <
|
141
|
-
fail ArgumentError, 'invalid value for "every_seconds", must be greater than or equal to
|
149
|
+
if every_seconds < 0
|
150
|
+
fail ArgumentError, 'invalid value for "every_seconds", must be greater than or equal to 0.'
|
142
151
|
end
|
143
152
|
|
144
153
|
@every_seconds = every_seconds
|
@@ -150,7 +159,8 @@ module InfluxDB2::API
|
|
150
159
|
return true if self.equal?(o)
|
151
160
|
self.class == o.class &&
|
152
161
|
type == o.type &&
|
153
|
-
every_seconds == o.every_seconds
|
162
|
+
every_seconds == o.every_seconds &&
|
163
|
+
shard_group_duration_seconds == o.shard_group_duration_seconds
|
154
164
|
end
|
155
165
|
|
156
166
|
# @see the `==` method
|
@@ -162,7 +172,7 @@ module InfluxDB2::API
|
|
162
172
|
# Calculates hash code according to all attributes.
|
163
173
|
# @return [Integer] Hash code
|
164
174
|
def hash
|
165
|
-
[type, every_seconds, ].hash
|
175
|
+
[type, every_seconds, shard_group_duration_seconds, ].hash
|
166
176
|
end
|
167
177
|
|
168
178
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb-client-apis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.0.pre.
|
4
|
+
version: 1.13.0.pre.2143
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Bednar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: influxdb-client
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.13.0.pre.
|
19
|
+
version: 1.13.0.pre.2143
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.13.0.pre.
|
26
|
+
version: 1.13.0.pre.2143
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: typhoeus
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|