Skip to content

Commit d6bb5ba

Browse files
authored
Merge branch 'main' into rolyon-admin-units-dynamic-v10
2 parents f0e3cc9 + 7c1f906 commit d6bb5ba

File tree

83 files changed

+2746
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2746
-331
lines changed

.github/workflows/permissions-reference-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
git add .
7878
git commit -m "Correct errors in permissions reference"
7979
git checkout -b $branchName
80-
git push --set-upstream origin $branchName
80+
git push --set-upstream origin $branchName -f
8181
8282
gh pr create --base main --title $prTitle --body "Scheduled permissions reference update" --reviewer "FaithOmbongi,msewaweru" --label "ready for content review"
8383
}

api-reference/beta/api/backuprestoreroot-list-driveprotectionunits.md

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "List driveProtectionUnits"
3-
description: "Get a list of the drive protection units that are associated with a OneDrive for Business protection policy."
3+
description: "Get a list of the drive protection units that are associated with a OneDrive for work or school protection policy."
44
author: "tushar20"
55
ms.reviewer: "manikantsinghms"
66
ms.localizationpriority: medium
@@ -31,7 +31,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
3131
}
3232
-->
3333
``` http
34-
GET /solutions/backupRestore/driveProtectionUnits
34+
GET /solutions/backupRestore/protectionUnits/microsoft.graph.driveProtectionUnit
3535
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveProtectionUnits
3636
```
3737

@@ -60,50 +60,16 @@ The following example shows how to get a list of all the **driveProtectionUnits*
6060
#### Request
6161

6262
The following example shows a request.
63-
# [HTTP](#tab/http)
63+
6464
<!-- {
6565
"blockType": "request",
6666
"name": "list_all_driveprotectionunit"
6767
}
6868
-->
6969
``` http
70-
GET /solutions/backupRestore/driveProtectionUnits
70+
GET /solutions/backupRestore/protectionUnits/microsoft.graph.driveProtectionUnit
7171
```
7272

73-
# [C#](#tab/csharp)
74-
[!INCLUDE [sample-code](../includes/snippets/csharp/list-all-driveprotectionunit-csharp-snippets.md)]
75-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
76-
77-
# [CLI](#tab/cli)
78-
[!INCLUDE [sample-code](../includes/snippets/cli/list-all-driveprotectionunit-cli-snippets.md)]
79-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
80-
81-
# [Go](#tab/go)
82-
[!INCLUDE [sample-code](../includes/snippets/go/list-all-driveprotectionunit-go-snippets.md)]
83-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
84-
85-
# [Java](#tab/java)
86-
[!INCLUDE [sample-code](../includes/snippets/java/list-all-driveprotectionunit-java-snippets.md)]
87-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
88-
89-
# [JavaScript](#tab/javascript)
90-
[!INCLUDE [sample-code](../includes/snippets/javascript/list-all-driveprotectionunit-javascript-snippets.md)]
91-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
92-
93-
# [PHP](#tab/php)
94-
[!INCLUDE [sample-code](../includes/snippets/php/list-all-driveprotectionunit-php-snippets.md)]
95-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
96-
97-
# [PowerShell](#tab/powershell)
98-
[!INCLUDE [sample-code](../includes/snippets/powershell/list-all-driveprotectionunit-powershell-snippets.md)]
99-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
100-
101-
# [Python](#tab/python)
102-
[!INCLUDE [sample-code](../includes/snippets/python/list-all-driveprotectionunit-python-snippets.md)]
103-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
104-
105-
---
106-
10773
#### Response
10874

