Skip to content

Commit 9eeab65

Browse files
authored
Merge pull request #26133 from microsoftgraph/snippet-generation/177565
Snippets Update
2 parents 195a0a1 + 56f10f2 commit 9eeab65

File tree

173 files changed

+1331
-405
lines changed

Some content is hidden

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

173 files changed

+1331
-405
lines changed

api-reference/beta/api/filestoragecontainer-restore.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ If successful, this action returns a `200 OK` response code and a [fileStorageCo
5959

6060
The following example shows a request.
6161

62+
# [HTTP](#tab/http)
6263
<!-- {
6364
"blockType": "request",
6465
"name": "filestoragecontainerthis.restore"
@@ -68,6 +69,36 @@ The following example shows a request.
6869
POST https://graph.microsoft.com/beta/storage/fileStorage/deletedContainers/b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z/restore
6970
```
7071

72+
# [C#](#tab/csharp)
73+
[!INCLUDE [sample-code](../includes/snippets/csharp/filestoragecontainerthisrestore-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/filestoragecontainerthisrestore-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/filestoragecontainerthisrestore-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/filestoragecontainerthisrestore-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/filestoragecontainerthisrestore-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/filestoragecontainerthisrestore-php-snippets.md)]
94+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
95+
96+
# [Python](#tab/python)
97+
[!INCLUDE [sample-code](../includes/snippets/python/filestoragecontainerthisrestore-python-snippets.md)]
98+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
99+
100+
---
101+
71102

72103
### Response
73104

api-reference/beta/api/onotpsendcustomextension-get.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ GET https://graph.microsoft.com/beta/identity/authenticationEventListeners/{list
7474

7575
---
7676

77-
7877
### Response
7978

8079
The following example shows the response.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Content-Type: application/json
103103

104104
---
105105

106-
107106
### Response
108107

109108
The following example shows the response.

api-reference/beta/api/site-archive.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ If successful, this method returns a `204 No Content` response code. It doesn't
6262

6363
The following example shows how to archive a site.
6464

65+
# [HTTP](#tab/http)
6566
<!-- {
6667
"blockType": "request",
6768
"name": "archive_site",
@@ -72,6 +73,12 @@ The following example shows how to archive a site.
7273
POST https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740/archive
7374
```
7475

76+
# [JavaScript](#tab/javascript)
77+
[!INCLUDE [sample-code](../includes/snippets/javascript/archive-site-javascript-snippets.md)]
78+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
79+
80+
---
81+
7582
### Response
7683

7784
The following example shows the response.

api-reference/beta/api/site-unarchive.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ If successful, this method returns a `202 Accepted` response code. The response
6363

6464
The following example shows how to unarchive a site.
6565

66+
# [HTTP](#tab/http)
6667
<!-- {
6768
"blockType": "request",
6869
"name": "unarchive_site",
@@ -73,6 +74,12 @@ The following example shows how to unarchive a site.
7374
POST https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740/unarchive
7475
```
7576

77+
# [JavaScript](#tab/javascript)
78+
[!INCLUDE [sample-code](../includes/snippets/javascript/unarchive-site-javascript-snippets.md)]
79+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
80+
81+
---
82+
7683
### Response
7784

7885
The following example shows the response.

api-reference/beta/api/team-put-schedule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ PUT https://graph.microsoft.com/beta/teams/871dbd5c-3a6a-4392-bfe1-042452793a50/
204204
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
205205

206206
# [PowerShell](#tab/powershell)
207-
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
207+
[!INCLUDE [sample-code](../includes/snippets/powershell/team-put-schedule-2-powershell-snippets.md)]
208208
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
209209

210210
# [Python](#tab/python)

api-reference/beta/includes/snippets/cli/create-ediscoveryholdpolicy-from--cli-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: "Automatically generated file. DO NOT MODIFY"
88
mgc-beta security cases ediscovery-cases legal-holds create --ediscovery-case-id {ediscoveryCase-id} --body '{\
99
"displayName": "My legalHold with sources",\
1010
"description": "Created from Graph API",\
11-
"contentQuery": "KQL content query"\
11+
"contentQuery": "KQL content query",\
1212
}\
1313
'
1414

api-reference/beta/includes/snippets/cli/create-retentionlabel-from--cli-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Automatically generated file. DO NOT MODIFY"
55
```bash
66

77

8-
mgc security labels retention-labels create --body '{\
8+
mgc-beta security labels retention-labels create --body '{\
99
"@odata.type": "#microsoft.graph.security.retentionLabel",\
1010
"displayName": "Retention Schedule 10005",\
1111
"behaviorDuringRetentionPeriod": "retain",\

api-reference/beta/includes/snippets/cli/create-usersource-and-include-sources-cli-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
77

88
mgc-beta security cases ediscovery-cases legal-holds user-sources create --ediscovery-case-id {ediscoveryCase-id} --ediscovery-hold-policy-id {ediscoveryHoldPolicy-id} --body '{\
99
"email": "admin@contoso.com",\
10-
"includedSources": "mailbox, site"\
10+
"includedSources": "mailbox"\
1111
}\
1212
'
1313

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
description: "Automatically generated file. DO NOT MODIFY"
3+
---
4+
5+
```bash
6+
7+
8+
mgc-beta storage file-storage deleted-containers restore post --file-storage-container-id {fileStorageContainer-id}
9+
10+
```

0 commit comments

Comments
 (0)