fleet/ee/bulk-operations-dashboard/api/models/UndeployedProfile.js
Eric 7a8a4619fa
Bulk operations dashboard: Update profile support (#21518)
Changes:
- Added missing `.json` support for configuration profiles.
2024-08-22 21:25:30 -06:00

61 lines
1.6 KiB
JavaScript

/**
* UndeployedProfile.js
*
* @description :: A model definition represents a database table/collection.
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
*/
module.exports = {
attributes: {
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
name: {
type: 'string',
required: true,
description: 'The name of the configuration profile on the Fleet instance.',
},
platform: {
type: 'string',
description: 'The type of operating system this profile is for.',
required: true,
isIn: [
'darwin',
'windows'
]
},
profileType: {
type: 'string',
description: 'The file extension of the configuration profile.',
required: true,
isIn: [
'.mobileconfig',
'.xml',
'.json',
],
},
profileContents: {
type: 'string',
required: true,
description: 'The contents of the configuration profile.',
},
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
},
};