@azure/arm-monitor 7.0.1-alpha.20220427.1 → 8.0.0-beta.1

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 (116) hide show
  1. package/CHANGELOG.md +74 -4
  2. package/README.md +1 -1
  3. package/dist/index.js +1010 -145
  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/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js +138 -0
  10. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js.map +1 -0
  11. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js +137 -0
  14. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js.map +1 -0
  15. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js +1 -1
  16. package/dist-esm/samples-dev/actionGroupsDeleteSample.js +1 -1
  17. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js +1 -1
  18. package/dist-esm/samples-dev/actionGroupsGetSample.js +1 -1
  19. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js +32 -0
  22. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js.map +1 -0
  23. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js +31 -0
  26. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js.map +1 -0
  27. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js +3 -3
  28. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js.map +1 -1
  29. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js +3 -3
  30. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js.map +1 -1
  31. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js +3 -3
  32. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js.map +1 -1
  33. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js +15 -3
  34. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js.map +1 -1
  35. package/dist-esm/samples-dev/actionGroupsUpdateSample.js +1 -1
  36. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js +100 -14
  37. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js.map +1 -1
  38. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js +7 -7
  39. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/activityLogAlertsGetSample.js +7 -7
  41. package/dist-esm/samples-dev/activityLogAlertsGetSample.js.map +1 -1
  42. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js +4 -4
  43. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js.map +1 -1
  44. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js +5 -5
  45. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js.map +1 -1
  46. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js +9 -9
  47. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js +1 -1
  49. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js +1 -1
  51. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js +1 -1
  52. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js +1 -1
  53. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js +1 -1
  55. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js +1 -1
  56. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js +1 -1
  57. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js +45 -0
  60. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js.map +1 -0
  61. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js +1 -1
  62. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js +1 -1
  63. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js +1 -1
  64. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js +1 -1
  65. package/dist-esm/samples-dev/dataCollectionRulesGetSample.js +1 -1
  66. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js +1 -1
  67. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js +1 -1
  68. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js +1 -1
  69. package/dist-esm/src/models/index.d.ts +349 -63
  70. package/dist-esm/src/models/index.d.ts.map +1 -1
  71. package/dist-esm/src/models/index.js +29 -0
  72. package/dist-esm/src/models/index.js.map +1 -1
  73. package/dist-esm/src/models/mappers.d.ts +24 -8
  74. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  75. package/dist-esm/src/models/mappers.js +482 -85
  76. package/dist-esm/src/models/mappers.js.map +1 -1
  77. package/dist-esm/src/models/parameters.d.ts +2 -2
  78. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  79. package/dist-esm/src/models/parameters.js +9 -9
  80. package/dist-esm/src/models/parameters.js.map +1 -1
  81. package/dist-esm/src/monitorClient.js +1 -1
  82. package/dist-esm/src/monitorClient.js.map +1 -1
  83. package/dist-esm/src/operations/actionGroups.d.ts +46 -1
  84. package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
  85. package/dist-esm/src/operations/actionGroups.js +235 -4
  86. package/dist-esm/src/operations/actionGroups.js.map +1 -1
  87. package/dist-esm/src/operations/activityLogAlerts.d.ts +32 -18
  88. package/dist-esm/src/operations/activityLogAlerts.d.ts.map +1 -1
  89. package/dist-esm/src/operations/activityLogAlerts.js +111 -35
  90. package/dist-esm/src/operations/activityLogAlerts.js.map +1 -1
  91. package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts +29 -1
  92. package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts.map +1 -1
  93. package/dist-esm/src/operations/dataCollectionRuleAssociations.js +116 -0
  94. package/dist-esm/src/operations/dataCollectionRuleAssociations.js.map +1 -1
  95. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts +46 -1
  96. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts.map +1 -1
  97. package/dist-esm/src/operationsInterfaces/activityLogAlerts.d.ts +17 -16
  98. package/dist-esm/src/operationsInterfaces/activityLogAlerts.d.ts.map +1 -1
  99. package/dist-esm/src/operationsInterfaces/dataCollectionRuleAssociations.d.ts +9 -1
  100. package/dist-esm/src/operationsInterfaces/dataCollectionRuleAssociations.d.ts.map +1 -1
  101. package/dist-esm/test/monitor_examples.d.ts.map +1 -1
  102. package/dist-esm/test/monitor_examples.js +26 -32
  103. package/dist-esm/test/monitor_examples.js.map +1 -1
  104. package/package.json +7 -3
  105. package/review/arm-monitor.api.md +286 -63
  106. package/src/models/index.ts +385 -65
  107. package/src/models/mappers.ts +519 -94
  108. package/src/models/parameters.ts +9 -9
  109. package/src/monitorClient.ts +1 -1
  110. package/src/operations/actionGroups.ts +355 -4
  111. package/src/operations/activityLogAlerts.ts +136 -37
  112. package/src/operations/dataCollectionRuleAssociations.ts +168 -1
  113. package/src/operationsInterfaces/actionGroups.ts +96 -0
  114. package/src/operationsInterfaces/activityLogAlerts.ts +17 -16
  115. package/src/operationsInterfaces/dataCollectionRuleAssociations.ts +13 -0
  116. package/types/arm-monitor.d.ts +476 -98
package/dist/index.js CHANGED
@@ -158,6 +158,17 @@ exports.KnownKnownDataCollectionRuleAssociationProvisioningState = void 0;
158
158
  KnownKnownDataCollectionRuleAssociationProvisioningState["Succeeded"] = "Succeeded";
159
159
  KnownKnownDataCollectionRuleAssociationProvisioningState["Failed"] = "Failed";
160
160
  })(exports.KnownKnownDataCollectionRuleAssociationProvisioningState || (exports.KnownKnownDataCollectionRuleAssociationProvisioningState = {}));
161
+ /** Known values of {@link KnownColumnDefinitionType} that the service accepts. */
162
+ exports.KnownKnownColumnDefinitionType = void 0;
163
+ (function (KnownKnownColumnDefinitionType) {
164
+ KnownKnownColumnDefinitionType["String"] = "string";
165
+ KnownKnownColumnDefinitionType["Int"] = "int";
166
+ KnownKnownColumnDefinitionType["Long"] = "long";
167
+ KnownKnownColumnDefinitionType["Real"] = "real";
168
+ KnownKnownColumnDefinitionType["Boolean"] = "boolean";
169
+ KnownKnownColumnDefinitionType["Datetime"] = "datetime";
170
+ KnownKnownColumnDefinitionType["Dynamic"] = "dynamic";
171
+ })(exports.KnownKnownColumnDefinitionType || (exports.KnownKnownColumnDefinitionType = {}));
161
172
  /** Known values of {@link KnownPerfCounterDataSourceStreams} that the service accepts. */
162
173
  exports.KnownKnownPerfCounterDataSourceStreams = void 0;
163
174
  (function (KnownKnownPerfCounterDataSourceStreams) {
@@ -222,6 +233,24 @@ exports.KnownKnownExtensionDataSourceStreams = void 0;
222
233
  KnownKnownExtensionDataSourceStreams["MicrosoftSyslog"] = "Microsoft-Syslog";
223
234
  KnownKnownExtensionDataSourceStreams["MicrosoftWindowsEvent"] = "Microsoft-WindowsEvent";
224
235
  })(exports.KnownKnownExtensionDataSourceStreams || (exports.KnownKnownExtensionDataSourceStreams = {}));
236
+ /** Known values of {@link KnownLogFilesDataSourceFormat} that the service accepts. */
237
+ exports.KnownKnownLogFilesDataSourceFormat = void 0;
238
+ (function (KnownKnownLogFilesDataSourceFormat) {
239
+ KnownKnownLogFilesDataSourceFormat["Text"] = "text";
240
+ })(exports.KnownKnownLogFilesDataSourceFormat || (exports.KnownKnownLogFilesDataSourceFormat = {}));
241
+ /** Known values of {@link KnownLogFileTextSettingsRecordStartTimestampFormat} that the service accepts. */
242
+ exports.KnownKnownLogFileTextSettingsRecordStartTimestampFormat = void 0;
243
+ (function (KnownKnownLogFileTextSettingsRecordStartTimestampFormat) {
244
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["ISO8601"] = "ISO 8601";
245
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["YyyyMMDDHHMMSS"] = "YYYY-MM-DD HH:MM:SS";
246
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["MDYyyyHHMMSSAMPM"] = "M/D/YYYY HH:MM:SS AM/PM";
247
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["MonDDYyyyHHMMSS"] = "Mon DD, YYYY HH:MM:SS";
248
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["YyMMddHHMmSs"] = "yyMMdd HH:mm:ss";
249
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["DdMMyyHHMmSs"] = "ddMMyy HH:mm:ss";
250
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["MMMDHhMmSs"] = "MMM d hh:mm:ss";
251
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["DdMMMYyyyHHMmSsZzz"] = "dd/MMM/yyyy:HH:mm:ss zzz";
252
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["YyyyMMDdTHHMmSsK"] = "yyyy-MM-ddTHH:mm:ssK";
253
+ })(exports.KnownKnownLogFileTextSettingsRecordStartTimestampFormat || (exports.KnownKnownLogFileTextSettingsRecordStartTimestampFormat = {}));
225
254
  /** Known values of {@link KnownDataFlowStreams} that the service accepts. */
