@azure/arm-maintenance 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/LICENSE +1 -1
  3. package/dist/index.js +768 -659
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/applyUpdateForResourceGroupListSample.js +5 -10
  8. package/dist-esm/samples-dev/applyUpdateForResourceGroupListSample.js.map +1 -1
  9. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.d.ts +2 -0
  10. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.js +66 -0
  12. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.js.map +1 -0
  13. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateParentSample.js +1 -1
  14. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateSample.js +1 -1
  15. package/dist-esm/samples-dev/applyUpdatesGetParentSample.js +1 -1
  16. package/dist-esm/samples-dev/applyUpdatesGetSample.js +1 -1
  17. package/dist-esm/samples-dev/applyUpdatesListSample.js +5 -10
  18. package/dist-esm/samples-dev/applyUpdatesListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateParentSample.js +3 -3
  20. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateParentSample.js.map +1 -1
  21. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateSample.js +3 -3
  22. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateSample.js.map +1 -1
  23. package/dist-esm/samples-dev/configurationAssignmentsDeleteParentSample.js +1 -1
  24. package/dist-esm/samples-dev/configurationAssignmentsDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupCreateOrUpdateSample.js +7 -7
  26. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupCreateOrUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupGetSample.js +1 -1
  29. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupUpdateSample.js +7 -7
  30. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupUpdateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsCreateOrUpdateSample.js +7 -7
  32. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsCreateOrUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsGetSample.js +1 -1
  35. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsUpdateSample.js +7 -7
  36. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/configurationAssignmentsGetParentSample.js +1 -1
  38. package/dist-esm/samples-dev/configurationAssignmentsGetSample.js +1 -1
  39. package/dist-esm/samples-dev/configurationAssignmentsListParentSample.js +5 -10
  40. package/dist-esm/samples-dev/configurationAssignmentsListParentSample.js.map +1 -1
  41. package/dist-esm/samples-dev/configurationAssignmentsListSample.js +5 -10
  42. package/dist-esm/samples-dev/configurationAssignmentsListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/configurationAssignmentsWithinSubscriptionListSample.js +5 -10
  44. package/dist-esm/samples-dev/configurationAssignmentsWithinSubscriptionListSample.js.map +1 -1
  45. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js +3 -3
  46. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js.map +1 -1
  47. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.js +1 -1
  48. package/dist-esm/samples-dev/maintenanceConfigurationsForResourceGroupListSample.js +5 -10
  49. package/dist-esm/samples-dev/maintenanceConfigurationsForResourceGroupListSample.js.map +1 -1
  50. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.js +3 -3
  51. package/dist-esm/samples-dev/maintenanceConfigurationsListSample.js +5 -10
  52. package/dist-esm/samples-dev/maintenanceConfigurationsListSample.js.map +1 -1
  53. package/dist-esm/samples-dev/maintenanceConfigurationsUpdateSample.js +3 -3
  54. package/dist-esm/samples-dev/maintenanceConfigurationsUpdateSample.js.map +1 -1
  55. package/dist-esm/samples-dev/operationsListSample.js +5 -10
  56. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  57. package/dist-esm/samples-dev/publicMaintenanceConfigurationsGetSample.js +1 -1
  58. package/dist-esm/samples-dev/publicMaintenanceConfigurationsListSample.js +5 -10
  59. package/dist-esm/samples-dev/publicMaintenanceConfigurationsListSample.js.map +1 -1
  60. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.js +41 -0
  63. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.js.map +1 -0
  64. package/dist-esm/samples-dev/updatesListParentSample.js +5 -10
  65. package/dist-esm/samples-dev/updatesListParentSample.js.map +1 -1
  66. package/dist-esm/samples-dev/updatesListSample.js +5 -10
  67. package/dist-esm/samples-dev/updatesListSample.js.map +1 -1
  68. package/dist-esm/src/maintenanceManagementClient.d.ts +3 -3
  69. package/dist-esm/src/maintenanceManagementClient.d.ts.map +1 -1
  70. package/dist-esm/src/maintenanceManagementClient.js +21 -16
  71. package/dist-esm/src/maintenanceManagementClient.js.map +1 -1
  72. package/dist-esm/src/models/index.d.ts +38 -14
  73. package/dist-esm/src/models/index.d.ts.map +1 -1
  74. package/dist-esm/src/models/index.js +6 -0
  75. package/dist-esm/src/models/index.js.map +1 -1
  76. package/dist-esm/src/models/mappers.d.ts +3 -2
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  78. package/dist-esm/src/models/mappers.js +262 -248
  79. package/dist-esm/src/models/mappers.js.map +1 -1
  80. package/dist-esm/src/models/parameters.d.ts +7 -4
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  82. package/dist-esm/src/models/parameters.js +94 -66
  83. package/dist-esm/src/models/parameters.js.map +1 -1
  84. package/dist-esm/src/operations/applyUpdateForResourceGroup.d.ts.map +1 -1
  85. package/dist-esm/src/operations/applyUpdateForResourceGroup.js +9 -14
  86. package/dist-esm/src/operations/applyUpdateForResourceGroup.js.map +1 -1
  87. package/dist-esm/src/operations/applyUpdates.d.ts +12 -1
  88. package/dist-esm/src/operations/applyUpdates.d.ts.map +1 -1
  89. package/dist-esm/src/operations/applyUpdates.js +89 -44
  90. package/dist-esm/src/operations/applyUpdates.js.map +1 -1
  91. package/dist-esm/src/operations/configurationAssignments.js +71 -81
  92. package/dist-esm/src/operations/configurationAssignments.js.map +1 -1
  93. package/dist-esm/src/operations/configurationAssignmentsForResourceGroup.d.ts.map +1 -1
  94. package/dist-esm/src/operations/configurationAssignmentsForResourceGroup.js +27 -27
  95. package/dist-esm/src/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
  96. package/dist-esm/src/operations/configurationAssignmentsForSubscriptions.d.ts.map +1 -1
  97. package/dist-esm/src/operations/configurationAssignmentsForSubscriptions.js +21 -21
  98. package/dist-esm/src/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
  99. package/dist-esm/src/operations/configurationAssignmentsWithinSubscription.d.ts.map +1 -1
  100. package/dist-esm/src/operations/configurationAssignmentsWithinSubscription.js +8 -13
  101. package/dist-esm/src/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
  102. package/dist-esm/src/operations/index.d.ts +1 -0
  103. package/dist-esm/src/operations/index.d.ts.map +1 -1
  104. package/dist-esm/src/operations/index.js +1 -0
  105. package/dist-esm/src/operations/index.js.map +1 -1
  106. package/dist-esm/src/operations/maintenanceConfigurations.d.ts.map +1 -1
  107. package/dist-esm/src/operations/maintenanceConfigurations.js +29 -34
  108. package/dist-esm/src/operations/maintenanceConfigurations.js.map +1 -1
  109. package/dist-esm/src/operations/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -1
  110. package/dist-esm/src/operations/maintenanceConfigurationsForResourceGroup.js +9 -14
  111. package/dist-esm/src/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -1
  112. package/dist-esm/src/operations/operations.js +8 -13
  113. package/dist-esm/src/operations/operations.js.map +1 -1
  114. package/dist-esm/src/operations/publicMaintenanceConfigurations.d.ts.map +1 -1
  115. package/dist-esm/src/operations/publicMaintenanceConfigurations.js +13 -18
  116. package/dist-esm/src/operations/publicMaintenanceConfigurations.js.map +1 -1
  117. package/dist-esm/src/operations/scheduledEvent.d.ts +23 -0
  118. package/dist-esm/src/operations/scheduledEvent.d.ts.map +1 -0
  119. package/dist-esm/src/operations/scheduledEvent.js +64 -0
  120. package/dist-esm/src/operations/scheduledEvent.js.map +1 -0
  121. package/dist-esm/src/operations/updates.js +21 -31
  122. package/dist-esm/src/operations/updates.js.map +1 -1
  123. package/dist-esm/src/operationsInterfaces/applyUpdates.d.ts +12 -1
  124. package/dist-esm/src/operationsInterfaces/applyUpdates.d.ts.map +1 -1
  125. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  126. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  127. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  128. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  129. package/dist-esm/src/operationsInterfaces/scheduledEvent.d.ts +15 -0
  130. package/dist-esm/src/operationsInterfaces/scheduledEvent.d.ts.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/scheduledEvent.js +9 -0
  132. package/dist-esm/src/operationsInterfaces/scheduledEvent.js.map +1 -0
  133. package/dist-esm/src/pagingHelper.js.map +1 -1
  134. package/dist-esm/test/maintenance_operations_test.spec.d.ts.map +1 -1
  135. package/dist-esm/test/maintenance_operations_test.spec.js +16 -25
  136. package/dist-esm/test/maintenance_operations_test.spec.js.map +1 -1
  137. package/package.json +18 -23
  138. package/review/arm-maintenance.api.md +30 -0
  139. package/src/maintenanceManagementClient.ts +34 -35
  140. package/src/models/index.ts +88 -40
  141. package/src/models/mappers.ts +307 -291
  142. package/src/models/parameters.ts +101 -69
  143. package/src/operations/applyUpdateForResourceGroup.ts +15 -15
  144. package/src/operations/applyUpdates.ts +118 -59
  145. package/src/operations/configurationAssignments.ts +104 -112
  146. package/src/operations/configurationAssignmentsForResourceGroup.ts +42 -45
  147. package/src/operations/configurationAssignmentsForSubscriptions.ts +36 -39
  148. package/src/operations/configurationAssignmentsWithinSubscription.ts +13 -13
  149. package/src/operations/index.ts +1 -0
  150. package/src/operations/maintenanceConfigurations.ts +46 -50
  151. package/src/operations/maintenanceConfigurationsForResourceGroup.ts +15 -15
  152. package/src/operations/operations.ts +10 -10
  153. package/src/operations/publicMaintenanceConfigurations.ts +21 -22
  154. package/src/operations/scheduledEvent.ts +84 -0
  155. package/src/operations/updates.ts +36 -38
  156. package/src/operationsInterfaces/applyUpdateForResourceGroup.ts +2 -2
  157. package/src/operationsInterfaces/applyUpdates.ts +27 -6
  158. package/src/operationsInterfaces/configurationAssignments.ts +9 -9
  159. package/src/operationsInterfaces/configurationAssignmentsForResourceGroup.ts +5 -5
  160. package/src/operationsInterfaces/configurationAssignmentsForSubscriptions.ts +5 -5
  161. package/src/operationsInterfaces/configurationAssignmentsWithinSubscription.ts +2 -2
  162. package/src/operationsInterfaces/index.ts +1 -0
  163. package/src/operationsInterfaces/maintenanceConfigurations.ts +6 -6
  164. package/src/operationsInterfaces/maintenanceConfigurationsForResourceGroup.ts +2 -2
  165. package/src/operationsInterfaces/operations.ts +1 -1
  166. package/src/operationsInterfaces/publicMaintenanceConfigurations.ts +3 -3
  167. package/src/operationsInterfaces/scheduledEvent.ts +32 -0
  168. package/src/operationsInterfaces/updates.ts +3 -3
  169. package/src/pagingHelper.ts +1 -1
  170. package/types/arm-maintenance.d.ts +58 -4
  171. package/types/tsdoc-metadata.json +1 -1
  172. package/rollup.config.js +0 -122
package/dist/index.js CHANGED
@@ -6,8 +6,7 @@ var tslib = require('tslib');
6
6
  var coreClient = require('@azure/core-client');
7
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
8
8
 
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
9
+ function _interopNamespaceDefault(e) {
11
10
  var n = Object.create(null);
12
11
  if (e) {
13
12
  Object.keys(e).forEach(function (k) {
@@ -20,12 +19,12 @@ function _interopNamespace(e) {
20
19
  }
21
20
  });
22
21
  }
23
- n["default"] = e;
22
+ n.default = e;
24
23
  return Object.freeze(n);
25
24
  }
26
25
 
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
26
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
27
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
28
 
30
29
  /*
31
30
  * Copyright (c) Microsoft Corporation.
@@ -118,6 +117,12 @@ exports.KnownUpdateStatus = void 0;
118
117
  KnownUpdateStatus["RetryNow"] = "RetryNow";
119
118
  /** Updates installation failed and should be retried later. */
120
119
  KnownUpdateStatus["RetryLater"] = "RetryLater";
120
+ /** No updates are pending. */
121
+ KnownUpdateStatus["NoUpdatesPending"] = "NoUpdatesPending";
122
+ /** Cancel the schedule and stop creating PMR for resources part of it. Applicable to Maintenance Configuration resource type only. */
123
+ KnownUpdateStatus["Cancel"] = "Cancel";
124
+ /** Send the Cancelled response to the user if request came to cancel the schedule. Applicable to Maintenance Configuration resource type only. */
125
+ KnownUpdateStatus["Cancelled"] = "Cancelled";
121
126
  })(exports.KnownUpdateStatus || (exports.KnownUpdateStatus = {}));
