2024-03-15 14:24:20 -07:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2024-05-31 11:29:24 -07:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2024-03-15 14:24:20 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import BaseModel from '../../models/base';
|
|
|
|
|
import { attr } from '@ember-data/model';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alias contains all fields related to an Alias resource
|
|
|
|
|
*/
|
|
|
|
|
export default class GeneratedAliasModel extends BaseModel {
|
|
|
|
|
// =attributes
|
|
|
|
|
|
|
|
|
|
@attr('string', {
|
|
|
|
|
description: 'The type of the resource, to help differentiate schemas',
|
|
|
|
|
})
|
|
|
|
|
type;
|
|
|
|
|
|
|
|
|
|
@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;
|
|
|
|
|
|
2024-03-21 09:50:51 -07:00
|
|
|
@attr('string', {
|
|
|
|
|
description:
|
|
|
|
|
'This is the value referenced by the user that is resolved to the destination id.',
|
|
|
|
|
})
|
|
|
|
|
value;
|
|
|
|
|
|
2024-03-15 14:24:20 -07:00
|
|
|
@attr('string', {
|
|
|
|
|
description: 'This is the id of the resource that this Alias points to.',
|
|
|
|
|
})
|
|
|
|
|
destination_id;
|
|
|
|
|
|
|
|
|
|
@attr('object', {
|
|
|
|
|
isNestedAttribute: true,
|
|
|
|
|
description:
|
|
|
|
|
'This contains a host_id which is the id of the host that the session will be authorized for.',
|
|
|
|
|
})
|
|
|
|
|
authorize_session_arguments;
|
|
|
|
|
}
|