226
255
  exports.KnownKnownDataFlowStreams = void 0;
227
256
  (function (KnownKnownDataFlowStreams) {
@@ -2177,35 +2206,6 @@ const NotificationRequestBody = {
2177
2206
  }
2178
2207
  }
2179
2208
  };
2180
- const TestNotificationResponse = {
2181
- type: {
2182
- name: "Composite",
2183
- className: "TestNotificationResponse",
2184
- modelProperties: {
2185
- notificationId: {
2186
- serializedName: "notificationId",
2187
- required: true,
2188
- type: {
2189
- name: "String"
2190
- }
2191
- },
2192
- correlationId: {
2193
- serializedName: "correlationId",
2194
- required: true,
2195
- type: {
2196
- name: "String"
2197
- }
2198
- },
2199
- createdTime: {
2200
- serializedName: "createdTime",
2201
- required: true,
2202
- type: {
2203
- name: "String"
2204
- }
2205
- }
2206
- }
2207
- }
2208
- };
2209
2209
  const TestNotificationDetailsResponse = {
2210
2210
  type: {
2211
2211
  name: "Composite",
@@ -4187,10 +4187,10 @@ const ScopedResourceListResult = {
4187
4187
  }
4188
4188
  }
4189
4189
  };
4190
- const ActivityLogAlertAllOfCondition = {
4190
+ const AlertRuleAllOfCondition = {
4191
4191
  type: {
4192
4192
  name: "Composite",
4193
- className: "ActivityLogAlertAllOfCondition",
4193
+ className: "AlertRuleAllOfCondition",
4194
4194
  modelProperties: {
4195
4195
  allOf: {
4196
4196
  serializedName: "allOf",
@@ -4200,7 +4200,7 @@ const ActivityLogAlertAllOfCondition = {
4200
4200
  element: {
4201
4201
  type: {
4202
4202
  name: "Composite",
4203
- className: "ActivityLogAlertLeafCondition"
4203
+ className: "AlertRuleAnyOfOrLeafCondition"
4204
4204
  }
4205
4205
  }
4206
4206
  }
@@ -4208,32 +4208,41 @@ const ActivityLogAlertAllOfCondition = {
4208
4208
  }
4209
4209
  }
4210
4210
  };
4211
- const ActivityLogAlertLeafCondition = {
4211
+ const AlertRuleLeafCondition = {
4212
4212
  type: {
4213
4213
  name: "Composite",
4214
- className: "ActivityLogAlertLeafCondition",
4214
+ className: "AlertRuleLeafCondition",
4215
4215
  modelProperties: {
4216
4216
  field: {
4217
4217
  serializedName: "field",
4218
- required: true,
4219
4218
  type: {
4220
4219
  name: "String"
4221
4220
  }
4222
4221
  },
4223
4222
  equals: {
4224
4223
  serializedName: "equals",
4225
- required: true,
4226
4224
  type: {
4227
4225
  name: "String"
4228
4226
  }
4227
+ },
4228
+ containsAny: {
4229
+ serializedName: "containsAny",
4230
+ type: {
4231
+ name: "Sequence",
4232
+ element: {
4233
+ type: {
4234
+ name: "String"
4235
+ }
4236
+ }
4237
+ }
4229
4238
  }
4230
4239
  }
4231
4240
  }
4232
4241
  };
4233
- const ActivityLogAlertActionList = {
4242
+ const ActionList = {
4234
4243
  type: {
4235
4244
  name: "Composite",
4236
- className: "ActivityLogAlertActionList",
4245
+ className: "ActionList",
4237
4246
  modelProperties: {
4238
4247
  actionGroups: {
4239
4248
  serializedName: "actionGroups",
@@ -4242,7 +4251,7 @@ const ActivityLogAlertActionList = {
4242
4251
  element: {
4243
4252
  type: {
4244
4253
  name: "Composite",
4245
- className: "ActivityLogAlertActionGroup"
4254
+ className: "ActionGroup"
4246
4255
  }
4247
4256
  }
4248
4257
  }
@@ -4250,10 +4259,10 @@ const ActivityLogAlertActionList = {
4250
4259
  }
4251
4260
  }
4252
4261
  };
4253
- const ActivityLogAlertActionGroup = {
4262
+ const ActionGroup = {
4254
4263
  type: {
4255
4264
  name: "Composite",
4256
- className: "ActivityLogAlertActionGroup",
4265
+ className: "ActionGroup",
4257
4266
  modelProperties: {
4258
4267
  actionGroupId: {
4259
4268
  serializedName: "actionGroupId",
@@ -4272,10 +4281,75 @@ const ActivityLogAlertActionGroup = {
4272
4281
  }
4273
4282
  }
4274
4283
  };
4275
- const ActivityLogAlertPatchBody = {
4284
+ const AzureResourceAutoGenerated = {
4276
4285
  type: {
4277
4286
  name: "Composite",
4278
- className: "ActivityLogAlertPatchBody",
4287
+ className: "AzureResourceAutoGenerated",
4288
+ modelProperties: {
4289
+ id: {
4290
+ serializedName: "id",
4291
+ readOnly: true,
4292
+ type: {
4293
+ name: "String"
4294
+ }
4295
+ },
4296
+ name: {
4297
+ serializedName: "name",
4298
+ readOnly: true,
4299
+ type: {
4300
+ name: "String"
4301
+ }
4302
+ },
4303
+ type: {
4304
+ serializedName: "type",
4305
+ readOnly: true,
4306
+ type: {
4307
+ name: "String"
4308
+ }
4309
+ },
4310
+ location: {
4311
+ defaultValue: "global",
4312
+ serializedName: "location",
4313
+ type: {
4314
+ name: "String"
4315
+ }
4316
+ },
4317
+ tags: {
4318
+ serializedName: "tags",
4319
+ type: {
4320
+ name: "Dictionary",
4321
+ value: { type: { name: "String" } }
4322
+ }
4323
+ }
4324
+ }
4325
+ }
4326
+ };
4327
+ const ErrorResponseAutoGenerated = {
4328
+ type: {
4329
+ name: "Composite",
4330
+ className: "ErrorResponseAutoGenerated",
4331
+ modelProperties: {
4332
+ code: {
4333
+ serializedName: "code",
4334
+ readOnly: true,
4335
+ type: {
4336
+ name: "String"
4337
+ }
4338
+ },
4339
+ message: {
4340
+ serializedName: "message",
4341
+ readOnly: true,
4342
+ type: {
4343
+ name: "String"
4344
+ }
4345
+ }
4346
+ }
4347
+ }
4348
+ };
4349
+ const AlertRulePatchObject = {
4350
+ type: {
4351
+ name: "Composite",
4352
+ className: "AlertRulePatchObject",
4279
4353
  modelProperties: {
4280
4354
  tags: {
4281
4355
  serializedName: "tags",
@@ -4294,10 +4368,10 @@ const ActivityLogAlertPatchBody = {
4294
4368
  }
4295
4369
  }
4296
4370
  };
4297
- const ActivityLogAlertList = {
4371
+ const AlertRuleList = {
4298
4372
  type: {
4299
4373
  name: "Composite",
4300
- className: "ActivityLogAlertList",
4374
+ className: "AlertRuleList",
4301
4375
  modelProperties: {
4302
4376
  value: {
4303
4377
  serializedName: "value",
@@ -4762,6 +4836,13 @@ const DataCollectionRuleAssociationProxyOnlyResource = {
4762
4836
  type: {
4763
4837
  name: "String"
4764
4838
  }
4839
+ },
4840
+ metadata: {
4841
+ serializedName: "properties.metadata",
4842
+ type: {
4843
+ name: "Composite",
4844
+ className: "DataCollectionRuleAssociationMetadata"
4845
+ }
4765
4846
  }
4766
4847
  }
4767
4848
  }
@@ -4795,6 +4876,28 @@ const DataCollectionRuleAssociation = {
4795
4876
  type: {
4796
4877
  name: "String"
4797
4878
  }
4879
+ },
4880
+ metadata: {
4881
+ serializedName: "metadata",
4882
+ type: {
4883
+ name: "Composite",
4884
+ className: "DataCollectionRuleAssociationMetadata"
4885
+ }
4886
+ }
4887
+ }
4888
+ }
4889
+ };
4890
+ const Metadata = {
4891
+ type: {
4892
+ name: "Composite",
4893
+ className: "Metadata",
4894
+ modelProperties: {
4895
+ provisionedBy: {
4896
+ serializedName: "provisionedBy",
4897
+ readOnly: true,
4898
+ type: {
4899
+ name: "String"
4900
+ }
4798
4901
  }
4799
4902
  }
4800
4903
  }
@@ -4899,6 +5002,26 @@ const DataCollectionRuleResource = {
4899
5002
  name: "String"
4900
5003
  }
4901
5004
  },
5005
+ dataCollectionEndpointId: {
5006
+ serializedName: "properties.dataCollectionEndpointId",
5007
+ type: {
5008
+ name: "String"
5009
+ }
5010
+ },
5011
+ metadata: {
5012
+ serializedName: "properties.metadata",
5013
+ type: {
5014
+ name: "Composite",
5015
+ className: "DataCollectionRuleMetadata"
5016
+ }
5017
+ },
5018
+ streamDeclarations: {
5019
+ serializedName: "properties.streamDeclarations",
5020
+ type: {
5021
+ name: "Dictionary",
5022
+ value: { type: { name: "Composite", className: "StreamDeclaration" } }
5023
+ }
5024
+ },
4902
5025
  dataSources: {
4903
5026
  serializedName: "properties.dataSources",
4904
5027
  type: {
@@ -4953,6 +5076,26 @@ const DataCollectionRule = {
4953
5076
  name: "String"
4954
5077
  }
4955
5078
  },
5079
+ dataCollectionEndpointId: {
5080
+ serializedName: "dataCollectionEndpointId",
5081
+ type: {
5082
+ name: "String"
5083
+ }
5084
+ },
5085
+ metadata: {
5086
+ serializedName: "metadata",
5087
+ type: {
5088
+ name: "Composite",
5089
+ className: "DataCollectionRuleMetadata"
5090
+ }
5091
+ },
5092
+ streamDeclarations: {
5093
+ serializedName: "streamDeclarations",
5094
+ type: {
5095
+ name: "Dictionary",
5096
+ value: { type: { name: "Composite", className: "StreamDeclaration" } }
5097
+ }
5098
+ },
4956
5099
  dataSources: {
4957
5100
  serializedName: "dataSources",
4958
5101
  type: {
@@ -4989,6 +5132,46 @@ const DataCollectionRule = {
4989
5132
  }
4990
5133
  }
4991
5134
  };
5135
+ const StreamDeclaration = {
5136
+ type: {
5137
+ name: "Composite",
5138
+ className: "StreamDeclaration",
5139
+ modelProperties: {
5140
+ columns: {
5141
+ serializedName: "columns",
5142
+ type: {
5143
+ name: "Sequence",
5144
+ element: {
5145
+ type: {
5146
+ name: "Composite",
5147
+ className: "ColumnDefinition"
5148
+ }
5149
+ }
5150
+ }
5151
+ }
5152
+ }
5153
+ }
5154
+ };
5155
+ const ColumnDefinition = {
5156
+ type: {
5157
+ name: "Composite",
5158
+ className: "ColumnDefinition",
5159
+ modelProperties: {
5160
+ name: {
5161
+ serializedName: "name",
5162
+ type: {
5163
+ name: "String"
5164
+ }
5165
+ },
5166
+ type: {
5167
+ serializedName: "type",
5168
+ type: {
5169
+ name: "String"
5170
+ }
5171
+ }
5172
+ }
5173
+ }
5174
+ };
4992
5175
  const DataSourcesSpec = {
4993
5176
  type: {
4994
5177
  name: "Composite",
@@ -5041,6 +5224,30 @@ const DataSourcesSpec = {
5041
5224
  }
5042
5225
  }
5043
5226
  }
5227
+ },
5228
+ logFiles: {
5229
+ serializedName: "logFiles",
5230
+ type: {
5231
+ name: "Sequence",
5232
+ element: {
5233
+ type: {
5234
+ name: "Composite",
5235
+ className: "LogFilesDataSource"
5236
+ }
5237
+ }
5238
+ }
5239
+ },
5240
+ iisLogs: {
5241
+ serializedName: "iisLogs",
5242
+ type: {
5243
+ name: "Sequence",
5244
+ element: {
5245
+ type: {
5246
+ name: "Composite",
5247
+ className: "IisLogsDataSource"
5248
+ }
5249
+ }
5250
+ }
5044
5251
  }
5045
5252
  }
5046
5253
  }
@@ -5220,6 +5427,125 @@ const ExtensionDataSource = {
5220
5427
  }
5221
5428
  }
5222
5429
  };
5430
+ const LogFilesDataSource = {
5431
+ type: {
5432
+ name: "Composite",
5433
+ className: "LogFilesDataSource",
5434
+ modelProperties: {
5435
+ streams: {
5436
+ serializedName: "streams",
5437
+ required: true,
5438
+ type: {
5439
+ name: "Sequence",
5440
+ element: {
5441
+ type: {
5442
+ name: "String"
5443
+ }
5444
+ }
5445
+ }
5446
+ },
5447
+ filePatterns: {
5448
+ serializedName: "filePatterns",
5449
+ required: true,
5450
+ type: {
5451
+ name: "Sequence",
5452
+ element: {
5453
+ type: {
5454
+ name: "String"
5455
+ }
5456
+ }
5457
+ }
5458
+ },
5459
+ format: {
5460
+ serializedName: "format",
5461
+ required: true,
5462
+ type: {
5463
+ name: "String"
5464
+ }
5465
+ },
5466
+ settings: {
5467
+ serializedName: "settings",
5468
+ type: {
5469
+ name: "Composite",
5470
+ className: "LogFilesDataSourceSettings"
5471
+ }
5472
+ },
5473
+ name: {
5474
+ serializedName: "name",
5475
+ type: {
5476
+ name: "String"
5477
+ }
5478
+ }
5479
+ }
5480
+ }
5481
+ };
5482
+ const LogFileSettings = {
5483
+ type: {
5484
+ name: "Composite",
5485
+ className: "LogFileSettings",
5486
+ modelProperties: {
5487
+ text: {
5488
+ serializedName: "text",
5489
+ type: {
5490
+ name: "Composite",
5491
+ className: "LogFileSettingsText"
5492
+ }
5493
+ }
5494
+ }
5495
+ }
5496
+ };
5497
+ const LogFileTextSettings = {
5498
+ type: {
5499
+ name: "Composite",
5500
+ className: "LogFileTextSettings",
5501
+ modelProperties: {
5502
+ recordStartTimestampFormat: {
5503
+ serializedName: "recordStartTimestampFormat",
5504
+ required: true,
5505
+ type: {
5506
+ name: "String"
5507
+ }
5508
+ }
5509
+ }
5510
+ }
5511
+ };
5512
+ const IisLogsDataSource = {
5513
+ type: {
5514
+ name: "Composite",
5515
+ className: "IisLogsDataSource",
5516
+ modelProperties: {
5517
+ streams: {
5518
+ serializedName: "streams",
5519
+ required: true,
5520
+ type: {
5521
+ name: "Sequence",
5522
+ element: {
5523
+ type: {
5524
+ name: "String"
5525
+ }
5526
+ }
5527
+ }
5528
+ },
5529
+ logDirectories: {
5530
+ serializedName: "logDirectories",
5531
+ type: {
5532
+ name: "Sequence",
5533
+ element: {
5534
+ type: {
5535
+ name: "String"
5536
+ }
5537
+ }
5538
+ }
5539
+ },
5540
+ name: {
5541
+ serializedName: "name",
5542
+ type: {
5543
+ name: "String"
5544
+ }
5545
+ }
5546
+ }
5547
+ }
5548
+ };
5223
5549
  const DestinationsSpec = {
5224
5550
  type: {
5225
5551
  name: "Composite",
@@ -5314,6 +5640,18 @@ const DataFlow = {
5314
5640
  }
5315
5641
  }
5316
5642
  }
5643
+ },
5644
+ transformKql: {
5645
+ serializedName: "transformKql",
5646
+ type: {
5647
+ name: "String"
5648
+ }
5649
+ },
5650
+ outputStream: {
5651
+ serializedName: "outputStream",
5652
+ type: {
5653
+ name: "String"
5654
+ }
5317
5655
  }
5318
5656
  }
5319
5657
  }
@@ -5891,46 +6229,6 @@ const MetricAlertResource = {
5891
6229
  } })
5892
6230
  }
5893
6231
  };
5894
- const ActivityLogAlertResource = {
5895
- type: {
5896
- name: "Composite",
5897
- className: "ActivityLogAlertResource",
5898
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { scopes: {
5899
- serializedName: "properties.scopes",
5900
- type: {
5901
- name: "Sequence",
5902
- element: {
5903
- type: {
5904
- name: "String"
5905
- }
5906
- }
5907
- }
5908
- }, enabled: {
5909
- defaultValue: true,
5910
- serializedName: "properties.enabled",
5911
- type: {
5912
- name: "Boolean"
5913
- }
5914
- }, condition: {
5915
- serializedName: "properties.condition",
5916
- type: {
5917
- name: "Composite",
5918
- className: "ActivityLogAlertAllOfCondition"
5919
- }
5920
- }, actions: {
5921
- serializedName: "properties.actions",
5922
- type: {
5923
- name: "Composite",
5924
- className: "ActivityLogAlertActionList"
5925
- }
5926
- }, description: {
5927
- serializedName: "properties.description",
5928
- type: {
5929
- name: "String"
5930
- }
5931
- } })
5932
- }
5933
- };
5934
6232
  const ErrorResponseCommon = {
5935
6233
  type: {
5936
6234
  name: "Composite",
@@ -6695,6 +6993,64 @@ const AzureMonitorPrivateLinkScope = {
6695
6993
  } })
6696
6994
  }
