Skip to content

Commit 3367405

Browse files
MIchaelMainerMicrosoft Graph DevX Toolingramsessanchez
authored
Updating examples (#3575)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com> Co-authored-by: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com>
1 parent 4318d0c commit 3367405

File tree

184 files changed

+3437
-207
lines changed

Some content is hidden

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

184 files changed

+3437
-207
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.
11+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 2: Code snippet
1+
### Example 1: List attendance reports for a town hall session
22

33
```powershell
44
@@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Beta.Bookings
77
Get-MgBetaVirtualEventTownhallSessionAttendanceReport -VirtualEventTownhallId $virtualEventTownhallId -VirtualEventSessionId $virtualEventSessionId
88
99
```
10-
This example shows how to use the Get-MgBetaVirtualEventTownhallSessionAttendanceReport Cmdlet.
10+
This example will list attendance reports for a town hall session
1111

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
6+
7+
Get-MgVirtualEventTownhallByUserRole -Role $roleId
8+
9+
```
10+
This example shows how to use the Get-MgVirtualEventTownhallByUserRole Cmdlet.
11+
Lines changed: 95 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,105 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Create a building
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Calendar
6+
7+
$params = @{
8+
"@odata.type" = "microsoft.graph.building"
9+
displayName = "B001"
10+
}
11+
12+
New-MgBetaPlace -BodyParameter $params
13+
14+
```
15+
This example will create a building
16+
17+
### Example 2: Create a floor
18+
19+
```powershell
20+
21+
Import-Module Microsoft.Graph.Beta.Calendar
22+
23+
$params = @{
24+
"@odata.type" = "microsoft.graph.floor"
25+
displayName = "F1"
26+
parentId = "767a31a7-6987-41c9-b829-ab351b8aab53"
27+
}
28+
29+
New-MgBetaPlace -BodyParameter $params
30+
31+
```
32+
This example will create a floor
33+
34+
### Example 3: Create a section
35+
36+
```powershell
37+
38+
Import-Module Microsoft.Graph.Beta.Calendar
39+
40+
$params = @{
41+
"@odata.type" = "microsoft.graph.section"
42+
displayName = "S1"
43+
parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955"
44+
}
45+
46+
New-MgBetaPlace -BodyParameter $params
47+
48+
```
49+
This example will create a section
50+
51+
### Example 4: Create a desk
52+
253
```powershell
3-
PS C:\> {{ Add code here }}
454
5-
{{ Add output here }}
55+
Import-Module Microsoft.Graph.Beta.Calendar
56+
57+
$params = @{
58+
"@odata.type" = "microsoft.graph.desk"
59+
displayName = "D1"
60+
parentId = "1ad0f725-6885-49c5-9a47-3b22a1f9409d"
61+
}
62+
63+
New-MgBetaPlace -BodyParameter $params
64+
665
```
66+
This example will create a desk
767

8-
{{ Add description here }}
68+
### Example 5: Create a room
969

10-
### Example 2: {{ Add title here }}
1170
```powershell
12-
PS C:\> {{ Add code here }}
1371
14-
{{ Add output here }}
72+
Import-Module Microsoft.Graph.Beta.Calendar
73+
74+
$params = @{
75+
"@odata.type" = "microsoft.graph.room"
76+
displayName = "Conf Room 4/3.3G11"
77+
parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955"
78+
bookingType = "standard"
79+
}
80+
81+
New-MgBetaPlace -BodyParameter $params
82+
1583
```
84+
This example will create a room
85+
86+
### Example 6: Create a workspace
87+
88+
```powershell
1689
17-
{{ Add description here }}
90+
Import-Module Microsoft.Graph.Beta.Calendar
91+
92+
$params = @{
93+
"@odata.type" = "microsoft.graph.workspace"
94+
parentId = "f7de7265-e420-47b4-9d49-28d728716241"
95+
displayName = "testSpace001"
96+
tags = @(
97+
"test"
98+
)
99+
}
100+
101+
New-MgBetaPlace -BodyParameter $params
102+
103+
```
104+
This example will create a workspace
18105

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Calendar
6+
7+
$params = @{
8+
"@odata.type" = "#microsoft.graph.checkInClaim"
9+
calendarEventId = "040000008200E00074C5B7101A82E00800000000D02AC02D26EFDB010000000000000000100000005A18ADA04F0A24489AE13ED3CC367978"
10+
checkInMethod = "verified"
11+
}
12+
13+
New-MgBetaPlaceCheck -PlaceId $placeId -BodyParameter $params
14+
15+
```
16+
This example shows how to use the New-MgBetaPlaceCheck Cmdlet.
17+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Calendar
6+
7+
Remove-MgBetaPlaceAsBuildingMap -PlaceId $placeId
8+
9+
```
10+
This example shows how to use the Remove-MgBetaPlaceAsBuildingMap Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Calendar
6+
7+
Remove-MgBetaPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId -FixtureMapId $fixtureMapId
8+
9+
```
10+
This example shows how to use the Remove-MgBetaPlaceAsBuildingMapLevelFixture Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Calendar
6+
7+
Remove-MgBetaPlaceAsBuildingMapLevelUnit -PlaceId $placeId -LevelMapId $levelMapId -UnitMapId $unitMapId
8+
9+
```
10+
This example shows how to use the Remove-MgBetaPlaceAsBuildingMapLevelUnit Cmdlet.
11+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
### Example 1: Update an existing fixtureMap
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Calendar
6+
7+
$params = @{
8+
placeId = "67149ec1-4b99-42d4-88a4-d92cd23cb606"
9+
properties = '{"id":"005eb3b8-c95d-4d35-a8a0-22d3cb4d6002","type":"Feature","feature_type":"fixture","geometry":{"type":"Polygon","coordinates":[[[-121.8889415,37.3295396],[-121.8889137,37.329503],[-121.8889082,37.3294956],[-121.888907,37.3294941],[-121.8888551,37.3295189],[-121.8888895,37.3295644],[-121.8889415,37.3295396]]]},"properties":{"name":{"en":"Test Fixture update"},"level_id":"e537d463-475b-43c3-a650-184566c68bc9","display_point":{"type":"Point","coordinates":[-121.8888983,37.3295292]}}}'
10+
}
11+
12+
Update-MgBetaPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId -FixtureMapId $fixtureMapId -BodyParameter $params
13+
14+
```
15+
This example will update an existing fixturemap
16+
17+
### Example 2: Create a fixtureMap if it doesn't exist
18+
19+
```powershell
20+
21+
Import-Module Microsoft.Graph.Beta.Calendar
22+
23+
$params = @{
24+
placeId = "67149ec1-4b99-42d4-88a4-d92cd23cb606"
25+
properties = '{"id":"005eb3b8-c95d-4d35-a8a0-22d3cb4d6002","type":"Feature","feature_type":"fixture","geometry":{"type":"Polygon","coordinates":[[[-121.8889415,37.3295396],[-121.8889137,37.329503],[-121.8889082,37.3294956],[-121.888907,37.3294941],[-121.8888551,37.3295189],[-121.8888895,37.3295644],[-121.8889415,37.3295396]]]},"properties":{"name":{"en":"Test Fixture 01"},"level_id":"e537d463-475b-43c3-a650-184566c68bc9","display_point":{"type":"Point","coordinates":[-121.8888983,37.3295292]}}}'
26+
}
27+
28+
Update-MgBetaPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId -FixtureMapId $fixtureMapId -BodyParameter $params
29+
30+
```
31+
This example will create a fixturemap if it doesn't exist
32+

0 commit comments

Comments
 (0)