2023-03-01 09:39:41 -06:00
|
|
|
/**
|
2026-01-28 17:09:06 -08:00
|
|
|
* Copyright IBM Corp. 2021, 2026
|
2024-05-31 11:29:24 -07:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-01 09:39:41 -06:00
|
|
|
*/
|
|
|
|
|
|
2021-07-01 14:28:53 -04:00
|
|
|
import GeneratedCredentialStoreModel from '../generated/models/credential-store';
|
|
|
|
|
import { equal } from '@ember/object/computed';
|
|
|
|
|
|
2024-04-04 09:19:39 -07:00
|
|
|
export const TYPE_CREDENTIAL_STORE_STATIC = 'static';
|
|
|
|
|
export const TYPE_CREDENTIAL_STORE_VAULT = 'vault';
|
|
|
|
|
|
|
|
|
|
export const TYPES_CREDENTIAL_STORE = Object.freeze([
|
|
|
|
|
TYPE_CREDENTIAL_STORE_STATIC,
|
|
|
|
|
TYPE_CREDENTIAL_STORE_VAULT,
|
|
|
|
|
]);
|
2022-12-07 13:52:49 -08:00
|
|
|
|
2021-07-01 14:28:53 -04:00
|
|
|
export default class CredentialStoreModel extends GeneratedCredentialStoreModel {
|
|
|
|
|
// =attributes
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {boolean}
|
|
|
|
|
*/
|
|
|
|
|
@equal('type', 'vault') isVault;
|
2022-06-18 10:56:25 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {boolean}
|
|
|
|
|
*/
|
|
|
|
|
@equal('type', 'static') isStatic;
|
2021-07-01 14:28:53 -04:00
|
|
|
}
|