* [COMPLIANCE] Add Copyright and License Headers * chore: 🤖 update Copyright headers to satisfy our lint rules --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
68 lines
1.6 KiB
JavaScript
68 lines
1.6 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import BaseModel from '../../models/base';
|
|
import { attr } from '@ember-data/model';
|
|
|
|
/**
|
|
* Account contains all fields related to an account resource
|
|
*/
|
|
export default class GeneratedAccountModel extends BaseModel {
|
|
// =attributes
|
|
|
|
@attr('string', {
|
|
description: 'The type of the resource, to help differentiate schemas',
|
|
})
|
|
type;
|
|
|
|
@attr('string', {
|
|
description: 'The owning auth method ID.',
|
|
})
|
|
auth_method_id;
|
|
|
|
@attr('string', {
|
|
description: 'Optional name for identification purposes',
|
|
})
|
|
name;
|
|
|
|
@attr('string', {
|
|
description: 'Optional user-set description for identification purposes',
|
|
})
|
|
description;
|
|
|
|
@attr('date', {
|
|
description: 'The time this resource was created\nOutput only.',
|
|
readOnly: true,
|
|
})
|
|
created_time;
|
|
|
|
@attr('date', {
|
|
description: 'The time this resource was last updated\nOutput only.',
|
|
readOnly: true,
|
|
})
|
|
updated_time;
|
|
|
|
@attr('number', {
|
|
description: 'Current version number of this resource.',
|
|
})
|
|
version;
|
|
|
|
// =attributes (password)
|
|
@attr('string', {
|
|
for: 'password',
|
|
isNestedAttribute: true,
|
|
description: 'The account login name',
|
|
})
|
|
login_name;
|
|
|
|
// =attributes (OIDC)
|
|
@attr('string', { for: 'oidc', isNestedAttribute: true }) subject;
|
|
@attr('string', { for: 'oidc', isNestedAttribute: true }) issuer;
|
|
@attr('string', { for: 'oidc', isNestedAttribute: true, readOnly: true })
|
|
email;
|
|
@attr('string', { for: 'oidc', isNestedAttribute: true, readOnly: true })
|
|
full_name;
|
|
}
|