Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId
```
This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
22 changes: 7 additions & 15 deletions src/Bookings/v1.0/examples/Get-MgBookingBusinessCalendarView.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Get-MgBookingBusinessCalendarView -BookingBusinessId $bookingBusinessId -Start "2018-04-30T00:00:00Z" -End "2018-05-10T00:00:00Z"
```
This example shows how to use the Get-MgBookingBusinessCalendarView Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
```
This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
22 changes: 7 additions & 15 deletions src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId
```
This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
22 changes: 7 additions & 15 deletions src/Bookings/v1.0/examples/Get-MgBookingCurrency.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Get-MgBookingCurrency -BookingCurrencyId $bookingCurrencyId
```
This example shows how to use the Get-MgBookingCurrency Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
36 changes: 22 additions & 14 deletions src/Bookings/v1.0/examples/New-MgBookingBusiness.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}
$params = @{
displayName = "Fourth Coffee"
address = @{
postOfficeBox = "P.O. Box 123"
street = "4567 Main Street"
city = "Buffalo"
state = "NY"
countryOrRegion = "USA"
postalCode = "98052"
}
phone = "206-555-0100"
email = "manager@fourthcoffee.com"
webSiteUrl = "https://www.fourthcoffee.com"
defaultCurrencyIso = "USD"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
New-MgBookingBusiness -BodyParameter $params
```
This example shows how to use the New-MgBookingBusiness Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
28 changes: 14 additions & 14 deletions src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}
$params = @{
"@odata.type" = "#microsoft.graph.bookingCustomQuestion"
displayName = "What is your age?"
answerInputType = "text"
answerOptions = @(
)
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
New-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BodyParameter $params
```
This example shows how to use the New-MgBookingBusinessCustomQuestion Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
30 changes: 16 additions & 14 deletions src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}
$params = @{
"@odata.type" = "#microsoft.graph.bookingCustomer"
displayName = "Joni Sherman"
emailAddress = "jonis@relecloud.com"
addresses = @(
)
phones = @(
)
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params
```
This example shows how to use the New-MgBookingBusinessCustomer Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
99 changes: 85 additions & 14 deletions src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,88 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}
$params = @{
"@odata.type" = "#microsoft.graph.bookingStaffMember"
displayName = "Dana Swope"
emailAddress = "danas@contoso.com"
"role@odata.type" = "#microsoft.graph.bookingStaffRole"
role = "externalGuest"
timeZone = "America/Chicago"
useBusinessHours = $true
"workingHours@odata.type" = "#Collection(microsoft.graph.bookingWorkHours)"
workingHours = @(
@{
"@odata.type" = "#microsoft.graph.bookingWorkHours"
"day@odata.type" = "#microsoft.graph.dayOfWeek"
day = "monday"
"timeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
timeSlots = @(
@{
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
endTime = "17:00:00.0000000"
startTime = "08:00:00.0000000"
}
)
}
@{
"@odata.type" = "#microsoft.graph.bookingWorkHours"
"day@odata.type" = "#microsoft.graph.dayOfWeek"
day = "tuesday"
"timeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
timeSlots = @(
@{
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
endTime = "17:00:00.0000000"
startTime = "08:00:00.0000000"
}
)
}
@{
"@odata.type" = "#microsoft.graph.bookingWorkHours"
"day@odata.type" = "#microsoft.graph.dayOfWeek"
day = "wednesday"
"timeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
timeSlots = @(
@{
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
endTime = "17:00:00.0000000"
startTime = "08:00:00.0000000"
}
)
}
@{
"@odata.type" = "#microsoft.graph.bookingWorkHours"
"day@odata.type" = "#microsoft.graph.dayOfWeek"
day = "thursday"
"timeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
timeSlots = @(
@{
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
endTime = "17:00:00.0000000"
startTime = "08:00:00.0000000"
}
)
}
@{
"@odata.type" = "#microsoft.graph.bookingWorkHours"
"day@odata.type" = "#microsoft.graph.dayOfWeek"
day = "friday"
"timeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)"
timeSlots = @(
@{
"@odata.type" = "#microsoft.graph.bookingWorkTimeSlot"
endTime = "17:00:00.0000000"
startTime = "08:00:00.0000000"
}
)
}
)
isEmailNotificationEnabled = $false
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params
```
This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId
```
This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
### Example 1: Code snippet

{{ Add output here }}
```
```powershellImport-Module Microsoft.Graph.Bookings

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Remove-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
```
This example shows how to use the Remove-MgBookingBusinessCustomQuestion Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
Loading