6697
6995
  };
6996
+ const AlertRuleAnyOfOrLeafCondition = {
6997
+ type: {
6998
+ name: "Composite",
6999
+ className: "AlertRuleAnyOfOrLeafCondition",
7000
+ modelProperties: Object.assign(Object.assign({}, AlertRuleLeafCondition.type.modelProperties), { anyOf: {
7001
+ serializedName: "anyOf",
7002
+ type: {
7003
+ name: "Sequence",
7004
+ element: {
7005
+ type: {
7006
+ name: "Composite",
7007
+ className: "AlertRuleLeafCondition"
7008
+ }
7009
+ }
7010
+ }
7011
+ } })
7012
+ }
7013
+ };
7014
+ const ActivityLogAlertResource = {
7015
+ type: {
7016
+ name: "Composite",
7017
+ className: "ActivityLogAlertResource",
7018
+ modelProperties: Object.assign(Object.assign({}, AzureResourceAutoGenerated.type.modelProperties), { scopes: {
7019
+ serializedName: "properties.scopes",
7020
+ type: {
7021
+ name: "Sequence",
7022
+ element: {
7023
+ type: {
7024
+ name: "String"
7025
+ }
7026
+ }
7027
+ }
7028
+ }, condition: {
7029
+ serializedName: "properties.condition",
7030
+ type: {
7031
+ name: "Composite",
7032
+ className: "AlertRuleAllOfCondition"
7033
+ }
7034
+ }, actions: {
7035
+ serializedName: "properties.actions",
7036
+ type: {
7037
+ name: "Composite",
7038
+ className: "ActionList"
7039
+ }
7040
+ }, enabled: {
7041
+ defaultValue: true,
7042
+ serializedName: "properties.enabled",
7043
+ type: {
7044
+ name: "Boolean"
7045
+ }
7046
+ }, description: {
7047
+ serializedName: "properties.description",
7048
+ type: {
7049
+ name: "String"
7050
+ }
7051
+ } })
7052
+ }
7053
+ };
6698
7054
  const DataCollectionEndpointResourceProperties = {
6699
7055
  type: {
6700
7056
  name: "Composite",
@@ -6751,6 +7107,20 @@ const DataCollectionRuleAssociationProxyOnlyResourceProperties = {
6751
7107
  modelProperties: Object.assign({}, DataCollectionRuleAssociation.type.modelProperties)
6752
7108
  }
6753
7109
  };
7110
+ const DataCollectionRuleAssociationMetadata = {
7111
+ type: {
7112
+ name: "Composite",
7113
+ className: "DataCollectionRuleAssociationMetadata",
7114
+ modelProperties: Object.assign({}, Metadata.type.modelProperties)
7115
+ }
7116
+ };
7117
+ const DataCollectionRuleMetadata = {
7118
+ type: {
7119
+ name: "Composite",
7120
+ className: "DataCollectionRuleMetadata",
7121
+ modelProperties: Object.assign({}, Metadata.type.modelProperties)
7122
+ }
7123
+ };
6754
7124
  const DataCollectionRuleResourceProperties = {
6755
7125
  type: {
6756
7126
  name: "Composite",
@@ -6765,6 +7135,20 @@ const DataCollectionRuleDataSources = {
6765
7135
  modelProperties: Object.assign({}, DataSourcesSpec.type.modelProperties)
6766
7136
  }
6767
7137
  };
7138
+ const LogFilesDataSourceSettings = {
7139
+ type: {
7140
+ name: "Composite",
7141
+ className: "LogFilesDataSourceSettings",
7142
+ modelProperties: Object.assign({}, LogFileSettings.type.modelProperties)
7143
+ }
7144
+ };
7145
+ const LogFileSettingsText = {
7146
+ type: {
7147
+ name: "Composite",
7148
+ className: "LogFileSettingsText",
7149
+ modelProperties: Object.assign({}, LogFileTextSettings.type.modelProperties)
7150
+ }
7151
+ };
6768
7152
  const DataCollectionRuleDestinations = {
6769
7153
  type: {
6770
7154
  name: "Composite",
@@ -6836,6 +7220,48 @@ const DynamicMetricCriteria = {
6836
7220
  } })
6837
7221
  }
6838
7222
  };