122
127
  /** Known values of {@link ImpactType} that the service accepts. */
123
128
  exports.KnownImpactType = void 0;
@@ -139,6 +144,55 @@ exports.KnownImpactType = void 0;
139
144
  * Code generated by Microsoft (R) AutoRest Code Generator.
140
145
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
141
146
  */
147
+ const ScheduledEventApproveResponse = {
148
+ type: {
149
+ name: "Composite",
150
+ className: "ScheduledEventApproveResponse",
151
+ modelProperties: {
152
+ value: {
153
+ serializedName: "value",
154
+ type: {
155
+ name: "String",
156
+ },
157
+ },
158
+ },
159
+ },
160
+ };
161
+ const MaintenanceError = {
162
+ type: {
163
+ name: "Composite",
164
+ className: "MaintenanceError",
165
+ modelProperties: {
166
+ error: {
167
+ serializedName: "error",
168
+ type: {
169
+ name: "Composite",
170
+ className: "ErrorDetails",
171
+ },
172
+ },
173
+ },
174
+ },
175
+ };
176
+ const ErrorDetails = {
177
+ type: {
178
+ name: "Composite",
179
+ className: "ErrorDetails",
180
+ modelProperties: {
181
+ code: {
182
+ serializedName: "code",
183
+ type: {
184
+ name: "String",
185
+ },
186
+ },
187
+ message: {
188
+ serializedName: "message",
189
+ type: {
190
+ name: "String",
191
+ },
192
+ },
193
+ },
194
+ },
195
+ };
142
196
  const ListMaintenanceConfigurationsResult = {
143
197
  type: {
144
198
  name: "Composite",
@@ -151,13 +205,13 @@ const ListMaintenanceConfigurationsResult = {
151
205
  element: {
152
206
  type: {
153
207
  name: "Composite",
154
- className: "MaintenanceConfiguration"
155
- }
156
- }
157
- }
158
- }
159
- }
160
- }
208
+ className: "MaintenanceConfiguration",
209
+ },
210
+ },
211
+ },
212
+ },
213
+ },
214
+ },
161
215
  };
162
216
  const InputPatchConfiguration = {
163
217
  type: {
@@ -168,25 +222,25 @@ const InputPatchConfiguration = {
168
222
  defaultValue: "IfRequired",
169
223
  serializedName: "rebootSetting",
170
224
  type: {
171
- name: "String"
172
- }
225
+ name: "String",
226
+ },
173
227
  },
174
228
  windowsParameters: {
175
229
  serializedName: "windowsParameters",
176
230
  type: {
177
231
  name: "Composite",
178
- className: "InputWindowsParameters"
179
- }
232
+ className: "InputWindowsParameters",
233
+ },
180
234
  },
181
235
  linuxParameters: {
182
236
  serializedName: "linuxParameters",
183
237
  type: {
184
238
  name: "Composite",
185
- className: "InputLinuxParameters"
186
- }
187
- }
188
- }
189
- }
239
+ className: "InputLinuxParameters",
240
+ },
241
+ },
242
+ },
243
+ },
190
244
  };
191
245
  const InputWindowsParameters = {
192
246
  type: {
@@ -199,10 +253,10 @@ const InputWindowsParameters = {
199
253
  name: "Sequence",
200
254
  element: {
201
255
  type: {
202
- name: "String"
203
- }
204
- }
205
- }
256
+ name: "String",
257
+ },
258
+ },
259
+ },
206
260
  },
207
261
  kbNumbersToInclude: {
208
262
  serializedName: "kbNumbersToInclude",
@@ -210,10 +264,10 @@ const InputWindowsParameters = {
210
264
  name: "Sequence",
211
265
  element: {
212
266
  type: {
213
- name: "String"
214
- }
215
- }
216
- }
267
+ name: "String",
268
+ },
269
+ },
270
+ },
217
271
  },
218
272
  classificationsToInclude: {
219
273
  serializedName: "classificationsToInclude",
@@ -221,19 +275,19 @@ const InputWindowsParameters = {
221
275
  name: "Sequence",
222
276
  element: {
223
277
  type: {
224
- name: "String"
225
- }
226
- }
227
- }
278
+ name: "String",
279
+ },
280
+ },
281
+ },
228
282
  },
229
283
  excludeKbsRequiringReboot: {
230
284
  serializedName: "excludeKbsRequiringReboot",
231
285
  type: {
232
- name: "Boolean"
233
- }
234
- }
235
- }
236
- }
286
+ name: "Boolean",
287
+ },
288
+ },
289
+ },
290
+ },
237
291
  };
238
292
  const InputLinuxParameters = {
239
293
  type: {
@@ -246,10 +300,10 @@ const InputLinuxParameters = {
246
300
  name: "Sequence",
247
301
  element: {
248
302
  type: {
249
- name: "String"
250
- }
251
- }
252
- }
303
+ name: "String",
304
+ },
305
+ },
306
+ },
253
307
  },
254
308
  packageNameMasksToInclude: {
255
309
  serializedName: "packageNameMasksToInclude",
@@ -257,10 +311,10 @@ const InputLinuxParameters = {
257
311
  name: "Sequence",
258
312
  element: {
259
313
  type: {
260
- name: "String"
261
- }
262
- }
263
- }
314
+ name: "String",
315
+ },
316
+ },
317
+ },
264
318
  },
265
319
  classificationsToInclude: {
266
320
  serializedName: "classificationsToInclude",
@@ -268,13 +322,13 @@ const InputLinuxParameters = {
268
322
  name: "Sequence",
269
323
  element: {
270
324
  type: {
271
- name: "String"
272
- }
273
- }
274
- }
275
- }
276
- }
277
- }
325
+ name: "String",
326
+ },
327
+ },
328
+ },
329
+ },
330
+ },
331
+ },
278
332
  };
279
333
  const Resource = {
280
334
  type: {
@@ -285,32 +339,32 @@ const Resource = {
285
339
  serializedName: "id",
286
340
  readOnly: true,
287
341
  type: {
288
- name: "String"
289
- }
342
+ name: "String",
343
+ },
290
344
  },
291
345
  name: {
292
346
  serializedName: "name",
293
347
  readOnly: true,
294
348
  type: {
295
- name: "String"
296
- }
349
+ name: "String",
350
+ },
297
351
  },
298
352
  type: {
299
353
  serializedName: "type",
300
354
  readOnly: true,
301
355
  type: {
302
- name: "String"
303
- }
356
+ name: "String",
357
+ },
304
358
  },
305
359
  systemData: {
306
360
  serializedName: "systemData",
307
361
  type: {
308
362
  name: "Composite",
309
- className: "SystemData"
310
- }
311
- }
312
- }
313
- }
363
+ className: "SystemData",
364
+ },
365
+ },
366
+ },
367
+ },
314
368
  };
315
369
  const SystemData = {
316
370
  type: {
@@ -320,76 +374,41 @@ const SystemData = {
320
374
  createdBy: {
321
375
  serializedName: "createdBy",
322
376
  type: {
323
- name: "String"
324
- }
377
+ name: "String",
378
+ },
325
379
  },
326
380
  createdByType: {
327
381
  serializedName: "createdByType",
328
382
  type: {
329
- name: "String"
330
- }
383
+ name: "String",
384
+ },
331
385
  },
332
386
  createdAt: {
333
387
  serializedName: "createdAt",
334
388
  type: {
335
- name: "DateTime"
336
- }
389
+ name: "DateTime",
390
+ },
337
391
  },
338
392
  lastModifiedBy: {
339
393
  serializedName: "lastModifiedBy",
340
394
  type: {
341
- name: "String"
342
- }
395
+ name: "String",
396
+ },
343
397
  },
344
398
  lastModifiedByType: {
345
399
  serializedName: "lastModifiedByType",
346
400
  type: {
347
- name: "String"
348
- }
401
+ name: "String",
402
+ },
349
403
  },
350
404
  lastModifiedAt: {
351
405
  serializedName: "lastModifiedAt",
352
406
  type: {
353
- name: "DateTime"
354
- }
355
- }
356
- }
357
- }
358
- };
359
- const MaintenanceError = {
360
- type: {
361
- name: "Composite",
362
- className: "MaintenanceError",
363
- modelProperties: {
364
- error: {
365
- serializedName: "error",
366
- type: {
367
- name: "Composite",
368
- className: "ErrorDetails"
369
- }
370
- }
371
- }
372
- }
373
- };
374
- const ErrorDetails = {
375
- type: {
376
- name: "Composite",
377
- className: "ErrorDetails",
378
- modelProperties: {
379
- code: {
380
- serializedName: "code",
381
- type: {
382
- name: "String"
383
- }
407
+ name: "DateTime",
408
+ },
384
409
  },
385
- message: {
386
- serializedName: "message",
387
- type: {
388
- name: "String"
389
- }
390
- }
391
- }
392
- }
410
+ },
411
+ },
393
412
  };
394
413
  const ConfigurationAssignmentFilterProperties = {
395
414
  type: {
@@ -402,10 +421,10 @@ const ConfigurationAssignmentFilterProperties = {
402
421
  name: "Sequence",
403
422
  element: {
404
423
  type: {
405
- name: "String"
406
- }
407
- }
408
- }
424
+ name: "String",
425
+ },
426
+ },
427
+ },
409
428
  },
410
429
  resourceGroups: {
411
430
  serializedName: "resourceGroups",
@@ -413,10 +432,10 @@ const ConfigurationAssignmentFilterProperties = {
413
432
  name: "Sequence",
414
433
  element: {
415
434
  type: {
416
- name: "String"
417
- }
418
- }
419
- }
435
+ name: "String",
436
+ },
437
+ },
438
+ },
420
439
  },
421
440
  osTypes: {
422
441
  serializedName: "osTypes",
@@ -424,10 +443,10 @@ const ConfigurationAssignmentFilterProperties = {
424
443
  name: "Sequence",
425
444
  element: {
426
445
  type: {
427
- name: "String"
428
- }
429
- }
430
- }
446
+ name: "String",
447
+ },
448
+ },
449
+ },
431
450
  },
432
451
  locations: {
433
452
  serializedName: "locations",
@@ -435,20 +454,20 @@ const ConfigurationAssignmentFilterProperties = {
435
454
  name: "Sequence",
436
455
  element: {
437
456
  type: {
438
- name: "String"
439
- }
440
- }
441
- }
457
+ name: "String",
458
+ },
459
+ },
460
+ },
442
461
  },
443
462
  tagSettings: {
444
463
  serializedName: "tagSettings",
445
464
  type: {
446
465
  name: "Composite",
447
- className: "TagSettingsProperties"
448
- }
449
- }
450
- }
451
- }
466
+ className: "TagSettingsProperties",
467
+ },
468
+ },
469
+ },
470
+ },
452
471
  };
453
472
  const TagSettingsProperties = {
454
473
  type: {
@@ -460,19 +479,19 @@ const TagSettingsProperties = {
460
479
  type: {
461
480
  name: "Dictionary",
462
481
  value: {
463
- type: { name: "Sequence", element: { type: { name: "String" } } }
464
- }
465
- }
482
+ type: { name: "Sequence", element: { type: { name: "String" } } },
483
+ },
484
+ },
466
485
  },
467
486
  filterOperator: {
468
487
  serializedName: "filterOperator",
469
488
  type: {
470
489
  name: "Enum",
471
- allowedValues: ["All", "Any"]
472
- }
473
- }
474
- }
475
- }
490
+ allowedValues: ["All", "Any"],
491
+ },
492
+ },
493
+ },
494
+ },
476
495
  };
477
496
  const ListConfigurationAssignmentsResult = {
478
497
  type: {
@@ -486,13 +505,13 @@ const ListConfigurationAssignmentsResult = {
486
505
  element: {
487
506
  type: {
488
507
  name: "Composite",
489
- className: "ConfigurationAssignment"
490
- }
491
- }
492
- }
493
- }
494
- }
495
- }
508
+ className: "ConfigurationAssignment",
509
+ },
510
+ },
511
+ },
512
+ },
513
+ },
514
+ },
496
515
  };
497
516
  const ListApplyUpdate = {
498
517
  type: {
@@ -506,13 +525,13 @@ const ListApplyUpdate = {
506
525
  element: {
507
526
  type: {
508
527
  name: "Composite",
509
- className: "ApplyUpdate"
510
- }
511
- }
512
- }
513
- }
514
- }
515
- }
528
+ className: "ApplyUpdate",
529
+ },
530
+ },
531
+ },
532
+ },
533
+ },
534
+ },
516
535
  };
