Skip to content

Commit 58cc3f1

Browse files
authored
Merge pull request #2095 from microsoftgraph/WeeklyExamplesUpdate/202306160410
[v2] Examples Update
2 parents 956ef50 + 82807fc commit 58cc3f1

File tree

88 files changed

+1450
-835
lines changed

Some content is hidden

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

88 files changed

+1450
-835
lines changed

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
5+
Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId
6+
```
7+
This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
5+
Get-MgBookingBusinessCalendarView -BookingBusinessId $bookingBusinessId -Start "2018-04-30T00:00:00Z" -End "2018-05-10T00:00:00Z"
6+
```
7+
This example shows how to use the Get-MgBookingBusinessCalendarView Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
5+
Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
6+
```
7+
This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
5+
Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId
6+
```
7+
This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
5+
Get-MgBookingCurrency -BookingCurrencyId $bookingCurrencyId
6+
```
7+
This example shows how to use the Get-MgBookingCurrency Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

src/Bookings/v1.0/examples/New-MgBookingBusiness.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
5+
$params = @{
6+
displayName = "Fourth Coffee"
7+
address = @{
8+
postOfficeBox = "P.O. Box 123"
9+
street = "4567 Main Street"
10+
city = "Buffalo"
11+
state = "NY"
12+
countryOrRegion = "USA"
13+
postalCode = "98052"
14+
}
15+
phone = "206-555-0100"
16+
17+
webSiteUrl = "https://www.fourthcoffee.com"
18+
defaultCurrencyIso = "USD"
19+
}
920

10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
21+
New-MgBookingBusiness -BodyParameter $params
22+
```
23+
This example shows how to use the New-MgBookingBusiness Cmdlet.
24+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
25+

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
5+
$params = @{
6+
"@odata.type" = "#microsoft.graph.bookingCustomQuestion"
7+
displayName = "What is your age?"
8+
answerInputType = "text"
9+
answerOptions = @(
10+
)
11+
}
912

10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
13+
New-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BodyParameter $params
14+
```
15+
This example shows how to use the New-MgBookingBusinessCustomQuestion Cmdlet.
16+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
17+

src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
5+
$params = @{
6+
"@odata.type" = "#microsoft.graph.bookingCustomer"
7+
displayName = "Joni Sherman"
8+
emailAddress = "[email protected]"
9+
addresses = @(
10+
)
11+
phones = @(
12+
)
13+
}
914

10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
15+
New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params
16+
```
17+
This example shows how to use the New-MgBookingBusinessCustomer Cmdlet.
18+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
19+

src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md

Lines changed: 85 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,88 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
5+
$params = @{
6+
"@odata.type" = "#microsoft.graph.bookingStaffMember"
7+
displayName = "Dana Swope"
8+
emailAddress = "[email protected]"
9+
"[email protected]" = "#microsoft.graph.bookingStaffRole"
10+
role = "externalGuest"
11+
timeZone = "America/Chicago"
12+
useBusinessHours = $true
13+
"[email protected]" = "#Collection(microsoft.graph.bookingWorkHours)"
14+
workingHours = @(
15+
@{
16+
"@odata.type" = "#microsoft.graph.bookingWorkHours"
17+
"[email protected]" = "#microsoft.graph.dayOfWeek"
18+
day = "monday"
19+
"[email protected]" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
20+
timeSlots = @(
21+
@{
22+
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
23+
endTime = "17:00:00.0000000"
24+
startTime = "08:00:00.0000000"
25+
}
26+
)
27+
}
28+
@{
29+
"@odata.type" = "#microsoft.graph.bookingWorkHours"
30+
"[email protected]" = "#microsoft.graph.dayOfWeek"
31+
day = "tuesday"
32+
"[email protected]" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
33+
timeSlots = @(
34+
@{
35+
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
36+
endTime = "17:00:00.0000000"
37+
startTime = "08:00:00.0000000"
38+
}
39+
)
40+
}
41+
@{
42+
"@odata.type" = "#microsoft.graph.bookingWorkHours"
43+
"[email protected]" = "#microsoft.graph.dayOfWeek"
44+
day = "wednesday"
45+
"[email protected]" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
46+
timeSlots = @(
47+
@{
48+
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
49+
endTime = "17:00:00.0000000"
50+
startTime = "08:00:00.0000000"
51+
}
52+
)
53+
}
54+
@{
55+
"@odata.type" = "#microsoft.graph.bookingWorkHours"
56+
"[email protected]" = "#microsoft.graph.dayOfWeek"
57+
day = "thursday"
58+
"[email protected]" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
59+
timeSlots = @(
60+
@{
61+
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
62+
endTime = "17:00:00.0000000"
63+
startTime = "08:00:00.0000000"
64+
}
65+
)
66+
}
67+
@{
68+
"@odata.type" = "#microsoft.graph.bookingWorkHours"
69+
"[email protected]" = "#microsoft.graph.dayOfWeek"
70+
day = "friday"
71+
"[email protected]" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
72+
timeSlots = @(
73+
@{
74+
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
75+
endTime = "17:00:00.0000000"
76+
startTime = "08:00:00.0000000"
77+
}
78+
)
79+
}
80+
)
81+
isEmailNotificationEnabled = $false
82+
}
983

10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
84+
New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params
85+
```
86+
This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet.
87+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
88+

src/Bookings/v1.0/examples/Remove-MgBookingBusinessAppointment.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Bookings
74

8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
5+
Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId
6+
```
7+
This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

0 commit comments

Comments
 (0)