7223
+ const ActionGroupsPostTestNotificationsHeaders = {
7224
+ type: {
7225
+ name: "Composite",
7226
+ className: "ActionGroupsPostTestNotificationsHeaders",
7227
+ modelProperties: {
7228
+ location: {
7229
+ serializedName: "location",
7230
+ type: {
7231
+ name: "String"
7232
+ }
7233
+ }
7234
+ }
7235
+ }
7236
+ };
7237
+ const ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders = {
7238
+ type: {
7239
+ name: "Composite",
7240
+ className: "ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders",
7241
+ modelProperties: {
7242
+ location: {
7243
+ serializedName: "location",
7244
+ type: {
7245
+ name: "String"
7246
+ }
7247
+ }
7248
+ }
7249
+ }
7250
+ };
7251
+ const ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders = {
7252
+ type: {
7253
+ name: "Composite",
7254
+ className: "ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders",
7255
+ modelProperties: {
7256
+ location: {
7257
+ serializedName: "location",
7258
+ type: {
7259
+ name: "String"
7260
+ }
7261
+ }
7262
+ }
7263
+ }
7264
+ };
6839
7265
  let discriminators = {
6840
7266
  RuleCondition: RuleCondition,
6841
7267
  RuleDataSource: RuleDataSource,
@@ -6909,7 +7335,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
6909
7335
  AzureResource: AzureResource,
6910
7336
  ActionGroupPatchBody: ActionGroupPatchBody,
6911
7337
  NotificationRequestBody: NotificationRequestBody,
6912
- TestNotificationResponse: TestNotificationResponse,
6913
7338
  TestNotificationDetailsResponse: TestNotificationDetailsResponse,
6914
7339
  Context: Context,
6915
7340
  ActionDetail: ActionDetail,
@@ -6967,12 +7392,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
6967
7392
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
6968
7393
  PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
6969
7394
  ScopedResourceListResult: ScopedResourceListResult,
6970
- ActivityLogAlertAllOfCondition: ActivityLogAlertAllOfCondition,
6971
- ActivityLogAlertLeafCondition: ActivityLogAlertLeafCondition,
6972
- ActivityLogAlertActionList: ActivityLogAlertActionList,
6973
- ActivityLogAlertActionGroup: ActivityLogAlertActionGroup,
6974
- ActivityLogAlertPatchBody: ActivityLogAlertPatchBody,
6975
- ActivityLogAlertList: ActivityLogAlertList,
7395
+ AlertRuleAllOfCondition: AlertRuleAllOfCondition,
7396
+ AlertRuleLeafCondition: AlertRuleLeafCondition,
7397
+ ActionList: ActionList,
7398
+ ActionGroup: ActionGroup,
7399
+ AzureResourceAutoGenerated: AzureResourceAutoGenerated,
7400
+ ErrorResponseAutoGenerated: ErrorResponseAutoGenerated,
7401
+ AlertRulePatchObject: AlertRulePatchObject,
7402
+ AlertRuleList: AlertRuleList,
6976
7403
  DataCollectionEndpointResourceListResult: DataCollectionEndpointResourceListResult,
6977
7404
  DataCollectionEndpointResource: DataCollectionEndpointResource,
6978
7405
  DataCollectionEndpoint: DataCollectionEndpoint,
@@ -6986,14 +7413,21 @@ var Mappers = /*#__PURE__*/Object.freeze({
6986
7413
  DataCollectionRuleAssociationProxyOnlyResourceListResult: DataCollectionRuleAssociationProxyOnlyResourceListResult,
6987
7414
  DataCollectionRuleAssociationProxyOnlyResource: DataCollectionRuleAssociationProxyOnlyResource,
6988
7415
  DataCollectionRuleAssociation: DataCollectionRuleAssociation,
7416
+ Metadata: Metadata,
6989
7417
  DataCollectionRuleResourceListResult: DataCollectionRuleResourceListResult,
6990
7418
  DataCollectionRuleResource: DataCollectionRuleResource,
6991
7419
  DataCollectionRule: DataCollectionRule,
7420
+ StreamDeclaration: StreamDeclaration,
7421
+ ColumnDefinition: ColumnDefinition,
6992
7422
  DataSourcesSpec: DataSourcesSpec,
6993
7423
  PerfCounterDataSource: PerfCounterDataSource,
6994
7424
  WindowsEventLogDataSource: WindowsEventLogDataSource,
6995
7425
  SyslogDataSource: SyslogDataSource,
6996
7426
  ExtensionDataSource: ExtensionDataSource,
7427
+ LogFilesDataSource: LogFilesDataSource,
7428
+ LogFileSettings: LogFileSettings,
7429
+ LogFileTextSettings: LogFileTextSettings,
7430
+ IisLogsDataSource: IisLogsDataSource,
6997
7431
  DestinationsSpec: DestinationsSpec,
6998
7432
  LogAnalyticsDestination: LogAnalyticsDestination,
6999
7433
  AzureMonitorMetricsDestination: AzureMonitorMetricsDestination,
@@ -7012,7 +7446,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
7012
7446
  AlertRuleResource: AlertRuleResource,
7013
7447
  LogProfileResource: LogProfileResource,
7014
7448
  MetricAlertResource: MetricAlertResource,
7015
- ActivityLogAlertResource: ActivityLogAlertResource,
7016
7449
  ErrorResponseCommon: ErrorResponseCommon,
7017
7450
  ThresholdRuleCondition: ThresholdRuleCondition,
7018
7451
  LocationThresholdRuleCondition: LocationThresholdRuleCondition,
@@ -7035,6 +7468,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
7035
7468
  PrivateLinkResource: PrivateLinkResource,
7036
7469
  ScopedResource: ScopedResource,
7037
7470
  AzureMonitorPrivateLinkScope: AzureMonitorPrivateLinkScope,
7471
+ AlertRuleAnyOfOrLeafCondition: AlertRuleAnyOfOrLeafCondition,
7472
+ ActivityLogAlertResource: ActivityLogAlertResource,
7038
7473
  DataCollectionEndpointResourceProperties: DataCollectionEndpointResourceProperties,
7039
7474
  DataCollectionEndpointConfigurationAccess: DataCollectionEndpointConfigurationAccess,
7040
7475
  DataCollectionEndpointLogsIngestion: DataCollectionEndpointLogsIngestion,
@@ -7043,12 +7478,19 @@ var Mappers = /*#__PURE__*/Object.freeze({
7043
7478
  DataCollectionRuleAssociationProxyOnlyResourceSystemData: DataCollectionRuleAssociationProxyOnlyResourceSystemData,
7044
7479
  DataCollectionRuleResourceSystemData: DataCollectionRuleResourceSystemData,
7045
7480
  DataCollectionRuleAssociationProxyOnlyResourceProperties: DataCollectionRuleAssociationProxyOnlyResourceProperties,
7481
+ DataCollectionRuleAssociationMetadata: DataCollectionRuleAssociationMetadata,
7482
+ DataCollectionRuleMetadata: DataCollectionRuleMetadata,
7046
7483
  DataCollectionRuleResourceProperties: DataCollectionRuleResourceProperties,
7047
7484
  DataCollectionRuleDataSources: DataCollectionRuleDataSources,
7485
+ LogFilesDataSourceSettings: LogFilesDataSourceSettings,
7486
+ LogFileSettingsText: LogFileSettingsText,
7048
7487
  DataCollectionRuleDestinations: DataCollectionRuleDestinations,
7049
7488
  DestinationsSpecAzureMonitorMetrics: DestinationsSpecAzureMonitorMetrics,
7050
7489
  MetricCriteria: MetricCriteria,
7051
7490
  DynamicMetricCriteria: DynamicMetricCriteria,
7491
+ ActionGroupsPostTestNotificationsHeaders: ActionGroupsPostTestNotificationsHeaders,
7492
+ ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders,
7493
+ ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders,
7052
7494
  discriminators: discriminators
7053
7495
  });
7054
7496
 
@@ -7269,7 +7711,7 @@ const actionGroupName = {
7269
7711
  const apiVersion3 = {
7270
7712
  parameterPath: "apiVersion",
7271
7713
  mapper: {
7272
- defaultValue: "2021-09-01",
7714
+ defaultValue: "2022-06-01",
7273
7715
  isConstant: true,
7274
7716
  serializedName: "api-version",
7275
7717
  type: {
@@ -7577,8 +8019,8 @@ const parameters9 = {
7577
8019
  parameterPath: "parameters",
7578
8020
  mapper: ScopedResource
7579
8021
  };
7580
- const activityLogAlert = {
7581
- parameterPath: "activityLogAlert",
8022
+ const activityLogAlertRule = {
8023
+ parameterPath: "activityLogAlertRule",
7582
8024
  mapper: ActivityLogAlertResource
7583
8025
  };
7584
8026
  const activityLogAlertName = {
@@ -7594,7 +8036,7 @@ const activityLogAlertName = {
7594
8036
  const apiVersion11 = {
7595
8037
  parameterPath: "apiVersion",
7596
8038
  mapper: {
7597
- defaultValue: "2017-04-01",
8039
+ defaultValue: "2020-10-01",
7598
8040
  isConstant: true,
7599
8041
  serializedName: "api-version",
7600
8042
  type: {
@@ -7602,14 +8044,14 @@ const apiVersion11 = {
7602
8044
  }
7603
8045
  }
7604
8046
  };
7605
- const activityLogAlertPatch = {
7606
- parameterPath: "activityLogAlertPatch",
7607
- mapper: ActivityLogAlertPatchBody
8047
+ const activityLogAlertRulePatch = {
8048
+ parameterPath: "activityLogAlertRulePatch",
8049
+ mapper: AlertRulePatchObject
7608
8050
  };
7609
8051
  const apiVersion12 = {
7610
8052
  parameterPath: "apiVersion",
7611
8053
  mapper: {
7612
- defaultValue: "2021-04-01",
8054
+ defaultValue: "2021-09-01-preview",
7613
8055
  isConstant: true,
7614
8056
  serializedName: "api-version",
7615
8057
  type: {
@@ -7857,7 +8299,7 @@ class AutoscaleSettingsImpl {
7857
8299
  * @param options The options parameters.
7858
8300
  */
7859
8301
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
7860
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$3);
8302
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$4);
7861
8303
  }
7862
8304
  /**
7863
8305
  * ListBySubscriptionNext
@@ -7996,7 +8438,7 @@ const listBySubscriptionOperationSpec$5 = {
7996
8438
  headerParameters: [accept],
7997
8439
  serializer: serializer$r
7998
8440
  };
7999
- const listByResourceGroupNextOperationSpec$3 = {
8441
+ const listByResourceGroupNextOperationSpec$4 = {
8000
8442
  path: "{nextLink}",
8001
8443
  httpMethod: "GET",
8002
8444
  responses: {
@@ -9089,6 +9531,112 @@ class ActionGroupsImpl {
9089
9531
  return poller.pollUntilDone();
9090
9532
  });
9091
9533
  }
9534
+ /**
9535
+ * Send test notifications to a set of provided receivers
9536
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9537
+ * @param notificationRequest The notification request body which includes the contact details
9538
+ * @param options The options parameters.
9539
+ */
9540
+ beginCreateNotificationsAtResourceGroupLevel(resourceGroupName, notificationRequest, options) {
9541
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9542
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9543
+ return this.client.sendOperationRequest(args, spec);
9544
+ });
9545
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9546
+ var _a;
9547
+ let currentRawResponse = undefined;
9548
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9549
+ const callback = (rawResponse, flatResponse) => {
9550
+ currentRawResponse = rawResponse;
9551
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9552
+ };
9553
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9554
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
9555
+ return {
9556
+ flatResponse,
9557
+ rawResponse: {
9558
+ statusCode: currentRawResponse.status,
9559
+ body: currentRawResponse.parsedBody,
9560
+ headers: currentRawResponse.headers.toJSON()
9561
+ }
9562
+ };
9563
+ });
9564
+ const lro = new LroImpl(sendOperation, { resourceGroupName, notificationRequest, options }, createNotificationsAtResourceGroupLevelOperationSpec);
9565
+ const poller = new coreLro.LroEngine(lro, {
9566
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9567
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9568
+ lroResourceLocationConfig: "location"
9569
+ });
9570
+ yield poller.poll();
9571
+ return poller;
9572
+ });
9573
+ }
9574
+ /**
9575
+ * Send test notifications to a set of provided receivers
9576
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9577
+ * @param notificationRequest The notification request body which includes the contact details
9578
+ * @param options The options parameters.
9579
+ */
9580
+ beginCreateNotificationsAtResourceGroupLevelAndWait(resourceGroupName, notificationRequest, options) {
9581
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9582
+ const poller = yield this.beginCreateNotificationsAtResourceGroupLevel(resourceGroupName, notificationRequest, options);
9583
+ return poller.pollUntilDone();
9584
+ });
9585
+ }
9586
+ /**
9587
+ * Send test notifications to a set of provided receivers
9588
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9589
+ * @param actionGroupName The name of the action group.
9590
+ * @param notificationRequest The notification request body which includes the contact details
9591
+ * @param options The options parameters.
9592
+ */
9593
+ beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options) {
9594
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9595
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9596
+ return this.client.sendOperationRequest(args, spec);
9597
+ });
9598
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9599
+ var _a;
9600
+ let currentRawResponse = undefined;
9601
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9602
+ const callback = (rawResponse, flatResponse) => {
9603
+ currentRawResponse = rawResponse;
9604
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9605
+ };
9606
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9607
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
9608
+ return {
9609
+ flatResponse,
9610
+ rawResponse: {
9611
+ statusCode: currentRawResponse.status,
9612
+ body: currentRawResponse.parsedBody,
9613
+ headers: currentRawResponse.headers.toJSON()
9614
+ }
9615
+ };
9616
+ });
9617
+ const lro = new LroImpl(sendOperation, { resourceGroupName, actionGroupName, notificationRequest, options }, createNotificationsAtActionGroupResourceLevelOperationSpec);
9618
+ const poller = new coreLro.LroEngine(lro, {
9619
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9620
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9621
+ lroResourceLocationConfig: "location"
9622
+ });
9623
+ yield poller.poll();
9624
+ return poller;
9625
+ });
9626
+ }
9627
+ /**
9628
+ * Send test notifications to a set of provided receivers
9629
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9630
+ * @param actionGroupName The name of the action group.
9631
+ * @param notificationRequest The notification request body which includes the contact details
9632
+ * @param options The options parameters.
9633
+ */
9634
+ beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName, actionGroupName, notificationRequest, options) {
9635
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9636
+ const poller = yield this.beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options);
9637
+ return poller.pollUntilDone();
9638
+ });
9639
+ }
9092
9640
  /**
9093
9641
  * Get the test notifications by the notification id
9094
9642
  * @param notificationId The notification id
@@ -9097,6 +9645,25 @@ class ActionGroupsImpl {
9097
9645
  getTestNotifications(notificationId, options) {
9098
9646
  return this.client.sendOperationRequest({ notificationId, options }, getTestNotificationsOperationSpec);
9099
9647
  }
9648
+ /**
9649
+ * Get the test notifications by the notification id
9650
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9651
+ * @param notificationId The notification id
9652
+ * @param options The options parameters.
9653
+ */
9654
+ getTestNotificationsAtResourceGroupLevel(resourceGroupName, notificationId, options) {
9655
+ return this.client.sendOperationRequest({ resourceGroupName, notificationId, options }, getTestNotificationsAtResourceGroupLevelOperationSpec);
9656
+ }
9657
+ /**
9658
+ * Get the test notifications by the notification id
9659
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9660
+ * @param actionGroupName The name of the action group.
9661
+ * @param notificationId The notification id
9662
+ * @param options The options parameters.
9663
+ */
9664
+ getTestNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationId, options) {
9665
+ return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, notificationId, options }, getTestNotificationsAtActionGroupResourceLevelOperationSpec);
9666
+ }
9100
9667
  /**
9101
9668
  * Get a list of all action groups in a subscription.
9102
9669
  * @param options The options parameters.
@@ -9221,16 +9788,16 @@ const postTestNotificationsOperationSpec = {
9221
9788
  httpMethod: "POST",
9222
9789
  responses: {
9223
9790
  200: {
9224
- bodyMapper: TestNotificationResponse
9791
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9225
9792
  },
9226
9793
  201: {
9227
- bodyMapper: TestNotificationResponse
9794
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9228
9795
  },
9229
9796
  202: {
9230
- bodyMapper: TestNotificationResponse
9797
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9231
9798
  },
9232
9799
  204: {
9233
- bodyMapper: TestNotificationResponse
9800
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9234
9801
  },
9235
9802
  default: {
9236
9803
  bodyMapper: ErrorResponse
@@ -9243,6 +9810,69 @@ const postTestNotificationsOperationSpec = {
9243
9810
  mediaType: "json",
9244
9811
  serializer: serializer$k
9245
9812
  };
9813
+ const createNotificationsAtResourceGroupLevelOperationSpec = {
9814
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/createNotifications",
9815
+ httpMethod: "POST",
9816
+ responses: {
9817
+ 200: {
9818
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9819
+ },
9820
+ 201: {
9821
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9822
+ },
9823
+ 202: {
9824
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9825
+ },
9826
+ 204: {
9827
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9828
+ },
9829
+ default: {
9830
+ bodyMapper: ErrorResponse
9831
+ }
9832
+ },
9833
+ requestBody: notificationRequest,
9834
+ queryParameters: [apiVersion3],
9835
+ urlParameters: [
9836
+ $host,
9837
+ resourceGroupName,
9838
+ subscriptionId
9839
+ ],
9840
+ headerParameters: [accept, contentType],
9841
+ mediaType: "json",
9842
+ serializer: serializer$k
9843
+ };
9844
+ const createNotificationsAtActionGroupResourceLevelOperationSpec = {
9845
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/createNotifications",
9846
+ httpMethod: "POST",
9847
+ responses: {
9848
+ 200: {
9849
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9850
+ },
9851
+ 201: {
9852
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9853
+ },
9854
+ 202: {
9855
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9856
+ },
9857
+ 204: {
9858
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9859
+ },
9860
+ default: {
9861
+ bodyMapper: ErrorResponse
9862
+ }
9863
+ },
9864
+ requestBody: notificationRequest,
9865
+ queryParameters: [apiVersion3],
9866
+ urlParameters: [
9867
+ $host,
9868
+ resourceGroupName,
9869
+ subscriptionId,
9870
+ actionGroupName
9871
+ ],
9872
+ headerParameters: [accept, contentType],
9873
+ mediaType: "json",
9874
+ serializer: serializer$k
9875
+ };
9246
9876
  const getTestNotificationsOperationSpec = {
9247
9877
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/notificationStatus/{notificationId}",
9248
9878
  httpMethod: "GET",
@@ -9263,6 +9893,49 @@ const getTestNotificationsOperationSpec = {
9263
9893
  headerParameters: [accept],
9264
9894
  serializer: serializer$k
9265
9895
  };
9896
+ const getTestNotificationsAtResourceGroupLevelOperationSpec = {
9897
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/notificationStatus/{notificationId}",
9898
+ httpMethod: "GET",
9899
+ responses: {
9900
+ 200: {
9901
+ bodyMapper: TestNotificationDetailsResponse
9902
+ },
9903
+ default: {
9904
+ bodyMapper: ErrorResponse
9905
+ }
9906
+ },
9907
+ queryParameters: [apiVersion3],
9908
+ urlParameters: [
9909
+ $host,
9910
+ resourceGroupName,
9911
+ subscriptionId,
9912
+ notificationId
9913
+ ],
9914
+ headerParameters: [accept],
9915
+ serializer: serializer$k
9916
+ };
9917
+ const getTestNotificationsAtActionGroupResourceLevelOperationSpec = {
9918
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/notificationStatus/{notificationId}",
9919
+ httpMethod: "GET",
9920
+ responses: {
9921
+ 200: {
9922
+ bodyMapper: TestNotificationDetailsResponse
9923
+ },
9924
+ default: {
9925
+ bodyMapper: ErrorResponse
9926
+ }
9927
+ },
9928
+ queryParameters: [apiVersion3],
9929
+ urlParameters: [
9930
+ $host,
9931
+ resourceGroupName,
9932
+ subscriptionId,
9933
+ actionGroupName,
9934
+ notificationId
9935
+ ],
9936
+ headerParameters: [accept],
9937
+ serializer: serializer$k
9938
+ };
9266
9939
  const listBySubscriptionIdOperationSpec$1 = {
9267
9940
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups",
9268
9941
  httpMethod: "GET",
@@ -10963,7 +11636,7 @@ class PrivateLinkScopesImpl {
10963
11636
  * @param options The options parameters.
10964
11637
  */
