influxdb-client-apis 1.15.0.pre.2461 → 1.16.0.pre.2890

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/influxdb-client-apis.rb +7 -2
  3. data/lib/influxdb2/apis/generated/api/authorizations_api.rb +11 -14
  4. data/lib/influxdb2/apis/generated/api/buckets_api.rb +14 -11
  5. data/lib/influxdb2/apis/generated/api/labels_api.rb +2 -2
  6. data/lib/influxdb2/apis/generated/api/organizations_api.rb +20 -20
  7. data/lib/influxdb2/apis/generated/api/users_api.rb +116 -2567
  8. data/lib/influxdb2/apis/generated/api_client.rb +2 -2
  9. data/lib/influxdb2/apis/generated/api_error.rb +2 -2
  10. data/lib/influxdb2/apis/generated/configuration.rb +4 -4
  11. data/lib/influxdb2/apis/generated/models/authorization.rb +3 -2
  12. data/lib/influxdb2/apis/generated/models/authorization_all_of.rb +3 -2
  13. data/lib/influxdb2/apis/generated/models/authorization_all_of_links.rb +3 -2
  14. data/lib/influxdb2/apis/generated/models/authorization_post_request.rb +326 -0
  15. data/lib/influxdb2/apis/generated/models/authorization_update_request.rb +3 -2
  16. data/lib/influxdb2/apis/generated/models/authorizations.rb +3 -2
  17. data/lib/influxdb2/apis/generated/models/bucket.rb +13 -3
  18. data/lib/influxdb2/apis/generated/models/bucket_links.rb +3 -2
  19. data/lib/influxdb2/apis/generated/models/buckets.rb +3 -2
  20. data/lib/influxdb2/apis/generated/models/label.rb +3 -2
  21. data/lib/influxdb2/apis/generated/models/label_create_request.rb +3 -2
  22. data/lib/influxdb2/apis/generated/models/label_mapping.rb +3 -2
  23. data/lib/influxdb2/apis/generated/models/label_response.rb +3 -2
  24. data/lib/influxdb2/apis/generated/models/label_update.rb +3 -2
  25. data/lib/influxdb2/apis/generated/models/labels_response.rb +3 -2
  26. data/lib/influxdb2/apis/generated/models/links.rb +3 -2
  27. data/lib/influxdb2/apis/generated/models/organization.rb +3 -2
  28. data/lib/influxdb2/apis/generated/models/organization_links.rb +3 -2
  29. data/lib/influxdb2/apis/generated/models/organizations.rb +3 -2
  30. data/lib/influxdb2/apis/generated/models/password_reset_body.rb +215 -0
  31. data/lib/influxdb2/apis/generated/models/patch_organization_request.rb +221 -0
  32. data/lib/influxdb2/apis/generated/models/permission.rb +3 -2
  33. data/lib/influxdb2/apis/generated/models/post_bucket_request.rb +15 -5
  34. data/lib/influxdb2/apis/generated/models/post_organization_request.rb +224 -0
  35. data/lib/influxdb2/apis/generated/models/resource.rb +5 -4
  36. data/lib/influxdb2/apis/generated/models/resource_member.rb +5 -4
  37. data/lib/influxdb2/apis/generated/models/resource_member_all_of.rb +3 -2
  38. data/lib/influxdb2/apis/generated/models/resource_members.rb +4 -3
  39. data/lib/influxdb2/apis/generated/models/{users_links.rb → resource_members_links.rb} +6 -5
  40. data/lib/influxdb2/apis/generated/models/resource_owner.rb +5 -4
  41. data/lib/influxdb2/apis/generated/models/resource_owner_all_of.rb +3 -2
  42. data/lib/influxdb2/apis/generated/models/resource_owners.rb +4 -3
  43. data/lib/influxdb2/apis/generated/models/retention_rule.rb +3 -2
  44. data/lib/influxdb2/apis/generated/models/user.rb +6 -14
  45. data/lib/influxdb2/apis/generated/models/user_response.rb +288 -0
  46. data/lib/influxdb2/apis/generated/models/{user_links.rb → user_response_links.rb} +6 -5
  47. data/lib/influxdb2/apis/generated/models/users.rb +5 -4
  48. data/test/influxdb2/authorizations_api_test.rb +3 -3
  49. data/test/influxdb2/organizations_api_test.rb +3 -3
  50. metadata +11 -6
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -28,6 +29,8 @@ module InfluxDB2::API
28
29
 
