2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2020-08-21 11:48:24 -04:00
|
|
|
import BaseModel from '../../models/base';
|
|
|
|
|
import { attr } from '@ember-data/model';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Target
|
|
|
|
|
*/
|
|
|
|
|
export default class GeneratedTargetModel 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-21 11:48:24 -04:00
|
|
|
|
|
|
|
|
@attr('string', {
|
2020-09-16 14:29:02 -04:00
|
|
|
description: 'Optional name for identification purposes',
|
|
|
|
|
})
|
|
|
|
|
name;
|
2020-08-21 11:48:24 -04:00
|
|
|
|
|
|
|
|
@attr('string', {
|
2020-09-16 14:29:02 -04:00
|
|
|
description: 'Optional user-set description for identification purposes',
|
|
|
|
|
})
|
|
|
|
|
description;
|
2020-08-21 11:48:24 -04:00
|
|
|
|
2020-10-02 14:50:35 -04:00
|
|
|
@attr('number', {
|
|
|
|
|
description: '',
|
2021-03-04 15:47:38 -05:00
|
|
|
defaultValue: 28800,
|
2020-10-02 14:50:35 -04:00
|
|
|
})
|
|
|
|
|
session_max_seconds;
|
|
|
|
|
|
|
|
|
|
@attr('number', {
|
|
|
|
|
description: '',
|
|
|
|
|
})
|
|
|
|
|
session_connection_limit;
|
|
|
|
|
|
2022-04-12 16:16:51 -05:00
|
|
|
@attr('string', {
|
|
|
|
|
description:
|
|
|
|
|
'Optional boolean expression to filter the workers that are allowed to satisfy this request.',
|
|
|
|
|
})
|
|
|
|
|
worker_filter;
|
|
|
|
|
|
2023-01-10 15:28:20 -06:00
|
|
|
@attr('string', {
|
|
|
|
|
description:
|
|
|
|
|
'Optional boolean expressions to filter the egress workers that are allowed to satisfy this request.',
|
|
|
|
|
})
|
|
|
|
|
egress_worker_filter;
|
|
|
|
|
|
|
|
|
|
@attr('string', {
|
|
|
|
|
description:
|
|
|
|
|
'Optional boolean expressions to filter the ingress workers that are allowed to satisfy this request.',
|
|
|
|
|
})
|
|
|
|
|
ingress_worker_filter;
|
|
|
|
|
|
2020-08-21 11:48:24 -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-21 11:48:24 -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-21 11:48:24 -04:00
|
|
|
|
|
|
|
|
@attr('boolean', {
|
2020-09-16 14:29:02 -04:00
|
|
|
description: 'Whether the catalog is disabled',
|
|
|
|
|
})
|
|
|
|
|
disabled;
|
2020-08-21 11:48:24 -04:00
|
|
|
|
2020-08-21 15:13:55 -04:00
|
|
|
@attr('number', {
|
|
|
|
|
description: 'Current version number of this resource.',
|
|
|
|
|
})
|
|
|
|
|
version;
|
2023-01-09 12:35:42 -05:00
|
|
|
|
|
|
|
|
@attr('string', {
|
|
|
|
|
description:
|
|
|
|
|
'An IP address or DNS name for the session to connect to. Cannot be used in conjunction with host sources.',
|
|
|
|
|
})
|
|
|
|
|
address;
|
2023-03-22 10:52:33 -04:00
|
|
|
|
2023-05-31 20:13:56 -04:00
|
|
|
@attr('number', {
|
|
|
|
|
isNestedAttribute: true,
|
|
|
|
|
description: 'The default port a target should use if present.',
|
|
|
|
|
})
|
|
|
|
|
default_port;
|
|
|
|
|
|
|
|
|
|
@attr('number', {
|
|
|
|
|
isNestedAttribute: true,
|
|
|
|
|
description:
|
|
|
|
|
"The default port that will be listened on by the client's local proxy.",
|
|
|
|
|
})
|
|
|
|
|
default_client_port;
|
|
|
|
|
|
2023-03-22 10:52:33 -04:00
|
|
|
@attr('string', {
|
|
|
|
|
description: 'The storage bucket associated with this target.',
|
2023-05-22 17:28:48 -04:00
|
|
|
isNestedAttribute: true,
|
2023-03-22 10:52:33 -04:00
|
|
|
})
|
|
|
|
|
storage_bucket_id;
|
2023-05-22 17:28:48 -04:00
|
|
|
|
|
|
|
|
@attr('boolean', {
|
|
|
|
|
description: 'Whether session recording is enabled on the target.',
|
|
|
|
|
isNestedAttribute: true,
|
|
|
|
|
})
|
|
|
|
|
enable_session_recording;
|
2024-04-05 16:35:23 -07:00
|
|
|
|
|
|
|
|
@attr('array', {
|
|
|
|
|
description:
|
|
|
|
|
'with_aliases specify the aliases that should be created when the target is created. ',
|
|
|
|
|
})
|
|
|
|
|
with_aliases;
|
2024-04-11 14:18:38 -07:00
|
|
|
|
|
|
|
|
@attr('array', {
|
|
|
|
|
readOnly: true,
|
|
|
|
|
description:
|
|
|
|
|
'with_aliases specify the aliases that should be created when the target is created. ',
|
|
|
|
|
})
|
|
|
|
|
aliases;
|
2020-08-21 11:48:24 -04:00
|
|
|
}
|