10965
11638
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
10966
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
11639
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$3);
10967
11640
  }
10968
11641
  }
10969
11642
  // Operation Specifications
@@ -11089,7 +11762,7 @@ const listNextOperationSpec = {
11089
11762
  headerParameters: [accept],
11090
11763
  serializer: serializer$8
11091
11764
  };
11092
- const listByResourceGroupNextOperationSpec$2 = {
11765
+ const listByResourceGroupNextOperationSpec$3 = {
11093
11766
  path: "{nextLink}",
11094
11767
  httpMethod: "GET",
11095
11768
  responses: {
@@ -11951,7 +12624,7 @@ class ActivityLogAlertsImpl {
11951
12624
  this.client = client;
11952
12625
  }
11953
12626
  /**
11954
- * Get a list of all activity log alerts in a subscription.
12627
+ * Get a list of all Activity Log Alert rules in a subscription.
11955
12628
  * @param options The options parameters.
11956
12629
  */
11957
12630
  listBySubscriptionId(options) {
@@ -11972,6 +12645,12 @@ class ActivityLogAlertsImpl {
11972
12645
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
11973
12646
  let result = yield tslib.__await(this._listBySubscriptionId(options));
11974
12647
  yield yield tslib.__await(result.value || []);
12648
+ let continuationToken = result.nextLink;
12649
+ while (continuationToken) {
12650
+ result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
12651
+ continuationToken = result.nextLink;
12652
+ yield yield tslib.__await(result.value || []);
12653
+ }
11975
12654
  });
11976
12655
  }
11977
12656
  listBySubscriptionIdPagingAll(options) {
@@ -11993,7 +12672,7 @@ class ActivityLogAlertsImpl {
11993
12672
  });
11994
12673
  }
11995
12674
  /**
11996
- * Get a list of all activity log alerts in a resource group.
12675
+ * Get a list of all Activity Log Alert rules in a resource group.
11997
12676
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11998
12677
  * @param options The options parameters.
11999
12678
  */
@@ -12015,6 +12694,12 @@ class ActivityLogAlertsImpl {
12015
12694
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
12016
12695
  let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
12017
12696
  yield yield tslib.__await(result.value || []);
12697
+ let continuationToken = result.nextLink;
12698
+ while (continuationToken) {
12699
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
12700
+ continuationToken = result.nextLink;
12701
+ yield yield tslib.__await(result.value || []);
12702
+ }
12018
12703
  });
