2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2020-08-14 15:16:35 -04:00
|
|
|
import BaseModel from '../../models/base';
|
|
|
|
|
import { attr } from '@ember-data/model';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Host contains all fields related to a Host resource
|
|
|
|
|
*/
|
|
|
|
|
export default class GeneratedHostModel extends BaseModel {
|
|
|
|
|
// =attributes
|
|
|
|
|
|
|
|
|
|
@attr('string', {
|
2020-09-16 14:29:02 -04:00
|
|
|
description: 'The type of the resource, to help differentiate schemas',
|
|
|
|
|
})
|
|
|
|
|
type;
|
2020-08-14 15:16:35 -04:00
|
|
|
|
2020-09-10 17:59:31 -04:00
|
|
|
@attr('string', {
|
|
|
|
|
description: 'The owning host catalog ID.',
|
2020-09-16 14:29:02 -04:00
|
|
|
})
|
|
|
|
|
host_catalog_id;
|
2020-09-10 17:59:31 -04:00
|
|
|
|
2020-08-14 15:16:35 -04:00
|
|
|
@attr('string', {
|
2020-09-16 14:29:02 -04:00
|
|
|
description: 'Optional name for identification purposes',
|
|
|
|
|
})
|
|
|
|
|
name;
|
2020-08-14 15:16:35 -04:00
|
|
|
|
|
|
|
|
@attr('string', {
|
2020-09-16 14:29:02 -04:00
|
|
|
description: 'Optional user-set description for identification purposes',
|
|
|
|
|
})
|
|
|
|
|
description;
|
2020-08-14 15:16:35 -04:00
|
|
|
|
|
|
|
|
@attr('date', {
|
|
|
|
|
description: 'The time this resource was created\nOutput only.',
|
2020-09-16 14:29:02 -04:00
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
created_time;
|
2020-08-14 15:16:35 -04:00
|
|
|
|
|
|
|
|
@attr('date', {
|
|
|
|
|
description: 'The time this resource was last updated\nOutput only.',
|
2020-09-16 14:29:02 -04:00
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
updated_time;
|
2020-08-14 15:16:35 -04:00
|
|
|
|
|
|
|
|
@attr('number', {
|
|
|
|
|
description: 'Current version number of this resource.',
|
|
|
|
|
})
|
|
|
|
|
version;
|
2022-01-26 08:52:14 -08:00
|
|
|
|
|
|
|
|
@attr({
|
|
|
|
|
description: 'Plugin information for this resource.',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
plugin;
|
2023-11-02 16:08:25 -07:00
|
|
|
|
|
|
|
|
@attr({
|
|
|
|
|
emptyArrayIfMissing: true,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
})
|
|
|
|
|
host_set_ids;
|
2020-08-14 15:16:35 -04:00
|
|
|
}
|