UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

25 lines 841 B
import { odata } from '../../../../utils/odata.js'; import GraphCommand from '../../../base/GraphCommand.js'; import commands from '../../commands.js'; class PurviewRetentionLabelListCommand extends GraphCommand { get name() { return commands.RETENTIONLABEL_LIST; } get description() { return 'Get a list of retention labels'; } defaultProperties() { return ['id', 'displayName', 'isInUse']; } async commandAction(logger) { try { const items = await odata.getAllItems(`${this.resource}/beta/security/labels/retentionLabels`); await logger.log(items); } catch (err) { this.handleRejectedODataJsonPromise(err); } } } export default new PurviewRetentionLabelListCommand(); //# sourceMappingURL=retentionlabel-list.js.map