Skip to content

Commit

Permalink
Merge pull request #25784 from microsoftgraph/snippet-generation/172206
Browse files Browse the repository at this point in the history
Snippets Update
  • Loading branch information
FaithOmbongi authored Nov 27, 2024
2 parents 572bf5d + 3219b58 commit 02c235f
Show file tree
Hide file tree
Showing 96 changed files with 751 additions and 188 deletions.
1 change: 0 additions & 1 deletion api-reference/beta/api/certificateauthoritydetail-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ GET https://graph.microsoft.com/beta/directory/publicKeyInfrastructure/certifica

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ Content-Type: application/json

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ DELETE https://graph.microsoft.com/beta/directory/publicKeyInfrastructure/certif

---


### Response

The following example shows the response.
Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/certificatebasedauthpki-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ GET https://graph.microsoft.com/beta/directory/publicKeyInfrastructure/certifica

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ GET https://graph.microsoft.com/beta/directory/publicKeyInfrastructure/certifica

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ Content-Type: application/json

---


### Response

The following example shows the response.
Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/certificatebasedauthpki-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ Content-Type: application/json

---


### Response

The following example shows the response.
Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/certificatebasedauthpki-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ Content-Type: application/json

---


### Response

The following example shows the response.
Expand Down
32 changes: 16 additions & 16 deletions api-reference/beta/api/identitycontainer-list-identityproviders.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,35 +77,35 @@ GET https://graph.microsoft.com/beta/identity/identityProviders
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/get-identityproviderbase-inazureadtenant-csharp-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/csharp/get-identityproviderbase-azure-ad-tenant-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/get-identityproviderbase-inazureadtenant-cli-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/cli/get-identityproviderbase-azure-ad-tenant-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/get-identityproviderbase-inazureadtenant-go-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/go/get-identityproviderbase-azure-ad-tenant-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/get-identityproviderbase-inazureadtenant-java-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/java/get-identityproviderbase-azure-ad-tenant-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/get-identityproviderbase-inazureadtenant-javascript-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/javascript/get-identityproviderbase-azure-ad-tenant-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/get-identityproviderbase-inazureadtenant-php-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/php/get-identityproviderbase-azure-ad-tenant-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/get-identityproviderbase-inazureadtenant-powershell-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/powershell/get-identityproviderbase-azure-ad-tenant-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/get-identityproviderbase-inazureadtenant-python-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/python/get-identityproviderbase-azure-ad-tenant-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---
Expand Down Expand Up @@ -166,35 +166,35 @@ GET https://graph.microsoft.com/beta/identity/identityProviders
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/get-identityproviderbase-azureb2c-csharp-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/csharp/get-identityproviderbase-2-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/get-identityproviderbase-azureb2c-cli-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/cli/get-identityproviderbase-2-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/get-identityproviderbase-azureb2c-go-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/go/get-identityproviderbase-2-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/get-identityproviderbase-azureb2c-java-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/java/get-identityproviderbase-2-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/get-identityproviderbase-azureb2c-javascript-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/javascript/get-identityproviderbase-2-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/get-identityproviderbase-azureb2c-php-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/php/get-identityproviderbase-2-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/get-identityproviderbase-azureb2c-powershell-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/powershell/get-identityproviderbase-2-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/get-identityproviderbase-azureb2c-python-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/python/get-identityproviderbase-2-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,35 +448,35 @@ Content-type: application/json
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/create-applemanagedidentityprovider-from-identityproviderbase-csharp-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/csharp/create-oidcidentityprovider-from-identityproviderbase-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/create-applemanagedidentityprovider-from-identityproviderbase-cli-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/cli/create-oidcidentityprovider-from-identityproviderbase-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/create-applemanagedidentityprovider-from-identityproviderbase-go-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/go/create-oidcidentityprovider-from-identityproviderbase-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/create-applemanagedidentityprovider-from-identityproviderbase-java-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/java/create-oidcidentityprovider-from-identityproviderbase-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/create-applemanagedidentityprovider-from-identityproviderbase-javascript-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/javascript/create-oidcidentityprovider-from-identityproviderbase-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/create-applemanagedidentityprovider-from-identityproviderbase-php-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/php/create-oidcidentityprovider-from-identityproviderbase-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/create-applemanagedidentityprovider-from-identityproviderbase-powershell-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/powershell/create-oidcidentityprovider-from-identityproviderbase-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/create-applemanagedidentityprovider-from-identityproviderbase-python-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/python/create-oidcidentityprovider-from-identityproviderbase-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---
Expand Down
24 changes: 8 additions & 16 deletions api-reference/beta/api/identityproviderbase-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,18 @@ Content-type: application/json
```

# [C#](#tab/csharp)

[!INCLUDE [sample-code](../includes/snippets/csharp/update-socialidentityprovider-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)

[!INCLUDE [sample-code](../includes/snippets/cli/update-socialidentityprovider-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)

[!INCLUDE [sample-code](../includes/snippets/go/update-socialidentityprovider-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)

[!INCLUDE [sample-code](../includes/snippets/java/update-socialidentityprovider-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

Expand All @@ -156,17 +152,14 @@ Content-type: application/json
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)

[!INCLUDE [sample-code](../includes/snippets/php/update-socialidentityprovider-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)

[!INCLUDE [sample-code](../includes/snippets/powershell/update-socialidentityprovider-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)

[!INCLUDE [sample-code](../includes/snippets/python/update-socialidentityprovider-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

Expand Down Expand Up @@ -352,37 +345,36 @@ Content-type: application/json
}
```


# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/update-appleidentityprovider-csharp-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/csharp/oidcidentityprovider-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/update-appleidentityprovider-cli-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/cli/oidcidentityprovider-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/update-appleidentityprovider-go-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/go/oidcidentityprovider-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/update-appleidentityprovider-java-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/java/oidcidentityprovider-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/update-appleidentityprovider-javascript-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/javascript/oidcidentityprovider-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/update-appleidentityprovider-php-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/php/oidcidentityprovider-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/update-appleidentityprovider-powershell-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/powershell/oidcidentityprovider-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/update-appleidentityprovider-python-snippets.md)]
[!INCLUDE [sample-code](../includes/snippets/python/oidcidentityprovider-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ DELETE https://graph.microsoft.com/beta/directory/publicKeyInfrastructure/certif

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ GET https://graph.microsoft.com/beta/directory/publicKeyInfrastructure/certifica

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ Content-Type: application/json

---


### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ description: "Automatically generated file. DO NOT MODIFY"

mgc-beta identity identity-providers create --body '{\
"@odata.type": "microsoft.graph.appleManagedIdentityProvider",\
"displayName": "Sign in with Apple",\
"developerId": "UBF8T346G9",\
"serviceId": "com.microsoft.rts.b2c.test.client",\
"keyId": "99P6D879C4",\
"displayName": "Apple",\
"developerId": "qazx.1234",\
"serviceId": "com.contoso.app",\
"keyId": "4294967296",\
"certificateData": "******"\
}\
'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
description: "Automatically generated file. DO NOT MODIFY"
---

```bash


mgc-beta identity identity-providers create --body '{\
"@odata.type": "#microsoft.graph.OidcIdentityProvider",\
"displayName": "Contoso AAD B2C",\
"clientId": "00001111-aaaa-2222-bbbb-3333cccc4444",\
"issuer": "https://contoso.b2clogin.com/00001111-aaaa-2222-bbbb-3333cccc4444/v2.0/",\
"wellKnownEndpoint": "https://contoso.b2clogin.com/contoso.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1A_SIGNINEMAIL",\
"responseType": "code",\
"scope": "openid profile email offline_access",\
"clientAuthentication": {\
"@odata.type": "#microsoft.graph.oidcClientSecretAuthentication",\
"clientSecret": "4294967296"\
},\
"inboundClaimMapping": {\
"sub": "sub",\
"name": "name",\
"given_name": "given_name",\
"family_name": "family_name",\
"email": "email",\
"email_verified": "email_verified",\
"phone_number": "phone_number",\
"phone_number_verified": "phone_number_verified",\
"address": {\
"street_address": "street_address",\
"locality": "locality",\
"region": "region",\
"postal_code": "postal_code",\
"country": "country"\
}\
}\
}\
'

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ description: "Automatically generated file. DO NOT MODIFY"

mgc-beta identity identity-providers create --body '{\
"@odata.type": "microsoft.graph.openIdConnectIdentityProvider",\
"displayName": "Login with the Contoso identity provider",\
"clientId": "56433757-cadd-4135-8431-2c9e3fd68ae8",\
"clientSecret": "12345",\
"displayName": "Contoso",\
"clientId": "00001111-aaaa-2222-bbbb-3333cccc4444",\
"clientSecret": "4294967296",\
"claimsMapping": {\
"userId": "myUserId",\
"givenName": "myGivenName",\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ mgc-beta identity identity-providers create --body '{ \
"@odata.type": "microsoft.graph.socialIdentityProvider",\
"displayName": "Login with Amazon",\
"identityProviderType": "Amazon",\
"clientId": "56433757-cadd-4135-8431-2c9e3fd68ae8",\
"clientSecret": "000000000000"\
"clientId": "00001111-aaaa-2222-bbbb-3333cccc4444",\
"clientSecret": "42*****96"\
}\
'

Expand Down
Loading

0 comments on commit 02c235f

Please sign in to comment.