influxdb-client-apis 1.13.0.pre.2098 → 1.14.0.pre.2302
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27e33aeee5515b325526e51c37e6bb499a9f592b093b7d3d727f6db16a5f178f
|
4
|
+
data.tar.gz: 8dc95d024de13d19de35ed7f15fe6a991ef68815c23b5c5a3f3fbda332850b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4951b25c84a6ac8914eb09a16b06ee46920e904dfd45cf76d8de16bb4f9835dca89609fa325b76046f79f256958ac0c0f536ce8d06a07cf6e2b01964fad309c
|
7
|
+
data.tar.gz: 8e13e64f34ab212a11ab5629e6337c0f4a9d587ab0b8f800c8cd20c96ae47373c08295ce599433aa38493d7481ca06d7e672e0ae888a40fbfffe67526179e798
|
@@ -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.2302
|
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-20 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.2302
|
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.2302
|
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.
|