mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
39 lines
1,014 B
JavaScript
39 lines
1,014 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Model, { attr } from '@ember-data/model';
|
|
import lazyCapabilities, { apiPath } from 'vault/macros/lazy-capabilities';
|
|
import { expandAttributeMeta } from 'vault/utils/field-to-attrs';
|
|
|
|
export default class Alphabet extends Model {
|
|
idPrefix = 'alphabet/';
|
|
|
|
@attr('string', {
|
|
readOnly: true,
|
|
subText: 'The alphabet name. Keep in mind that spaces are not allowed and this cannot be edited later.',
|
|
})
|
|
name;
|
|
|
|
@attr('string', {
|
|
label: 'Alphabet',
|
|
subText:
|
|
'Provide the set of valid UTF-8 characters contained within both the input and transformed value.',
|
|
docLink: '/vault/api-docs/secret/transform#create-update-alphabet',
|
|
})
|
|
alphabet;
|
|
|
|
get attrs() {
|
|
const keys = ['name', 'alphabet'];
|
|
return expandAttributeMeta(this, keys);
|
|
}
|
|
|
|
@attr('string', {
|
|
readOnly: true,
|
|
})
|
|
backend;
|
|
|
|
@lazyCapabilities(apiPath`${'backend'}/alphabet/${'id'}`, 'backend', 'id')
|
|
updatePath;
|
|
}
|