517
536
  const OperationsListResult = {
518
537
  type: {
@@ -526,13 +545,13 @@ const OperationsListResult = {
526
545
  element: {
527
546
  type: {
528
547
  name: "Composite",
529
- className: "Operation"
530
- }
531
- }
532
- }
533
- }
534
- }
535
- }
548
+ className: "Operation",
549
+ },
550
+ },
551
+ },
552
+ },
553
+ },
554
+ },
536
555
  };
537
556
  const Operation = {
538
557
  type: {
@@ -542,37 +561,37 @@ const Operation = {
542
561
  name: {
543
562
  serializedName: "name",
544
563
  type: {
545
- name: "String"
546
- }
564
+ name: "String",
565
+ },
547
566
  },
548
567
  display: {
549
568
  serializedName: "display",
550
569
  type: {
551
570
  name: "Composite",
552
- className: "OperationInfo"
553
- }
571
+ className: "OperationInfo",
572
+ },
554
573
  },
555
574
  origin: {
556
575
  serializedName: "origin",
557
576
  type: {
558
- name: "String"
559
- }
577
+ name: "String",
578
+ },
560
579
  },
561
580
  properties: {
562
581
  serializedName: "properties",
563
582
  type: {
564
583
  name: "Dictionary",
565
- value: { type: { name: "any" } }
566
- }
584
+ value: { type: { name: "any" } },
585
+ },
567
586
  },
568
587
  isDataAction: {
569
588
  serializedName: "isDataAction",
570
589
  type: {
571
- name: "Boolean"
572
- }
573
- }
574
- }
575
- }
590
+ name: "Boolean",
591
+ },
592
+ },
593
+ },
594
+ },
576
595
  };
577
596
  const OperationInfo = {
578
597
  type: {
@@ -582,29 +601,29 @@ const OperationInfo = {
582
601
  provider: {
583
602
  serializedName: "provider",
584
603
  type: {
585
- name: "String"
586
- }
604
+ name: "String",
605
+ },
587
606
  },
588
607
  resource: {
589
608
  serializedName: "resource",
590
609
  type: {
591
- name: "String"
592
- }
610
+ name: "String",
611
+ },
593
612
  },
594
613
  operation: {
595
614
  serializedName: "operation",
596
615
  type: {
597
- name: "String"
598
- }
616
+ name: "String",
617
+ },
599
618
  },
600
619
  description: {
601
620
  serializedName: "description",
602
621
  type: {
603
- name: "String"
604
- }
605
- }
606
- }
607
- }
622
+ name: "String",
623
+ },
624
+ },
625
+ },
626
+ },
608
627
  };
609
628
  const ListUpdatesResult = {
610
629
  type: {
@@ -618,13 +637,13 @@ const ListUpdatesResult = {
618
637
  element: {
619
638
  type: {
620
639
  name: "Composite",
621
- className: "Update"
622
- }
623
- }
624
- }
625
- }
626
- }
627
- }
640
+ className: "Update",
641
+ },
642
+ },
643
+ },
644
+ },
645
+ },
646
+ },
628
647
  };
629
648
  const Update = {
630
649
  type: {
@@ -634,41 +653,41 @@ const Update = {
634
653
  maintenanceScope: {
635
654
  serializedName: "maintenanceScope",
636
655
  type: {
637
- name: "String"
638
- }
656
+ name: "String",
657
+ },
639
658
  },
640
659
  impactType: {
641
660
  serializedName: "impactType",
642
661
  type: {
643
- name: "String"
644
- }
662
+ name: "String",
663
+ },
645
664
  },
646
665
  status: {
647
666
  serializedName: "status",
648
667
  type: {
649
- name: "String"
650
- }
668
+ name: "String",
669
+ },
651
670
  },
652
671
  impactDurationInSec: {
653
672
  serializedName: "impactDurationInSec",
654
673
  type: {
655
- name: "Number"
656
- }
674
+ name: "Number",
675
+ },
657
676
  },
658
677
  notBefore: {
659
678
  serializedName: "notBefore",
660
679
  type: {
661
- name: "DateTime"
662
- }
680
+ name: "DateTime",
681
+ },
663
682
  },
664
683
  resourceId: {
665
684
  serializedName: "properties.resourceId",
666
685
  type: {
667
- name: "String"
668
- }
669
- }
670
- }
671
- }
686
+ name: "String",
687
+ },
688
+ },
689
+ },
690
+ },
672
691
  };
673
692
  const MaintenanceConfiguration = {
674
693
  type: {
@@ -677,68 +696,68 @@ const MaintenanceConfiguration = {
677
696
  modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
678
697
  serializedName: "location",
679
698
  type: {
680
- name: "String"
681
- }
699
+ name: "String",
700
+ },
682
701
  }, tags: {
683
702
  serializedName: "tags",
684
703
  type: {
685
704
  name: "Dictionary",
686
- value: { type: { name: "String" } }
687
- }
705
+ value: { type: { name: "String" } },
706
+ },
688
707
  }, namespace: {
689
708
  serializedName: "properties.namespace",
690
709
  type: {
691
- name: "String"
692
- }
710
+ name: "String",
711
+ },
693
712
  }, extensionProperties: {
694
713
  serializedName: "properties.extensionProperties",
695
714
  type: {
696
715
  name: "Dictionary",
697
- value: { type: { name: "String" } }
698
- }
716
+ value: { type: { name: "String" } },
717
+ },
699
718
  }, maintenanceScope: {
700
719
  serializedName: "properties.maintenanceScope",
701
720
  type: {
702
- name: "String"
703
- }
721
+ name: "String",
722
+ },
704
723
  }, visibility: {
705
724
  serializedName: "properties.visibility",
706
725
  type: {
707
- name: "String"
708
- }
726
+ name: "String",
727
+ },
709
728
  }, installPatches: {
710
729
  serializedName: "properties.installPatches",
711
730
  type: {
712
731
  name: "Composite",
713
- className: "InputPatchConfiguration"
714
- }
732
+ className: "InputPatchConfiguration",
733
+ },
715
734
  }, startDateTime: {
716
735
  serializedName: "properties.maintenanceWindow.startDateTime",
717
736
  type: {
718
- name: "String"
719
- }
737
+ name: "String",
738
+ },
720
739
  }, expirationDateTime: {
721
740
  serializedName: "properties.maintenanceWindow.expirationDateTime",
722
741
  type: {
723
- name: "String"
724
- }
742
+ name: "String",
743
+ },
725
744
  }, duration: {
726
745
  serializedName: "properties.maintenanceWindow.duration",
727
746
  type: {
728
- name: "String"
729
- }
747
+ name: "String",
748
+ },
730
749
  }, timeZone: {
731
750
  serializedName: "properties.maintenanceWindow.timeZone",
732
751
  type: {
733
- name: "String"
734
- }
752
+ name: "String",
753
+ },
735
754
  }, recurEvery: {
736
755
  serializedName: "properties.maintenanceWindow.recurEvery",
737
756
  type: {
738
- name: "String"
739
- }
740
- } })
741
- }
757
+ name: "String",
758
+ },
759
+ } }),
760
+ },
742
761
  };
743
762
  const ApplyUpdate = {
744
763
  type: {
@@ -747,20 +766,20 @@ const ApplyUpdate = {
747
766
  modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { status: {
748
767
  serializedName: "properties.status",
749
768
  type: {
750
- name: "String"
751
- }
769
+ name: "String",
770
+ },
752
771
  }, resourceId: {
753
772
  serializedName: "properties.resourceId",
754
773
  type: {
755
- name: "String"
756
- }
774
+ name: "String",
775
+ },
757
776
  }, lastUpdateTime: {
758
777
  serializedName: "properties.lastUpdateTime",
759
778
  type: {
760
- name: "DateTime"
761
- }
762
- } })
763
- }
779
+ name: "DateTime",
780
+ },
781
+ } }),
782
+ },
764
783
  };
765
784
  const ConfigurationAssignment = {
766
785
  type: {
@@ -769,50 +788,51 @@ const ConfigurationAssignment = {
769
788
  modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
770
789
  serializedName: "location",
771
790
  type: {
772
- name: "String"
773
- }
791
+ name: "String",
792
+ },
774
793
  }, maintenanceConfigurationId: {
775
794
  serializedName: "properties.maintenanceConfigurationId",
776
795
  type: {
777
- name: "String"
778
- }
796
+ name: "String",
797
+ },
779
798
  }, resourceId: {
780
799
  serializedName: "properties.resourceId",
781
800
  type: {
782
- name: "String"
783
- }
801
+ name: "String",
802
+ },
784
803
  }, filter: {
785
804
  serializedName: "properties.filter",
786
805
  type: {
787
806
  name: "Composite",
788
- className: "ConfigurationAssignmentFilterProperties"
789
- }
790
- } })
791
- }
807
+ className: "ConfigurationAssignmentFilterProperties",
808
+ },
809
+ } }),
810
+ },
792
811
  };
793
812
 
794
813
  var Mappers = /*#__PURE__*/Object.freeze({
795
814
  __proto__: null,
796
- ListMaintenanceConfigurationsResult: ListMaintenanceConfigurationsResult,
815
+ ApplyUpdate: ApplyUpdate,
816
+ ConfigurationAssignment: ConfigurationAssignment,
817
+ ConfigurationAssignmentFilterProperties: ConfigurationAssignmentFilterProperties,
818
+ ErrorDetails: ErrorDetails,
819
+ InputLinuxParameters: InputLinuxParameters,
797
820
  InputPatchConfiguration: InputPatchConfiguration,
798
821
  InputWindowsParameters: InputWindowsParameters,
799
- InputLinuxParameters: InputLinuxParameters,
800
- Resource: Resource,
801
- SystemData: SystemData,
802
- MaintenanceError: MaintenanceError,
803
- ErrorDetails: ErrorDetails,
804
- ConfigurationAssignmentFilterProperties: ConfigurationAssignmentFilterProperties,
805
- TagSettingsProperties: TagSettingsProperties,
806
- ListConfigurationAssignmentsResult: ListConfigurationAssignmentsResult,
807
822
  ListApplyUpdate: ListApplyUpdate,
808
- OperationsListResult: OperationsListResult,
809
- Operation: Operation,
810
- OperationInfo: OperationInfo,
823
+ ListConfigurationAssignmentsResult: ListConfigurationAssignmentsResult,
824
+ ListMaintenanceConfigurationsResult: ListMaintenanceConfigurationsResult,
811
825
  ListUpdatesResult: ListUpdatesResult,
812
- Update: Update,
813
826
  MaintenanceConfiguration: MaintenanceConfiguration,
814
- ApplyUpdate: ApplyUpdate,
815
- ConfigurationAssignment: ConfigurationAssignment
827
+ MaintenanceError: MaintenanceError,
828
+ Operation: Operation,
829
+ OperationInfo: OperationInfo,
830
+ OperationsListResult: OperationsListResult,
831
+ Resource: Resource,
832
+ ScheduledEventApproveResponse: ScheduledEventApproveResponse,
833
+ SystemData: SystemData,
834
+ TagSettingsProperties: TagSettingsProperties,
835
+ Update: Update
816
836
  });
817
837
 
