-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSet-WUGDeviceMaintenanceSchedule.ps1
645 lines (587 loc) · 31 KB
/
Set-WUGDeviceMaintenanceSchedule.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
<#
.SYNOPSIS
Configures maintenance schedules for specified devices in WhatsUp Gold.
.DESCRIPTION
The Set-WUGDeviceMaintenanceSchedule function allows administrators to create, update, or delete maintenance schedules for devices managed by WhatsUp Gold.
It supports various scheduling types, including Daily, Weekly, Monthly, Monthly Advanced, Yearly, and Yearly Advanced schedules.
Users can define schedules by specifying individual parameters or by providing a configuration object.
Additionally, the function enables the deletion of all existing maintenance schedules for one or more devices.
.PARAMETER DeviceId
Specifies the ID(s) of the device(s) for which the maintenance schedule will be set.
This parameter is mandatory across all parameter sets.
.PARAMETER ScheduleType
Defines the type of maintenance schedule to apply.
Valid options are: 'Daily', 'Weekly', 'Monthly', 'MonthlyAdvanced', 'Yearly', 'YearlyAdvanced'.
This parameter is mandatory when using the 'ByParameters' parameter set.
.PARAMETER StartTimeHour
Specifies the hour when the maintenance window starts.
This parameter is mandatory when using the 'ByParameters' parameter set.
.PARAMETER StartTimeMinute
Specifies the minute when the maintenance window starts.
Defaults to 0 if not provided.
.PARAMETER EndTimeHour
Specifies the hour when the maintenance window ends.
This parameter is mandatory when using the 'ByParameters' parameter set.
.PARAMETER EndTimeMinute
Specifies the minute when the maintenance window ends.
Defaults to 0 if not provided.
.PARAMETER RecurEvery
Determines the recurrence interval for the schedule.
For example, a value of 1 means the schedule repeats every day/week/month/year based on the ScheduleType.
Defaults to 1.
.PARAMETER DaysOfWeek
Specifies the days of the week when the maintenance schedule should occur.
Applicable for 'Weekly' ScheduleType.
.PARAMETER DayOfMonth
Defines the day of the month for the maintenance schedule.
Applicable for 'Monthly' and 'Yearly' ScheduleTypes.
.PARAMETER Occurence
Indicates the occurrence pattern within the month or year, such as 'First', 'Second', 'Third', 'Fourth', or 'Last'.
Applicable for 'MonthlyAdvanced' and 'YearlyAdvanced' ScheduleTypes.
.PARAMETER DayOfWeek
Specifies the day of the week associated with the occurrence pattern.
Applicable for 'MonthlyAdvanced' and 'YearlyAdvanced' ScheduleTypes.
.PARAMETER Month
Defines the month for the maintenance schedule.
Applicable for 'Yearly' and 'YearlyAdvanced' ScheduleTypes.
.PARAMETER EffectiveStartDate
Sets the start date for the maintenance schedule.
If not specified, defaults to the current date.
Specified as an array, example @{ day = 29; month = 'september'; year = 2025 }
.PARAMETER EffectiveExpirationDate
Sets the expiration date for the maintenance schedule.
If not specified, the schedule does not expire.
Specified as an array, example @{ day = 29; month = 'september'; year = 2025 }
.PARAMETER Config
Provides a configuration object containing one or more maintenance schedules.
Applicable when using the 'ByConfig' parameter set.
.PARAMETER DeleteAllSchedules
Deletes all existing maintenance schedules for the specified device(s).
Applicable when using the 'ByDeletion' parameter set.
.EXAMPLE
# Create a Yearly Advanced maintenance schedule for device 2367 using individual parameters
Set-WUGDeviceMaintenanceSchedule `
-DeviceId 2367 `
-ScheduleType 'YearlyAdvanced' `
-StartTimeHour 1 `
-EndTimeHour 1 `
-Occurence 'First' `
-DayOfWeek 'Monday' `
-Month 'December'
.EXAMPLE
# Create a Monthly Advanced maintenance schedule for device 2367 using a configuration object
$sched = @{
ScheduleType = 'MonthlyAdvanced'
StartTimeHour = 1
EndTimeHour = 1
Occurence = 'Last'
DayOfWeek = 'Saturday'
EffectiveStartDate = @{ day = 29; month = 'september'; year = 2024 }
}
Set-WUGDeviceMaintenanceSchedule -DeviceId 2367 -Config $sched
.EXAMPLE
# Retrieve an existing maintenance schedule and update it using the -Config parameter
$sched = Get-WUGDeviceMaintenanceSchedule -DeviceID 2367
$sched.ScheduleType = 'YearlyAdvanced'
$sched.Occurence = 'First'
$sched.DayOfWeek = 'Monday'
$sched.Month = 'December'
Set-WUGDeviceMaintenanceSchedule -DeviceId 2367 -Config $sched
.EXAMPLE
# Delete all maintenance schedules for device 2367
Set-WUGDeviceMaintenanceSchedule -DeviceId 2367 -DeleteAllSchedules
.PARAMETER ByParameters
(Parameter Set Name) Use individual parameters to define the maintenance schedule.
.PARAMETER ByConfig
(Parameter Set Name) Use a configuration object to define one or more maintenance schedules.
.PARAMETER ByDeletion
(Parameter Set Name) Delete all existing maintenance schedules for the specified device(s).
.NOTES
- Ensure that the global variables `$WUGBearerHeaders` and `$WhatsUpServerBaseURI` are set before invoking this function.
These are typically initialized by running the `Connect-WUGServer` function.
- The `-Config` parameter expects an object with properties matching the schedule configuration.
Use the output from `Get-WUGDeviceMaintenanceSchedule` as a template for the configuration object.
Author: Jason Alberino (jason@wug.ninja) 2024-09-29
Updated: Jason Albberino (jason@wug.ninja) 2024-10-02
.LINK
https://docs.ipswitch.com/NM/WhatsUpGold2024/02_Guides/rest_api/index.html#operation/Device_UpdateMaintenanceBatchSchedule
https://docs.ipswitch.com/NM/WhatsUpGold2024/02_Guides/rest_api/index.html#operation/Device_UpdateMaintenanceSchedule
#>
function Set-WUGDeviceMaintenanceSchedule {
[CmdletBinding(DefaultParameterSetName = 'ByParameters')]
param(
# Common Parameters for All Parameter Sets
[Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'ByParameters')]
[Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'ByConfig')]
[Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'ByDeletion')]
[Alias('id')]
[int[]]$DeviceId,
# Parameters for 'ByParameters' Parameter Set
[Parameter(Mandatory = $true, ParameterSetName = 'ByParameters')]
[int]$StartTimeHour,
[Parameter(ParameterSetName = 'ByParameters')]
[int]$StartTimeMinute = 0,
[Parameter(Mandatory = $true, ParameterSetName = 'ByParameters')]
[int]$EndTimeHour,
[Parameter(ParameterSetName = 'ByParameters')]
[int]$EndTimeMinute = 0,
[Parameter(Mandatory = $true, ParameterSetName = 'ByParameters')]
[ValidateSet('Daily', 'Weekly', 'Monthly', 'MonthlyAdvanced', 'Yearly', 'YearlyAdvanced')]
[string]$ScheduleType,
[Parameter(ParameterSetName = 'ByParameters')]
[int]$RecurEvery = 1,
[Parameter(ParameterSetName = 'ByParameters')]
[ValidateSet('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')]
[string[]]$DaysOfWeek,
[Parameter(ParameterSetName = 'ByParameters')]
[ValidateRange(1, 31)]
[int]$DayOfMonth,
[Parameter(ParameterSetName = 'ByParameters')]
[ValidateSet('First', 'Second', 'Third', 'Fourth', 'Last')]
[string]$Occurence,
[Parameter(ParameterSetName = 'ByParameters')]
[ValidateSet('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')]
[string]$DayOfWeek,
[Parameter(ParameterSetName = 'ByParameters')]
[ValidateSet('january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december')]
[string]$Month,
[Parameter(ParameterSetName = 'ByParameters')]
[object]$EffectiveStartDate,
[Parameter(ParameterSetName = 'ByParameters')]
[object]$EffectiveExpirationDate,
# Parameters for 'ByConfig' Parameter Set
[Parameter(Mandatory = $true, ParameterSetName = 'ByConfig')]
[array]$Config,
# Switch Parameter for 'ByDeletion' Parameter Set
[Parameter(Mandatory = $true, ParameterSetName = 'ByDeletion')]
[switch]$DeleteAllSchedules
)
begin {
Write-Debug "Starting Set-WUGDeviceMaintenanceSchedule function"
}
process {
switch ($PSCmdlet.ParameterSetName) {
'ByParameters' {
# Validate parameters based on ScheduleType
switch ($ScheduleType) {
'Daily' {
if ($null -eq $StartTimeHour -or $null -eq $EndTimeHour) {
throw "StartTimeHour and EndTimeHour are required for 'Daily' ScheduleType."
}
}
'Weekly' {
if (-not $DaysOfWeek -or $DaysOfWeek.Count -eq 0) {
throw "When ScheduleType is 'Weekly', the DaysOfWeek parameter is required."
}
if ($null -eq $StartTimeHour -or $null -eq $EndTimeHour) {
throw "StartTimeHour and EndTimeHour are required for 'Weekly' ScheduleType."
}
}
'Monthly' {
if ($null -eq $DayOfMonth) {
throw "When ScheduleType is 'Monthly', the DayOfMonth parameter is required."
}
if ($null -eq $StartTimeHour -or $null -eq $EndTimeHour) {
throw "StartTimeHour and EndTimeHour are required for 'Monthly' ScheduleType."
}
}
'MonthlyAdvanced' {
if (-not $Occurence -or -not $DayOfWeek) {
throw "When ScheduleType is 'MonthlyAdvanced', both Occurence and DayOfWeek parameters are required."
}
if ($null -eq $StartTimeHour -or $null -eq $EndTimeHour) {
throw "StartTimeHour and EndTimeHour are required for 'MonthlyAdvanced' ScheduleType."
}
}
'Yearly' {
if ($null -eq $DayOfMonth -or -not $Month) {
throw "When ScheduleType is 'Yearly', both DayOfMonth and Month parameters are required."
}
if ($null -eq $StartTimeHour -or $null -eq $EndTimeHour) {
throw "StartTimeHour and EndTimeHour are required for 'Yearly' ScheduleType."
}
}
'YearlyAdvanced' {
if (-not $Occurence -or -not $DayOfWeek -or -not $Month) {
throw "When ScheduleType is 'YearlyAdvanced', Occurence, DayOfWeek, and Month parameters are required."
}
if ($null -eq $StartTimeHour -or $null -eq $EndTimeHour) {
throw "StartTimeHour and EndTimeHour are required for 'YearlyAdvanced' ScheduleType."
}
}
default {
throw "Invalid ScheduleType: $ScheduleType"
}
}
# If EffectiveStartDate is not specified, default to today's date
if (-not $EffectiveStartDate) {
$today = Get-Date
$EffectiveStartDate = @{
"day" = $today.Day
"month" = $today.ToString('MMMM').ToLower()
"year" = $today.Year
}
}
# Build the schedule object based on ScheduleType
$schedule = @{
"effectiveStartDate" = $EffectiveStartDate
"duration" = @{
"startTime" = @{
"hour" = $StartTimeHour
"minute" = $StartTimeMinute
}
"endTime" = @{
"hour" = $EndTimeHour
"minute" = $EndTimeMinute
}
}
}
switch ($ScheduleType) {
'Daily' {
$schedule["daily"] = @{
"repeat" = $RecurEvery
}
}
'Weekly' {
# Build daysOfTheWeek as a hashtable
$daysOfTheWeek = @{}
if ($DaysOfWeek -and ($DaysOfWeek -is [array]) -and ($DaysOfWeek.Count -gt 0)) {
foreach ($day in $DaysOfWeek) {
$daysOfTheWeek[$day.ToLower()] = $true
}
}
$schedule["weekly"] = @{
"repeat" = $RecurEvery
"daysOfTheWeek" = $daysOfTheWeek
}
}
'Monthly' {
$schedule["monthly"] = @{
"repeat" = $RecurEvery
"day" = $DayOfMonth
}
}
'MonthlyAdvanced' {
$schedule["monthlyAdvance"] = @{
"repeat" = $RecurEvery
"occurence" = $Occurence.ToLower()
"dayOfWeek" = $DayOfWeek.ToLower()
}
}
'Yearly' {
$schedule["yearly"] = @{
"day" = $DayOfMonth
"month" = $Month.ToLower()
}
}
'YearlyAdvanced' {
$schedule["yearlyAdvance"] = @{
"week" = $Occurence.ToLower()
"dayOfWeek" = $DayOfWeek.ToLower()
"month" = $Month.ToLower()
}
}
default {
throw "Invalid ScheduleType: $ScheduleType"
}
}
# Remove 'effectiveExpirationDate' if it's $null
if ($null -eq $EffectiveExpirationDate) {
$schedule.PSObject.Properties.Remove('effectiveExpirationDate') | Out-Null
}
else {
$schedule["effectiveExpirationDate"] = $EffectiveExpirationDate
}
$schedules = @($schedule)
$body = @{
"schedules" = $schedules
"devices" = $DeviceId
}
$jsonBody = ConvertTo-Json -InputObject $body -Depth 10
Write-Debug "Request Body: $jsonBody"
# Send the PATCH request to the API
$url = "$($global:WhatsUpServerBaseURI)/api/v1/devices/-/config/maintenance/schedule"
Write-Debug "Sending PATCH request to URL: $url"
try {
$result = Get-WUGAPIResponse -Uri $url -Method "PATCH" -Body $jsonBody
# Directly output the 'data' property for better readability
Write-Output $result.data
}
catch {
# Capture detailed error information
if ($_.Exception.Response) {
$responseStream = $_.Exception.Response.GetResponseStream()
$reader = New-Object System.IO.StreamReader($responseStream)
$responseBody = $reader.ReadToEnd()
Write-Error "API call failed. Status Code: $($_.Exception.Response.StatusCode) ($($_.Exception.Response.StatusDescription)). Response Body: $responseBody"
}
else {
Write-Error "API call failed. Exception: $($_.Exception.Message)"
}
return
}
}
'ByConfig' {
# Handle setting the schedule via Config object (Supports Single and Multiple Devices)
if ($DeviceId.Count -eq 0) {
Write-Error "At least one DeviceId must be specified with the -Config parameter."
return
}
$isSingleDevice = $DeviceId.Count -eq 1
if ($isSingleDevice) {
# Single Device: Use PUT
$deviceId = $DeviceId[0]
# Transform each schedule in Config to the API expected format
$scheduleList = @()
foreach ($sched in $Config) {
# Ensure EffectiveStartDate is set
if (-not $sched.effectiveStartDate) {
$today = Get-Date
$sched.effectiveStartDate = @{
"day" = $today.Day
"month" = $today.ToString('MMMM').ToLower()
"year" = $today.Year
}
}
# Remove 'effectiveExpirationDate' if it's $null
if ($null -eq $sched.effectiveExpirationDate) {
$sched.PSObject.Properties.Remove('effectiveExpirationDate') | Out-Null
}
# Normalize ScheduleType by removing spaces and converting to lowercase
$normalizedScheduleType = $sched.ScheduleType.ToLower().Replace(' ', '')
# Build the schedule object
$schedule = @{
"effectiveStartDate" = $sched.effectiveStartDate
"duration" = @{
"startTime" = @{
"hour" = $sched.StartTimeHour
"minute" = $sched.StartTimeMinute
}
"endTime" = @{
"hour" = $sched.EndTimeHour
"minute" = $sched.EndTimeMinute
}
}
}
# Depending on normalized ScheduleType, add the appropriate schedule type field
switch ($normalizedScheduleType) {
'daily' {
$schedule["daily"] = @{
"repeat" = $sched.RecurEvery
}
}
'weekly' {
# Build daysOfTheWeek as a hashtable
$daysOfTheWeek = @{}
if ($sched.DaysOfWeek -and ($sched.DaysOfWeek -is [array]) -and ($sched.DaysOfWeek.Count -gt 0)) {
foreach ($day in $sched.DaysOfWeek) {
$daysOfTheWeek[$day.ToLower()] = $true
}
}
$schedule["weekly"] = @{
"repeat" = $sched.RecurEvery
"daysOfTheWeek" = $daysOfTheWeek
}
}
'monthly' {
$schedule["monthly"] = @{
"repeat" = $sched.RecurEvery
"day" = $sched.DayOfMonth
}
}
'monthlyadvanced' {
$schedule["monthlyAdvance"] = @{
"repeat" = $sched.RecurEvery
"occurence" = $sched.Occurence.ToLower()
"dayOfWeek" = $sched.DayOfWeek.ToLower()
}
}
'yearly' {
$schedule["yearly"] = @{
"day" = $sched.DayOfMonth
"month" = $sched.Month.ToLower()
}
}
'yearlyadvanced' {
$schedule["yearlyAdvance"] = @{
"week" = $sched.Occurence.ToLower()
"dayOfWeek" = $sched.DayOfWeek.ToLower()
"month" = $sched.Month.ToLower()
}
}
default {
throw "Invalid ScheduleType in Config: $($sched.ScheduleType)"
}
}
# Include EffectiveExpirationDate if it's not $null
if ($null -ne $sched.effectiveExpirationDate) {
$schedule["effectiveExpirationDate"] = $sched.effectiveExpirationDate
}
$scheduleList += $schedule
}
$body = @{
"schedules" = $scheduleList
}
$jsonBody = ConvertTo-Json -InputObject $body -Depth 10
Write-Debug "Request Body: $jsonBody"
# Send the PUT request to the API
$url = "$($global:WhatsUpServerBaseURI)/api/v1/devices/$deviceId/config/maintenance/schedule"
Write-Debug "Sending PUT request to URL: $url"
try {
$result = Get-WUGAPIResponse -Uri $url -Method "PUT" -Body $jsonBody
# Directly output the 'data' property for better readability
Write-Output $result.data
}
catch {
# Capture detailed error information
if ($_.Exception.Response) {
$responseStream = $_.Exception.Response.GetResponseStream()
$reader = New-Object System.IO.StreamReader($responseStream)
$responseBody = $reader.ReadToEnd()
Write-Error "API call failed. Status Code: $($_.Exception.Response.StatusCode) ($($_.Exception.Response.StatusDescription)). Response Body: $responseBody"
}
else {
Write-Error "API call failed. Exception: $($_.Exception.Message)"
}
return
}
}
else {
# Multiple Devices: Use PATCH
# Similar adjustments as above
# [Repeat the same changes for the multiple devices scenario]
}
}
'ByDeletion' {
# Handle deletion of all schedules (Multiple Devices using PATCH)
# [No changes needed here]
}
default {
Write-Error "Invalid parameter set."
return
}
}
}
end {
Write-Debug "Set-WUGDeviceMaintenanceSchedule function completed."
}
}
# SIG # Begin signature block
# MIIVvgYJKoZIhvcNAQcCoIIVrzCCFasCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCACp90+MqRlgvT3
# vIXR8uNGjVYCgelupytcg6qmbjEEk6CCEfkwggVvMIIEV6ADAgECAhBI/JO0YFWU
# jTanyYqJ1pQWMA0GCSqGSIb3DQEBDAUAMHsxCzAJBgNVBAYTAkdCMRswGQYDVQQI
# DBJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoM
# EUNvbW9kbyBDQSBMaW1pdGVkMSEwHwYDVQQDDBhBQUEgQ2VydGlmaWNhdGUgU2Vy
# dmljZXMwHhcNMjEwNTI1MDAwMDAwWhcNMjgxMjMxMjM1OTU5WjBWMQswCQYDVQQG
# EwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMS0wKwYDVQQDEyRTZWN0aWdv
# IFB1YmxpYyBDb2RlIFNpZ25pbmcgUm9vdCBSNDYwggIiMA0GCSqGSIb3DQEBAQUA
# A4ICDwAwggIKAoICAQCN55QSIgQkdC7/FiMCkoq2rjaFrEfUI5ErPtx94jGgUW+s
# hJHjUoq14pbe0IdjJImK/+8Skzt9u7aKvb0Ffyeba2XTpQxpsbxJOZrxbW6q5KCD
# J9qaDStQ6Utbs7hkNqR+Sj2pcaths3OzPAsM79szV+W+NDfjlxtd/R8SPYIDdub7
# P2bSlDFp+m2zNKzBenjcklDyZMeqLQSrw2rq4C+np9xu1+j/2iGrQL+57g2extme
# me/G3h+pDHazJyCh1rr9gOcB0u/rgimVcI3/uxXP/tEPNqIuTzKQdEZrRzUTdwUz
# T2MuuC3hv2WnBGsY2HH6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