Skip to content

Commit a14a82f

Browse files
timayabi2020Microsoft Graph DevX Toolingpeombwa
authored
Updating examples (#2254)
Co-authored-by: Microsoft Graph DevX Tooling <[email protected]> Co-authored-by: Peter Ombwa <[email protected]>
1 parent ee7875f commit a14a82f

File tree

153 files changed

+1359
-1785
lines changed

Some content is hidden

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

153 files changed

+1359
-1785
lines changed
Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get education assignment
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Education
3+
```powershell
44
5-
Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
6-
```
7-
This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Code snippet
5+
Import-Module Microsoft.Graph.Beta.Education
116
12-
```powershellImport-Module Microsoft.Graph.Beta.Education
7+
Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
138
14-
Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
15-
```
16-
This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet.
17-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18-
19-
### Example 3: Code snippet
9+
```
10+
This example will get education assignment
2011

21-
```powershellImport-Module Microsoft.Graph.Beta.Education
12+
### Example 2: Get assignment in inactive state with optional Prefer header
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Education
17+
18+
Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
19+
20+
```
21+
This example will get assignment in inactive state with optional prefer header
2222

23-
Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
24-
```
25-
This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet.
26-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
27-

src/Education/beta/examples/Get-MgBetaEducationClassAssignmentCategory.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Education
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Education
6+
7+
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId
8+
9+
```
10+
This example shows how to use the Get-MgBetaEducationClassAssignmentCategory Cmdlet.
411

5-
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId
6-
```
7-
This example shows how to use the Get-MgBetaEducationClassAssignmentCategory Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Education
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Education
6+
7+
Get-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId
8+
9+
```
10+
This example shows how to use the Get-MgBetaEducationClassAssignmentDefault Cmdlet.
411

5-
Get-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId
6-
```
7-
This example shows how to use the Get-MgBetaEducationClassAssignmentDefault Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 66 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,66 @@
1-
### Example 1: Get an educationWordResource
2-
3-
```powershellImport-Module Microsoft.Graph.Beta.Education
4-
5-
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
6-
```
7-
This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Get an educationLinkResource
11-
12-
```powershellImport-Module Microsoft.Graph.Beta.Education
13-
14-
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
15-
```
16-
This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet.
17-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18-
19-
### Example 3: Get an educationExcelResource
20-
21-
```powershellImport-Module Microsoft.Graph.Beta.Education
22-
23-
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
24-
```
25-
This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet.
26-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
27-
28-
### Example 4: Get an educationPowerPointResource
29-
30-
```powershellImport-Module Microsoft.Graph.Beta.Education
31-
32-
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
33-
```
34-
This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet.
35-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
36-
37-
### Example 5: Get an educationFileResource
38-
39-
```powershellImport-Module Microsoft.Graph.Beta.Education
40-
41-
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
42-
```
43-
This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet.
44-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
45-
46-
### Example 6: Get an educationMediaResource
47-
48-
```powershellImport-Module Microsoft.Graph.Beta.Education
49-
50-
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
51-
```
52-
This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet.
53-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
54-
1+
### Example 1: Get an educationWordResource
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Education
6+
7+
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
8+
9+
```
10+
This example will get an educationwordresource
11+
12+
### Example 2: Get an educationLinkResource
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Education
17+
18+
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
19+
20+
```
21+
This example will get an educationlinkresource
22+
23+
### Example 3: Get an educationExcelResource
24+
25+
```powershell
26+
27+
Import-Module Microsoft.Graph.Beta.Education
28+
29+
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
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.Beta.Education
39+
40+
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
41+
42+
```
43+
This example will get an educationpowerpointresource
44+
45+
### Example 5: Get an educationFileResource
46+
47+
```powershell
48+
49+
Import-Module Microsoft.Graph.Beta.Education
50+
51+
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
52+
53+
```
54+
This example will get an educationfileresource
55+
56+
### Example 6: Get an educationMediaResource
57+
58+
```powershell
59+
60+
Import-Module Microsoft.Graph.Beta.Education
61+
62+
Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId
63+
64+
```
65+
This example will get an educationmediaresource
66+

src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Education
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Education
6+
7+
Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
8+
9+
```
10+
This example shows how to use the Get-MgBetaEducationClassAssignmentRubric Cmdlet.
411

5-
Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
6-
```
7-
This example shows how to use the Get-MgBetaEducationClassAssignmentRubric Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
1-
### Example 1: Request without optional Prefer header
1+
### Example 1: Request without optional Prefer header
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Education
3+
```powershell
44
5-
Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
6-
```
7-
This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Request with optional Prefer header
5+
Import-Module Microsoft.Graph.Beta.Education
116
12-
```powershellImport-Module Microsoft.Graph.Beta.Education
7+
Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
138
14-
Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
15-
```
16-
This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet.
17-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18-
19-
### Example 3: Get submission with $expand options
9+
```
10+
This example will request without optional prefer header
2011

21-
```powershellImport-Module Microsoft.Graph.Beta.Education
12+
### Example 2: Request with optional Prefer header
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Education
17+
18+
Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
19+
20+
```
21+
This example will request with optional prefer header
22+
23+
### Example 3: Get submission with $expand options
24+
25+
```powershell
26+
27+
Import-Module Microsoft.Graph.Beta.Education
28+
29+
Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*"
30+
31+
```
32+
This example will get submission with $expand options
2233

23-
Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*"
24-
```
25-
This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet.
26-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
27-
Lines changed: 22 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,22 @@
1-
### Example 1: Update a feedback outcome
2-
3-
```powershellImport-Module Microsoft.Graph.Beta.Education
4-
5-
$params = @{
6-
"@odata.type" = "#microsoft.graph.educationFeedbackOutcome"
7-
}
8-
9-
Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params
10-
```
11-
This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
14-
### Example 2: Update a points outcome
15-
16-
```powershellImport-Module Microsoft.Graph.Beta.Education
17-
18-
$params = @{
19-
"@odata.type" = "#microsoft.graph.educationPointsOutcome"
20-
points = @{
21-
"@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade"
22-
points =
23-
}
24-
}
25-
26-
Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params
27-
```
28-
This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet.
29-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
30-
31-
### Example 3: Update a rubric outcome
32-
33-
```powershellImport-Module Microsoft.Graph.Beta.Education
34-
35-
$params = @{
36-
"@odata.type" = "#microsoft.graph.educationRubricOutcome"
37-
rubricQualityFeedback = @(
38-
)
39-
rubricQualitySelectedLevels = @(
40-
)
41-
}
42-
43-
Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params
44-
```
45-
This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet.
46-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
47-
1+
### Example 1: Get all outcomes
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Education
6+
7+
Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
8+
9+
```
10+
This example will get all outcomes
11+
12+
### Example 2: Get outcomes filtered by outcome type
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Education
17+
18+
Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')"
19+
20+
```
21+
This example will get outcomes filtered by outcome type
22+

0 commit comments

Comments
 (0)