12019
12704
  }
12020
12705
  listByResourceGroupPagingAll(resourceGroupName, options) {
@@ -12036,69 +12721,92 @@ class ActivityLogAlertsImpl {
12036
12721
  });
12037
12722
  }
12038
12723
  /**
12039
- * Create a new activity log alert or update an existing one.
12724
+ * Create a new Activity Log Alert rule or update an existing one.
12040
12725
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
12041
- * @param activityLogAlertName The name of the activity log alert.
12042
- * @param activityLogAlert The activity log alert to create or use for the update.
12726
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
12727
+ * @param activityLogAlertRule The Activity Log Alert rule to create or use for the update.
12043
12728
  * @param options The options parameters.
12044
12729
  */
12045
- createOrUpdate(resourceGroupName, activityLogAlertName, activityLogAlert, options) {
12046
- return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, activityLogAlert, options }, createOrUpdateOperationSpec);
12730
+ createOrUpdate(resourceGroupName, activityLogAlertName, activityLogAlertRule, options) {
12731
+ return this.client.sendOperationRequest({
12732
+ resourceGroupName,
12733
+ activityLogAlertName,
12734
+ activityLogAlertRule,
12735
+ options
12736
+ }, createOrUpdateOperationSpec);
12047
12737
  }
12048
12738
  /**
12049
- * Get an activity log alert.
12739
+ * Get an Activity Log Alert rule.
12050
12740
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
12051
- * @param activityLogAlertName The name of the activity log alert.
12741
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
12052
12742
  * @param options The options parameters.
12053
12743
  */
