| 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): |