Skip to content

Commit bbbbd27

Browse files
timayabi2020Microsoft Graph DevX Tooling
andauthored
Updating examples (#2264)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent d794b21 commit bbbbd27

40 files changed

Lines changed: 311 additions & 198 deletions

File tree

src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Import-Module Microsoft.Graph.Applications
66
7-
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
7+
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId
88
99
```
1010
This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet.

src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Import-Module Microsoft.Graph.Bookings
66
7-
Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
7+
Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId
88
99
```
1010
This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet.

src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -14,92 +14,6 @@ $params = @{
1414
user = @{
1515
"@odata.type" = "#microsoft.graph.identity"
1616
id = "278405a3-f568-4b3e-b684-009193463064"
17-
displayName = "string"
18-
}
19-
}
20-
}
21-
)
22-
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
23-
}
24-
25-
Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
26-
27-
```
28-
This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet.
29-
30-
### Example 2: Code snippet
31-
32-
```powershell
33-
34-
Import-Module Microsoft.Graph.CloudCommunications
35-
36-
$params = @{
37-
participants = @(
38-
@{
39-
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
40-
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
41-
identity = @{
42-
"@odata.type" = "#microsoft.graph.identitySet"
43-
user = @{
44-
"@odata.type" = "#microsoft.graph.identity"
45-
id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe"
46-
displayName = "string"
47-
}
48-
}
49-
}
50-
)
51-
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
52-
}
53-
54-
Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
55-
56-
```
57-
This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet.
58-
59-
### Example 3: Code snippet
60-
61-
```powershell
62-
63-
Import-Module Microsoft.Graph.CloudCommunications
64-
65-
$params = @{
66-
participants = @(
67-
@{
68-
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
69-
identity = @{
70-
"@odata.type" = "#microsoft.graph.identitySet"
71-
phone = @{
72-
"@odata.type" = "#microsoft.graph.identity"
73-
id = "+12345678901"
74-
}
75-
}
76-
}
77-
)
78-
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
79-
}
80-
81-
Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
82-
83-
```
84-
This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet.
85-
86-
### Example 4: Code snippet
87-
88-
```powershell
89-
90-
Import-Module Microsoft.Graph.CloudCommunications
91-
92-
$params = @{
93-
participants = @(
94-
@{
95-
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
96-
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
97-
participantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c"
98-
identity = @{
99-
"@odata.type" = "#microsoft.graph.identitySet"
100-
user = @{
101-
"@odata.type" = "#microsoft.graph.identity"
102-
id = "682b6c37-0729-4fab-ace6-d730d5d9137e"
10317
identityProvider = "AAD"
10418
}
10519
}

src/CloudCommunications/v1.0/examples/Move-MgCommunicationCall.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Call transfer from a peer-to-peer call
22

33
```powershell
44
@@ -19,9 +19,9 @@ $params = @{
1919
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
2020
2121
```
22-
This example shows how to use the Move-MgCommunicationCall Cmdlet.
22+
This example will call transfer from a peer-to-peer call
2323

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

2626
```powershell
2727
@@ -46,9 +46,35 @@ $params = @{
4646
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
4747
4848
```
49-
This example shows how to use the Move-MgCommunicationCall Cmdlet.
49+
This example will consultative transfer from a peer-to-peer call
5050

51-
### Example 3: Code snippet
51+
### Example 3: Call transfer from a peer-to-peer call to PSTN number
52+
53+
```powershell
54+
55+
Import-Module Microsoft.Graph.CloudCommunications
56+
57+
$params = @{
58+
transferTarget = @{
59+
endpointType = "default"
60+
identity = @{
61+
phone = @{
62+
"@odata.type" = "#microsoft.graph.identity"
63+
id = "+12345678901"
64+
}
65+
}
66+
languageId = "languageId-value"
67+
region = "region-value"
68+
}
69+
clientContext = "9e90d1c1-f61e-43e7-9f75-d420159aae08"
70+
}
71+
72+
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
73+
74+
```
75+
This example will call transfer from a peer-to-peer call to pstn number
76+
77+
### Example 4: Consultative transfer from a peer-to-peer call to PSTN number
5278

5379
```powershell
5480
@@ -75,9 +101,9 @@ $params = @{
75101
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
76102
77103
```
78-
This example shows how to use the Move-MgCommunicationCall Cmdlet.
104+
This example will consultative transfer from a peer-to-peer call to pstn number
79105

80-
### Example 4: Code snippet
106+
### Example 5: Call transfer from a group call
81107

82108
```powershell
83109
@@ -107,5 +133,5 @@ $params = @{
107133
Move-MgCommunicationCall -CallId $callId -BodyParameter $params
108134
109135
```
110-
This example shows how to use the Move-MgCommunicationCall Cmdlet.
136+
This example will call transfer from a group call
111137

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaEducationMeClass Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Education
6+
47
Get-MgBetaEducationMeClass
8+
59
```
610
This example shows how to use the Get-MgBetaEducationMeClass Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
### Example 1: Code snippet
22

33
```powershell
4+
45
Import-Module Microsoft.Graph.Beta.Education
56
67
Get-MgBetaEducationSchool -EducationSchoolId $educationSchoolId
8+
79
```
810
This example shows how to use the Get-MgBetaEducationSchool Cmdlet.
911

10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11-
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaEducationSchoolClass Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Education
6+
47
Get-MgBetaEducationSchoolClass -EducationSchoolId $educationSchoolId
8+
59
```
610
This example shows how to use the Get-MgBetaEducationSchoolClass Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaEducationSchoolUser Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Education
6+
47
Get-MgBetaEducationSchoolUser -EducationSchoolId $educationSchoolId
8+
59
```
610
This example shows how to use the Get-MgBetaEducationSchoolUser Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
### Example 1: Code snippet
22

33
```powershell
4+
45
Import-Module Microsoft.Graph.Beta.Education
56
67
Get-MgBetaEducationUser -EducationUserId $educationUserId
8+
79
```
810
This example shows how to use the Get-MgBetaEducationUser Cmdlet.
911

10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11-
Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,66 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get an educationWordResource
22

33
```powershell
44
55
Import-Module Microsoft.Graph.Education
66
7-
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
7+
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
88
99
```
10-
This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet.
10+
This example will get an educationwordresource
11+
12+
### Example 2: Get an educationFileResource
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Education
17+
18+
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
19+
20+
```
21+
This example will get an educationfileresource
22+
23+
### Example 3: Get an educationExcelResource
24+
25+
```powershell
26+
27+
Import-Module Microsoft.Graph.Education
28+
29+
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
30+
31+
```
32+
This example will get an educationexcelresource
33+
34+
### Example 4: Get an educationPowerPointResource
35+
36+
```powershell
37+
38+
Import-Module Microsoft.Graph.Education
39+
40+
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
41+
42+
```
43+
This example will get an educationpowerpointresource
44+
45+
### Example 5: Get an educationLinkResource
46+
47+
```powershell
48+
49+
Import-Module Microsoft.Graph.Education
50+
51+
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
52+
53+
```
54+
This example will get an educationlinkresource
55+
56+
### Example 6: Get an educationMediaResource
57+
58+
```powershell
59+
60+
Import-Module Microsoft.Graph.Education
61+
62+
Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId
63+
64+
```
65+
This example will get an educationmediaresource
1166

0 commit comments

Comments
 (0)