influxdb-client-apis 1.13.0.pre.2019 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0aa27010984d2c6c290ce30896ca6cc78df96deb1601a7e35e79594323bf779
|
4
|
+
data.tar.gz: eb3b4c7986a127d0b22c7f621ea42ec4013a9f20e03ac900f457bf0ec0ba08a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6d6b48ce514b2ac9d310536e7193f806ebcd27cb97623a2c8a434a45f9fec9f9d18ac8de894544b33d247fc953f6b24a0b01740c7a498e83f0ab2f9324c4d6
|
7
|
+
data.tar.gz: c68662539c7f8d9497f2c1ca8faef201733044e692626bd1f6a286beaefbcfdc0c2d2b8adf0806169e03cf5174c44080eebc9966aaa291a12871cc67919ffd0a
|
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.13.0
|
4
|
+
version: 1.13.0
|
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.13.0
|
19
|
+
version: 1.13.0
|
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
|
26
|
+
version: 1.13.0
|
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
|
@@ -234,9 +235,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
235
|
version: 2.2.0
|
235
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
237
|
requirements:
|
237
|
-
- - "
|
238
|
+
- - ">="
|
238
239
|
- !ruby/object:Gem::Version
|
239
|
-
version:
|
240
|
+
version: '0'
|
240
241
|
requirements: []
|
241
242
|
rubygems_version: 3.0.3
|
242
243
|
signing_key:
|