Skip to content

Commit eb9f1f1

Browse files
authored
chore(cockpit): deprecate grafana users (#1365)
1 parent 78c8812 commit eb9f1f1

File tree

2 files changed

+30
-10
lines changed
  • scaleway-async/scaleway_async/cockpit/v1
  • scaleway/scaleway/cockpit/v1

2 files changed

+30
-10
lines changed

scaleway-async/scaleway_async/cockpit/v1/api.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,15 @@ async def create_grafana_user(
170170
role: Optional[GrafanaUserRole] = None,
171171
) -> GrafanaUser:
172172
"""
173-
Create a Grafana user.
173+
(Deprecated) EOL 2026-01-20.
174+
Create a Grafana user
174175
Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
175176
Each Grafana user is associated with a role: viewer or editor. A viewer can only view dashboards, whereas an editor can create and edit dashboards. Note that the `admin` username is not available for creation.
176177
:param login: Username of the Grafana user. Note that the `admin` username is not available for creation.
177178
:param project_id: ID of the Project in which to create the Grafana user.
178179
:param role: Role assigned to the Grafana user.
179180
:return: :class:`GrafanaUser <GrafanaUser>`
181+
:deprecated
180182
181183
Usage:
182184
::
@@ -211,13 +213,15 @@ async def list_grafana_users(
211213
project_id: Optional[str] = None,
212214
) -> ListGrafanaUsersResponse:
213215
"""
214-
List Grafana users.
216+
(Deprecated) EOL 2026-01-20.
217+
List Grafana users
215218
List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
216219
:param page: Page number.
217220
:param page_size: Page size.
218221
:param order_by: Order of the Grafana users.
219222
:param project_id: ID of the Project to target.
220223
:return: :class:`ListGrafanaUsersResponse <ListGrafanaUsersResponse>`
224+
:deprecated
221225
222226
Usage:
223227
::
@@ -248,13 +252,15 @@ async def list_grafana_users_all(
248252
project_id: Optional[str] = None,
249253
) -> list[GrafanaUser]:
250254
"""
251-
List Grafana users.
255+
(Deprecated) EOL 2026-01-20.
256+
List Grafana users
252257
List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
253258
:param page: Page number.
254259
:param page_size: Page size.
255260
:param order_by: Order of the Grafana users.
256261
:param project_id: ID of the Project to target.
257262
:return: :class:`list[GrafanaUser] <list[GrafanaUser]>`
263+
:deprecated
258264
259265
Usage:
260266
::
@@ -281,10 +287,12 @@ async def delete_grafana_user(
281287
grafana_user_id: int,
282288
) -> None:
283289
"""
284-
Delete a Grafana user.
290+
(Deprecated) EOL 2026-01-20.
291+
Delete a Grafana user
285292
Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
286293
:param project_id: ID of the Project to target.
287294
:param grafana_user_id: ID of the Grafana user.
295+
:deprecated
288296
289297
Usage:
290298
::
@@ -313,12 +321,14 @@ async def reset_grafana_user_password(
313321
grafana_user_id: int,
314322
) -> GrafanaUser:
315323
"""
316-
Reset a Grafana user password.
324+
(Deprecated) EOL 2026-01-20.
325+
Reset a Grafana user password
317326
Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
318327
A new password regenerates and only displays once. Make sure that you save it.
319328
:param project_id: ID of the Project to target.
320329
:param grafana_user_id: ID of the Grafana user.
321330
:return: :class:`GrafanaUser <GrafanaUser>`
331+
:deprecated
322332
323333
Usage:
324334
::

scaleway/scaleway/cockpit/v1/api.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,15 @@ def create_grafana_user(
170170
role: Optional[GrafanaUserRole] = None,
171171
) -> GrafanaUser:
172172
"""
173-
Create a Grafana user.
173+
(Deprecated) EOL 2026-01-20.
174+
Create a Grafana user
174175
Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
175176
Each Grafana user is associated with a role: viewer or editor. A viewer can only view dashboards, whereas an editor can create and edit dashboards. Note that the `admin` username is not available for creation.
176177
:param login: Username of the Grafana user. Note that the `admin` username is not available for creation.
177178
:param project_id: ID of the Project in which to create the Grafana user.
178179
:param role: Role assigned to the Grafana user.
179180
:return: :class:`GrafanaUser <GrafanaUser>`
181+
:deprecated
180182
181183
Usage:
182184
::
@@ -211,13 +213,15 @@ def list_grafana_users(
211213
project_id: Optional[str] = None,
212214
) -> ListGrafanaUsersResponse:
213215
"""
214-
List Grafana users.
216+
(Deprecated) EOL 2026-01-20.
217+
List Grafana users
215218
List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
216219
:param page: Page number.
217220
:param page_size: Page size.
218221
:param order_by: Order of the Grafana users.
219222
:param project_id: ID of the Project to target.
220223
:return: :class:`ListGrafanaUsersResponse <ListGrafanaUsersResponse>`
224+
:deprecated
221225
222226
Usage:
223227
::
@@ -248,13 +252,15 @@ def list_grafana_users_all(
248252
project_id: Optional[str] = None,
249253
) -> list[GrafanaUser]:
250254
"""
251-
List Grafana users.
255+
(Deprecated) EOL 2026-01-20.
256+
List Grafana users
252257
List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
253258
:param page: Page number.
254259
:param page_size: Page size.
255260
:param order_by: Order of the Grafana users.
256261
:param project_id: ID of the Project to target.
257262
:return: :class:`list[GrafanaUser] <list[GrafanaUser]>`
263+
:deprecated
258264
259265
Usage:
260266
::
@@ -281,10 +287,12 @@ def delete_grafana_user(
281287
grafana_user_id: int,
282288
) -> None:
283289
"""
284-
Delete a Grafana user.
290+
(Deprecated) EOL 2026-01-20.
291+
Delete a Grafana user
285292
Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
286293
:param project_id: ID of the Project to target.
287294
:param grafana_user_id: ID of the Grafana user.
295+
:deprecated
288296
289297
Usage:
290298
::
@@ -313,12 +321,14 @@ def reset_grafana_user_password(
313321
grafana_user_id: int,
314322
) -> GrafanaUser:
315323
"""
316-
Reset a Grafana user password.
324+
(Deprecated) EOL 2026-01-20.
325+
Reset a Grafana user password
317326
Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
318327
A new password regenerates and only displays once. Make sure that you save it.
319328
:param project_id: ID of the Project to target.
320329
:param grafana_user_id: ID of the Grafana user.
321330
:return: :class:`GrafanaUser <GrafanaUser>`
331+
:deprecated
322332
323333
Usage:
324334
::

0 commit comments

Comments
 (0)