Skip to content

Commit

Permalink
Merge pull request #2659 from microsoftgraph/WeeklyExamplesUpdate/202…
Browse files Browse the repository at this point in the history
…404020823

[v2] Examples Update
  • Loading branch information
timayabi2020 authored Apr 2, 2024
2 parents 293a194 + cdffb9d commit 743f1ba
Show file tree
Hide file tree
Showing 60 changed files with 596 additions and 544 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $params = @{
dataType = "String"
isMultiValued = $true
targetObjects = @(
"User"
)
"User"
)
}
New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $params = @{
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
audiences = @(
"api://AzureADTokenExchange"
)
"api://AzureADTokenExchange"
)
}
New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ Import-Module Microsoft.Graph.Beta.Bookings
$params = @{
staffIds = @(
"311a5454-08b2-4560-ba1c-f715e938cb79"
)
startDateTime = @{
dateTime = "2022-01-25T00:00:00"
timeZone = "India Standard Time"
}
endDateTime = @{
dateTime = "2022-01-26T17:00:00"
timeZone = "Pacific Standard Time"
}
"311a5454-08b2-4560-ba1c-f715e938cb79"
)
startDateTime = @{
dateTime = "2022-01-25T00:00:00"
timeZone = "India Standard Time"
}
endDateTime = @{
dateTime = "2022-01-26T17:00:00"
timeZone = "Pacific Standard Time"
}
}
Get-MgBetaBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ Import-Module Microsoft.Graph.Bookings
$params = @{
staffIds = @(
"311a5454-08b2-4560-ba1c-f715e938cb79"
)
startDateTime = @{
dateTime = "2022-01-25T00:00:00"
timeZone = "India Standard Time"
}
endDateTime = @{
dateTime = "2022-01-26T17:00:00"
timeZone = "Pacific Standard Time"
}
"311a5454-08b2-4560-ba1c-f715e938cb79"
)
startDateTime = @{
dateTime = "2022-01-25T00:00:00"
timeZone = "India Standard Time"
}
endDateTime = @{
dateTime = "2022-01-26T17:00:00"
timeZone = "Pacific Standard Time"
}
}
Get-MgBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params
Expand Down
26 changes: 26 additions & 0 deletions src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,34 @@ $params = @{
displayName = "Joni Sherman"
emailAddress = "jonis@relecloud.com"
addresses = @(
@{
postOfficeBox = ""
street = "4567 Main Street"
city = "Buffalo"
state = "NY"
countryOrRegion = "USA"
postalCode = "98052"
type = "home"
}
@{
postOfficeBox = ""
street = "4570 Main Street"
city = "Buffalo"
state = "NY"
countryOrRegion = "USA"
postalCode = "98054"
type = "business"
}
)
phones = @(
@{
number = "206-555-0100"
type = "home"
}
@{
number = "206-555-0200"
type = "business"
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.CloudCommunications
$params = @{
ids = @(
"fa8bf3dc-eca7-46b7-bad1-db199b62afc3"
"66825e03-7ef5-42da-9069-724602c31f6b"
)
"fa8bf3dc-eca7-46b7-bad1-db199b62afc3"
"66825e03-7ef5-42da-9069-724602c31f6b"
)
}
Get-MgCommunicationPresenceByUserId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ $params = @{
prompts = @(
@{
"@odata.type" = "#microsoft.graph.mediaPrompt"
mediaInfo = @{
uri = "https://cdn.contoso.com/beep.wav"
resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E"
}
}
)
maxRecordDurationInSeconds = 10
initialSilenceTimeoutInSeconds = 5
maxSilenceTimeoutInSeconds = 2
playBeep = $true
stopTones = @(
"#"
"1"
"*"
)
"#"
"1"
"*"
)
}
Invoke-MgRecordCommunicationCallResponse -CallId $callId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ $params = @{
id = "oneToOne"
routingMode = "oneToOne"
sources = @(
"632899f8-2ea1-4604-8413-27bd2892079f"
)
receivers = @(
"550fae72-d251-43ec-868c-373732c2704f"
)
"632899f8-2ea1-4604-8413-27bd2892079f"
)
receivers = @(
"550fae72-d251-43ec-868c-373732c2704f"
)
}
New-MgCommunicationCallAudioRoutingGroup -CallId $callId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ $params = @{
id = "oneToOne"
routingMode = "oneToOne"
sources = @(
"632899f8-2ea1-4604-8413-27bd2892079f"
)
receivers = @(
"550fae72-d251-43ec-868c-373732c2704f"
"72f988bf-86f1-41af-91ab-2d7cd011db47"
)
"632899f8-2ea1-4604-8413-27bd2892079f"
)
receivers = @(
"550fae72-d251-43ec-868c-373732c2704f"
"72f988bf-86f1-41af-91ab-2d7cd011db47"
)
}
Update-MgCommunicationCallAudioRoutingGroup -CallId $callId -AudioRoutingGroupId $audioRoutingGroupId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
id = "Id value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
}
Get-MgDeviceManagementReportCachedReport -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}
Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}
Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}
Get-MgDeviceManagementReportComplianceSettingNonComplianceReport -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}
Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}
Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport -BodyParameter $params
Expand Down
Loading

0 comments on commit 743f1ba

Please sign in to comment.