818
838
  /*
@@ -829,9 +849,9 @@ const accept = {
829
849
  isConstant: true,
830
850
  serializedName: "Accept",
831
851
  type: {
832
- name: "String"
833
- }
834
- }
852
+ name: "String",
853
+ },
854
+ },
835
855
  };
836
856
  const $host = {
837
857
  parameterPath: "$host",
@@ -839,10 +859,10 @@ const $host = {
839
859
  serializedName: "$host",
840
860
  required: true,
841
861
  type: {
842
- name: "String"
843
- }
862
+ name: "String",
863
+ },
844
864
  },
845
- skipEncoding: true
865
+ skipEncoding: true,
846
866
  };
847
867
  const subscriptionId = {
848
868
  parameterPath: "subscriptionId",
@@ -850,20 +870,33 @@ const subscriptionId = {
850
870
  serializedName: "subscriptionId",
851
871
  required: true,
852
872
  type: {
853
- name: "String"
854
- }
855
- }
873
+ name: "Uuid",
874
+ },
875
+ },
856
876
  };
857
- const apiVersion = {
858
- parameterPath: "apiVersion",
877
+ const resourceGroupName = {
878
+ parameterPath: "resourceGroupName",
859
879
  mapper: {
860
- defaultValue: "2023-04-01",
861
- isConstant: true,
862
- serializedName: "api-version",
880
+ constraints: {
881
+ MaxLength: 90,
882
+ MinLength: 1,
883
+ },
884
+ serializedName: "resourceGroupName",
885
+ required: true,
863
886
  type: {
864
- name: "String"
865
- }
866
- }
887
+ name: "String",
888
+ },
889
+ },
890
+ };
891
+ const resourceType = {
892
+ parameterPath: "resourceType",
893
+ mapper: {
894
+ serializedName: "resourceType",
895
+ required: true,
896
+ type: {
897
+ name: "String",
898
+ },
899
+ },
867
900
  };
868
901
  const resourceName = {
869
902
  parameterPath: "resourceName",
@@ -871,19 +904,40 @@ const resourceName = {
871
904
  serializedName: "resourceName",
872
905
  required: true,
873
906
  type: {
874
- name: "String"
875
- }
876
- }
907
+ name: "String",
908
+ },
909
+ },
877
910
  };
878
- const resourceGroupName = {
911
+ const scheduledEventId = {
912
+ parameterPath: "scheduledEventId",
913
+ mapper: {
914
+ serializedName: "scheduledEventId",
915
+ required: true,
916
+ type: {
917
+ name: "String",
918
+ },
919
+ },
920
+ };
921
+ const apiVersion = {
922
+ parameterPath: "apiVersion",
923
+ mapper: {
924
+ defaultValue: "2023-10-01-preview",
925
+ isConstant: true,
926
+ serializedName: "api-version",
927
+ type: {
928
+ name: "String",
929
+ },
930
+ },
931
+ };
932
+ const resourceGroupName1 = {
879
933
  parameterPath: "resourceGroupName",
880
934
  mapper: {
881
935
  serializedName: "resourceGroupName",
882
936
  required: true,
883
937
  type: {
884
- name: "String"
885
- }
886
- }
938
+ name: "String",
939
+ },
940
+ },
887
941
  };
888
942
  const providerName = {
889
943
  parameterPath: "providerName",
@@ -891,9 +945,9 @@ const providerName = {
891
945
  serializedName: "providerName",
892
946
  required: true,
893
947
  type: {
894
- name: "String"
895
- }
896
- }
948
+ name: "String",
949
+ },
950
+ },
897
951
  };
898
952
  const resourceParentType = {
899
953
  parameterPath: "resourceParentType",
@@ -901,9 +955,9 @@ const resourceParentType = {
901
955
  serializedName: "resourceParentType",
902
956
  required: true,
903
957
  type: {
904
- name: "String"
905
- }
906
- }
958
+ name: "String",
959
+ },
960
+ },
907
961
  };
908
962
  const resourceParentName = {
909
963
  parameterPath: "resourceParentName",
@@ -911,39 +965,19 @@ const resourceParentName = {
911
965
  serializedName: "resourceParentName",
912
966
  required: true,
913
967
  type: {
914
- name: "String"
915
- }
916
- }
917
- };
918
- const resourceType = {
919
- parameterPath: "resourceType",
920
- mapper: {
921
- serializedName: "resourceType",
922
- required: true,
923
- type: {
924
- name: "String"
925
- }
926
- }
968
+ name: "String",
969
+ },
970
+ },
927
971
  };
928
972
  const applyUpdateName = {
929
- parameterPath: "applyUpdateName",
930
- mapper: {
931
- serializedName: "applyUpdateName",
932
- required: true,
933
- type: {
934
- name: "String"
935
- }
936
- }
937
- };
938
- const configurationAssignmentName = {
939
- parameterPath: "configurationAssignmentName",
973
+ parameterPath: "applyUpdateName",
940
974
  mapper: {
941
- serializedName: "configurationAssignmentName",
975
+ serializedName: "applyUpdateName",
942
976
  required: true,
943
977
  type: {
944
- name: "String"
945
- }
946
- }
978
+ name: "String",
979
+ },
980
+ },
947
981
  };
948
982
  const contentType = {
949
983
  parameterPath: ["options", "contentType"],
@@ -952,30 +986,105 @@ const contentType = {
952
986
  isConstant: true,
953
987
  serializedName: "Content-Type",
954
988
  type: {
955
- name: "String"
956
- }
957
- }
989
+ name: "String",
990
+ },
991
+ },
992
+ };
993
+ const applyUpdate = {
994
+ parameterPath: "applyUpdate",
995
+ mapper: ApplyUpdate,
996
+ };
997
+ const configurationAssignmentName = {
998
+ parameterPath: "configurationAssignmentName",
999
+ mapper: {
1000
+ serializedName: "configurationAssignmentName",
1001
+ required: true,
1002
+ type: {
1003
+ name: "String",
1004
+ },
1005
+ },
958
1006
  };
959
1007
  const configurationAssignment = {
960
1008
  parameterPath: "configurationAssignment",
961
- mapper: ConfigurationAssignment
1009
+ mapper: ConfigurationAssignment,
962
1010
  };
963
1011
  const configuration = {
964
1012
  parameterPath: "configuration",
965
- mapper: MaintenanceConfiguration
1013
+ mapper: MaintenanceConfiguration,
966
1014
  };
967
1015
  const configurationAssignmentName1 = {
968
1016
  parameterPath: "configurationAssignmentName",
969
1017
  mapper: {
970
1018
  constraints: {
971
- Pattern: new RegExp("^.+$")
1019
+ Pattern: new RegExp("^.+$"),
972
1020
  },
973
1021
  serializedName: "configurationAssignmentName",
974
1022
  required: true,
975
1023
  type: {
976
- name: "String"
977
- }
1024
+ name: "String",
1025
+ },
1026
+ },
1027
+ };
1028
+
1029
+ /*
1030
+ * Copyright (c) Microsoft Corporation.
1031
+ * Licensed under the MIT License.
1032
+ *
1033
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1034
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1035
+ */
1036
+ /** Class containing ScheduledEvent operations. */
1037
+ class ScheduledEventImpl {
1038
+ /**
1039
+ * Initialize a new instance of the class ScheduledEvent class.
1040
+ * @param client Reference to the service client
1041
+ */
1042
+ constructor(client) {
1043
+ this.client = client;
1044
+ }
1045
+ /**
1046
+ * Post Scheduled Event Acknowledgement
1047
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1048
+ * @param resourceType Resource type
1049
+ * @param resourceName Resource Name
1050
+ * @param scheduledEventId Scheduled Event Id. This is a GUID-formatted string (e.g.
1051
+ * 00000000-0000-0000-0000-000000000000)
1052
+ * @param options The options parameters.
1053
+ */
1054
+ acknowledge(resourceGroupName, resourceType, resourceName, scheduledEventId, options) {
1055
+ return this.client.sendOperationRequest({
1056
+ resourceGroupName,
1057
+ resourceType,
1058
+ resourceName,
1059
+ scheduledEventId,
1060
+ options,
1061
+ }, acknowledgeOperationSpec);
978
1062
  }
1063
+ }
1064
+ // Operation Specifications
1065
+ const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1066
+ const acknowledgeOperationSpec = {
1067
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge",
1068
+ httpMethod: "POST",
1069
+ responses: {
1070
+ 200: {
1071
+ bodyMapper: ScheduledEventApproveResponse,
1072
+ },
1073
+ default: {
1074
+ bodyMapper: MaintenanceError,
1075
+ },
1076
+ },
1077
+ queryParameters: [apiVersion],
1078
+ urlParameters: [
1079
+ $host,
1080
+ subscriptionId,
1081
+ resourceGroupName,
1082
+ resourceType,
1083
+ resourceName,
1084
+ scheduledEventId,
1085
+ ],
1086
+ headerParameters: [accept],
1087
+ serializer: serializer$b,
979
1088
  };
980
1089
 
