influxdb-client-apis 1.13.0.pre.2019 → 1.14.0.pre.2214
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/LICENSE +21 -0
- data/influxdb-client-apis.gemspec +1 -2
- data/lib/influxdb2/apis/generated/models/retention_rule.rb +18 -8
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504a0bdaed0ad96b5ee6df058adc99d63351ab68b85d9fc107625ec18e00c704
|
4
|
+
data.tar.gz: 8490ef7c7f8b8622a54f9b168d72c00986340803dd4bb8d73584b10ecf0c9550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ea1d24faba09f059cb03ab9be9562c237b139dab69fcdba1aed5c1274a6913b667b2658219c7891a0d9ef3a16d6956101543c9bc0464a94324857ac56b642e3
|
7
|
+
data.tar.gz: e63b8e466c8f8723e1cb9687f11f5064ca32682684d8bc4abb20454e26a27a98f910bd0b1faa4a614bb6f4bf61a3aaa519b4b8f468526588cfbc97aaf823ef9a
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Influxdata, Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -39,8 +39,7 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.metadata['changelog_uri'] = 'https://raw.githubusercontent.com/influxdata/influxdb-client-ruby/master/CHANGELOG.md'
|
40
40
|
|
41
41
|
spec.files = Dir.glob('lib/**/*')
|
42
|
-
|
43
|
-
spec.files += %w[influxdb-client-apis.gemspec Rakefile]
|
42
|
+
spec.files += %w[influxdb-client-apis.gemspec LICENSE Rakefile]
|
44
43
|
spec.test_files = Dir.glob('test/**/*')
|
45
44
|
spec.require_paths = ['lib']
|
46
45
|
spec.required_ruby_version = '>= 2.2.0'
|
@@ -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.
|
4
|
+
version: 1.14.0.pre.2214
|
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-
|
11
|
+
date: 2021-04-01 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.
|
19
|
+
version: 1.14.0.pre.2214
|
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.
|
26
|
+
version: 1.14.0.pre.2214
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: typhoeus
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,6 +163,7 @@ executables: []
|
|
163
163
|
extensions: []
|
164
164
|
extra_rdoc_files: []
|
165
165
|
files:
|
166
|
+
- LICENSE
|
166
167
|
- Rakefile
|
167
168
|
- influxdb-client-apis.gemspec
|
168
169
|
- lib/influxdb-client-apis.rb
|