Skip to content

Commit

Permalink
Updating examples (#2264)
Browse files Browse the repository at this point in the history
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
  • Loading branch information
timayabi2020 and Microsoft Graph DevX Tooling authored Aug 25, 2023
1 parent d794b21 commit bbbbd27
Show file tree
Hide file tree
Showing 40 changed files with 311 additions and 198 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Import-Module Microsoft.Graph.Applications
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId
```
This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Import-Module Microsoft.Graph.Bookings
Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId
```
This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,92 +14,6 @@ $params = @{
user = @{
"@odata.type" = "#microsoft.graph.identity"
id = "278405a3-f568-4b3e-b684-009193463064"
displayName = "string"
}
}
}
)
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
}
Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
```
This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet.

### Example 2: Code snippet

```powershell
Import-Module Microsoft.Graph.CloudCommunications
$params = @{
participants = @(
@{
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
identity = @{
"@odata.type" = "#microsoft.graph.identitySet"
user = @{
"@odata.type" = "#microsoft.graph.identity"
id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe"
displayName = "string"
}
}
}
)
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
}
Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
```
This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet.

### Example 3: Code snippet

```powershell
Import-Module Microsoft.Graph.CloudCommunications
$params = @{
participants = @(
@{
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
identity = @{
"@odata.type" = "#microsoft.graph.identitySet"
phone = @{
"@odata.type" = "#microsoft.graph.identity"
id = "+12345678901"
}
}
}
)
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
}
Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
```
This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet.

### Example 4: Code snippet

```powershell
Import-Module Microsoft.Graph.CloudCommunications
$params = @{
participants = @(
@{
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
participantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c"
identity = @{
"@odata.type" = "#microsoft.graph.identitySet"
user = @{
"@odata.type" = "#microsoft.graph.identity"
id = "682b6c37-0729-4fab-ace6-d730d5d9137e"
identityProvider = "AAD"
}
}
Expand Down
42 changes: 34 additions & 8 deletions src/CloudCommunications/v1.0/examples/Move-MgCommunicationCall.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Call transfer from a peer-to-peer call

```powershell
Expand All @@ -19,9 +19,9 @@ $params = @{
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
```
This example shows how to use the Move-MgCommunicationCall Cmdlet.
This example will call transfer from a peer-to-peer call

### Example 2: Code snippet
### Example 2: Consultative transfer from a peer-to-peer call

```powershell
Expand All @@ -46,9 +46,35 @@ $params = @{
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
```
This example shows how to use the Move-MgCommunicationCall Cmdlet.
This example will consultative transfer from a peer-to-peer call

### Example 3: Code snippet
### Example 3: Call transfer from a peer-to-peer call to PSTN number

```powershell
Import-Module Microsoft.Graph.CloudCommunications
$params = @{
transferTarget = @{
endpointType = "default"
identity = @{
phone = @{
"@odata.type" = "#microsoft.graph.identity"
id = "+12345678901"
}
}
languageId = "languageId-value"
region = "region-value"
}
clientContext = "9e90d1c1-f61e-43e7-9f75-d420159aae08"
}
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
```
This example will call transfer from a peer-to-peer call to pstn number

### Example 4: Consultative transfer from a peer-to-peer call to PSTN number

```powershell
Expand All @@ -75,9 +101,9 @@ $params = @{
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
```
This example shows how to use the Move-MgCommunicationCall Cmdlet.
This example will consultative transfer from a peer-to-peer call to pstn number

### Example 4: Code snippet
### Example 5: Call transfer from a group call

```powershell
Expand Down Expand Up @@ -107,5 +133,5 @@ $params = @{
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
```
This example shows how to use the Move-MgCommunicationCall Cmdlet.
This example will call transfer from a group call

8 changes: 6 additions & 2 deletions src/Education/beta/examples/Get-MgBetaEducationMeClass.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Example 1: Using the Get-MgBetaEducationMeClass Cmdlet
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationMeClass
```
This example shows how to use the Get-MgBetaEducationMeClass Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

4 changes: 2 additions & 2 deletions src/Education/beta/examples/Get-MgBetaEducationSchool.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationSchool -EducationSchoolId $educationSchoolId
```
This example shows how to use the Get-MgBetaEducationSchool Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

8 changes: 6 additions & 2 deletions src/Education/beta/examples/Get-MgBetaEducationSchoolClass.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Example 1: Using the Get-MgBetaEducationSchoolClass Cmdlet
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationSchoolClass -EducationSchoolId $educationSchoolId
```
This example shows how to use the Get-MgBetaEducationSchoolClass Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

8 changes: 6 additions & 2 deletions src/Education/beta/examples/Get-MgBetaEducationSchoolUser.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Example 1: Using the Get-MgBetaEducationSchoolUser Cmdlet
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationSchoolUser -EducationSchoolId $educationSchoolId
```
This example shows how to use the Get-MgBetaEducationSchoolUser Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

4 changes: 2 additions & 2 deletions src/Education/beta/examples/Get-MgBetaEducationUser.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationUser -EducationUserId $educationUserId
```
This example shows how to use the Get-MgBetaEducationUser Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,11 +1,66 @@
### Example 1: Code snippet
### Example 1: Get an educationWordResource

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
```
This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet.
This example will get an educationwordresource

### Example 2: Get an educationFileResource

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
```
This example will get an educationfileresource

### Example 3: Get an educationExcelResource

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
```
This example will get an educationexcelresource

### Example 4: Get an educationPowerPointResource

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
```
This example will get an educationpowerpointresource

### Example 5: Get an educationLinkResource

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
```
This example will get an educationlinkresource

### Example 6: Get an educationMediaResource

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
```
This example will get an educationmediaresource

Loading

0 comments on commit bbbbd27

Please sign in to comment.