981
1090
  /*
@@ -1013,7 +1122,7 @@ class PublicMaintenanceConfigurationsImpl {
1013
1122
  throw new Error("maxPageSize is not supported by this operation.");
1014
1123
  }
1015
1124
  return this.listPagingPage(options, settings);
1016
- }
1125
+ },
1017
1126
  };
1018
1127
  }
1019
1128
  listPagingPage(options, _settings) {
@@ -1027,16 +1136,11 @@ class PublicMaintenanceConfigurationsImpl {
1027
1136
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1028
1137
  var _a, e_1, _b, _c;
1029
1138
  try {
1030
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1139
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1031
1140
  _c = _f.value;
1032
1141
  _d = false;
1033
- try {
1034
- const page = _c;
1035
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1036
- }
1037
- finally {
1038
- _d = true;
1039
- }
1142
+ const page = _c;
1143
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1040
1144
  }
1041
1145
  }
1042
1146
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1071,36 +1175,36 @@ const listOperationSpec$8 = {
1071
1175
  httpMethod: "GET",
1072
1176
  responses: {
1073
1177
  200: {
1074
- bodyMapper: ListMaintenanceConfigurationsResult
1178
+ bodyMapper: ListMaintenanceConfigurationsResult,
1075
1179
  },
1076
1180
  default: {
1077
- bodyMapper: MaintenanceError
1078
- }
1181
+ bodyMapper: MaintenanceError,
1182
+ },
1079
1183
  },
1080
1184
  queryParameters: [apiVersion],
1081
1185
  urlParameters: [$host, subscriptionId],
1082
1186
  headerParameters: [accept],
1083
- serializer: serializer$a
1187
+ serializer: serializer$a,
1084
1188
  };
1085
1189
  const getOperationSpec$5 = {
1086
1190
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}",
1087
1191
  httpMethod: "GET",
1088
1192
  responses: {
1089
1193
  200: {
1090
- bodyMapper: MaintenanceConfiguration
1194
+ bodyMapper: MaintenanceConfiguration,
1091
1195
  },
1092
1196
  default: {
1093
- bodyMapper: MaintenanceError
1094
- }
1197
+ bodyMapper: MaintenanceError,
1198
+ },
1095
1199
  },
1096
1200
  queryParameters: [apiVersion],
1097
1201
  urlParameters: [
1098
1202
  $host,
1099
1203
  subscriptionId,
1100
- resourceName
1204
+ resourceName,
1101
1205
  ],
1102
1206
  headerParameters: [accept],
1103
- serializer: serializer$a
1207
+ serializer: serializer$a,
1104
1208
  };
1105
1209
 
1106
1210
  /*
@@ -1138,7 +1242,7 @@ class ApplyUpdatesImpl {
1138
1242
  throw new Error("maxPageSize is not supported by this operation.");
1139
1243
  }
1140
1244
  return this.listPagingPage(options, settings);
1141
- }
1245
+ },
1142
1246
  };
1143
1247
  }
1144
1248
  listPagingPage(options, _settings) {
@@ -1152,16 +1256,11 @@ class ApplyUpdatesImpl {
1152
1256
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1153
1257
  var _a, e_1, _b, _c;
1154
1258
  try {
1155
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1259
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1156
1260
  _c = _f.value;
1157
1261
  _d = false;
1158
- try {
1159
- const page = _c;
1160
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1161
- }
1162
- finally {
1163
- _d = true;
1164
- }
1262
+ const page = _c;
1263
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1165
1264
  }
1166
1265
  }
1167
1266
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1193,7 +1292,7 @@ class ApplyUpdatesImpl {
1193
1292
  resourceType,
1194
1293
  resourceName,
1195
1294
  applyUpdateName,
1196
- options
1295
+ options,
1197
1296
  }, getParentOperationSpec$1);
1198
1297
  }
1199
1298
  /**
@@ -1212,9 +1311,30 @@ class ApplyUpdatesImpl {
1212
1311
  resourceType,
1213
1312
  resourceName,
1214
1313
  applyUpdateName,
1215
- options
1314
+ options,
1216
1315
  }, getOperationSpec$4);
1217
1316
  }
1317
+ /**
1318
+ * Apply maintenance updates to resource
1319
+ * @param resourceGroupName Resource group name
1320
+ * @param providerName Resource provider name
1321
+ * @param resourceType Resource type
1322
+ * @param resourceName Resource identifier
1323
+ * @param applyUpdateName ApplyUpdate name
1324
+ * @param applyUpdate The ApplyUpdate
1325
+ * @param options The options parameters.
1326
+ */
1327
+ createOrUpdateOrCancel(resourceGroupName, providerName, resourceType, resourceName, applyUpdateName, applyUpdate, options) {
1328
+ return this.client.sendOperationRequest({
1329
+ resourceGroupName,
1330
+ providerName,
1331
+ resourceType,
1332
+ resourceName,
1333
+ applyUpdateName,
1334
+ applyUpdate,
1335
+ options,
1336
+ }, createOrUpdateOrCancelOperationSpec);
1337
+ }
1218
1338
  /**
1219
1339
  * Apply maintenance updates to resource with parent
1220
1340
  * @param resourceGroupName Resource group name
@@ -1233,7 +1353,7 @@ class ApplyUpdatesImpl {
1233
1353
  resourceParentName,
1234
1354
  resourceType,
1235
1355
  resourceName,
1236
- options
1356
+ options,
1237
1357
  }, createOrUpdateParentOperationSpec$1);
1238
1358
  }
1239
1359
  /**
@@ -1262,120 +1382,149 @@ const getParentOperationSpec$1 = {
1262
1382
  httpMethod: "GET",
1263
1383
  responses: {
1264
1384
  200: {
1265
- bodyMapper: ApplyUpdate
1385
+ bodyMapper: ApplyUpdate,
1266
1386
  },
1267
1387
  default: {
1268
- bodyMapper: MaintenanceError
1269
- }
1388
+ bodyMapper: MaintenanceError,
1389
+ },
1270
1390
  },
1271
1391
  queryParameters: [apiVersion],
1272
1392
  urlParameters: [
1273
1393
  $host,
1274
1394
  subscriptionId,
1395
+ resourceType,
1275
1396
  resourceName,
1276
- resourceGroupName,
1397
+ resourceGroupName1,
1277
1398
  providerName,
1278
1399
  resourceParentType,
1279
1400
  resourceParentName,
1280
- resourceType,
1281
- applyUpdateName
1401
+ applyUpdateName,
1282
1402
  ],
1283
1403
  headerParameters: [accept],
1284
- serializer: serializer$9
1404
+ serializer: serializer$9,
1285
1405
  };
1286
1406
  const getOperationSpec$4 = {
1287
1407
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}",
1288
1408
  httpMethod: "GET",
1289
1409
  responses: {
1290
1410
  200: {
1291
- bodyMapper: ApplyUpdate
1411
+ bodyMapper: ApplyUpdate,
1292
1412
  },
1293
1413
  default: {
1294
- bodyMapper: MaintenanceError
1295
- }
1414
+ bodyMapper: MaintenanceError,
1415
+ },
1296
1416
  },
1297
1417
  queryParameters: [apiVersion],
1298
1418
  urlParameters: [
1299
1419
  $host,
1300
1420
  subscriptionId,
1421
+ resourceType,
1301
1422
  resourceName,
1302
- resourceGroupName,
1423
+ resourceGroupName1,
1303
1424
  providerName,
1304
- resourceType,
1305
- applyUpdateName
1425
+ applyUpdateName,
1306
1426
  ],
1307
1427
  headerParameters: [accept],
1308
- serializer: serializer$9
1428
+ serializer: serializer$9,
1429
+ };
1430
+ const createOrUpdateOrCancelOperationSpec = {
1431
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}",
1432
+ httpMethod: "PUT",
1433
+ responses: {
1434
+ 200: {
1435
+ bodyMapper: ApplyUpdate,
1436
+ },
1437
+ 201: {
1438
+ bodyMapper: ApplyUpdate,
1439
+ },
1440
+ default: {
1441
+ bodyMapper: MaintenanceError,
1442
+ },
1443
+ },
1444
+ requestBody: applyUpdate,
1445
+ queryParameters: [apiVersion],
1446
+ urlParameters: [
1447
+ $host,
1448
+ subscriptionId,
1449
+ resourceType,
1450
+ resourceName,
1451
+ resourceGroupName1,
1452
+ providerName,
1453
+ applyUpdateName,
1454
+ ],
1455
+ headerParameters: [accept, contentType],
1456
+ mediaType: "json",
1457
+ serializer: serializer$9,
1309
1458
  };
1310
1459
  const createOrUpdateParentOperationSpec$1 = {
1311
1460
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/default",
1312
1461
  httpMethod: "PUT",
1313
1462
  responses: {
1314
1463
  200: {
1315
- bodyMapper: ApplyUpdate
1464
+ bodyMapper: ApplyUpdate,
1316
1465
  },
1317
1466
  201: {
1318
- bodyMapper: ApplyUpdate
1467
+ bodyMapper: ApplyUpdate,
1319
1468
  },
1320
1469
  default: {
1321
- bodyMapper: MaintenanceError
1322
- }
1470
+ bodyMapper: MaintenanceError,
1471
+ },
1323
1472
  },
1324
1473
  queryParameters: [apiVersion],
1325
1474
  urlParameters: [
1326
1475
  $host,
1327
1476
  subscriptionId,
1477
+ resourceType,
1328
1478
  resourceName,
1329
- resourceGroupName,
1479
+ resourceGroupName1,
1330
1480
  providerName,
1331
1481
  resourceParentType,
1332
1482
  resourceParentName,
1333
- resourceType
1334
1483
  ],
1335
1484
  headerParameters: [accept],
1336
- serializer: serializer$9
1485
+ serializer: serializer$9,
1337
1486
  };
1338
1487
  const createOrUpdateOperationSpec$4 = {
1339
1488
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/default",
1340
1489
  httpMethod: "PUT",
1341
1490
  responses: {
1342
1491
  200: {
1343
- bodyMapper: ApplyUpdate
1492
+ bodyMapper: ApplyUpdate,
1344
1493
  },
1345
1494
  201: {
1346
- bodyMapper: ApplyUpdate
1495
+ bodyMapper: ApplyUpdate,
1347
1496
  },
1348
1497
  default: {
1349
- bodyMapper: MaintenanceError
1350
- }
1498
+ bodyMapper: MaintenanceError,
1499
+ },
1351
1500
  },
1352
1501
  queryParameters: [apiVersion],
1353
1502
  urlParameters: [
1354
1503
  $host,
1355
1504
  subscriptionId,
1505
+ resourceType,
1356
1506
  resourceName,
1357
- resourceGroupName,
1507
+ resourceGroupName1,
1358
1508
  providerName,
1359
- resourceType
1360
1509
  ],
1361
1510
  headerParameters: [accept],
1362
- serializer: serializer$9
1511
+ serializer: serializer$9,
1363
1512
  };
1364
1513
  const listOperationSpec$7 = {
1365
1514
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/applyUpdates",
1366
1515
  httpMethod: "GET",
1367
1516
  responses: {
1368
1517
  200: {
1369
- bodyMapper: ListApplyUpdate
1518
+ bodyMapper: ListApplyUpdate,
1370
1519
  },
1371
1520
  default: {
1372
- bodyMapper: MaintenanceError
1373
- }
1521
+ bodyMapper: MaintenanceError,
1522
+ },
1374
1523
  },
1375
1524
  queryParameters: [apiVersion],
1376
1525
  urlParameters: [$host, subscriptionId],
1377
1526
  headerParameters: [accept],
1378
- serializer: serializer$9
1527
+ serializer: serializer$9,
1379
1528
  };
1380
1529
 
1381
1530
  /*
@@ -1419,7 +1568,7 @@ class ConfigurationAssignmentsImpl {
1419
1568
  throw new Error("maxPageSize is not supported by this operation.");
1420
1569
  }
1421
1570
  return this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, settings);
1422
- }
1571
+ },
1423
1572
  };
1424
1573
  }
1425
1574
  listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
@@ -1433,16 +1582,11 @@ class ConfigurationAssignmentsImpl {
1433
1582
  return tslib.__asyncGenerator(this, arguments, function* listParentPagingAll_1() {
1434
1583
  var _a, e_1, _b, _c;
1435
1584
  try {
1436
- for (var _d = true, _e = tslib.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1585
+ for (var _d = true, _e = tslib.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1437
1586
  _c = _f.value;
1438
1587
  _d = false;
1439
- try {
1440
- const page = _c;
1441
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1442
- }
1443
- finally {
1444
- _d = true;
1445
- }
1588
+ const page = _c;
1589
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1446
1590
  }
1447
1591
  }
1448
1592
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1476,7 +1620,7 @@ class ConfigurationAssignmentsImpl {
1476
1620
  throw new Error("maxPageSize is not supported by this operation.");
1477
1621
  }
1478
1622
  return this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, settings);
1479
- }
1623
+ },
1480
1624
  };
1481
1625
  }
1482
1626
  listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
@@ -1490,16 +1634,11 @@ class ConfigurationAssignmentsImpl {
1490
1634
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1491
1635
  var _a, e_2, _b, _c;
1492
1636
  try {
1493
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1637
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1494
1638
  _c = _f.value;
1495
1639
  _d = false;
1496
- try {
1497
- const page = _c;
1498
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1499
- }
1500
- finally {
1501
- _d = true;
1502
- }
1640
+ const page = _c;
1641
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1503
1642
  }
1504
1643
  }
1505
1644
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -1531,7 +1670,7 @@ class ConfigurationAssignmentsImpl {
1531
1670
  resourceType,
1532
1671
  resourceName,
1533
1672
  configurationAssignmentName,
1534
- options
1673
+ options,
1535
1674
  }, getParentOperationSpec);
1536
1675
  }
1537
1676
  /**
@@ -1556,7 +1695,7 @@ class ConfigurationAssignmentsImpl {
1556
1695
  resourceName,
1557
1696
  configurationAssignmentName,
1558
1697
  configurationAssignment,
1559
- options
1698
+ options,
1560
1699
  }, createOrUpdateParentOperationSpec);
1561
1700
  }
1562
1701
  /**
@@ -1579,7 +1718,7 @@ class ConfigurationAssignmentsImpl {
1579
1718
  resourceType,
1580
1719
  resourceName,
1581
1720
  configurationAssignmentName,
1582
- options
1721
+ options,
1583
1722
  }, deleteParentOperationSpec);
1584
1723
  }
1585
1724
  /**
@@ -1598,7 +1737,7 @@ class ConfigurationAssignmentsImpl {
1598
1737
  resourceType,
1599
1738
  resourceName,
1600
1739
  configurationAssignmentName,
1601
- options
1740
+ options,
1602
1741
  }, getOperationSpec$3);
1603
1742
  }
1604
1743
  /**
@@ -1619,7 +1758,7 @@ class ConfigurationAssignmentsImpl {
1619
1758
  resourceName,
1620
1759
  configurationAssignmentName,
1621
1760
  configurationAssignment,
1622
- options
1761
+ options,
1623
1762
  }, createOrUpdateOperationSpec$3);
1624
1763
  }
1625
1764
  /**
@@ -1638,7 +1777,7 @@ class ConfigurationAssignmentsImpl {
1638
1777
  resourceType,
1639
1778
  resourceName,
1640
1779
  configurationAssignmentName,
1641
- options
1780
+ options,
1642
1781
  }, deleteOperationSpec$3);
1643
1782
  }
1644
1783
  /**
@@ -1659,7 +1798,7 @@ class ConfigurationAssignmentsImpl {
1659
1798
  resourceParentName,
1660
1799
  resourceType,
1661
1800
  resourceName,
1662
- options
1801
+ options,
1663
1802
  }, listParentOperationSpec$1);
1664
1803
  }
1665
1804
  /**
@@ -1681,210 +1820,210 @@ const getParentOperationSpec = {
1681
1820
  httpMethod: "GET",
1682
1821
  responses: {
1683
1822
  200: {
1684
- bodyMapper: ConfigurationAssignment
1823
+ bodyMapper: ConfigurationAssignment,
1685
1824
  },
1686
1825
  default: {
1687
- bodyMapper: MaintenanceError
1688
- }
1826
+ bodyMapper: MaintenanceError,
1827
+ },
1689
1828
  },
1690
1829
  queryParameters: [apiVersion],
1691
1830
  urlParameters: [
1692
1831
  $host,
1693
1832
  subscriptionId,
1833
+ resourceType,
1694
1834
  resourceName,
1695
- resourceGroupName,
1835
+ resourceGroupName1,
1696
1836
  providerName,
1697
1837
  resourceParentType,
1698
1838
  resourceParentName,
1699
- resourceType,
1700
- configurationAssignmentName
1839
+ configurationAssignmentName,
1701
1840
  ],
1702
1841
  headerParameters: [accept],
1703
- serializer: serializer$8
1842
+ serializer: serializer$8,
1704
1843
  };
1705
1844
  const createOrUpdateParentOperationSpec = {
1706
1845
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1707
1846
  httpMethod: "PUT",
1708
1847
  responses: {
1709
1848
  200: {
1710
- bodyMapper: ConfigurationAssignment
1849
+ bodyMapper: ConfigurationAssignment,
1711
1850
  },
1712
1851
  201: {
1713
- bodyMapper: ConfigurationAssignment
1852
+ bodyMapper: ConfigurationAssignment,
1714
1853
  },
1715
1854
  default: {
1716
- bodyMapper: MaintenanceError
1717
- }
1855
+ bodyMapper: MaintenanceError,
1856
+ },
1718
1857
  },
1719
1858
  requestBody: configurationAssignment,
1720
1859
  queryParameters: [apiVersion],
1721
1860
  urlParameters: [
1722
1861
  $host,
1723
1862
  subscriptionId,
1863
+ resourceType,
1724
1864
  resourceName,
1725
- resourceGroupName,
1865
+ resourceGroupName1,
1726
1866
  providerName,
1727
1867
  resourceParentType,
1728
1868
  resourceParentName,
1729
- resourceType,
1730
- configurationAssignmentName
1869
+ configurationAssignmentName,
1731
1870
  ],
1732
1871
  headerParameters: [accept, contentType],
1733
1872
  mediaType: "json",
1734
- serializer: serializer$8
1873
+ serializer: serializer$8,
1735
1874
  };
1736
1875
  const deleteParentOperationSpec = {
1737
1876
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1738
1877
  httpMethod: "DELETE",
1739
1878
  responses: {
1740
1879
  200: {
1741
- bodyMapper: ConfigurationAssignment
1880
+ bodyMapper: ConfigurationAssignment,
1742
1881
  },
1743
1882
  204: {},
1744
1883
  default: {
1745
- bodyMapper: MaintenanceError
1746
- }
1884
+ bodyMapper: MaintenanceError,
1885
+ },
1747
1886
  },
1748
1887
  queryParameters: [apiVersion],
1749
1888
  urlParameters: [
1750
1889
  $host,
1751
1890
  subscriptionId,
1891
+ resourceType,
1752
1892
  resourceName,
1753
- resourceGroupName,
1893
+ resourceGroupName1,
1754
1894
  providerName,
1755
1895
  resourceParentType,
1756
1896
  resourceParentName,
1757
- resourceType,
1758
- configurationAssignmentName
1897
+ configurationAssignmentName,
1759
1898
  ],
1760
1899
  headerParameters: [accept],
1761
- serializer: serializer$8
1900
+ serializer: serializer$8,
1762
1901
  };
1763
1902
  const getOperationSpec$3 = {
1764
1903
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1765
1904
  httpMethod: "GET",
1766
1905
  responses: {
1767
1906
  200: {
1768
- bodyMapper: ConfigurationAssignment
1907
+ bodyMapper: ConfigurationAssignment,
1769
1908
  },
1770
1909
  default: {
1771
- bodyMapper: MaintenanceError
1772
- }
1910
+ bodyMapper: MaintenanceError,
1911
+ },
1773
1912
  },
1774
1913
  queryParameters: [apiVersion],
1775
1914
  urlParameters: [
1776
1915
  $host,
1777
1916
  subscriptionId,
1917
+ resourceType,
1778
1918
  resourceName,
1779
- resourceGroupName,
1919
+ resourceGroupName1,
1780
1920
  providerName,
1781
- resourceType,
1782
- configurationAssignmentName
1921
+ configurationAssignmentName,
1783
1922
  ],
1784
1923
  headerParameters: [accept],
1785
- serializer: serializer$8
1924
+ serializer: serializer$8,
1786
1925
  };
1787
1926
  const createOrUpdateOperationSpec$3 = {
1788
1927
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1789
1928
  httpMethod: "PUT",
1790
1929
  responses: {
1791
1930
  200: {
1792
- bodyMapper: ConfigurationAssignment
1931
+ bodyMapper: ConfigurationAssignment,
1793
1932
  },
1794
1933
  201: {
1795
- bodyMapper: ConfigurationAssignment
1934
+ bodyMapper: ConfigurationAssignment,
1796
1935
  },
1797
1936
  default: {
1798
- bodyMapper: MaintenanceError
1799
- }
1937
+ bodyMapper: MaintenanceError,
1938
+ },
1800
1939
  },
1801
1940
  requestBody: configurationAssignment,
1802
1941
  queryParameters: [apiVersion],
1803
1942
  urlParameters: [
1804
1943
  $host,
1805
1944
  subscriptionId,
1945
+ resourceType,
1806
1946
  resourceName,
1807
- resourceGroupName,
1947
+ resourceGroupName1,
1808
1948
  providerName,
1809
- resourceType,
1810
- configurationAssignmentName
1949
+ configurationAssignmentName,
1811
1950
  ],
1812
1951
  headerParameters: [accept, contentType],
1813
1952
  mediaType: "json",
1814
- serializer: serializer$8
1953
+ serializer: serializer$8,
1815
1954
  };
1816
1955
  const deleteOperationSpec$3 = {
1817
1956
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1818
1957
  httpMethod: "DELETE",
1819
1958
  responses: {
1820
1959
  200: {
1821
- bodyMapper: ConfigurationAssignment
1960
+ bodyMapper: ConfigurationAssignment,
1822
1961
  },
1823
1962
  204: {},
1824
1963
  default: {
1825
- bodyMapper: MaintenanceError
1826
- }
1964
+ bodyMapper: MaintenanceError,
1965
+ },
1827
1966
  },
1828
1967
  queryParameters: [apiVersion],
1829
1968
  urlParameters: [
1830
1969
  $host,
1831
1970
  subscriptionId,
1971
+ resourceType,
1832
1972
  resourceName,
1833
- resourceGroupName,
1973
+ resourceGroupName1,
1834
1974
  providerName,
1835
- resourceType,
1836
- configurationAssignmentName
1975
+ configurationAssignmentName,
1837
1976
  ],
1838
1977
  headerParameters: [accept],
1839
- serializer: serializer$8
1978
+ serializer: serializer$8,
1840
1979
  };
1841
1980
  const listParentOperationSpec$1 = {
1842
1981
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments",
1843
1982
  httpMethod: "GET",
1844
1983
  responses: {
1845
1984
  200: {
1846
- bodyMapper: ListConfigurationAssignmentsResult
1985
+ bodyMapper: ListConfigurationAssignmentsResult,
1847
1986
  },
1848
1987
  default: {
1849
- bodyMapper: MaintenanceError
1850
- }
1988
+ bodyMapper: MaintenanceError,
1989
+ },
1851
1990
  },
1852
1991
  queryParameters: [apiVersion],
1853
1992
  urlParameters: [
1854
1993
  $host,
1855
1994
  subscriptionId,
1995
+ resourceType,
1856
1996
  resourceName,
1857
- resourceGroupName,
1997
+ resourceGroupName1,
1858
1998
  providerName,
1859
1999
  resourceParentType,
1860
2000
  resourceParentName,
1861
- resourceType
1862
2001
  ],
1863
2002
  headerParameters: [accept],
1864
- serializer: serializer$8
2003
+ serializer: serializer$8,
1865
2004
  };
1866
2005
  const listOperationSpec$6 = {
1867
2006
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments",
1868
2007
  httpMethod: "GET",
1869
2008
  responses: {
1870
2009
  200: {
1871
- bodyMapper: ListConfigurationAssignmentsResult
2010
+ bodyMapper: ListConfigurationAssignmentsResult,
1872
2011
  },
1873
2012
  default: {
1874
- bodyMapper: MaintenanceError
1875
- }
2013
+ bodyMapper: MaintenanceError,
2014
+ },
1876
2015
  },
1877
2016
  queryParameters: [apiVersion],
1878
2017
  urlParameters: [
1879
2018
  $host,
1880
2019
  subscriptionId,
2020
+ resourceType,
1881
2021
  resourceName,
1882
- resourceGroupName,
2022
+ resourceGroupName1,
1883
2023
  providerName,
1884
- resourceType
1885
2024
  ],
1886
2025
  headerParameters: [accept],
1887
- serializer: serializer$8
2026
+ serializer: serializer$8,
1888
2027
  };
1889
2028
 
1890
2029
  /*
@@ -1922,7 +2061,7 @@ class MaintenanceConfigurationsImpl {
1922
2061
  throw new Error("maxPageSize is not supported by this operation.");
1923
2062
  }
1924
2063
  return this.listPagingPage(options, settings);
1925
- }
2064
+ },
1926
2065
  };
1927
2066
  }
1928
2067
  listPagingPage(options, _settings) {
@@ -1936,16 +2075,11 @@ class MaintenanceConfigurationsImpl {
1936
2075
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1937
2076
  var _a, e_1, _b, _c;
1938
2077
  try {
1939
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2078
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1940
2079
  _c = _f.value;
1941
2080
  _d = false;
1942
- try {
1943
- const page = _c;
1944
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1945
- }
1946
- finally {
1947
- _d = true;
1948
- }
2081
+ const page = _c;
2082
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1949
2083
  }
1950
2084
  }
1951
2085
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2010,35 +2144,35 @@ const getOperationSpec$2 = {
2010
2144
  httpMethod: "GET",
2011
2145
  responses: {
2012
2146
  200: {
2013
- bodyMapper: MaintenanceConfiguration
2147
+ bodyMapper: MaintenanceConfiguration,
2014
2148
  },
2015
2149
  default: {
2016
- bodyMapper: MaintenanceError
2017
- }
2150
+ bodyMapper: MaintenanceError,
2151
+ },
2018
2152
  },
2019
2153
  queryParameters: [apiVersion],
2020
2154
  urlParameters: [
2021
2155
  $host,
2022
2156
  subscriptionId,
2023
2157
  resourceName,
2024
- resourceGroupName
2158
+ resourceGroupName1,
2025
2159
  ],
2026
2160
  headerParameters: [accept],
2027
- serializer: serializer$7
2161
+ serializer: serializer$7,
2028
2162
  };
2029
2163
  const createOrUpdateOperationSpec$2 = {
2030
2164
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2031
2165
  httpMethod: "PUT",
2032
2166
  responses: {
2033
2167
  200: {
2034
- bodyMapper: MaintenanceConfiguration
2168
+ bodyMapper: MaintenanceConfiguration,
2035
2169
  },
2036
2170
  201: {
2037
- bodyMapper: MaintenanceConfiguration
2171
+ bodyMapper: MaintenanceConfiguration,
2038
2172
  },
2039
2173
  default: {
2040
- bodyMapper: MaintenanceError
2041
- }
2174
+ bodyMapper: MaintenanceError,
2175
+ },
2042
2176
  },
2043
2177
  requestBody: configuration,
2044
2178
  queryParameters: [apiVersion],
@@ -2046,44 +2180,44 @@ const createOrUpdateOperationSpec$2 = {
2046
2180
  $host,
2047
2181
  subscriptionId,
2048
2182
  resourceName,
2049
- resourceGroupName
2183
+ resourceGroupName1,
2050
2184
  ],
2051
2185
  headerParameters: [accept, contentType],
2052
2186
  mediaType: "json",
2053
- serializer: serializer$7
2187
+ serializer: serializer$7,
2054
2188
  };
2055
2189
  const deleteOperationSpec$2 = {
2056
2190
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2057
2191
  httpMethod: "DELETE",
2058
2192
  responses: {
2059
2193
  200: {
2060
- bodyMapper: MaintenanceConfiguration
2194
+ bodyMapper: MaintenanceConfiguration,
2061
2195
  },
2062
2196
  204: {},
2063
2197
  default: {
2064
- bodyMapper: MaintenanceError
2065
- }
2198
+ bodyMapper: MaintenanceError,
2199
+ },
2066
2200
  },
2067
2201
  queryParameters: [apiVersion],
2068
2202
  urlParameters: [
2069
2203
  $host,
2070
2204
  subscriptionId,
2071
2205
  resourceName,
2072
- resourceGroupName
2206
+ resourceGroupName1,
2073
2207
  ],
2074
2208
  headerParameters: [accept],
2075
- serializer: serializer$7
2209
+ serializer: serializer$7,
2076
2210
  };
2077
2211
  const updateOperationSpec$2 = {
2078
2212
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2079
2213
  httpMethod: "PATCH",
2080
2214
  responses: {
2081
2215
  200: {
2082
- bodyMapper: MaintenanceConfiguration
2216
+ bodyMapper: MaintenanceConfiguration,
2083
2217
  },
2084
2218
  default: {
2085
- bodyMapper: MaintenanceError
2086
- }
2219
+ bodyMapper: MaintenanceError,
2220
+ },
2087
2221
  },
2088
2222
  requestBody: configuration,
2089
2223
  queryParameters: [apiVersion],
@@ -2091,27 +2225,27 @@ const updateOperationSpec$2 = {
2091
2225
  $host,
2092
2226
  subscriptionId,
2093
2227
  resourceName,
2094
- resourceGroupName
2228
+ resourceGroupName1,
2095
2229
  ],
2096
2230
  headerParameters: [accept, contentType],
2097
2231
  mediaType: "json",
2098
- serializer: serializer$7
2232
+ serializer: serializer$7,
2099
2233
  };
2100
2234
  const listOperationSpec$5 = {
2101
2235
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations",
2102
2236
  httpMethod: "GET",
2103
2237
  responses: {
2104
2238
  200: {
2105
- bodyMapper: ListMaintenanceConfigurationsResult
2239
+ bodyMapper: ListMaintenanceConfigurationsResult,
2106
2240
  },
2107
2241
  default: {
2108
- bodyMapper: MaintenanceError
2109
- }
2242
+ bodyMapper: MaintenanceError,
2243
+ },
2110
2244
  },
2111
2245
  queryParameters: [apiVersion],
2112
2246
  urlParameters: [$host, subscriptionId],
2113
2247
  headerParameters: [accept],
2114
- serializer: serializer$7
2248
+ serializer: serializer$7,
2115
2249
  };
2116
2250
 
2117
2251
  /*
@@ -2150,7 +2284,7 @@ class MaintenanceConfigurationsForResourceGroupImpl {
2150
2284
  throw new Error("maxPageSize is not supported by this operation.");
2151
2285
  }
2152
2286
  return this.listPagingPage(resourceGroupName, options, settings);
2153
- }
2287
+ },
2154
2288
  };
2155
2289
  }
2156
2290
  listPagingPage(resourceGroupName, options, _settings) {
@@ -2164,16 +2298,11 @@ class MaintenanceConfigurationsForResourceGroupImpl {
2164
2298
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2165
2299
  var _a, e_1, _b, _c;
2166
2300
  try {
2167
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2301
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2168
2302
  _c = _f.value;
2169
2303
  _d = false;
2170
- try {
2171
- const page = _c;
2172
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2173
- }
2174
- finally {
2175
- _d = true;
2176
- }
2304
+ const page = _c;
2305
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2177
2306
  }
2178
2307
  }
2179
2308
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2201,20 +2330,20 @@ const listOperationSpec$4 = {
2201
2330
  httpMethod: "GET",
2202
2331
  responses: {
2203
2332
  200: {
2204
- bodyMapper: ListMaintenanceConfigurationsResult
2333
+ bodyMapper: ListMaintenanceConfigurationsResult,
2205
2334
  },
2206
2335
  default: {
2207
- bodyMapper: MaintenanceError
2208
- }
2336
+ bodyMapper: MaintenanceError,
2337
+ },
2209
2338
  },
2210
2339
  queryParameters: [apiVersion],
2211
2340
  urlParameters: [
2212
2341
  $host,
2213
2342
  subscriptionId,
2214
- resourceGroupName
2343
+ resourceGroupName1,
2215
2344
  ],
2216
2345
  headerParameters: [accept],
2217
- serializer: serializer$6
2346
+ serializer: serializer$6,
2218
2347
  };
2219
2348
 
2220
2349
  /*
@@ -2253,7 +2382,7 @@ class ApplyUpdateForResourceGroupImpl {
2253
2382
  throw new Error("maxPageSize is not supported by this operation.");
2254
2383
  }
2255
2384
  return this.listPagingPage(resourceGroupName, options, settings);
2256
- }
2385
+ },
2257
2386
  };
2258
2387
  }
2259
2388
  listPagingPage(resourceGroupName, options, _settings) {
@@ -2267,16 +2396,11 @@ class ApplyUpdateForResourceGroupImpl {
2267
2396
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2268
2397
  var _a, e_1, _b, _c;
2269
2398
  try {
2270
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2399
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2271
2400
  _c = _f.value;
2272
2401
  _d = false;
2273
- try {
2274
- const page = _c;
2275
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2276
- }
2277
- finally {
2278
- _d = true;
2279
- }
2402
+ const page = _c;
2403
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2280
2404
  }
2281
2405
  }
2282
2406
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2304,20 +2428,20 @@ const listOperationSpec$3 = {
2304
2428
  httpMethod: "GET",
2305
2429
  responses: {
2306
2430
  200: {
2307
- bodyMapper: ListApplyUpdate
2431
+ bodyMapper: ListApplyUpdate,
2308
2432
  },
2309
2433
  default: {
2310
- bodyMapper: MaintenanceError
2311
- }
2434
+ bodyMapper: MaintenanceError,
2435
+ },
2312
2436
  },
2313
2437
  queryParameters: [apiVersion],
2314
2438
  urlParameters: [
2315
2439
  $host,
2316
2440
  subscriptionId,
2317
- resourceGroupName
2441
+ resourceGroupName1,
2318
2442
  ],
2319
2443
  headerParameters: [accept],
2320
- serializer: serializer$5
2444
+ serializer: serializer$5,
2321
2445
  };
2322
2446
 
2323
2447
  /*
@@ -2355,7 +2479,7 @@ class ConfigurationAssignmentsWithinSubscriptionImpl {
2355
2479
  throw new Error("maxPageSize is not supported by this operation.");
2356
2480
  }
2357
2481
  return this.listPagingPage(options, settings);
2358
- }
2482
+ },
2359
2483
  };
2360
2484
  }
2361
2485
  listPagingPage(options, _settings) {
@@ -2369,16 +2493,11 @@ class ConfigurationAssignmentsWithinSubscriptionImpl {
2369
2493
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2370
2494
  var _a, e_1, _b, _c;
2371
2495
  try {
2372
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2496
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2373
2497
  _c = _f.value;
2374
2498
  _d = false;
2375
- try {
2376
- const page = _c;
2377
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2378
- }
2379
- finally {
2380
- _d = true;
2381
- }
2499
+ const page = _c;
2500
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2382
2501
  }
2383
2502
  }
2384
2503
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2405,16 +2524,16 @@ const listOperationSpec$2 = {
2405
2524
  httpMethod: "GET",
2406
2525
  responses: {
2407
2526
  200: {
2408
- bodyMapper: ListConfigurationAssignmentsResult
2527
+ bodyMapper: ListConfigurationAssignmentsResult,
2409
2528
  },
2410
2529
  default: {
2411
- bodyMapper: MaintenanceError
2412
- }
2530
+ bodyMapper: MaintenanceError,
2531
+ },
2413
2532
  },
2414
2533
  queryParameters: [apiVersion],
2415
2534
  urlParameters: [$host, subscriptionId],
2416
2535
  headerParameters: [accept],
2417
- serializer: serializer$4
2536
+ serializer: serializer$4,
2418
2537
  };
2419
2538
 
2420
2539
  /*
@@ -2475,88 +2594,88 @@ const getOperationSpec$1 = {
2475
2594
  httpMethod: "GET",
2476
2595
  responses: {
2477
2596
  200: {
2478
- bodyMapper: ConfigurationAssignment
2597
+ bodyMapper: ConfigurationAssignment,
2479
2598
  },
2480
2599
  default: {
2481
- bodyMapper: MaintenanceError
2482
- }
2600
+ bodyMapper: MaintenanceError,
2601
+ },
2483
2602
  },
2484
2603
  queryParameters: [apiVersion],
2485
2604
  urlParameters: [
2486
2605
  $host,
2487
2606
  subscriptionId,
2488
- configurationAssignmentName
2607
+ configurationAssignmentName,
2489
2608
  ],
2490
2609
  headerParameters: [accept],
2491
- serializer: serializer$3
2610
+ serializer: serializer$3,
2492
2611
  };
2493
2612
  const createOrUpdateOperationSpec$1 = {
2494
2613
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2495
2614
  httpMethod: "PUT",
2496
2615
  responses: {
2497
2616
  200: {
2498
- bodyMapper: ConfigurationAssignment
2617
+ bodyMapper: ConfigurationAssignment,
2499
2618
  },
2500
2619
  201: {
2501
- bodyMapper: ConfigurationAssignment
2620
+ bodyMapper: ConfigurationAssignment,
2502
2621
  },
2503
2622
  default: {
2504
- bodyMapper: MaintenanceError
2505
- }
2623
+ bodyMapper: MaintenanceError,
2624
+ },
2506
2625
  },
2507
2626
  requestBody: configurationAssignment,
2508
2627
  queryParameters: [apiVersion],
2509
2628
  urlParameters: [
2510
2629
  $host,
2511
2630
  subscriptionId,
2512
- configurationAssignmentName
2631
+ configurationAssignmentName,
2513
2632
  ],
2514
2633
  headerParameters: [accept, contentType],
2515
2634
  mediaType: "json",
2516
- serializer: serializer$3
2635
+ serializer: serializer$3,
2517
2636
  };
2518
2637
  const updateOperationSpec$1 = {
2519
2638
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2520
2639
  httpMethod: "PATCH",
2521
2640
  responses: {
2522
2641
  200: {
2523
- bodyMapper: ConfigurationAssignment
2642
+ bodyMapper: ConfigurationAssignment,
2524
2643
  },
2525
2644
  default: {
2526
- bodyMapper: MaintenanceError
2527
- }
2645
+ bodyMapper: MaintenanceError,
2646
+ },
2528
2647
  },
2529
2648
  requestBody: configurationAssignment,
2530
2649
  queryParameters: [apiVersion],
2531
2650
  urlParameters: [
2532
2651
  $host,
2533
2652
  subscriptionId,
2534
- configurationAssignmentName
2653
+ configurationAssignmentName,
2535
2654
  ],
2536
2655
  headerParameters: [accept, contentType],
2537
2656
  mediaType: "json",
2538
- serializer: serializer$3
2657
+ serializer: serializer$3,
2539
2658
  };
2540
2659
  const deleteOperationSpec$1 = {
2541
2660
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2542
2661
  httpMethod: "DELETE",
2543
2662
  responses: {
2544
2663
  200: {
2545
- bodyMapper: ConfigurationAssignment
2664
+ bodyMapper: ConfigurationAssignment,
2546
2665
  },
2547
2666
  204: {},
2548
2667
  default: {
2549
- bodyMapper: MaintenanceError
2550
- }
2668
+ bodyMapper: MaintenanceError,
2669
+ },
2551
2670
  },
2552
2671
  queryParameters: [apiVersion],
2553
2672
  urlParameters: [
2554
2673
  $host,
2555
2674
  subscriptionId,
2556
- configurationAssignmentName
2675
+ configurationAssignmentName,
2557
2676
  ],
2558
2677
  headerParameters: [accept],
2559
- serializer: serializer$3
2678
+ serializer: serializer$3,
2560
2679
  };
2561
2680
 
2562
2681
  /*
@@ -2596,7 +2715,7 @@ class ConfigurationAssignmentsForResourceGroupImpl {
2596
2715
  resourceGroupName,
2597
2716
  configurationAssignmentName,
2598
2717
  configurationAssignment,
2599
- options
2718
+ options,
2600
2719
  }, createOrUpdateOperationSpec);
2601
2720
  }
2602
2721
  /**
@@ -2611,7 +2730,7 @@ class ConfigurationAssignmentsForResourceGroupImpl {
2611
2730
  resourceGroupName,
2612
2731
  configurationAssignmentName,
2613
2732
  configurationAssignment,
2614
- options
2733
+ options,
2615
2734
  }, updateOperationSpec);
2616
2735
  }
2617
2736
  /**
@@ -2631,92 +2750,92 @@ const getOperationSpec = {
2631
2750
  httpMethod: "GET",
2632
2751
  responses: {
2633
2752
  200: {
2634
- bodyMapper: ConfigurationAssignment
2753
+ bodyMapper: ConfigurationAssignment,
2635
2754
  },
2636
2755
  default: {
2637
- bodyMapper: MaintenanceError
2638
- }
2756
+ bodyMapper: MaintenanceError,
2757
+ },
2639
2758
  },
2640
2759
  queryParameters: [apiVersion],
2641
2760
  urlParameters: [
2642
2761
  $host,
2643
2762
  subscriptionId,
2644
- resourceGroupName,
2645
- configurationAssignmentName1
2763
+ resourceGroupName1,
2764
+ configurationAssignmentName1,
2646
2765
  ],
2647
2766
  headerParameters: [accept],
2648
- serializer: serializer$2
2767
+ serializer: serializer$2,
2649
2768
  };
2650
2769
  const createOrUpdateOperationSpec = {
2651
2770
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2652
2771
  httpMethod: "PUT",
2653
2772
  responses: {
2654
2773
  200: {
2655
- bodyMapper: ConfigurationAssignment
2774
+ bodyMapper: ConfigurationAssignment,
2656
2775
  },
2657
2776
  201: {
2658
- bodyMapper: ConfigurationAssignment
2777
+ bodyMapper: ConfigurationAssignment,
2659
2778
  },
2660
2779
  default: {
2661
- bodyMapper: MaintenanceError
2662
- }
2780
+ bodyMapper: MaintenanceError,
2781
+ },
2663
2782
  },
2664
2783
  requestBody: configurationAssignment,
2665
2784
  queryParameters: [apiVersion],
2666
2785
  urlParameters: [
2667
2786
  $host,
2668
2787
  subscriptionId,
2669
- resourceGroupName,
2670
- configurationAssignmentName
2788
+ resourceGroupName1,
2789
+ configurationAssignmentName,
2671
2790
  ],
2672
2791
  headerParameters: [accept, contentType],
2673
2792
  mediaType: "json",
2674
- serializer: serializer$2
2793
+ serializer: serializer$2,
2675
2794
  };
2676
2795
  const updateOperationSpec = {
2677
2796
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2678
2797
  httpMethod: "PATCH",
2679
2798
  responses: {
2680
2799
  200: {
2681
- bodyMapper: ConfigurationAssignment
2800
+ bodyMapper: ConfigurationAssignment,
2682
2801
  },
2683
2802
  default: {
2684
- bodyMapper: MaintenanceError
2685
- }
2803
+ bodyMapper: MaintenanceError,
2804
+ },
2686
2805
  },
2687
2806
  requestBody: configurationAssignment,
2688
2807
  queryParameters: [apiVersion],
2689
2808
  urlParameters: [
2690
2809
  $host,
2691
2810
  subscriptionId,
2692
- resourceGroupName,
2693
- configurationAssignmentName
2811
+ resourceGroupName1,
2812
+ configurationAssignmentName,
2694
2813
  ],
2695
2814
  headerParameters: [accept, contentType],
2696
2815
  mediaType: "json",
2697
- serializer: serializer$2
2816
+ serializer: serializer$2,
2698
2817
  };
2699
2818
  const deleteOperationSpec = {
2700
2819
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2701
2820
  httpMethod: "DELETE",
2702
2821
  responses: {
2703
2822
  200: {
2704
- bodyMapper: ConfigurationAssignment
2823
+ bodyMapper: ConfigurationAssignment,
2705
2824
  },
2706
2825
  204: {},
2707
2826
  default: {
2708
- bodyMapper: MaintenanceError
2709
- }
2827
+ bodyMapper: MaintenanceError,
2828
+ },
2710
2829
  },
2711
2830
  queryParameters: [apiVersion],
2712
2831
  urlParameters: [
2713
2832
  $host,
2714
2833
  subscriptionId,
2715
- resourceGroupName,
2716
- configurationAssignmentName
2834
+ resourceGroupName1,
2835
+ configurationAssignmentName,
2717
2836
  ],
2718
2837
  headerParameters: [accept],
2719
- serializer: serializer$2
2838
+ serializer: serializer$2,
2720
2839
  };
2721
2840
 
2722
2841
  /*
@@ -2754,7 +2873,7 @@ class OperationsImpl {
2754
2873
  throw new Error("maxPageSize is not supported by this operation.");
2755
2874
  }
2756
2875
  return this.listPagingPage(options, settings);
2757
- }
2876
+ },
2758
2877
  };
2759
2878
  }
2760
2879
  listPagingPage(options, _settings) {
@@ -2768,16 +2887,11 @@ class OperationsImpl {
2768
2887
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2769
2888
  var _a, e_1, _b, _c;
2770
2889
  try {
2771
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2890
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2772
2891
  _c = _f.value;
2773
2892
  _d = false;
2774
- try {
2775
- const page = _c;
2776
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2777
- }
2778
- finally {
2779
- _d = true;
2780
- }
2893
+ const page = _c;
2894
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2781
2895
  }
2782
2896
  }
2783
2897
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2804,16 +2918,16 @@ const listOperationSpec$1 = {
2804
2918
  httpMethod: "GET",
2805
2919
  responses: {
2806
2920
  200: {
2807
- bodyMapper: OperationsListResult
2921
+ bodyMapper: OperationsListResult,
2808
2922
  },
2809
2923
  default: {
2810
- bodyMapper: MaintenanceError
2811
- }
2924
+ bodyMapper: MaintenanceError,
2925
+ },
2812
2926
  },
2813
2927
  queryParameters: [apiVersion],
2814
2928
  urlParameters: [$host],
2815
2929
  headerParameters: [accept],
2816
- serializer: serializer$1
2930
+ serializer: serializer$1,
2817
2931
  };
2818
2932
 
2819
2933
  /*
@@ -2857,7 +2971,7 @@ class UpdatesImpl {
2857
2971
  throw new Error("maxPageSize is not supported by this operation.");
2858
2972
  }
2859
2973
  return this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, settings);
2860
- }
2974
+ },
2861
2975
  };
2862
2976
  }
2863
2977
  listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
@@ -2871,16 +2985,11 @@ class UpdatesImpl {
2871
2985
  return tslib.__asyncGenerator(this, arguments, function* listParentPagingAll_1() {
2872
2986
  var _a, e_1, _b, _c;
2873
2987
  try {
2874
- for (var _d = true, _e = tslib.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2988
+ for (var _d = true, _e = tslib.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2875
2989
  _c = _f.value;
2876
2990
  _d = false;
2877
- try {
2878
- const page = _c;
2879
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2880
- }
2881
- finally {
2882
- _d = true;
2883
- }
2991
+ const page = _c;
2992
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2884
2993
  }
2885
2994
  }
2886
2995
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2914,7 +3023,7 @@ class UpdatesImpl {
2914
3023
  throw new Error("maxPageSize is not supported by this operation.");
2915
3024
  }
2916
3025
  return this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, settings);
2917
- }
3026
+ },
2918
3027
  };
2919
3028
  }
2920
3029
  listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
@@ -2928,16 +3037,11 @@ class UpdatesImpl {
2928
3037
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2929
3038
  var _a, e_2, _b, _c;
2930
3039
  try {
2931
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3040
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2932
3041
  _c = _f.value;
2933
3042
  _d = false;
2934
- try {
2935
- const page = _c;
2936
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2937
- }
2938
- finally {
2939
- _d = true;
2940
- }
3043
+ const page = _c;
3044
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2941
3045
  }
2942
3046
  }
2943
3047
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -2967,7 +3071,7 @@ class UpdatesImpl {
2967
3071
  resourceParentName,
2968
3072
  resourceType,
2969
3073
  resourceName,
2970
- options
3074
+ options,
2971
3075
  }, listParentOperationSpec);
2972
3076
  }
2973
3077
  /**
@@ -2989,48 +3093,48 @@ const listParentOperationSpec = {
2989
3093
  httpMethod: "GET",
2990
3094
  responses: {
2991
3095
  200: {
2992
- bodyMapper: ListUpdatesResult
3096
+ bodyMapper: ListUpdatesResult,
2993
3097
  },
2994
3098
  default: {
2995
- bodyMapper: MaintenanceError
2996
- }
3099
+ bodyMapper: MaintenanceError,
3100
+ },
2997
3101
  },
2998
3102
  queryParameters: [apiVersion],
2999
3103
  urlParameters: [
3000
3104
  $host,
3001
3105
  subscriptionId,
3106
+ resourceType,
3002
3107
  resourceName,
3003
- resourceGroupName,
3108
+ resourceGroupName1,
3004
3109
  providerName,
3005
3110
  resourceParentType,
3006
3111
  resourceParentName,
3007
- resourceType
3008
3112
  ],
3009
3113
  headerParameters: [accept],
3010
- serializer
3114
+ serializer,
3011
3115
  };
3012
3116
  const listOperationSpec = {
3013
3117
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates",
3014
3118
  httpMethod: "GET",
3015
3119
  responses: {
3016
3120
  200: {
3017
- bodyMapper: ListUpdatesResult
3121
+ bodyMapper: ListUpdatesResult,
3018
3122
  },
3019
3123
  default: {
3020
- bodyMapper: MaintenanceError
3021
- }
3124
+ bodyMapper: MaintenanceError,
3125
+ },
3022
3126
  },
3023
3127
  queryParameters: [apiVersion],
3024
3128
  urlParameters: [
3025
3129
  $host,
3026
3130
  subscriptionId,
3131
+ resourceType,
3027
3132
  resourceName,
3028
- resourceGroupName,
3133
+ resourceGroupName1,
3029
3134
  providerName,
3030
- resourceType
3031
3135
  ],
3032
3136
  headerParameters: [accept],
3033
- serializer
3137
+ serializer,
3034
3138
  };
3035
3139
 
3036
3140
  /*
@@ -3044,8 +3148,7 @@ class MaintenanceManagementClient extends coreClient__namespace.ServiceClient {
3044
3148
  /**
3045
3149
  * Initializes a new instance of the MaintenanceManagementClient class.
3046
3150
  * @param credentials Subscription credentials which uniquely identify client subscription.
3047
- * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure
3048
- * subscription. The subscription ID forms part of the URI for every service call.
3151
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
3049
3152
  * @param options The parameter options
3050
3153
  */
