@pnp/cli-microsoft365 6.2.0-beta.edaa477 → 6.3.0-beta.1140b31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth.js +0 -18
- package/dist/m365/context/commands/option/option-remove.js +105 -0
- package/dist/m365/context/commands/option/option-set.js +84 -0
- package/dist/m365/context/commands.js +2 -0
- package/dist/m365/file/commands/convert/convert-pdf.js +7 -6
- package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -16
- package/dist/m365/onenote/commands/page/page-list.js +2 -16
- package/dist/m365/outlook/commands/mail/mail-send.js +3 -2
- package/dist/m365/outlook/commands/message/message-get.js +4 -3
- package/dist/m365/planner/commands/bucket/bucket-add.js +0 -6
- package/dist/m365/planner/commands/bucket/bucket-get.js +0 -6
- package/dist/m365/planner/commands/bucket/bucket-list.js +0 -6
- package/dist/m365/planner/commands/bucket/bucket-remove.js +0 -6
- package/dist/m365/planner/commands/bucket/bucket-set.js +0 -6
- package/dist/m365/planner/commands/plan/plan-add.js +0 -6
- package/dist/m365/planner/commands/plan/plan-get.js +0 -6
- package/dist/m365/planner/commands/plan/plan-list.js +0 -6
- package/dist/m365/planner/commands/plan/plan-remove.js +0 -6
- package/dist/m365/planner/commands/plan/plan-set.js +0 -6
- package/dist/m365/planner/commands/task/task-add.js +0 -6
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +0 -6
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +0 -6
- package/dist/m365/planner/commands/task/task-get.js +0 -6
- package/dist/m365/planner/commands/task/task-list.js +0 -6
- package/dist/m365/planner/commands/task/task-reference-list.js +0 -6
- package/dist/m365/planner/commands/task/task-set.js +0 -6
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-get.js +110 -0
- package/dist/m365/pp/commands/aibuildermodel/aibuildermodel-remove.js +130 -0
- package/dist/m365/pp/commands/solution/solution-publish.js +156 -0
- package/dist/m365/pp/commands.js +3 -0
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +121 -0
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +141 -0
- package/dist/m365/spo/commands/file/file-sharinglink-add.js +141 -0
- package/dist/m365/spo/commands/file/file-sharinglink-list.js +2 -2
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +138 -0
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +157 -0
- package/dist/m365/spo/commands/list/list-add.js +3 -0
- package/dist/m365/spo/commands/list/list-retentionlabel-remove.js +146 -0
- package/dist/m365/spo/commands/list/list-set.js +3 -0
- package/dist/m365/spo/commands/listitem/listitem-list.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-retentionlabel-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-add.js +2 -14
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -14
- package/dist/m365/spo/commands/site/site-apppermission-list.js +2 -14
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +2 -14
- package/dist/m365/spo/commands/site/site-apppermission-set.js +2 -14
- package/dist/m365/spo/commands.js +6 -0
- package/dist/m365/teams/commands/chat/chat-list.js +4 -4
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +5 -5
- package/dist/m365/teams/commands/meeting/meeting-get.js +5 -5
- package/dist/m365/teams/commands/meeting/meeting-list.js +4 -3
- package/dist/m365/teams/commands/message/message-send.js +81 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/utils/accessToken.js +1 -1
- package/dist/utils/formatting.js +22 -0
- package/dist/utils/spo.js +27 -0
- package/docs/docs/cmd/aad/app/app-remove.md +11 -7
- package/docs/docs/cmd/context/option/option-remove.md +37 -0
- package/docs/docs/cmd/context/option/option-set.md +31 -0
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.md +99 -0
- package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.md +53 -0
- package/docs/docs/cmd/pp/solution/solution-publish.md +52 -0
- package/docs/docs/cmd/spo/cdn/cdn-get.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +1 -1
- package/docs/docs/cmd/spo/cdn/cdn-set.md +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.md +47 -0
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.md +43 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-add.md +89 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-list.md +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.md +47 -0
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.md +43 -0
- package/docs/docs/cmd/spo/list/list-add.md +3 -9
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.md +52 -0
- package/docs/docs/cmd/spo/list/list-set.md +3 -3
- package/docs/docs/cmd/spo/listitem/listitem-get.md +11 -12
- package/docs/docs/cmd/spo/listitem/listitem-list.md +5 -5
- package/docs/docs/cmd/teams/message/message-send.md +119 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -53,23 +53,23 @@ class TeamsMeetingGetCommand extends GraphCommand_1.default {
|
|
|
53
53
|
}
|
|
54
54
|
commandAction(logger, args) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
56
|
+
const isAppOnlyAccessToken = accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken);
|
|
57
|
+
if (isAppOnlyAccessToken) {
|
|
58
58
|
if (!args.options.userId && !args.options.userName && !args.options.email) {
|
|
59
59
|
this.handleError(`The option 'userId', 'userName' or 'email' is required when retrieving meetings using app only permissions`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
63
|
-
if (!
|
|
63
|
+
if (!isAppOnlyAccessToken && (args.options.userId || args.options.userName || args.options.email)) {
|
|
64
64
|
this.handleError(`The options 'userId', 'userName' and 'email' cannot be used when retrieving meetings using delegated permissions`);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
if (this.verbose) {
|
|
68
|
-
logger.logToStderr(`Retrieving meeting for ${
|
|
68
|
+
logger.logToStderr(`Retrieving meeting for ${isAppOnlyAccessToken ? 'specific user' : 'currently logged in user'}`);
|
|
69
69
|
}
|
|
70
70
|
try {
|
|
71
71
|
let requestUrl = `${this.resource}/v1.0/`;
|
|
72
|
-
if (
|
|
72
|
+
if (isAppOnlyAccessToken) {
|
|
73
73
|
requestUrl += 'users/';
|
|
74
74
|
if (args.options.userId) {
|
|
75
75
|
requestUrl += args.options.userId;
|
|
@@ -22,6 +22,7 @@ const commands_1 = require("../../commands");
|
|
|
22
22
|
const odata_1 = require("../../../../utils/odata");
|
|
23
23
|
const validation_1 = require("../../../../utils/validation");
|
|
24
24
|
const AadUserGetCommand = require("../../../aad/commands/user/user-get");
|
|
25
|
+
const accessToken_1 = require("../../../../utils/accessToken");
|
|
25
26
|
class TeamsMeetingListCommand extends GraphCommand_1.default {
|
|
26
27
|
get name() {
|
|
27
28
|
return commands_1.default.MEETING_LIST;
|
|
@@ -42,12 +43,12 @@ class TeamsMeetingListCommand extends GraphCommand_1.default {
|
|
|
42
43
|
commandAction(logger, args) {
|
|
43
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
45
|
try {
|
|
45
|
-
const
|
|
46
|
+
const isAppOnlyAccessToken = accessToken_1.accessToken.isAppOnlyAccessToken(Auth_1.default.service.accessTokens[this.resource].accessToken);
|
|
46
47
|
if (this.verbose) {
|
|
47
|
-
logger.logToStderr(`Retrieving meetings for ${
|
|
48
|
+
logger.logToStderr(`Retrieving meetings for ${isAppOnlyAccessToken ? 'specific user' : 'currently logged in user'}`);
|
|
48
49
|
}
|
|
49
50
|
let requestUrl = `${this.resource}/v1.0/`;
|
|
50
|
-
if (
|
|
51
|
+
if (isAppOnlyAccessToken) {
|
|
51
52
|
if (!args.options.userId && !args.options.userName && !args.options.email) {
|
|
52
53
|
throw `The option 'userId', 'userName' or 'email' is required when retrieving meetings using app only permissions`;
|
|
53
54
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _TeamsMessageSendCommand_instances, _TeamsMessageSendCommand_initOptions, _TeamsMessageSendCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const request_1 = require("../../../../request");
|
|
19
|
+
const validation_1 = require("../../../../utils/validation");
|
|
20
|
+
const GraphCommand_1 = require("../../../base/GraphCommand");
|
|
21
|
+
const commands_1 = require("../../commands");
|
|
22
|
+
class TeamsMessageSendCommand extends GraphCommand_1.default {
|
|
23
|
+
get name() {
|
|
24
|
+
return commands_1.default.MESSAGE_SEND;
|
|
25
|
+
}
|
|
26
|
+
get description() {
|
|
27
|
+
return 'Sends a message to a channel in a Microsoft Teams team';
|
|
28
|
+
}
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
_TeamsMessageSendCommand_instances.add(this);
|
|
32
|
+
__classPrivateFieldGet(this, _TeamsMessageSendCommand_instances, "m", _TeamsMessageSendCommand_initOptions).call(this);
|
|
33
|
+
__classPrivateFieldGet(this, _TeamsMessageSendCommand_instances, "m", _TeamsMessageSendCommand_initValidators).call(this);
|
|
34
|
+
}
|
|
35
|
+
commandAction(logger, args) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
try {
|
|
38
|
+
const requestOptions = {
|
|
39
|
+
url: `${this.resource}/v1.0/teams/${args.options.teamId}/channels/${args.options.channelId}/messages`,
|
|
40
|
+
headers: {
|
|
41
|
+
accept: 'application/json;odata.metadata=none',
|
|
42
|
+
'content-type': 'application/json'
|
|
43
|
+
},
|
|
44
|
+
responseType: 'json',
|
|
45
|
+
data: {
|
|
46
|
+
body: {
|
|
47
|
+
contentType: 'html',
|
|
48
|
+
content: args.options.message
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const response = yield request_1.default.post(requestOptions);
|
|
53
|
+
logger.log(response);
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
this.handleRejectedODataJsonPromise(err);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
_TeamsMessageSendCommand_instances = new WeakSet(), _TeamsMessageSendCommand_initOptions = function _TeamsMessageSendCommand_initOptions() {
|
|
62
|
+
this.options.unshift({
|
|
63
|
+
option: '-i, --teamId <teamId>'
|
|
64
|
+
}, {
|
|
65
|
+
option: '-c, --channelId <channelId>'
|
|
66
|
+
}, {
|
|
67
|
+
option: '-m, --message <message>'
|
|
68
|
+
});
|
|
69
|
+
}, _TeamsMessageSendCommand_initValidators = function _TeamsMessageSendCommand_initValidators() {
|
|
70
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (!validation_1.validation.isValidGuid(args.options.teamId)) {
|
|
72
|
+
return `${args.options.teamId} is not a valid GUID`;
|
|
73
|
+
}
|
|
74
|
+
if (!validation_1.validation.isValidTeamsChannelId(args.options.channelId)) {
|
|
75
|
+
return `${args.options.channelId} is not a valid Teams ChannelId`;
|
|
76
|
+
}
|
|
77
|
+
return true;
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
80
|
+
module.exports = new TeamsMessageSendCommand();
|
|
81
|
+
//# sourceMappingURL=message-send.js.map
|
|
@@ -35,6 +35,7 @@ exports.default = {
|
|
|
35
35
|
MESSAGE_GET: `${prefix} message get`,
|
|
36
36
|
MESSAGE_LIST: `${prefix} message list`,
|
|
37
37
|
MESSAGE_REPLY_LIST: `${prefix} message reply list`,
|
|
38
|
+
MESSAGE_SEND: `${prefix} message send`,
|
|
38
39
|
MESSAGINGSETTINGS_LIST: `${prefix} messagingsettings list`,
|
|
39
40
|
MESSAGINGSETTINGS_SET: `${prefix} messagingsettings set`,
|
|
40
41
|
REPORT_DEVICEUSAGEDISTRIBUTIONUSERCOUNTS: `${prefix} report deviceusagedistributionusercounts`,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.accessToken = void 0;
|
|
4
4
|
exports.accessToken = {
|
|
5
5
|
isAppOnlyAccessToken(accessToken) {
|
|
6
|
-
let isAppOnlyAccessToken
|
|
6
|
+
let isAppOnlyAccessToken;
|
|
7
7
|
if (!accessToken || accessToken.length === 0) {
|
|
8
8
|
return isAppOnlyAccessToken;
|
|
9
9
|
}
|
package/dist/utils/formatting.js
CHANGED
|
@@ -110,6 +110,28 @@ exports.formatting = {
|
|
|
110
110
|
default:
|
|
111
111
|
return value;
|
|
112
112
|
}
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* Converts an object into an xml:
|
|
116
|
+
* @obj the actual objec
|
|
117
|
+
* @returns A string containing the xml
|
|
118
|
+
*/
|
|
119
|
+
objectToXml(obj) {
|
|
120
|
+
let xml = '';
|
|
121
|
+
for (const prop in obj) {
|
|
122
|
+
xml += "<" + prop + ">";
|
|
123
|
+
if (obj[prop] instanceof Array) {
|
|
124
|
+
for (const array in obj[prop]) {
|
|
125
|
+
xml += this.objectToXml(new Object(obj[prop][array]));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
xml += obj[prop];
|
|
130
|
+
}
|
|
131
|
+
xml += "</" + prop + ">";
|
|
132
|
+
}
|
|
133
|
+
xml = xml.replace(/<\/?[0-9]{1,}>/g, '');
|
|
134
|
+
return xml;
|
|
113
135
|
}
|
|
114
136
|
};
|
|
115
137
|
//# sourceMappingURL=formatting.js.map
|
package/dist/utils/spo.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.spo = void 0;
|
|
4
13
|
const url = require("url");
|
|
@@ -237,6 +246,24 @@ exports.spo = {
|
|
|
237
246
|
});
|
|
238
247
|
});
|
|
239
248
|
},
|
|
249
|
+
/**
|
|
250
|
+
* Returns the Graph id of a site
|
|
251
|
+
* @param webUrl web url e.g. https://contoso.sharepoint.com/sites/site1
|
|
252
|
+
*/
|
|
253
|
+
getSpoGraphSiteId(webUrl) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
const url = new URL(webUrl);
|
|
256
|
+
const requestOptions = {
|
|
257
|
+
url: `https://graph.microsoft.com/v1.0/sites/${url.hostname}:${url.pathname}?$select=id`,
|
|
258
|
+
headers: {
|
|
259
|
+
'accept': 'application/json;odata.metadata=none'
|
|
260
|
+
},
|
|
261
|
+
responseType: 'json'
|
|
262
|
+
};
|
|
263
|
+
const result = yield request_1.default.get(requestOptions);
|
|
264
|
+
return result.id;
|
|
265
|
+
});
|
|
266
|
+
},
|
|
240
267
|
/**
|
|
241
268
|
* Ensures the folder path exists
|
|
242
269
|
* @param webFullUrl web full url e.g. https://contoso.sharepoint.com/sites/site1
|
|
@@ -11,16 +11,16 @@ m365 aad app remove [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`--appId [appId]`
|
|
14
|
-
: Application (client) ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name`
|
|
14
|
+
: Application (client) ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
15
15
|
|
|
16
16
|
`--objectId [objectId]`
|
|
17
|
-
: Object ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name`
|
|
17
|
+
: Object ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
18
18
|
|
|
19
19
|
`--name [name]`
|
|
20
|
-
: Name of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name`
|
|
20
|
+
: Name of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
21
21
|
|
|
22
|
-
`--confirm
|
|
23
|
-
: Don't prompt for confirmation to remove the app
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation to remove the app.
|
|
24
24
|
|
|
25
25
|
--8<-- "docs/cmd/_global.md"
|
|
26
26
|
|
|
@@ -32,13 +32,13 @@ If the command finds multiple Azure AD application registrations with the specif
|
|
|
32
32
|
|
|
33
33
|
## Examples
|
|
34
34
|
|
|
35
|
-
Remove the Azure AD application registration by its app (client) ID
|
|
35
|
+
Remove the Azure AD application registration by its app (client) ID.
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 aad app remove --appId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Remove the Azure AD application registration by its object ID
|
|
41
|
+
Remove the Azure AD application registration by its object ID.
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
44
|
m365 aad app remove --objectId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
@@ -49,3 +49,7 @@ Remove the Azure AD application registration by its name. Will NOT prompt for co
|
|
|
49
49
|
```sh
|
|
50
50
|
m365 aad app remove --name "My app" --confirm
|
|
51
51
|
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# context option remove
|
|
2
|
+
|
|
3
|
+
Removes an already available name from local context file.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 context option remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-n, --name <name>`
|
|
14
|
+
: The name of the option which will be deleted from the context
|
|
15
|
+
|
|
16
|
+
`--confirm`
|
|
17
|
+
: Don't prompt for confirming removing the option
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
Removes an already available name from the local context file
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
m365 context option remove --name "listName"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Removes an already available name from the local context file without confirmation
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 context option remove --name "listName" --confirm
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Response
|
|
36
|
+
|
|
37
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# context option set
|
|
2
|
+
|
|
3
|
+
Allows to add a new name for the option and value to the local context file.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 context option set [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-n, --name <name>`
|
|
14
|
+
: The option name for which we will define the value
|
|
15
|
+
|
|
16
|
+
`-v, --value <value>`
|
|
17
|
+
: Default value for the option
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
Define a new default value for name listName in the context
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
m365 context option set --name 'listName' --value 'testList'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Response
|
|
30
|
+
|
|
31
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# pp aibuildermodel get
|
|
2
|
+
|
|
3
|
+
Gets a specific AI builder models in the specified Power Platform environment
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pp aibuildermodel get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environment <environment>`
|
|
14
|
+
: The name of the environment
|
|
15
|
+
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the AI Builder model. Specify either `id` or `name` but not both
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The name of the AI Builder model. Specify either `id` or `name` but not both
|
|
21
|
+
|
|
22
|
+
`--asAdmin`
|
|
23
|
+
: Run the command as admin for environments you do not have explicitly assigned permissions to
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Get an AI Builder model in a specific environment
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --name "Document Processing 11/29/2022, 12:58:43 PM"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Get an AI Builder models in a specific environment by id as admin
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 pp aibuildermodel get --environment "Default-d87a7535-dd31-4437-bfe1-95340acd55c5" --id "08ffffbe-ec1c-4e64-b64b-dd1db926c613" --asAdmin
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"statecode": 0,
|
|
48
|
+
"_msdyn_templateid_value": "10707e4e-1d56-e911-8194-000d3a6cd5a5",
|
|
49
|
+
"msdyn_modelcreationcontext": "{}",
|
|
50
|
+
"createdon": "2022-11-29T11:58:45Z",
|
|
51
|
+
"_ownerid_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
52
|
+
"modifiedon": "2022-11-29T11:58:45Z",
|
|
53
|
+
"msdyn_sharewithorganizationoncreate": false,
|
|
54
|
+
"msdyn_aimodelidunique": "b0328b67-47e2-4202-8189-e617ec9a88bd",
|
|
55
|
+
"solutionid": "fd140aae-4df4-11dd-bd17-0019b9312238",
|
|
56
|
+
"ismanaged": false,
|
|
57
|
+
"versionnumber": 1458121,
|
|
58
|
+
"msdyn_name": "Document Processing 11/29/2022, 12:58:43 PM",
|
|
59
|
+
"introducedversion": "1.0",
|
|
60
|
+
"statuscode": 0,
|
|
61
|
+
"_modifiedby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
62
|
+
"overwritetime": "1900-01-01T00:00:00Z",
|
|
63
|
+
"componentstate": 0,
|
|
64
|
+
"_createdby_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
65
|
+
"_owningbusinessunit_value": "6da087c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
66
|
+
"_owninguser_value": "5fa787c1-1c4d-ed11-bba1-000d3a2caf7f",
|
|
67
|
+
"msdyn_aimodelid": "08ffffbe-ec1c-4e64-b64b-dd1db926c613",
|
|
68
|
+
"_msdyn_activerunconfigurationid_value": null,
|
|
69
|
+
"overriddencreatedon": null,
|
|
70
|
+
"_msdyn_retrainworkflowid_value": null,
|
|
71
|
+
"importsequencenumber": null,
|
|
72
|
+
"_msdyn_scheduleinferenceworkflowid_value": null,
|
|
73
|
+
"_modifiedonbehalfby_value": null,
|
|
74
|
+
"utcconversiontimezonecode": null,
|
|
75
|
+
"_createdonbehalfby_value": null,
|
|
76
|
+
"_owningteam_value": null,
|
|
77
|
+
"timezoneruleversionnumber": null,
|
|
78
|
+
"iscustomizable": {
|
|
79
|
+
"Value": true,
|
|
80
|
+
"CanBeChanged": true,
|
|
81
|
+
"ManagedPropertyLogicalName": "iscustomizableanddeletable"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
=== "Text"
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
createdon modifiedon msdyn_aimodelid msdyn_name
|
|
90
|
+
-------------------- -------------------- ------------------------------------ -------------------------------------------
|
|
91
|
+
2022-10-25T14:44:48Z 2022-10-25T14:44:48Z 08ffffbe-ec1c-4e64-b64b-dd1db926c613 Document Processing 11/29/2022, 12:58:43 PM
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
=== "CSV"
|
|
95
|
+
|
|
96
|
+
```csv
|
|
97
|
+
msdyn_name,msdyn_aimodelid,createdon,modifiedon
|
|
98
|
+
"Document Processing 11/29/2022, 12:58:43 PM",08ffffbe-ec1c-4e64-b64b-dd1db926c613,2022-11-29T11:58:45Z,2022-11-29T11:58:45Z
|
|
99
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# pp aibuildermodel remove
|
|
2
|
+
|
|
3
|
+
Removes the specified Microsoft Power Platform aibuildermodel in the specified Power Platform environment
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp aibuildermodel remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environment <environment>`
|
|
14
|
+
: The name of the environment.
|
|
15
|
+
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the AI builder model. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The name of the AI builder model. Specify either `id` or `name` but not both.
|
|
21
|
+
|
|
22
|
+
`--asAdmin`
|
|
23
|
+
: Run the command as admin for environments you do not have explicitly assigned permissions to.
|
|
24
|
+
|
|
25
|
+
`--confirm`
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Removes the AI builder model owned by the currently signed-in user based on the name parameter
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Removes the AI builder model owned by the currently signed-in user based on the name parameter without confirmation
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "AI Builder Model Name" --confirm
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Removes the AI builder model owned by another user based on the id parameter
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 pp aibuildermodel remove --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 9d9a13d0-6255-ed11-bba2-000d3adf774e --asAdmin
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Response
|
|
52
|
+
|
|
53
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# pp solution publish
|
|
2
|
+
|
|
3
|
+
Publishes the components of a solution in a given Power Platform environment
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pp solution publish [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environment <environment>`
|
|
14
|
+
: The name of the environment.
|
|
15
|
+
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the solution. Specify either `id` or `name` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --name [name]`
|
|
20
|
+
: The unique name (not the display name) of the solution. Specify either `id` or `name` but not both.
|
|
21
|
+
|
|
22
|
+
`--asAdmin`
|
|
23
|
+
: Run the command as admin for environments you do not have explicitly assigned permissions to.
|
|
24
|
+
|
|
25
|
+
`--wait`
|
|
26
|
+
: Wait for the job to complete
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Publishes the components of a specified solution with a specific name, owned by the currently signed-in user
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 pp solution publish --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "Solution Name"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Publishes the components of a specified solution owned by the currently signed-in user based on the id parameter and waits for completion
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 pp solution publish --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id 00000001-0000-0000-0001-00000000009b --wait
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Publishes the components of a specified solution owned by another user based on the name parameter
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 pp solution publish --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name "Solution Name" --asAdmin
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
The command won't return a response on success.
|
|
@@ -38,4 +38,4 @@ m365 spo cdn get --type Private
|
|
|
38
38
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
|
-
-
|
|
41
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -35,4 +35,4 @@ m365 spo cdn origin add --type Public --origin */CDN
|
|
|
35
35
|
|
|
36
36
|
## More information
|
|
37
37
|
|
|
38
|
-
-
|
|
38
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -38,4 +38,4 @@ m365 spo cdn origin list --type Private
|
|
|
38
38
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
|
-
-
|
|
41
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -38,4 +38,4 @@ m365 spo cdn origin remove --type Public --origin */CDN
|
|
|
38
38
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
|
-
-
|
|
41
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -38,4 +38,4 @@ m365 spo cdn policy list --cdnType Private
|
|
|
38
38
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
|
-
-
|
|
41
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -38,4 +38,4 @@ m365 spo cdn policy set --cdnType Public --policy IncludeFileExtensions --value
|
|
|
38
38
|
|
|
39
39
|
## More information
|
|
40
40
|
|
|
41
|
-
-
|
|
41
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -66,4 +66,4 @@ m365 spo cdn set --type Both --enabled true --noDefaultOrigins
|
|
|
66
66
|
|
|
67
67
|
## More information
|
|
68
68
|
|
|
69
|
-
-
|
|
69
|
+
- Use Microsoft 365 CDN with SharePoint Online: [https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide](https://learn.microsoft.com/microsoft-365/enterprise/use-microsoft-365-cdn-with-spo?view=o365-worldwide)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# spo file retentionlabel ensure
|
|
2
|
+
|
|
3
|
+
Apply a retention label to a file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file retentionlabel ensure [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the retentionlabel from a file to apply is located
|
|
15
|
+
|
|
16
|
+
`--fileUrl [fileUrl]`
|
|
17
|
+
: The site- or server relative URL of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
|
|
18
|
+
|
|
19
|
+
`i, --fileId [fileId]`
|
|
20
|
+
: The UniqueId (GUID) of the file that should be labelled. Specify either `fileUrl` or `fileId` but not both.
|
|
21
|
+
|
|
22
|
+
`--name <name>`
|
|
23
|
+
: Name of the retention label to apply to the file.
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo//listitem/listitem-retentionlabel-remove.md) for removing the retentionlabel from a listitem.
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Applies a retention label to a file based on the label name and the fileUrl
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 spo file retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl '/Shared Documents/Document.docx' --name 'Some label'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Applies a retention label to a file based on the label name and the fileId
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spo file retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --fileId '26541f96-017c-4189-a604-599e083533b8' --name 'Some label'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Response
|
|
46
|
+
|
|
47
|
+
The command won't return a response on success.
|