You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,20 @@ async with InfluxDBClientAsync(url="http://localhost:8086", token="my-token", or
12
12
client_session_kwargs={'trust_env': True}) as client:
13
13
pass
14
14
```
15
+
16
+
This release introduces a support for new version of InfluxDB API definitions with following breaking changes:
17
+
18
+
-`User`, `UserResponse`, `ResourceMember` and `ResourceOwner` classes no longer supports `oauth_id` field
19
+
-`Task` class no longer supports `type` field
20
+
-`ScriptUpdateRequest` class no longer supports `name` field
21
+
-`UsersService.get_flags` operation is moved to `ConfigService`
22
+
15
23
### Features
16
24
1.[#586](https://github.com/influxdata/influxdb-client-python/pull/586): Add `config_name` key argument for ``from_config_file`` function to allow loading a specific configuration from a config file
17
25
26
+
### API
27
+
1.[#588](https://github.com/influxdata/influxdb-client-python/pull/588): Use the latest InfluxDB API definitions for generated APIs
ID of the organization that the authorization is scoped to.
141
+
The organization ID. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the authorization is scoped to.
142
142
143
143
:return: The org_id of this Authorization.
144
144
:rtype: str
@@ -149,7 +149,7 @@ def org_id(self):
149
149
deforg_id(self, org_id):
150
150
"""Set the org_id of this Authorization.
151
151
152
-
ID of the organization that the authorization is scoped to.
152
+
The organization ID. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the authorization is scoped to.
153
153
154
154
:param org_id: The org_id of this Authorization.
155
155
:type: str
@@ -160,7 +160,7 @@ def org_id(self, org_id):
160
160
defpermissions(self):
161
161
"""Get the permissions of this Authorization.
162
162
163
-
List of permissions for an authorization. An authorization must have at least one permission.
163
+
The list of permissions. An authorization must have at least one permission.
164
164
165
165
:return: The permissions of this Authorization.
166
166
:rtype: list[Permission]
@@ -171,7 +171,7 @@ def permissions(self):
171
171
defpermissions(self, permissions):
172
172
"""Set the permissions of this Authorization.
173
173
174
-
List of permissions for an authorization. An authorization must have at least one permission.
174
+
The list of permissions. An authorization must have at least one permission.
175
175
176
176
:param permissions: The permissions of this Authorization.
The API token. The token value is unique to the authorization. [API tokens](https://docs.influxdata.com/influxdb/latest/reference/glossary/#token) are used to authenticate and authorize InfluxDB API requests and `influx` CLI commands--after receiving the request, InfluxDB checks that the token is valid and that the `permissions` allow the requested action(s).
204
208
205
209
:return: The token of this Authorization.
206
210
:rtype: str
@@ -211,7 +215,7 @@ def token(self):
211
215
deftoken(self, token):
212
216
"""Set the token of this Authorization.
213
217
214
-
Token used to authenticate API requests.
218
+
The API token. The token value is unique to the authorization. [API tokens](https://docs.influxdata.com/influxdb/latest/reference/glossary/#token) are used to authenticate and authorize InfluxDB API requests and `influx` CLI commands--after receiving the request, InfluxDB checks that the token is valid and that the `permissions` allow the requested action(s).
215
219
216
220
:param token: The token of this Authorization.
217
221
:type: str
@@ -222,7 +226,7 @@ def token(self, token):
222
226
defuser_id(self):
223
227
"""Get the user_id of this Authorization.
224
228
225
-
ID of the user that created and owns the token.
229
+
The user ID. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If _scoped_, the user that the authorization is scoped to; otherwise, the creator of the authorization.
226
230
227
231
:return: The user_id of this Authorization.
228
232
:rtype: str
@@ -233,7 +237,7 @@ def user_id(self):
233
237
defuser_id(self, user_id):
234
238
"""Set the user_id of this Authorization.
235
239
236
-
ID of the user that created and owns the token.
240
+
The user ID. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If _scoped_, the user that the authorization is scoped to; otherwise, the creator of the authorization.
237
241
238
242
:param user_id: The user_id of this Authorization.
239
243
:type: str
@@ -244,7 +248,7 @@ def user_id(self, user_id):
244
248
defuser(self):
245
249
"""Get the user of this Authorization.
246
250
247
-
Name of the user that created and owns the token.
251
+
The user name. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If the authorization is _scoped_ to a user, the user; otherwise, the creator of the authorization.
248
252
249
253
:return: The user of this Authorization.
250
254
:rtype: str
@@ -255,7 +259,7 @@ def user(self):
255
259
defuser(self, user):
256
260
"""Set the user of this Authorization.
257
261
258
-
Name of the user that created and owns the token.
262
+
The user name. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If the authorization is _scoped_ to a user, the user; otherwise, the creator of the authorization.
259
263
260
264
:param user: The user of this Authorization.
261
265
:type: str
@@ -266,7 +270,7 @@ def user(self, user):
266
270
deforg(self):
267
271
"""Get the org of this Authorization.
268
272
269
-
Name of the organization that the token is scoped to.
273
+
The organization name. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the token is scoped to.
270
274
271
275
:return: The org of this Authorization.
272
276
:rtype: str
@@ -277,7 +281,7 @@ def org(self):
277
281
deforg(self, org):
278
282
"""Set the org of this Authorization.
279
283
280
-
Name of the organization that the token is scoped to.
284
+
The organization name. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the token is scoped to.
"""Get the org_id of this AuthorizationPostRequest.
69
69
70
-
ID of org that authorization is scoped to.
70
+
An organization ID. Specifies the organization that owns the authorization.
71
71
72
72
:return: The org_id of this AuthorizationPostRequest.
73
73
:rtype: str
@@ -78,7 +78,7 @@ def org_id(self):
78
78
deforg_id(self, org_id):
79
79
"""Set the org_id of this AuthorizationPostRequest.
80
80
81
-
ID of org that authorization is scoped to.
81
+
An organization ID. Specifies the organization that owns the authorization.
82
82
83
83
:param org_id: The org_id of this AuthorizationPostRequest.
84
84
:type: str
@@ -89,7 +89,7 @@ def org_id(self, org_id):
89
89
defuser_id(self):
90
90
"""Get the user_id of this AuthorizationPostRequest.
91
91
92
-
ID of user that authorization is scoped to.
92
+
A user ID. Specifies the user that the authorization is scoped to. When a user authenticates with username and password, InfluxDB generates a _user session_ with all the permissions specified by all the user's authorizations.
93
93
94
94
:return: The user_id of this AuthorizationPostRequest.
95
95
:rtype: str
@@ -100,7 +100,7 @@ def user_id(self):
100
100
defuser_id(self, user_id):
101
101
"""Set the user_id of this AuthorizationPostRequest.
102
102
103
-
ID of user that authorization is scoped to.
103
+
A user ID. Specifies the user that the authorization is scoped to. When a user authenticates with username and password, InfluxDB generates a _user session_ with all the permissions specified by all the user's authorizations.
104
104
105
105
:param user_id: The user_id of this AuthorizationPostRequest.
106
106
:type: str
@@ -111,7 +111,7 @@ def user_id(self, user_id):
111
111
defpermissions(self):
112
112
"""Get the permissions of this AuthorizationPostRequest.
113
113
114
-
List of permissions for an auth. An auth must have at least one Permission.
114
+
A list of permissions for an authorization. In the list, provide at least one `permission` object. In a `permission`, the `resource.type` property grants access to all resources of the specified type. To grant access to only a specific resource, specify the `resource.id` property.
115
115
116
116
:return: The permissions of this AuthorizationPostRequest.
117
117
:rtype: list[Permission]
@@ -122,7 +122,7 @@ def permissions(self):
122
122
defpermissions(self, permissions):
123
123
"""Set the permissions of this AuthorizationPostRequest.
124
124
125
-
List of permissions for an auth. An auth must have at least one Permission.
125
+
A list of permissions for an authorization. In the list, provide at least one `permission` object. In a `permission`, the `resource.type` property grants access to all resources of the specified type. To grant access to only a specific resource, specify the `resource.id` property.
126
126
127
127
:param permissions: The permissions of this AuthorizationPostRequest.
Rules to expire or retain data. No rules means data never expires.
287
+
Retention rules to expire or retain data. The InfluxDB `/api/v2` API uses `RetentionRules` to configure the [retention period](https://docs.influxdata.com/influxdb/latest/reference/glossary/#retention-period). #### InfluxDB Cloud - `retentionRules` is required. #### InfluxDB OSS - `retentionRules` isn't required.
288
288
289
289
:return: The retention_rules of this Bucket.
290
290
:rtype: list[BucketRetentionRules]
@@ -295,7 +295,7 @@ def retention_rules(self):
295
295
defretention_rules(self, retention_rules):
296
296
"""Set the retention_rules of this Bucket.
297
297
298
-
Rules to expire or retain data. No rules means data never expires.
298
+
Retention rules to expire or retain data. The InfluxDB `/api/v2` API uses `RetentionRules` to configure the [retention period](https://docs.influxdata.com/influxdb/latest/reference/glossary/#retention-period). #### InfluxDB Cloud - `retentionRules` is required. #### InfluxDB OSS - `retentionRules` isn't required.
299
299
300
300
:param retention_rules: The retention_rules of this Bucket.
0 commit comments