@@ -183,8 +183,8 @@ def organization_preference_get(self):
183
183
"""
184
184
:return:
185
185
"""
186
- warnings .warn ("Deprecated , please use `organization_preferences_get `" , DeprecationWarning )
187
- return self .organization_preferences_get ()
186
+ warnings .warn ("This method is deprecated , please use `get_preferences `" , DeprecationWarning )
187
+ return self .get_preferences ()
188
188
189
189
def organization_preference_update (self , theme = "" , home_dashboard_id = 0 , timezone = "utc" ):
190
190
"""
@@ -194,11 +194,11 @@ def organization_preference_update(self, theme="", home_dashboard_id=0, timezone
194
194
:param timezone:
195
195
:return:
196
196
"""
197
- warnings .warn ("Deprecated , please use `organization_preferences_update `" , DeprecationWarning )
197
+ warnings .warn ("This method is deprecated , please use `update_preferences `" , DeprecationWarning )
198
198
preferences = PersonalPreferences (theme = theme , homeDashboardId = home_dashboard_id , timezone = timezone )
199
- return self .organization_preferences_update (preferences )
199
+ return self .update_preferences (preferences )
200
200
201
- def organization_preferences_get (self ):
201
+ def get_preferences (self ):
202
202
"""
203
203
Retrieve preferences of current organization.
204
204
@@ -208,15 +208,15 @@ def organization_preferences_get(self):
208
208
r = self .client .GET (update_preference )
209
209
return r
210
210
211
- def organization_preferences_update (self , preferences : PersonalPreferences ):
211
+ def update_preferences (self , preferences : PersonalPreferences ):
212
212
"""
213
213
Update preferences of current organization as a whole.
214
214
215
215
From the `preferences` instance, only attributes with values `not None` will be submitted.
216
216
However, Grafana will reset all undefined attributes to its internal defaults.
217
217
218
218
If you want to update specific preference attributes, without touching the others,
219
- please use the `organization_preferences_patch ` method.
219
+ please use the `patch_preferences ` method.
220
220
221
221
:param preferences:
222
222
:return:
@@ -230,7 +230,7 @@ def organization_preferences_update(self, preferences: PersonalPreferences):
230
230
)
231
231
return r
232
232
233
- def organization_preferences_patch (self , preferences : PersonalPreferences ):
233
+ def patch_preferences (self , preferences : PersonalPreferences ):
234
234
"""
235
235
Update specific preferences of current organization.
236
236
0 commit comments