3051
3154
  constructor(credentials, subscriptionId, options) {
@@ -3062,14 +3165,14 @@ class MaintenanceManagementClient extends coreClient__namespace.ServiceClient {
3062
3165
  }
3063
3166
  const defaults = {
3064
3167
  requestContentType: "application/json; charset=utf-8",
3065
- credential: credentials
3168
+ credential: credentials,
3066
3169
  };
3067
- const packageDetails = `azsdk-js-arm-maintenance/1.0.0-beta.1`;
3170
+ const packageDetails = `azsdk-js-arm-maintenance/1.0.0-beta.2`;
3068
3171
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3069
3172
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3070
3173
  : `${packageDetails}`;
3071
3174
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3072
- userAgentPrefix
3175
+ userAgentPrefix,
3073
3176
  }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3074
3177
  super(optionsWithDefaults);
3075
3178
  let bearerTokenAuthenticationPolicyFound = false;
@@ -3083,30 +3186,36 @@ class MaintenanceManagementClient extends coreClient__namespace.ServiceClient {
3083
3186
  options.pipeline.getOrderedPolicies().length == 0 ||
3084
3187
  !bearerTokenAuthenticationPolicyFound) {
3085
3188
  this.pipeline.removePolicy({
3086
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3189
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
3087
3190
  });
3088
3191
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3089
3192
  credential: credentials,
3090
3193
  scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3091
3194
  challengeCallbacks: {
3092
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3093
- }
3195
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
3196
+ },
3094
3197
  }));