10975
The following example shows the response.
@@ -117,7 +83,7 @@ The following example shows the response.
11783
HTTP/1.1 200 OK
11884
11985
{
120-
"@odata.nextLink": "https://graph.microsoft.com/beta/solutions/backupRestore/driveProtectionUnits?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0MzczMDM0MzE2NTYzNjEzNzMwNjIzNjMzMzg2MjM0MzM2NDM0MzUzNDMzMzc0MDc0Njg3MjY1NjE2NDJlNzYzMjAxZThmYjY4M2Y3ODAxMDAwMDg4NjA5ODdhNzgwMTAwMDB8MTYxNjk2NDUwOTgzMg%3d%3d",
86+
"@odata.nextLink": "https://graph.microsoft.com/beta/solutions/backupRestore/protectionUnits/microsoft.graph.driveProtectionUnit?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0MzczMDM0MzE2NTYzNjEzNzMwNjIzNjMzMzg2MjM0MzM2NDM0MzUzNDMzMzc0MDc0Njg3MjY1NjE2NDJlNzYzMjAxZThmYjY4M2Y3ODAxMDAwMDg4NjA5ODdhNzgwMTAwMDB8MTYxNjk2NDUwOTgzMg%3d%3d",
12187
"value": [
12288
{
12389
"@odata.type": "#microsoft.graph.driveProtectionUnit",
@@ -291,7 +257,7 @@ HTTP/1.1 200 OK
291257
}
292258
```
293259

294-
### Example 2: List the driveProtectionUnits associated with a OneDrive for Business protection policy
260+
### Example 2: List the driveProtectionUnits associated with a OneDrive for work or school protection policy
295261

296262
The following example shows how to list all the **driveProtectionUnits** associated with a **oneDriveForBusinessProtectionPolicy**.
297263

api-reference/beta/api/backuprestoreroot-list-mailboxprotectionunits.md

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
3232
}
3333
-->
3434
``` http
35-
GET /solutions/backupRestore/mailboxProtectionUnits
35+
GET /solutions/backupRestore/protectionUnits/microsoft.graph.mailboxProtectionUnit
3636
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxProtectionUnits/
3737
```
3838

@@ -59,50 +59,16 @@ For a list of possible error responses, see [Backup Storage API error responses]
5959
#### Request
6060

6161
The following example shows a request.
62-
# [HTTP](#tab/http)
62+
6363
<!-- {
6464
"blockType": "request",
6565
"name": "list_all_mailboxprotectionunit"
6666
}
6767
-->
6868
``` http
69-
GET https://graph.microsoft.com/beta/solutions/backupRestore/mailboxProtectionUnits
69+
GET https://graph.microsoft.com/beta/solutions/backupRestore/protectionUnits/microsoft.graph.mailboxProtectionUnit
7070
```
7171

72-
# [C#](#tab/csharp)
73-
[!INCLUDE [sample-code](../includes/snippets/csharp/list-all-mailboxprotectionunit-csharp-snippets.md)]
74-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
75-
76-
# [CLI](#tab/cli)
77-
[!INCLUDE [sample-code](../includes/snippets/cli/list-all-mailboxprotectionunit-cli-snippets.md)]
78-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
79-
80-
# [Go](#tab/go)
81-
[!INCLUDE [sample-code](../includes/snippets/go/list-all-mailboxprotectionunit-go-snippets.md)]
82-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
83-
84-
# [Java](#tab/java)
85-
[!INCLUDE [sample-code](../includes/snippets/java/list-all-mailboxprotectionunit-java-snippets.md)]
86-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
87-
88-
# [JavaScript](#tab/javascript)
89-
[!INCLUDE [sample-code](../includes/snippets/javascript/list-all-mailboxprotectionunit-javascript-snippets.md)]
90-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
91-
92-
# [PHP](#tab/php)
93-
[!INCLUDE [sample-code](../includes/snippets/php/list-all-mailboxprotectionunit-php-snippets.md)]
94-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
95-
96-
# [PowerShell](#tab/powershell)
97-
[!INCLUDE [sample-code](../includes/snippets/powershell/list-all-mailboxprotectionunit-powershell-snippets.md)]
98-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
99-
100-
# [Python](#tab/python)
101-
[!INCLUDE [sample-code](../includes/snippets/python/list-all-mailboxprotectionunit-python-snippets.md)]
102-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
103-
104-
---
105-
10672
#### Response
10773

10874
The following example shows the response.
@@ -117,7 +83,7 @@ The following example shows the response.
11783
HTTP/1.1 200 OK
11884
11985
{
120-
"@odata.nextLink": "https://graph.microsoft.com/beta/solutions/backupRestore/mailboxProtectionUnits?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0MzczMDM0MzE2NTYzNjEzNzMwNjIzNjMzMzg2MjM0MzM2NDM0MzUzNDMzMzc0MDc0Njg3MjY1NjE2NDJlNzYzMjAxZThmYjY4M2Y3ODAxMDAwMDg4NjA5ODdhNzgwMTAwMDB8MTYxNjk2NDUwOTgzMg%3d%3d",
86+
"@odata.nextLink": "https://graph.microsoft.com/beta/solutions/backupRestore/protectionUnits/microsoft.graph.mailboxProtectionUnit?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0MzczMDM0MzE2NTYzNjEzNzMwNjIzNjMzMzg2MjM0MzM2NDM0MzUzNDMzMzc0MDc0Njg3MjY1NjE2NDJlNzYzMjAxZThmYjY4M2Y3ODAxMDAwMDg4NjA5ODdhNzgwMTAwMDB8MTYxNjk2NDUwOTgzMg%3d%3d",
12187
"value": [
12288
{
12389
"@odata.type": "#microsoft.graph.mailboxProtectionUnit",

api-reference/beta/api/backuprestoreroot-list-siteprotectionunits.md

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
3232
}
3333
-->
3434
``` http
35-
GET /solutions/backupRestore/siteProtectionUnits
35+
GET /solutions/backupRestore/protectionUnits/microsoft.graph.siteProtectionUnit
3636
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteProtectionUnits
3737
```
3838

@@ -61,50 +61,16 @@ The following example shows how to get a list of all the **siteProtectionUnits**
6161
#### Request
6262

6363
The following example shows a request.
64-
# [HTTP](#tab/http)
64+
6565
<!-- {
6666
"blockType": "request",
6767
"name": "list_all_siteprotectionunit"
6868
}
6969
-->
7070
``` http
71-
GET https://graph.microsoft.com/beta/solutions/backupRestore/siteProtectionUnits
71+
GET https://graph.microsoft.com/beta/solutions/backupRestore/protectionUnits/microsoft.graph.siteProtectionUnit
7272
```
7373

74-
# [C#](#tab/csharp)
75-
[!INCLUDE [sample-code](../includes/snippets/csharp/list-all-siteprotectionunit-csharp-snippets.md)]
76-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
77-
78-
# [CLI](#tab/cli)
79-
[!INCLUDE [sample-code](../includes/snippets/cli/list-all-siteprotectionunit-cli-snippets.md)]
80-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
81-
82-
# [Go](#tab/go)
83-
[!INCLUDE [sample-code](../includes/snippets/go/list-all-siteprotectionunit-go-snippets.md)]
84-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
85-
86-
# [Java](#tab/java)
87-
[!INCLUDE [sample-code](../includes/snippets/java/list-all-siteprotectionunit-java-snippets.md)]
88-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
89-
90-
# [JavaScript](#tab/javascript)
91-
[!INCLUDE [sample-code](../includes/snippets/javascript/list-all-siteprotectionunit-javascript-snippets.md)]
92-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
93-
94-
# [PHP](#tab/php)
95-
[!INCLUDE [sample-code](../includes/snippets/php/list-all-siteprotectionunit-php-snippets.md)]
96-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
97-
98-
# [PowerShell](#tab/powershell)
99-
[!INCLUDE [sample-code](../includes/snippets/powershell/list-all-siteprotectionunit-powershell-snippets.md)]
100-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
101-
102-
# [Python](#tab/python)
103-
[!INCLUDE [sample-code](../includes/snippets/python/list-all-siteprotectionunit-python-snippets.md)]
104-
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
105-
106-
---
107-
10874
#### Response
10975

11076
The following example shows the response.
@@ -118,7 +84,7 @@ The following example shows the response.
11884
HTTP/1.1 200 OK
11985
12086
{
121-
"@odata.nextLink": "https://graph.microsoft.com/beta/solutions/backupRestore/siteProtectionUnits?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0MzczMDM0MzE2NTYzNjEzNzMwNjIzNjMzMzg2MjM0MzM2NDM0MzUzNDMzMzc0MDc0Njg3MjY1NjE2NDJlNzYzMjAxZThmYjY4M2Y3ODAxMDAwMDg4NjA5ODdhNzgwMTAwMDB8MTYxNjk2NDUwOTgzMg%3d%3d",
87+
"@odata.nextLink": "https://graph.microsoft.com/beta/solutions/backupRestore/protectionUnits/microsoft.graph.siteProtectionUnit?$skiptoken=M2UyZDAwMDAwMDMxMzkzYTMyNjQ2MTM0NjMzMjM5NjYzNjY0MzczMDM0MzE2NTYzNjEzNzMwNjIzNjMzMzg2MjM0MzM2NDM0MzUzNDMzMzc0MDc0Njg3MjY1NjE2NDJlNzYzMjAxZThmYjY4M2Y3ODAxMDAwMDg4NjA5ODdhNzgwMTAwMDB8MTYxNjk2NDUwOTgzMg%3d%3d",
12288
"value": [
12389
{
12490
"@odata.type": "#microsoft.graph.siteProtectionUnit",

api-reference/beta/api/callrecords-callrecord-getpstncalls.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Namespace: microsoft.graph.callRecords
1313

1414
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
1515

16-
Get log of PSTN calls as a collection of [pstnCallLogRow](../resources/callrecords-pstncalllogrow.md) entries.
16+
Get a log of PSTN calls as a collection of [pstnCallLogRow](../resources/callrecords-pstncalllogrow.md) entries.
17+
18+
> [!NOTE]
19+
> This API doesn't return information for **Telstra** or **Softbank** calling plans.
1720
1821
[!INCLUDE [national-cloud-support](../../includes/global-us.md)]
1922

@@ -62,7 +65,7 @@ If there are more than 1,000 entries in the date range, the body also includes a
6265

6366
## Example
6467

65-
The following example shows how to get a collection of records for PSTN calls that occurred in the specified date range. The response includes `"@odata.count": 1000` to enumerate the number of records in this first response, and `@odata.nextLink` to get records beyond the first 1,000. For readability, the response shows only a collection of 1 record. Please assume there are more than 1,000 calls in that date range.
68+
The following example shows how to get a collection of records for PSTN calls that occurred in the specified date range. The response includes `"@odata.count": 1000` to enumerate the number of records in this first response, and `@odata.nextLink` to get records beyond the first 1,000. For readability, the response shows only a collection of one record. Assume there are more than 1,000 calls in that date range.
6669

6770
### Request
6871
The following example shows a request.
@@ -172,7 +175,7 @@ HTTP/1.1 200 OK
172175
- [Get aggregated report of the audio conferencing dial-out](callrecords-callrecord-getpstnonlinemeetingdialoutreport.md)
173176
- [Get log of users who are blocked from making PSTN calls](callrecords-callrecord-getpstnblockeduserslog.md)
174177
- [Get log of sent/received SMS](callrecords-callrecord-getsmslog.md)
175-
- [Get log of direct routing calls](callrecords-callrecord-getdirectroutingcalls.md)
178+
- [Get log of Direct Routing calls](callrecords-callrecord-getdirectroutingcalls.md)
176179
- [Microsoft Teams PSTN usage report](/microsoftteams/teams-analytics-and-reports/pstn-usage-report)
177180

178181
<!-- {

api-reference/beta/api/driveitem-discardcheckout.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ Don't supply a request body for this method.
6262

6363
If successful, this action returns a `204 No Content` response code.
6464

65+
### Error responses
66+
67+
The request returns `400 Bad Request` if the file isn't checked out. Requests made with delegated access return `423 Locked` if another user has the file checked out. Requests made with application access can discard any checkout.
68+
69+
For more information about how errors are returned, see [Error responses][error-response].
70+
6571
## Examples
6672

6773
### Request
@@ -121,4 +127,4 @@ The following example shows the response.
121127
HTTP/1.1 204 No content
122128
```
123129

124-
130+
[error-response]: /graph/errors

0 commit comments

Comments
 (0)