12054
12744
  get(resourceGroupName, activityLogAlertName, options) {
12055
12745
  return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, options }, getOperationSpec$3);
12056
12746
  }
12057
12747
  /**
12058
- * Delete an activity log alert.
12748
+ * Delete an Activity Log Alert rule.
12059
12749
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
12060
- * @param activityLogAlertName The name of the activity log alert.
12750
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
12061
12751
  * @param options The options parameters.
12062
12752
  */
12063
12753
  delete(resourceGroupName, activityLogAlertName, options) {
12064
12754
  return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, options }, deleteOperationSpec$3);
12065
12755
  }
12066
12756
  /**
12067
- * Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate
12068
- * method.
12757
+ * Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the
12758
+ * Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate
12759
+ * operation.
12069
12760
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
12070
- * @param activityLogAlertName The name of the activity log alert.
12071
- * @param activityLogAlertPatch Parameters supplied to the operation.
12761
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
12762
+ * @param activityLogAlertRulePatch Parameters supplied to the operation.
12072
12763
  * @param options The options parameters.
12073
12764
  */
12074
- update(resourceGroupName, activityLogAlertName, activityLogAlertPatch, options) {
12765
+ update(resourceGroupName, activityLogAlertName, activityLogAlertRulePatch, options) {
12075
12766
  return this.client.sendOperationRequest({
12076
12767
  resourceGroupName,
12077
12768
  activityLogAlertName,
12078
- activityLogAlertPatch,
12769
+ activityLogAlertRulePatch,
12079
12770
  options
12080
12771
  }, updateOperationSpec$2);
12081
12772
  }
12082
12773
  /**
12083
- * Get a list of all activity log alerts in a subscription.
12774
+ * Get a list of all Activity Log Alert rules in a subscription.
12084
12775
  * @param options The options parameters.
12085
12776
  */
12086
12777
  _listBySubscriptionId(options) {
12087
12778
  return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
12088
12779
  }
12089
12780
  /**
12090
- * Get a list of all activity log alerts in a resource group.
12781
+ * Get a list of all Activity Log Alert rules in a resource group.
12091
12782
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
12092
12783
  * @param options The options parameters.
12093
12784
  */
12094
12785
  _listByResourceGroup(resourceGroupName, options) {
12095
12786
  return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
12096
12787
  }
12788
+ /**
12789
+ * ListBySubscriptionIdNext
12790
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
12791
+ * @param options The options parameters.
12792
+ */
12793
+ _listBySubscriptionIdNext(nextLink, options) {
12794
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
12795
+ }
12796
+ /**
12797
+ * ListByResourceGroupNext
12798
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
12799
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
12800
+ * @param options The options parameters.
12801
+ */
12802
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
12803
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
12804
+ }
12097
12805
  }
12098
12806
  // Operation Specifications
12099
12807
  const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12100
