Skip to content

Commit 8d12ad9

Browse files
authored
Merge pull request #28569 from microsoftgraph/main
merge to publish
2 parents b47c4c0 + 9e8b84f commit 8d12ad9

291 files changed

Lines changed: 5558 additions & 598 deletions

File tree

Some content is hidden

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

.gdn/.gdnbaselines

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@
3939
"tool": "psscriptanalyzer",
4040
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
4141
"createdDate": "2026-02-24 12:06:54Z"
42-
},
43-
"3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915": {
44-
"signature": "3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915",
45-
"alternativeSignatures": [],
46-
"target": "scripts/update-permissions-reference-fic.ps1",
47-
"line": 179,
48-
"memberOf": [
49-
"default"
50-
],
51-
"tool": "psscriptanalyzer",
52-
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
53-
"createdDate": "2026-03-24 12:06:54Z"
5442
}
5543
}
5644
}

.gdn/.gdnsuppress

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@
3939
"tool": "psscriptanalyzer",
4040
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
4141
"createdDate": "2026-02-24 12:06:54Z"
42-
},
43-
"3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915": {
44-
"signature": "3a37bf64f23749ac738b5da94bdc0511f105855aee640971733d155dad1f9915",
45-
"alternativeSignatures": [],
46-
"target": "scripts/update-permissions-reference-fic.ps1",
47-
"line": 179,
48-
"memberOf": [
49-
"default"
50-
],
51-
"tool": "psscriptanalyzer",
52-
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
53-
"createdDate": "2026-03-24 12:06:54Z"
5442
}
5543
}
5644
}

.github/prompts/author-api-docs/enumerations.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Document within the **Properties** section of the resource that uses the enum. T
8989
```
9090

9191
2. **Create table:**
92-
- Columns: **Member** and **Description**
92+
- Columns: **Member** (required) and **Description** (optional)
9393
- List members in ascending order by numeric value (without exposing numeric values)
9494
- **For evolvable enums:**
9595
- Include `unknownFutureValue` member
@@ -133,7 +133,7 @@ Create a dedicated topic for the enumeration. This option is rarely applicable.
133133
2. **Add Members H2 section:**
134134
- **For evolvable enums (if members follow unknownFutureValue):**
135135
- Add introductory text before the table (same as Option 2)
136-
- Table with columns: **Member** and **Description**
136+
- Table with columns: **Member** (required) and **Description** (optional)
137137
- List members in ascending order by numeric value (without exposing values)
138138
- **For evolvable enums:**
139139
- Include `unknownFutureValue` member
@@ -257,21 +257,23 @@ Create a dedicated topic for the enumeration. This option is rarely applicable.
257257
- [ ] For evolvable enums with members after unknownFutureValue: Prefer header note included in property description
258258
- [ ] **Option 2 (Parent resource):**
259259
- [ ] H3 section "{enum-type} values" added after Properties table
260-
- [ ] Table has Member and Description columns
260+
- [ ] Table has Member column (required) and Description column (optional)
261261
- [ ] Members listed in ascending order by numeric value (values not exposed)
262262
- [ ] For evolvable enums: unknownFutureValue description is "Evolvable enumeration sentinel value. Do not use."
263263
- [ ] For evolvable enums with members after unknownFutureValue: Introductory text about Prefer header included
264264
- [ ] Properties table links to H3 section
265+
- [ ] Parent resource property description excludes inline value listing (values are accessible via linked H3 section)
265266
- [ ] For subnamespaces: Fully qualified enum name used
266267
- [ ] **Option 3 (Separate topic):**
267268
- [ ] File created with correct naming convention
268269
- [ ] Title is "{enum-type} enum type"
269270
- [ ] Description mentions evolvable enumeration if applicable
270-
- [ ] Members H2 section with Member and Description columns
271+
- [ ] Members H2 section with Member column (required) and Description column (optional)
271272
- [ ] For evolvable enums: unknownFutureValue description is "Evolvable enumeration sentinel value. Don't use."
272273
- [ ] For evolvable enums with members after unknownFutureValue: Introductory text about Prefer header included
273274
- [ ] For subnamespaces: Namespace attribute added in page annotation
274275
- [ ] Parent resource Properties table links to enum topic
276+
- [ ] Parent resource property description excludes inline value listing (values are accessible via linked enum topic)
275277

276278
### For updating existing enumerations
277279

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

Lines changed: 0 additions & 90 deletions
This file was deleted.

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11+
id-token: write # Required for federated identity credentials
1112

1213
jobs:
1314
update-permissions-reference:
@@ -23,13 +24,19 @@ jobs:
2324
with:
2425
path: docs
2526

27+
- name: Azure Login using Federated Identity
28+
uses: azure/login@v2
29+
with:
30+
client-id: ${{ secrets.GRAPHPERMISSIONSREFERENCE_CLIENT_ID }}
31+
tenant-id: ${{ secrets.GRAPHPERMISSIONSREFERENCE_TENANT_ID }}
32+
allow-no-subscriptions: true
33+
2634
- name: Run PowerShell script to update permissions
2735
shell: pwsh
2836
run: |
2937
$ClientId = "${{ secrets.GRAPHPERMISSIONSREFERENCE_CLIENT_ID }}"
3038
$TenantId = "${{ secrets.GRAPHPERMISSIONSREFERENCE_TENANT_ID }}"
31-
$ClientSecret = "${{ secrets.GRAPHPERMISSIONSREFERENCE_CLIENT_SECRET }}"
32-
./docs/scripts/update-permissions-reference.ps1 -ClientId $ClientId -TenantId $TenantId -ClientSecret $ClientSecret
39+
./docs/scripts/update-permissions-reference.ps1 -ClientId $ClientId -TenantId $TenantId
3340
3441
- name: Get token
3542
id: get_token

api-reference/beta/api/cloudpcdeviceimage-retryupload.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ If successful, this method returns a `204 No Content` response code.
5454

5555
### Request
5656
The following example shows a request.
57+
# [HTTP](#tab/http)
5758
<!-- {
5859
"blockType": "request",
5960
"name": "retryupload_deviceimages_from_virtualendpoint"
@@ -64,6 +65,12 @@ The following example shows a request.
6465
POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/deviceImages/594e2046-2a4f-43d3-829c-be36bb984f11/retryUpload
6566
```
6667

