22# This product includes software developed at Datadog (https://www.datadoghq.com/).
33# Copyright 2015-Present Datadog, Inc
44# stdlib
5+ import argparse
56import json
67
78# 3p
1516class DashboardListClient (object ):
1617 @classmethod
1718 def setup_parser (cls , subparsers ):
19+ # type: (argparse._SubParsersAction[argparse.ArgumentParser]) -> None
1820 parser = subparsers .add_parser ("dashboard_list" , help = "Create, edit, and delete dashboard lists" )
1921 verb_parsers = parser .add_subparsers (title = "Verbs" , dest = "verb" )
2022 verb_parsers .required = True
@@ -139,6 +141,7 @@ def setup_parser(cls, subparsers):
139141
140142 @classmethod
141143 def _post (cls , args ):
144+ # type: (argparse.Namespace) -> None
142145 api ._timeout = args .timeout
143146 format = args .format
144147 name = args .name
@@ -154,6 +157,7 @@ def _post(cls, args):
154157
155158 @classmethod
156159 def _update (cls , args ):
160+ # type: (argparse.Namespace) -> None
157161 api ._timeout = args .timeout
158162 format = args .format
159163 dashboard_list_id = args .dashboard_list_id
@@ -170,6 +174,7 @@ def _update(cls, args):
170174
171175 @classmethod
172176 def _show (cls , args ):
177+ # type: (argparse.Namespace) -> None
173178 api ._timeout = args .timeout
174179 format = args .format
175180 dashboard_list_id = args .dashboard_list_id
@@ -185,6 +190,7 @@ def _show(cls, args):
185190
186191 @classmethod
187192 def _show_all (cls , args ):
193+ # type: (argparse.Namespace) -> None
188194 api ._timeout = args .timeout
189195 format = args .format
190196
@@ -199,6 +205,7 @@ def _show_all(cls, args):
199205
200206 @classmethod
201207 def _delete (cls , args ):
208+ # type: (argparse.Namespace) -> None
202209 api ._timeout = args .timeout
203210 format = args .format
204211 dashboard_list_id = args .dashboard_list_id
@@ -214,6 +221,7 @@ def _delete(cls, args):
214221
215222 @classmethod
216223 def _show_dashboards (cls , args ):
224+ # type: (argparse.Namespace) -> None
217225 api ._timeout = args .timeout
218226 format = args .format
219227 dashboard_list_id = args .dashboard_list_id
@@ -229,6 +237,7 @@ def _show_dashboards(cls, args):
229237
230238 @classmethod
231239 def _show_dashboards_v2 (cls , args ):
240+ # type: (argparse.Namespace) -> None
232241 api ._timeout = args .timeout
233242 format = args .format
234243 dashboard_list_id = args .dashboard_list_id
@@ -244,6 +253,7 @@ def _show_dashboards_v2(cls, args):
244253
245254 @classmethod
246255 def _add_dashboards (cls , args ):
256+ # type: (argparse.Namespace) -> None
247257 api ._timeout = args .timeout
248258 format = args .format
249259 dashboard_list_id = args .dashboard_list_id
@@ -260,6 +270,7 @@ def _add_dashboards(cls, args):
260270
261271 @classmethod
262272 def _add_dashboards_v2 (cls , args ):
273+ # type: (argparse.Namespace) -> None
263274 api ._timeout = args .timeout
264275 format = args .format
265276 dashboard_list_id = args .dashboard_list_id
@@ -276,6 +287,7 @@ def _add_dashboards_v2(cls, args):
276287
277288 @classmethod
278289 def _update_dashboards (cls , args ):
290+ # type: (argparse.Namespace) -> None
279291 api ._timeout = args .timeout
280292 format = args .format
281293 dashboard_list_id = args .dashboard_list_id
@@ -292,6 +304,7 @@ def _update_dashboards(cls, args):
292304
293305 @classmethod
294306 def _update_dashboards_v2 (cls , args ):
307+ # type: (argparse.Namespace) -> None
295308 api ._timeout = args .timeout
296309 format = args .format
297310 dashboard_list_id = args .dashboard_list_id
@@ -308,6 +321,7 @@ def _update_dashboards_v2(cls, args):
308321
309322 @classmethod
310323 def _delete_dashboards (cls , args ):
324+ # type: (argparse.Namespace) -> None
311325 api ._timeout = args .timeout
312326 format = args .format
313327 dashboard_list_id = args .dashboard_list_id
@@ -324,6 +338,7 @@ def _delete_dashboards(cls, args):
324338
325339 @classmethod
326340 def _delete_dashboards_v2 (cls , args ):
341+ # type: (argparse.Namespace) -> None
327342 api ._timeout = args .timeout
328343 format = args .format
329344 dashboard_list_id = args .dashboard_list_id
0 commit comments