3095
3198
  }
3096
3199
  // Parameter assignments
3097
3200
  this.subscriptionId = subscriptionId;
3098
3201
  // Assigning values to Constant parameters
3099
3202
  this.$host = options.$host || "https://management.azure.com";
3100
- this.apiVersion = options.apiVersion || "2023-04-01";
3101
- this.publicMaintenanceConfigurations = new PublicMaintenanceConfigurationsImpl(this);
3203
+ this.apiVersion = options.apiVersion || "2023-10-01-preview";
3204
+ this.scheduledEvent = new ScheduledEventImpl(this);
3205
+ this.publicMaintenanceConfigurations =
3206
+ new PublicMaintenanceConfigurationsImpl(this);
3102
3207
  this.applyUpdates = new ApplyUpdatesImpl(this);
3103
3208
  this.configurationAssignments = new ConfigurationAssignmentsImpl(this);
3104
3209
  this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
3105
- this.maintenanceConfigurationsForResourceGroup = new MaintenanceConfigurationsForResourceGroupImpl(this);
3210
+ this.maintenanceConfigurationsForResourceGroup =
3211
+ new MaintenanceConfigurationsForResourceGroupImpl(this);
3106
3212
  this.applyUpdateForResourceGroup = new ApplyUpdateForResourceGroupImpl(this);