68+
# [JavaScript](#tab/javascript)
69+
[!INCLUDE [sample-code](../includes/snippets/javascript/retryupload-deviceimages-from-virtualendpoint-javascript-snippets.md)]
70+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
71+
72+
---
73+
6774
### Response
6875
The following example shows the response.
6976
<!-- {

api-reference/beta/api/crosstenantaccesspolicyconfigurationdefault-update.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ The following example shows how to configure the default cross-tenant access pol
293293

294294
#### Request
295295
The following example shows a request.
296+
# [HTTP](#tab/http)
296297
<!-- {
297298
"blockType": "request",
298299
"name": "update_crosstenantaccesspolicyconfigurationdefault_m365collab"
@@ -318,6 +319,36 @@ Content-Type: application/json
318319
}
319320
```
320321

322+
# [C#](#tab/csharp)
323+
[!INCLUDE [sample-code](../includes/snippets/csharp/update-crosstenantaccesspolicyconfigurationdefault-m365collab-csharp-snippets.md)]
324+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
325+
326+
# [Go](#tab/go)
327+
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
328+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
329+
330+
# [Java](#tab/java)
331+
[!INCLUDE [sample-code](../includes/snippets/java/update-crosstenantaccesspolicyconfigurationdefault-m365collab-java-snippets.md)]
332+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
333+
334+
# [JavaScript](#tab/javascript)
335+
[!INCLUDE [sample-code](../includes/snippets/javascript/update-crosstenantaccesspolicyconfigurationdefault-m365collab-javascript-snippets.md)]
336+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
337+
338+
# [PHP](#tab/php)
339+
[!INCLUDE [sample-code](../includes/snippets/php/update-crosstenantaccesspolicyconfigurationdefault-m365collab-php-snippets.md)]
340+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
341+
342+
# [PowerShell](#tab/powershell)
343+
[!INCLUDE [sample-code](../includes/snippets/powershell/update-crosstenantaccesspolicyconfigurationdefault-m365collab-powershell-snippets.md)]
344+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
345+
346+
# [Python](#tab/python)
347+
[!INCLUDE [sample-code](../includes/snippets/python/update-crosstenantaccesspolicyconfigurationdefault-m365collab-python-snippets.md)]
348+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
349+
350+
---
351+
321352
#### Response
322353
The following example shows the response.
323354
<!-- {

api-reference/beta/api/crosstenantaccesspolicyconfigurationpartner-update.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ The following example shows how to configure the partner-specific cross-tenant a
305305

306306
The following example shows a request.
307307

308+
# [HTTP](#tab/http)
308309
<!-- {
309310
"blockType": "request",
310311
"name": "update_crosstenantaccesspolicyconfigurationpartner_m365collab"
@@ -330,6 +331,36 @@ Content-Type: application/json
330331
}
331332
```
332333

334+
# [C#](#tab/csharp)
335+
[!INCLUDE [sample-code](../includes/snippets/csharp/update-crosstenantaccesspolicyconfigurationpartner-m365collab-csharp-snippets.md)]
336+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
337+
338+
# [Go](#tab/go)
339+
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
340+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
341+
342+
# [Java](#tab/java)
343+
[!INCLUDE [sample-code](../includes/snippets/java/update-crosstenantaccesspolicyconfigurationpartner-m365collab-java-snippets.md)]
344+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
345+
346+
# [JavaScript](#tab/javascript)
347+
[!INCLUDE [sample-code](../includes/snippets/javascript/update-crosstenantaccesspolicyconfigurationpartner-m365collab-javascript-snippets.md)]
348+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
349+
350+
# [PHP](#tab/php)
351+
[!INCLUDE [sample-code](../includes/snippets/php/update-crosstenantaccesspolicyconfigurationpartner-m365collab-php-snippets.md)]
352+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
353+
354+
# [PowerShell](#tab/powershell)
355+
[!INCLUDE [sample-code](../includes/snippets/powershell/update-crosstenantaccesspolicyconfigurationpartner-m365collab-powershell-snippets.md)]
356+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
357+
358+
# [Python](#tab/python)
359+
[!INCLUDE [sample-code](../includes/snippets/python/update-crosstenantaccesspolicyconfigurationpartner-m365collab-python-snippets.md)]
360+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
361+
362+
---
363+
333364
#### Response
334365

335366
The following example shows the response.

api-reference/beta/api/entitlementmanagement-list-externaloriginresourceconnectors.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ Get a list of [externalOriginResourceConnector](../resources/externaloriginresou
2020

2121
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference).
2222

23-
<!-- {
24-
"blockType": "permissions",
25-
"name": "entitlementmanagement-list-externaloriginresourceconnectors-permissions"
26-
}
27-
-->
23+
<!-- { "blockType": "permissions", "name": "entitlementmanagement_list_externaloriginresourceconnectors" } -->
2824
[!INCLUDE [permissions-table](../includes/permissions/entitlementmanagement-list-externaloriginresourceconnectors-permissions.md)]
2925

3026
## HTTP request
@@ -60,6 +56,7 @@ If successful, this method returns a `200 OK` response code and a collection of
6056
### Request
6157

6258
The following example shows a request.
59+
# [HTTP](#tab/http)
6360
<!-- {
6461
"blockType": "request",
6562
"name": "list_externaloriginresourceconnector"
@@ -69,6 +66,36 @@ The following example shows a request.
6966
GET https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/externalOriginResourceConnectors
7067
```
7168

69+
# [C#](#tab/csharp)
70+
[!INCLUDE [sample-code](../includes/snippets/csharp/list-externaloriginresourceconnector-csharp-snippets.md)]
71+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
72+
73+
# [Go](#tab/go)
74+
[!INCLUDE [sample-code](../includes/snippets/go/list-externaloriginresourceconnector-go-snippets.md)]
75+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
76+
77+
# [Java](#tab/java)
78+
[!INCLUDE [sample-code](../includes/snippets/java/list-externaloriginresourceconnector-java-snippets.md)]
79+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
80+
81+
# [JavaScript](#tab/javascript)
82+
[!INCLUDE [sample-code](../includes/snippets/javascript/list-externaloriginresourceconnector-javascript-snippets.md)]
83+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
84+
85+
# [PHP](#tab/php)
86+
[!INCLUDE [sample-code](../includes/snippets/php/list-externaloriginresourceconnector-php-snippets.md)]
87+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
88+
89+
# [PowerShell](#tab/powershell)
90+
[!INCLUDE [sample-code](../includes/snippets/powershell/list-externaloriginresourceconnector-powershell-snippets.md)]
91+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
92+
93+
# [Python](#tab/python)
94+
[!INCLUDE [sample-code](../includes/snippets/python/list-externaloriginresourceconnector-python-snippets.md)]
95+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
96+
97+
---
98+
7299

73100
### Response
74101

0 commit comments

Comments
 (0)