feat: 🎸 Update credential model with ssh private key attributes (#1254)

✅ Closes: ICU-5645
This commit is contained in:
Cameron Perera authored and GitHub committed 2022-08-12 15:56:19 -05:00
1 parent 29e3e8b843
commit 39c0835a99
3 files changed
+25 -6

No files matched your search

@@ -46,6 +46,14 @@ export default class GeneratedCredentialModel extends BaseModel {
})
version;
// =attributes (username_password, ssh_private_key)
@attr('string', {
for: ['username_password', 'ssh_private_key'],
isNestedAttribute: true,
description: 'The username for credential.',
})
username;
// =attributes (username_password)
@attr('string', {
for: 'username_password',
@@ -54,10 +62,18 @@ export default class GeneratedCredentialModel extends BaseModel {
})
password;
// =attributes (ssh_private_key)
@attr('string', {
for: 'username_password',
for: 'ssh_private_key',
isNestedAttribute: true,
description: 'The username for credential.',
description: 'The private key for credential.',
})
username;
private_key;
@attr('string', {
for: 'ssh_private_key',
isNestedAttribute: true,
description: 'The passphrase for credential.',
})
passphrase;
}