12808
  const createOrUpdateOperationSpec = {
12101
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12809
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12102
12810
  httpMethod: "PUT",
12103
12811
  responses: {
12104
12812
  200: {
@@ -12108,10 +12816,10 @@ const createOrUpdateOperationSpec = {
12108
12816
  bodyMapper: ActivityLogAlertResource
12109
12817
  },
12110
12818
  default: {
12111
- bodyMapper: ErrorResponse
12819
+ bodyMapper: ErrorResponseAutoGenerated
12112
12820
  }
12113
12821
  },
12114
- requestBody: activityLogAlert,
12822
+ requestBody: activityLogAlertRule,
12115
12823
  queryParameters: [apiVersion11],
12116
12824
  urlParameters: [
12117
12825
  $host,
@@ -12124,14 +12832,14 @@ const createOrUpdateOperationSpec = {
12124
12832
  serializer: serializer$3
12125
12833
  };
12126
12834
  const getOperationSpec$3 = {
12127
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12835
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12128
12836
  httpMethod: "GET",
12129
12837
  responses: {
12130
12838
  200: {
12131
12839
  bodyMapper: ActivityLogAlertResource
12132
12840
  },
12133
12841
  default: {
12134
- bodyMapper: ErrorResponse
12842
+ bodyMapper: ErrorResponseAutoGenerated
12135
12843
  }
12136
12844
  },
12137
12845
  queryParameters: [apiVersion11],
@@ -12145,13 +12853,13 @@ const getOperationSpec$3 = {
12145
12853
  serializer: serializer$3
12146
12854
  };
12147
12855
  const deleteOperationSpec$3 = {
12148
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12856
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12149
12857
  httpMethod: "DELETE",
12150
12858
  responses: {
12151
12859
  200: {},
12152
12860
  204: {},
12153
12861
  default: {
12154
- bodyMapper: ErrorResponse
12862
+ bodyMapper: ErrorResponseAutoGenerated
12155
12863
  }
12156
12864
  },
12157
12865
  queryParameters: [apiVersion11],
@@ -12165,17 +12873,17 @@ const deleteOperationSpec$3 = {
12165
12873
  serializer: serializer$3
12166
12874
  };
12167
12875
  const updateOperationSpec$2 = {
12168
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12876
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12169
12877
  httpMethod: "PATCH",
12170
12878
  responses: {
12171
12879
  200: {
12172
12880
  bodyMapper: ActivityLogAlertResource
12173
12881
  },
12174
12882
  default: {
12175
- bodyMapper: ErrorResponse
12883
+ bodyMapper: ErrorResponseAutoGenerated
12176
12884
  }
12177
12885
  },
12178
- requestBody: activityLogAlertPatch,
12886
+ requestBody: activityLogAlertRulePatch,
12179
12887
  queryParameters: [apiVersion11],
12180
12888
  urlParameters: [
12181
12889
  $host,
@@ -12188,14 +12896,14 @@ const updateOperationSpec$2 = {
12188
12896
  serializer: serializer$3
12189
12897
  };
12190
12898
  const listBySubscriptionIdOperationSpec = {
12191
- path: "/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts",
12899
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts",
12192
12900
  httpMethod: "GET",
12193
12901
  responses: {
12194
12902
  200: {
12195
- bodyMapper: ActivityLogAlertList
12903
+ bodyMapper: AlertRuleList
12196
12904
  },
12197
12905
  default: {
12198
- bodyMapper: ErrorResponse
12906
+ bodyMapper: ErrorResponseAutoGenerated
12199
12907
  }
12200
12908
  },
12201
12909
  queryParameters: [apiVersion11],
@@ -12204,14 +12912,14 @@ const listBySubscriptionIdOperationSpec = {
12204
12912
  serializer: serializer$3
12205
12913
  };
12206
12914
  const listByResourceGroupOperationSpec$2 = {
12207
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts",
12915
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts",
12208
12916
  httpMethod: "GET",
12209
12917
  responses: {
12210
12918
  200: {
12211
- bodyMapper: ActivityLogAlertList
12919
+ bodyMapper: AlertRuleList
12212
12920
  },
12213
12921
  default: {
12214
- bodyMapper: ErrorResponse
12922
+ bodyMapper: ErrorResponseAutoGenerated
12215
12923
  }
12216
12924
  },
12217
12925
  queryParameters: [apiVersion11],
@@ -12223,6 +12931,47 @@ const listByResourceGroupOperationSpec$2 = {
12223
12931
  headerParameters: [accept],
12224
12932
  serializer: serializer$3
12225
12933
  };
12934
+ const listBySubscriptionIdNextOperationSpec = {
12935
+ path: "{nextLink}",
12936
+ httpMethod: "GET",
12937
+ responses: {
12938
+ 200: {
12939
+ bodyMapper: AlertRuleList
12940
+ },
12941
+ default: {
12942
+ bodyMapper: ErrorResponseAutoGenerated
12943
+ }
12944
+ },
12945
+ queryParameters: [apiVersion11],
12946
+ urlParameters: [
12947
+ $host,
12948
+ subscriptionId,
12949
+ nextLink
12950
+ ],
12951
+ headerParameters: [accept],
12952
+ serializer: serializer$3
12953
+ };
12954
+ const listByResourceGroupNextOperationSpec$2 = {
12955
+ path: "{nextLink}",
12956
+ httpMethod: "GET",
12957
+ responses: {
12958
+ 200: {
12959
+ bodyMapper: AlertRuleList
12960
+ },
12961
+ default: {
12962
+ bodyMapper: ErrorResponseAutoGenerated
12963
+ }
12964
+ },
12965
+ queryParameters: [apiVersion11],
12966
+ urlParameters: [
12967
+ $host,
12968
+ resourceGroupName,
12969
+ subscriptionId,
12970
+ nextLink
12971
+ ],
12972
+ headerParameters: [accept],
12973
+ serializer: serializer$3
12974
+ };
12226
12975
 
12227
12976
  /*
12228
12977
  * Copyright (c) Microsoft Corporation.
@@ -12697,6 +13446,57 @@ class DataCollectionRuleAssociationsImpl {
12697
13446
  }
12698
13447
  });
12699
13448
  }
13449
+ /**
13450
+ * Lists associations for the specified data collection endpoint.
13451
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13452
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
13453
+ * insensitive.
13454
+ * @param options The options parameters.
13455
+ */
13456
+ listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options) {
13457
+ const iter = this.listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options);
13458
+ return {
13459
+ next() {
13460
+ return iter.next();
13461
+ },
13462
+ [Symbol.asyncIterator]() {
13463
+ return this;
13464
+ },
13465
+ byPage: () => {
13466
+ return this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options);
13467
+ }
13468
+ };
13469
+ }
13470
+ listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options) {
13471
+ return tslib.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingPage_1() {
13472
+ let result = yield tslib.__await(this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options));
13473
+ yield yield tslib.__await(result.value || []);
13474
+ let continuationToken = result.nextLink;
13475
+ while (continuationToken) {
13476
+ result = yield tslib.__await(this._listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, continuationToken, options));
13477
+ continuationToken = result.nextLink;
13478
+ yield yield tslib.__await(result.value || []);
13479
+ }
13480
+ });
13481
+ }
13482
+ listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options) {
13483
+ return tslib.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingAll_1() {
13484
+ var e_3, _a;
13485
+ try {
13486
+ for (var _b = tslib.__asyncValues(this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
13487
+ const page = _c.value;
13488
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
13489
+ }
13490
+ }
13491
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
13492
+ finally {
13493
+ try {
13494
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
13495
+ }
13496
+ finally { if (e_3) throw e_3.error; }
13497
+ }
13498
+ });
13499
+ }
12700
13500
  /**
12701
13501
  * Lists associations for the specified resource.
12702
13502
  * @param resourceUri The identifier of the resource.
@@ -12714,6 +13514,16 @@ class DataCollectionRuleAssociationsImpl {
12714
13514
  _listByRule(resourceGroupName, dataCollectionRuleName, options) {
12715
13515
  return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, listByRuleOperationSpec);
12716
13516
  }
13517
+ /**
13518
+ * Lists associations for the specified data collection endpoint.
13519
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13520
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
13521
+ * insensitive.
13522
+ * @param options The options parameters.
13523
+ */
13524
+ _listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options) {
13525
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, listByDataCollectionEndpointOperationSpec);
13526
+ }
12717
13527
  /**
12718
13528
  * Returns the specified association.
12719
13529
  * @param resourceUri The identifier of the resource.
@@ -12760,6 +13570,18 @@ class DataCollectionRuleAssociationsImpl {
12760
13570
  _listByRuleNext(resourceGroupName, dataCollectionRuleName, nextLink, options) {
12761
13571
  return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, nextLink, options }, listByRuleNextOperationSpec);
12762
13572
  }
13573
+ /**
13574
+ * ListByDataCollectionEndpointNext
13575
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13576
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
13577
+ * insensitive.
13578
+ * @param nextLink The nextLink from the previous successful call to the ListByDataCollectionEndpoint
13579
+ * method.
13580
+ * @param options The options parameters.
13581
+ */
13582
+ _listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, nextLink, options) {
13583
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, nextLink, options }, listByDataCollectionEndpointNextOperationSpec);
13584
+ }
12763
13585
  }
12764
13586
  // Operation Specifications
12765
13587
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
@@ -12800,6 +13622,27 @@ const listByRuleOperationSpec = {
12800
13622
  headerParameters: [accept],
12801
13623
  serializer: serializer$1
12802
13624
  };
13625
+ const listByDataCollectionEndpointOperationSpec = {
13626
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations",
13627
+ httpMethod: "GET",
13628
+ responses: {
13629
+ 200: {
13630
+ bodyMapper: DataCollectionRuleAssociationProxyOnlyResourceListResult
13631
+ },
13632
+ default: {
13633
+ bodyMapper: ErrorResponseCommonV2
13634
+ }
13635
+ },
13636
+ queryParameters: [apiVersion12],
13637
+ urlParameters: [
13638
+ $host,
13639
+ resourceGroupName,
13640
+ subscriptionId,
13641
+ dataCollectionEndpointName
13642
+ ],
13643
+ headerParameters: [accept],
13644
+ serializer: serializer$1
13645
+ };
12803
13646
  const getOperationSpec$1 = {
12804
13647
  path: "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}",
12805
13648
  httpMethod: "GET",
@@ -12906,6 +13749,28 @@ const listByRuleNextOperationSpec = {
12906
13749
  headerParameters: [accept],
12907
13750
  serializer: serializer$1
12908
13751
  };
13752
+ const listByDataCollectionEndpointNextOperationSpec = {
13753
+ path: "{nextLink}",
13754
+ httpMethod: "GET",
13755
+ responses: {
13756
+ 200: {
13757
+ bodyMapper: DataCollectionRuleAssociationProxyOnlyResourceListResult
13758
+ },
13759
+ default: {
13760
+ bodyMapper: ErrorResponseCommonV2
13761
+ }
13762
+ },
13763
+ queryParameters: [apiVersion12],
13764
+ urlParameters: [
13765
+ $host,
13766
+ resourceGroupName,
13767
+ subscriptionId,
13768
+ nextLink,
13769
+ dataCollectionEndpointName
13770
+ ],
13771
+ headerParameters: [accept],
13772
+ serializer: serializer$1
13773
+ };
12909
13774
 
12910
13775
  /*
12911
13776
  * Copyright (c) Microsoft Corporation.
@@ -13290,7 +14155,7 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
13290
14155
  requestContentType: "application/json; charset=utf-8",
13291
14156
  credential: credentials
13292
14157
  };
13293
- const packageDetails = `azsdk-js-arm-monitor/7.0.1`;
14158
+ const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.1`;
13294
14159
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
13295
14160
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
13296
14161
  : `${packageDetails}`;