MCPcopy Create free account
hub / github.com/StackStorm/st2 / __init__

Method __init__

st2client/st2client/commands/auth.py:310–324  ·  view source on GitHub ↗
(self, resource, *args, **kwargs)

Source from the content-addressed store, hash-verified

308 display_attributes = ["id", "user", "metadata"]
309
310 def __init__(self, resource, *args, **kwargs):
311 super(ApiKeyListCommand, self).__init__(resource, *args, **kwargs)
312
313 self.parser.add_argument(
314 "-u",
315 "--user",
316 type=str,
317 help="Only return ApiKeys belonging to the provided user",
318 )
319 self.parser.add_argument(
320 "-d", "--detail", action="store_true", help="Full list of attributes."
321 )
322 self.parser.add_argument(
323 "--show-secrets", action="store_true", help="Full list of attributes."
324 )
325
326 @resource.add_auth_token_to_kwargs_from_cli
327 def run(self, args, **kwargs):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected