-
Notifications
You must be signed in to change notification settings - Fork 59
/
get.js
36 lines (28 loc) · 1.03 KB
/
get.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
const BoxCommand = require('../../../box-command');
class LegalHoldPoliciesGetVersionHoldCommand extends BoxCommand {
async run() {
const { flags, args } = this.parse(LegalHoldPoliciesGetVersionHoldCommand);
let options = {};
if (flags.fields) {
options.fields = flags.fields;
}
let fileVersionHold = await this.client.legalHoldPolicies.getFileVersionLegalHold(args.id, options);
await this.output(fileVersionHold);
}
}
LegalHoldPoliciesGetVersionHoldCommand.description = 'Get information about a file version legal hold';
LegalHoldPoliciesGetVersionHoldCommand.examples = ['box legal-hold-policies:file-version-holds:get 12345'];
LegalHoldPoliciesGetVersionHoldCommand._endpoint = 'get_file_version_legal_holds_id';
LegalHoldPoliciesGetVersionHoldCommand.flags = {
...BoxCommand.flags
};
LegalHoldPoliciesGetVersionHoldCommand.args = [
{
name: 'id',
required: true,
hidden: false,
description: 'ID of the file version legal hold to get',
}
];
module.exports = LegalHoldPoliciesGetVersionHoldCommand;