29
30
  attr_accessor :rp
30
31
 
32
+ attr_accessor :schema_type
33
+
31
34
  attr_accessor :created_at
32
35
 
33
36
  attr_accessor :updated_at
@@ -69,6 +72,7 @@ module InfluxDB2::API
69
72
  :'description' => :'description',
70
73
  :'org_id' => :'orgID',
71
74
  :'rp' => :'rp',
75
+ :'schema_type' => :'schemaType',
72
76
  :'created_at' => :'createdAt',
73
77
  :'updated_at' => :'updatedAt',
74
78
  :'retention_rules' => :'retentionRules',
@@ -86,6 +90,7 @@ module InfluxDB2::API
86
90
  :'description' => :'String',
87
91
  :'org_id' => :'String',
88
92
  :'rp' => :'String',
93
+ :'schema_type' => :'SchemaType',
89
94
  :'created_at' => :'Time',
90
95
  :'updated_at' => :'Time',
91
96
  :'retention_rules' => :'Array<RetentionRule>',
@@ -144,6 +149,10 @@ module InfluxDB2::API
144
149
  self.rp = attributes[:'rp']
145
150
  end
146
151
 
152
+ if attributes.key?(:'schema_type')
153
+ self.schema_type = attributes[:'schema_type']
154
+ end
155
+
147
156
  if attributes.key?(:'created_at')
148
157
  self.created_at = attributes[:'created_at']
149
158
  end
@@ -212,6 +221,7 @@ module InfluxDB2::API
212
221
  description == o.description &&
213
222
  org_id == o.org_id &&
214
223
  rp == o.rp &&
224
+ schema_type == o.schema_type &&
215
225
  created_at == o.created_at &&
216
226
  updated_at == o.updated_at &&
217
227
  retention_rules == o.retention_rules &&
@@ -227,7 +237,7 @@ module InfluxDB2::API
227
237
  # Calculates hash code according to all attributes.
228
238
  # @return [Integer] Hash code
229
239
  def hash
230
- [links, id, type, name, description, org_id, rp, created_at, updated_at, retention_rules, labels].hash
240
+ [links, id, type, name, description, org_id, rp, schema_type, created_at, updated_at, retention_rules, labels].hash
231
241
  end
232
242
 
233
243
  # Builds the object from hash
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -1,15 +1,16 @@
1
1
  =begin
2
- #Influx API Service
2
+ #Influx OSS API Service
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 0.1.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
 
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'set'
13
14
  require 'time'
14
15
 
15
16
  module InfluxDB2::API
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #Influx OSS API Service
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+
10
+ =end
11
+
12
+ require 'date'
13
+ require 'set'
14
+ require 'time'
15
+
16
+ module InfluxDB2::API
17
+ class PasswordResetBody
18
+ attr_accessor :password
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'password' => :'password',
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.openapi_types
29
+ {
30
+ :'password' => :'String'
31
+ }
32
+ end
33
+
34
+ # List of attributes with nullable: true
35
+ def self.openapi_nullable
36
+ Set.new([
37
+ ])
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ if (!attributes.is_a?(Hash))
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `InfluxDB2::PasswordResetBody` initialize method"
45
+ end
46
+
47
+ # check to see if the attribute exists and convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}) { |(k, v), h|
49
+ if (!self.class.attribute_map.key?(k.to_sym))
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `InfluxDB2::PasswordResetBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ end
52
+ h[k.to_sym] = v
53
+ }
54
+
55
+ if attributes.key?(:'password')
56
+ self.password = attributes[:'password']
57
+ end
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ if @password.nil?
65
+ invalid_properties.push('invalid value for "password", password cannot be nil.')
66
+ end
67
+
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ return false if @password.nil?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ password == o.password
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [password].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
112
+ self.send("#{key}=", nil)
113
+ elsif type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :Time
134
+ Time.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :Boolean
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ InfluxDB2::API.const_get(type).build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+ end