2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2020-08-19 18:38:18 -04:00
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
|
|
|
|
|
export default ApplicationSerializer.extend({
|
2021-03-04 15:47:38 -05:00
|
|
|
modelName: 'host',
|
2023-11-02 16:08:25 -07:00
|
|
|
|
|
|
|
|
_hashForModel(model) {
|
|
|
|
|
const json = ApplicationSerializer.prototype._hashForModel.apply(
|
|
|
|
|
this,
|
2023-11-22 14:07:41 -05:00
|
|
|
arguments,
|
2023-11-02 16:08:25 -07:00
|
|
|
);
|
|
|
|
|
json.host_catalog_id = model.hostCatalogId;
|
|
|
|
|
return json;
|
|
|
|
|
},
|
2020-08-19 18:38:18 -04:00
|
|
|
});
|