influxdb-client-apis 1.13.0.pre.2069 → 1.14.0.pre.2287
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1414a6d729fa0acb0ec9e43f6c101760c7e3856997ea7e704b5b43adc76e0cea
|
4
|
+
data.tar.gz: 14d4cbe4354a1105211c2f3fe5a0ef180056b6e00f886cd4d2a61b7cc29e7520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ca47a97d4eec5897832d7ff46948ab13a7b2a1d0dede911c6a87a3d52abae9768affaf717d988f1388d23b81bc0ff8010a09ac3c48484b12f487dd0d16a0294
|
7
|
+
data.tar.gz: 8c12549e90973b6b4819f329222bcf6b072c8bf0a4d7725f7ade3fdf4c9d46ebdd1633c7a61042c6d4b43677253ab06da7ff62ff09a76339ccfd0d1b229ebda9
|
@@ -90,6 +90,7 @@ module InfluxDB2::API
|
|
90
90
|
# @option opts [String] :user Only show authorizations that belong to a user name.
|
91
91
|
# @option opts [String] :org_id Only show authorizations that belong to an organization ID.
|
92
92
|
# @option opts [String] :org Only show authorizations that belong to a organization name.
|
93
|
+
# @option opts [String] :token Find a token by value.
|
93
94
|
# @return [Authorizations]
|
94
95
|
def get_authorizations(opts = {})
|
95
96
|
data, _status_code, _headers = get_authorizations_with_http_info(opts)
|
@@ -103,6 +104,7 @@ module InfluxDB2::API
|
|
103
104
|
# @option opts [String] :user Only show authorizations that belong to a user name.
|
104
105
|
# @option opts [String] :org_id Only show authorizations that belong to an organization ID.
|
105
106
|
# @option opts [String] :org Only show authorizations that belong to a organization name.
|
107
|
+
# @option opts [String] :token Find a token by value.
|
106
108
|
# @return [Array<(Authorizations, Integer, Hash)>] Authorizations data, response status code and response headers
|
107
109
|
def get_authorizations_with_http_info(opts = {})
|
108
110
|
if @api_client.config.debugging
|
@@ -117,6 +119,7 @@ module InfluxDB2::API
|
|
117
119
|
query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
|
118
120
|
query_params[:'orgID'] = opts[:'org_id'] if !opts[:'org_id'].nil?
|
119
121
|
query_params[:'org'] = opts[:'org'] if !opts[:'org'].nil?
|
122
|
+
query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil?
|
120
123
|
|
121
124
|
# header parameters
|
122
125
|
header_params = opts[:header_params] || {}
|
@@ -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.2287
|
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-19 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.2287
|
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.2287
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: typhoeus
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
- !ruby/object:Gem::Version
|
240
240
|
version: 1.3.1
|
241
241
|
requirements: []
|
242
|
-
rubygems_version: 3.0.3
|
242
|
+
rubygems_version: 3.0.3.1
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: Contains client APIs for InfluxDB v2.0.
|