3107
- this.configurationAssignmentsWithinSubscription = new ConfigurationAssignmentsWithinSubscriptionImpl(this);
3108
- this.configurationAssignmentsForSubscriptions = new ConfigurationAssignmentsForSubscriptionsImpl(this);
3109
- this.configurationAssignmentsForResourceGroup = new ConfigurationAssignmentsForResourceGroupImpl(this);
3213
+ this.configurationAssignmentsWithinSubscription =
3214
+ new ConfigurationAssignmentsWithinSubscriptionImpl(this);
3215
+ this.configurationAssignmentsForSubscriptions =
3216
+ new ConfigurationAssignmentsForSubscriptionsImpl(this);
3217
+ this.configurationAssignmentsForResourceGroup =
3218
+ new ConfigurationAssignmentsForResourceGroupImpl(this);
3110
3219
  this.operations = new OperationsImpl(this);
3111
3220
  this.updates = new UpdatesImpl(this);
3112
3221
  this.addCustomApiVersionPolicy(options.apiVersion);
@@ -3134,7 +3243,7 @@ class MaintenanceManagementClient extends coreClient__namespace.ServiceClient {
3134
3243
  }
3135
3244
  return next(request);
3136
3245
  });
3137
- }
3246
+ },
3138
3247
  };
3139
3248
  this.pipeline.addPolicy(apiVersionPolicy);
3140
3249
  }