@azure/arm-dynatrace 1.0.2-alpha.20230824.1 → 2.0.0
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.
- package/CHANGELOG.md +29 -10
- package/dist/index.js +257 -258
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/monitorsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js +58 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{monitorsGetAccountCredentialsSample.js → monitorsGetMetricStatusSample.js} +19 -21
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +3 -3
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListHostsSample.js +6 -6
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +7 -3
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsUpdateSample.js +3 -25
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnGetSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnListSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +6 -3
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesGetSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesListSample.js +2 -2
- package/dist-esm/src/dynatraceObservability.js +2 -2
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +54 -69
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +116 -130
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +7 -7
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/monitors.d.ts +19 -13
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +83 -46
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operations/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operations/singleSignOn.js +18 -8
- package/dist-esm/src/operations/singleSignOn.js.map +1 -1
- package/dist-esm/src/operations/tagRules.d.ts +4 -13
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -1
- package/dist-esm/src/operations/tagRules.js +20 -47
- package/dist-esm/src/operations/tagRules.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +18 -12
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +4 -13
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -1
- package/dist-esm/test/dynatrace_examples.spec.js +60 -13
- package/dist-esm/test/dynatrace_examples.spec.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-dynatrace.api.md +40 -40
- package/src/dynatraceObservability.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +62 -76
- package/src/models/mappers.ts +120 -133
- package/src/models/parameters.ts +8 -8
- package/src/operations/monitors.ts +115 -68
- package/src/operations/singleSignOn.ts +27 -14
- package/src/operations/tagRules.ts +30 -72
- package/src/operationsInterfaces/monitors.ts +30 -18
- package/src/operationsInterfaces/singleSignOn.ts +3 -3
- package/src/operationsInterfaces/tagRules.ts +4 -22
- package/types/arm-dynatrace.d.ts +59 -76
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.js +0 -75
- package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -293,28 +293,63 @@ exports.KnownSSOStatus = void 0;
|
|
|
293
293
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
294
294
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
295
295
|
*/
|
|
296
|
-
const
|
|
296
|
+
const MonitoredResourceListResponse = {
|
|
297
297
|
type: {
|
|
298
298
|
name: "Composite",
|
|
299
|
-
className: "
|
|
299
|
+
className: "MonitoredResourceListResponse",
|
|
300
300
|
modelProperties: {
|
|
301
|
-
|
|
302
|
-
serializedName: "
|
|
303
|
-
|
|
301
|
+
value: {
|
|
302
|
+
serializedName: "value",
|
|
303
|
+
type: {
|
|
304
|
+
name: "Sequence",
|
|
305
|
+
element: {
|
|
306
|
+
type: {
|
|
307
|
+
name: "Composite",
|
|
308
|
+
className: "MonitoredResource"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
nextLink: {
|
|
314
|
+
serializedName: "nextLink",
|
|
315
|
+
type: {
|
|
316
|
+
name: "String"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
const MonitoredResource = {
|
|
323
|
+
type: {
|
|
324
|
+
name: "Composite",
|
|
325
|
+
className: "MonitoredResource",
|
|
326
|
+
modelProperties: {
|
|
327
|
+
id: {
|
|
328
|
+
serializedName: "id",
|
|
304
329
|
type: {
|
|
305
330
|
name: "String"
|
|
306
331
|
}
|
|
307
332
|
},
|
|
308
|
-
|
|
309
|
-
serializedName: "
|
|
310
|
-
readOnly: true,
|
|
333
|
+
sendingMetrics: {
|
|
334
|
+
serializedName: "sendingMetrics",
|
|
311
335
|
type: {
|
|
312
336
|
name: "String"
|
|
313
337
|
}
|
|
314
338
|
},
|
|
315
|
-
|
|
316
|
-
serializedName: "
|
|
317
|
-
|
|
339
|
+
reasonForMetricsStatus: {
|
|
340
|
+
serializedName: "reasonForMetricsStatus",
|
|
341
|
+
type: {
|
|
342
|
+
name: "String"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
sendingLogs: {
|
|
346
|
+
serializedName: "sendingLogs",
|
|
347
|
+
type: {
|
|
348
|
+
name: "String"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
reasonForLogsStatus: {
|
|
352
|
+
serializedName: "reasonForLogsStatus",
|
|
318
353
|
type: {
|
|
319
354
|
name: "String"
|
|
320
355
|
}
|
|
@@ -415,70 +450,6 @@ const ErrorAdditionalInfo = {
|
|
|
415
450
|
}
|
|
416
451
|
}
|
|
417
452
|
};
|
|
418
|
-
const MonitoredResourceListResponse = {
|
|
419
|
-
type: {
|
|
420
|
-
name: "Composite",
|
|
421
|
-
className: "MonitoredResourceListResponse",
|
|
422
|
-
modelProperties: {
|
|
423
|
-
value: {
|
|
424
|
-
serializedName: "value",
|
|
425
|
-
type: {
|
|
426
|
-
name: "Sequence",
|
|
427
|
-
element: {
|
|
428
|
-
type: {
|
|
429
|
-
name: "Composite",
|
|
430
|
-
className: "MonitoredResource"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
nextLink: {
|
|
436
|
-
serializedName: "nextLink",
|
|
437
|
-
type: {
|
|
438
|
-
name: "String"
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
const MonitoredResource = {
|
|
445
|
-
type: {
|
|
446
|
-
name: "Composite",
|
|
447
|
-
className: "MonitoredResource",
|
|
448
|
-
modelProperties: {
|
|
449
|
-
id: {
|
|
450
|
-
serializedName: "id",
|
|
451
|
-
type: {
|
|
452
|
-
name: "String"
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
sendingMetrics: {
|
|
456
|
-
serializedName: "sendingMetrics",
|
|
457
|
-
type: {
|
|
458
|
-
name: "String"
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
reasonForMetricsStatus: {
|
|
462
|
-
serializedName: "reasonForMetricsStatus",
|
|
463
|
-
type: {
|
|
464
|
-
name: "String"
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
sendingLogs: {
|
|
468
|
-
serializedName: "sendingLogs",
|
|
469
|
-
type: {
|
|
470
|
-
name: "String"
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
reasonForLogsStatus: {
|
|
474
|
-
serializedName: "reasonForLogsStatus",
|
|
475
|
-
type: {
|
|
476
|
-
name: "String"
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
453
|
const VMExtensionPayload = {
|
|
483
454
|
type: {
|
|
484
455
|
name: "Composite",
|
|
@@ -850,39 +821,6 @@ const MonitorResourceUpdate = {
|
|
|
850
821
|
name: "Dictionary",
|
|
851
822
|
value: { type: { name: "String" } }
|
|
852
823
|
}
|
|
853
|
-
},
|
|
854
|
-
monitoringStatus: {
|
|
855
|
-
serializedName: "monitoringStatus",
|
|
856
|
-
type: {
|
|
857
|
-
name: "String"
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
marketplaceSubscriptionStatus: {
|
|
861
|
-
serializedName: "marketplaceSubscriptionStatus",
|
|
862
|
-
type: {
|
|
863
|
-
name: "String"
|
|
864
|
-
}
|
|
865
|
-
},
|
|
866
|
-
dynatraceEnvironmentProperties: {
|
|
867
|
-
serializedName: "dynatraceEnvironmentProperties",
|
|
868
|
-
type: {
|
|
869
|
-
name: "Composite",
|
|
870
|
-
className: "DynatraceEnvironmentProperties"
|
|
871
|
-
}
|
|
872
|
-
},
|
|
873
|
-
userInfo: {
|
|
874
|
-
serializedName: "userInfo",
|
|
875
|
-
type: {
|
|
876
|
-
name: "Composite",
|
|
877
|
-
className: "UserInfo"
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
planData: {
|
|
881
|
-
serializedName: "planData",
|
|
882
|
-
type: {
|
|
883
|
-
name: "Composite",
|
|
884
|
-
className: "PlanData"
|
|
885
|
-
}
|
|
886
824
|
}
|
|
887
825
|
}
|
|
888
826
|
}
|
|
@@ -1090,6 +1028,12 @@ const MetricRules = {
|
|
|
1090
1028
|
name: "Composite",
|
|
1091
1029
|
className: "MetricRules",
|
|
1092
1030
|
modelProperties: {
|
|
1031
|
+
sendingMetrics: {
|
|
1032
|
+
serializedName: "sendingMetrics",
|
|
1033
|
+
type: {
|
|
1034
|
+
name: "String"
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1093
1037
|
filteringTags: {
|
|
1094
1038
|
serializedName: "filteringTags",
|
|
1095
1039
|
type: {
|
|
@@ -1105,28 +1049,6 @@ const MetricRules = {
|
|
|
1105
1049
|
}
|
|
1106
1050
|
}
|
|
1107
1051
|
};
|
|
1108
|
-
const TagRuleUpdate = {
|
|
1109
|
-
type: {
|
|
1110
|
-
name: "Composite",
|
|
1111
|
-
className: "TagRuleUpdate",
|
|
1112
|
-
modelProperties: {
|
|
1113
|
-
logRules: {
|
|
1114
|
-
serializedName: "logRules",
|
|
1115
|
-
type: {
|
|
1116
|
-
name: "Composite",
|
|
1117
|
-
className: "LogRules"
|
|
1118
|
-
}
|
|
1119
|
-
},
|
|
1120
|
-
metricRules: {
|
|
1121
|
-
serializedName: "metricRules",
|
|
1122
|
-
type: {
|
|
1123
|
-
name: "Composite",
|
|
1124
|
-
className: "MetricRules"
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
1052
|
const TagRuleListResult = {
|
|
1131
1053
|
type: {
|
|
1132
1054
|
name: "Composite",
|
|
@@ -1154,6 +1076,47 @@ const TagRuleListResult = {
|
|
|
1154
1076
|
}
|
|
1155
1077
|
}
|
|
1156
1078
|
};
|
|
1079
|
+
const MarketplaceSaaSResourceDetailsRequest = {
|
|
1080
|
+
type: {
|
|
1081
|
+
name: "Composite",
|
|
1082
|
+
className: "MarketplaceSaaSResourceDetailsRequest",
|
|
1083
|
+
modelProperties: {
|
|
1084
|
+
tenantId: {
|
|
1085
|
+
serializedName: "tenantId",
|
|
1086
|
+
required: true,
|
|
1087
|
+
type: {
|
|
1088
|
+
name: "String"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
const MarketplaceSaaSResourceDetailsResponse = {
|
|
1095
|
+
type: {
|
|
1096
|
+
name: "Composite",
|
|
1097
|
+
className: "MarketplaceSaaSResourceDetailsResponse",
|
|
1098
|
+
modelProperties: {
|
|
1099
|
+
marketplaceSaaSResourceId: {
|
|
1100
|
+
serializedName: "marketplaceSaaSResourceId",
|
|
1101
|
+
type: {
|
|
1102
|
+
name: "String"
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
planId: {
|
|
1106
|
+
serializedName: "planId",
|
|
1107
|
+
type: {
|
|
1108
|
+
name: "String"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
marketplaceSubscriptionStatus: {
|
|
1112
|
+
serializedName: "marketplaceSubscriptionStatus",
|
|
1113
|
+
type: {
|
|
1114
|
+
name: "String"
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1157
1120
|
const DynatraceSingleSignOnResourceListResult = {
|
|
1158
1121
|
type: {
|
|
1159
1122
|
name: "Composite",
|
|
@@ -1269,6 +1232,25 @@ const VMInfo = {
|
|
|
1269
1232
|
}
|
|
1270
1233
|
}
|
|
1271
1234
|
};
|
|
1235
|
+
const MetricsStatusResponse = {
|
|
1236
|
+
type: {
|
|
1237
|
+
name: "Composite",
|
|
1238
|
+
className: "MetricsStatusResponse",
|
|
1239
|
+
modelProperties: {
|
|
1240
|
+
azureResourceIds: {
|
|
1241
|
+
serializedName: "azureResourceIds",
|
|
1242
|
+
type: {
|
|
1243
|
+
name: "Sequence",
|
|
1244
|
+
element: {
|
|
1245
|
+
type: {
|
|
1246
|
+
name: "String"
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1272
1254
|
const AppServiceListResponse = {
|
|
1273
1255
|
type: {
|
|
1274
1256
|
name: "Composite",
|
|
@@ -1364,6 +1346,7 @@ const SSODetailsRequest = {
|
|
|
1364
1346
|
modelProperties: {
|
|
1365
1347
|
userPrincipal: {
|
|
1366
1348
|
serializedName: "userPrincipal",
|
|
1349
|
+
required: true,
|
|
1367
1350
|
type: {
|
|
1368
1351
|
name: "String"
|
|
1369
1352
|
}
|
|
@@ -1426,18 +1409,21 @@ const LinkableEnvironmentRequest = {
|
|
|
1426
1409
|
modelProperties: {
|
|
1427
1410
|
tenantId: {
|
|
1428
1411
|
serializedName: "tenantId",
|
|
1412
|
+
required: true,
|
|
1429
1413
|
type: {
|
|
1430
1414
|
name: "String"
|
|
1431
1415
|
}
|
|
1432
1416
|
},
|
|
1433
1417
|
userPrincipal: {
|
|
1434
1418
|
serializedName: "userPrincipal",
|
|
1419
|
+
required: true,
|
|
1435
1420
|
type: {
|
|
1436
1421
|
name: "String"
|
|
1437
1422
|
}
|
|
1438
1423
|
},
|
|
1439
1424
|
region: {
|
|
1440
1425
|
serializedName: "region",
|
|
1426
|
+
required: true,
|
|
1441
1427
|
type: {
|
|
1442
1428
|
name: "String"
|
|
1443
1429
|
}
|
|
@@ -1667,12 +1653,11 @@ const DynatraceSingleSignOnResource = {
|
|
|
1667
1653
|
|
|
1668
1654
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1669
1655
|
__proto__: null,
|
|
1670
|
-
|
|
1656
|
+
MonitoredResourceListResponse: MonitoredResourceListResponse,
|
|
1657
|
+
MonitoredResource: MonitoredResource,
|
|
1671
1658
|
ErrorResponse: ErrorResponse,
|
|
1672
1659
|
ErrorDetail: ErrorDetail,
|
|
1673
1660
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1674
|
-
MonitoredResourceListResponse: MonitoredResourceListResponse,
|
|
1675
|
-
MonitoredResource: MonitoredResource,
|
|
1676
1661
|
VMExtensionPayload: VMExtensionPayload,
|
|
1677
1662
|
DynatraceEnvironmentProperties: DynatraceEnvironmentProperties,
|
|
1678
1663
|
AccountInfo: AccountInfo,
|
|
@@ -1692,11 +1677,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1692
1677
|
LogRules: LogRules,
|
|
1693
1678
|
FilteringTag: FilteringTag,
|
|
1694
1679
|
MetricRules: MetricRules,
|
|
1695
|
-
TagRuleUpdate: TagRuleUpdate,
|
|
1696
1680
|
TagRuleListResult: TagRuleListResult,
|
|
1681
|
+
MarketplaceSaaSResourceDetailsRequest: MarketplaceSaaSResourceDetailsRequest,
|
|
1682
|
+
MarketplaceSaaSResourceDetailsResponse: MarketplaceSaaSResourceDetailsResponse,
|
|
1697
1683
|
DynatraceSingleSignOnResourceListResult: DynatraceSingleSignOnResourceListResult,
|
|
1698
1684
|
VMHostsListResponse: VMHostsListResponse,
|
|
1699
1685
|
VMInfo: VMInfo,
|
|
1686
|
+
MetricsStatusResponse: MetricsStatusResponse,
|
|
1700
1687
|
AppServiceListResponse: AppServiceListResponse,
|
|
1701
1688
|
AppServiceInfo: AppServiceInfo,
|
|
1702
1689
|
SSODetailsRequest: SSODetailsRequest,
|
|
@@ -1743,7 +1730,7 @@ const $host = {
|
|
|
1743
1730
|
const apiVersion = {
|
|
1744
1731
|
parameterPath: "apiVersion",
|
|
1745
1732
|
mapper: {
|
|
1746
|
-
defaultValue: "
|
|
1733
|
+
defaultValue: "2023-04-27",
|
|
1747
1734
|
isConstant: true,
|
|
1748
1735
|
serializedName: "api-version",
|
|
1749
1736
|
type: {
|
|
@@ -1808,10 +1795,14 @@ const resource1 = {
|
|
|
1808
1795
|
mapper: MonitorResourceUpdate
|
|
1809
1796
|
};
|
|
1810
1797
|
const request = {
|
|
1798
|
+
parameterPath: "request",
|
|
1799
|
+
mapper: MarketplaceSaaSResourceDetailsRequest
|
|
1800
|
+
};
|
|
1801
|
+
const request1 = {
|
|
1811
1802
|
parameterPath: ["options", "request"],
|
|
1812
1803
|
mapper: SSODetailsRequest
|
|
1813
1804
|
};
|
|
1814
|
-
const
|
|
1805
|
+
const request2 = {
|
|
1815
1806
|
parameterPath: "request",
|
|
1816
1807
|
mapper: LinkableEnvironmentRequest
|
|
1817
1808
|
};
|
|
@@ -1841,10 +1832,6 @@ const resource2 = {
|
|
|
1841
1832
|
mapper: TagRule
|
|
1842
1833
|
};
|
|
1843
1834
|
const resource3 = {
|
|
1844
|
-
parameterPath: "resource",
|
|
1845
|
-
mapper: TagRuleUpdate
|
|
1846
|
-
};
|
|
1847
|
-
const resource4 = {
|
|
1848
1835
|
parameterPath: "resource",
|
|
1849
1836
|
mapper: DynatraceSingleSignOnResource
|
|
1850
1837
|
};
|
|
@@ -1866,25 +1853,17 @@ const configurationName = {
|
|
|
1866
1853
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1867
1854
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1868
1855
|
*/
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
sendPollRequest(path) {
|
|
1883
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1884
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1885
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1856
|
+
function createLroSpec(inputs) {
|
|
1857
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1858
|
+
return {
|
|
1859
|
+
requestMethod: spec.httpMethod,
|
|
1860
|
+
requestPath: spec.path,
|
|
1861
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1862
|
+
sendPollRequest: (path, options) => {
|
|
1863
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1864
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1865
|
+
}
|
|
1866
|
+
};
|
|
1888
1867
|
}
|
|
1889
1868
|
|
|
1890
1869
|
/*
|
|
@@ -2106,7 +2085,7 @@ class MonitorsImpl {
|
|
|
2106
2085
|
});
|
|
2107
2086
|
}
|
|
2108
2087
|
/**
|
|
2109
|
-
* List the
|
|
2088
|
+
* List the VM/VMSS resources currently being monitored by the Dynatrace resource.
|
|
2110
2089
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2111
2090
|
* @param monitorName Monitor resource name
|
|
2112
2091
|
* @param options The options parameters.
|
|
@@ -2310,15 +2289,6 @@ class MonitorsImpl {
|
|
|
2310
2289
|
}
|
|
2311
2290
|
});
|
|
2312
2291
|
}
|
|
2313
|
-
/**
|
|
2314
|
-
* Gets the user account credentials for a Monitor
|
|
2315
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2316
|
-
* @param monitorName Monitor resource name
|
|
2317
|
-
* @param options The options parameters.
|
|
2318
|
-
*/
|
|
2319
|
-
getAccountCredentials(resourceGroupName, monitorName, options) {
|
|
2320
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getAccountCredentialsOperationSpec);
|
|
2321
|
-
}
|
|
2322
2292
|
/**
|
|
2323
2293
|
* List the resources currently being monitored by the Dynatrace monitor resource.
|
|
2324
2294
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -2359,7 +2329,7 @@ class MonitorsImpl {
|
|
|
2359
2329
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2360
2330
|
return this.client.sendOperationRequest(args, spec);
|
|
2361
2331
|
});
|
|
2362
|
-
const
|
|
2332
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2363
2333
|
var _a;
|
|
2364
2334
|
let currentRawResponse = undefined;
|
|
2365
2335
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2378,11 +2348,15 @@ class MonitorsImpl {
|
|
|
2378
2348
|
}
|
|
2379
2349
|
};
|
|
2380
2350
|
});
|
|
2381
|
-
const lro =
|
|
2382
|
-
|
|
2383
|
-
|
|
2351
|
+
const lro = createLroSpec({
|
|
2352
|
+
sendOperationFn,
|
|
2353
|
+
args: { resourceGroupName, monitorName, resource, options },
|
|
2354
|
+
spec: createOrUpdateOperationSpec$2
|
|
2355
|
+
});
|
|
2356
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2357
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2384
2358
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2385
|
-
|
|
2359
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2386
2360
|
});
|
|
2387
2361
|
yield poller.poll();
|
|
2388
2362
|
return poller;
|
|
@@ -2409,7 +2383,7 @@ class MonitorsImpl {
|
|
|
2409
2383
|
* @param options The options parameters.
|
|
2410
2384
|
*/
|
|
2411
2385
|
update(resourceGroupName, monitorName, resource, options) {
|
|
2412
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, resource, options }, updateOperationSpec
|
|
2386
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, resource, options }, updateOperationSpec);
|
|
2413
2387
|
}
|
|
2414
2388
|
/**
|
|
2415
2389
|
* Delete a MonitorResource
|
|
@@ -2422,7 +2396,7 @@ class MonitorsImpl {
|
|
|
2422
2396
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2423
2397
|
return this.client.sendOperationRequest(args, spec);
|
|
2424
2398
|
});
|
|
2425
|
-
const
|
|
2399
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2426
2400
|
var _a;
|
|
2427
2401
|
let currentRawResponse = undefined;
|
|
2428
2402
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2441,11 +2415,15 @@ class MonitorsImpl {
|
|
|
2441
2415
|
}
|
|
2442
2416
|
};
|
|
2443
2417
|
});
|
|
2444
|
-
const lro =
|
|
2445
|
-
|
|
2446
|
-
|
|
2418
|
+
const lro = createLroSpec({
|
|
2419
|
+
sendOperationFn,
|
|
2420
|
+
args: { resourceGroupName, monitorName, options },
|
|
2421
|
+
spec: deleteOperationSpec$1
|
|
2422
|
+
});
|
|
2423
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2424
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2447
2425
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2448
|
-
|
|
2426
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2449
2427
|
});
|
|
2450
2428
|
yield poller.poll();
|
|
2451
2429
|
return poller;
|
|
@@ -2479,7 +2457,15 @@ class MonitorsImpl {
|
|
|
2479
2457
|
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2480
2458
|
}
|
|
2481
2459
|
/**
|
|
2482
|
-
*
|
|
2460
|
+
* Get Marketplace SaaS resource details of a tenant under a specific subscription
|
|
2461
|
+
* @param request Tenant Id
|
|
2462
|
+
* @param options The options parameters.
|
|
2463
|
+
*/
|
|
2464
|
+
getMarketplaceSaaSResourceDetails(request, options) {
|
|
2465
|
+
return this.client.sendOperationRequest({ request, options }, getMarketplaceSaaSResourceDetailsOperationSpec);
|
|
2466
|
+
}
|
|
2467
|
+
/**
|
|
2468
|
+
* List the VM/VMSS resources currently being monitored by the Dynatrace resource.
|
|
2483
2469
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2484
2470
|
* @param monitorName Monitor resource name
|
|
2485
2471
|
* @param options The options parameters.
|
|
@@ -2487,6 +2473,15 @@ class MonitorsImpl {
|
|
|
2487
2473
|
_listHosts(resourceGroupName, monitorName, options) {
|
|
2488
2474
|
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listHostsOperationSpec);
|
|
2489
2475
|
}
|
|
2476
|
+
/**
|
|
2477
|
+
* Get metric status
|
|
2478
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2479
|
+
* @param monitorName Name of the Monitor resource
|
|
2480
|
+
* @param options The options parameters.
|
|
2481
|
+
*/
|
|
2482
|
+
getMetricStatus(resourceGroupName, monitorName, options) {
|
|
2483
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getMetricStatusOperationSpec);
|
|
2484
|
+
}
|
|
2490
2485
|
/**
|
|
2491
2486
|
* Gets list of App Services with Dynatrace PaaS OneAgent enabled
|
|
2492
2487
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -2577,27 +2572,6 @@ class MonitorsImpl {
|
|
|
2577
2572
|
}
|
|
2578
2573
|
// Operation Specifications
|
|
2579
2574
|
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2580
|
-
const getAccountCredentialsOperationSpec = {
|
|
2581
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getAccountCredentials",
|
|
2582
|
-
httpMethod: "POST",
|
|
2583
|
-
responses: {
|
|
2584
|
-
200: {
|
|
2585
|
-
bodyMapper: AccountInfoSecure
|
|
2586
|
-
},
|
|
2587
|
-
default: {
|
|
2588
|
-
bodyMapper: ErrorResponse
|
|
2589
|
-
}
|
|
2590
|
-
},
|
|
2591
|
-
queryParameters: [apiVersion],
|
|
2592
|
-
urlParameters: [
|
|
2593
|
-
$host,
|
|
2594
|
-
subscriptionId,
|
|
2595
|
-
resourceGroupName,
|
|
2596
|
-
monitorName
|
|
2597
|
-
],
|
|
2598
|
-
headerParameters: [accept],
|
|
2599
|
-
serializer: serializer$3
|
|
2600
|
-
};
|
|
2601
2575
|
const listMonitoredResourcesOperationSpec = {
|
|
2602
2576
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listMonitoredResources",
|
|
2603
2577
|
httpMethod: "POST",
|
|
@@ -2693,7 +2667,7 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
2693
2667
|
mediaType: "json",
|
|
2694
2668
|
serializer: serializer$3
|
|
2695
2669
|
};
|
|
2696
|
-
const updateOperationSpec
|
|
2670
|
+
const updateOperationSpec = {
|
|
2697
2671
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
|
|
2698
2672
|
httpMethod: "PATCH",
|
|
2699
2673
|
responses: {
|
|
@@ -2774,6 +2748,27 @@ const listByResourceGroupOperationSpec = {
|
|
|
2774
2748
|
headerParameters: [accept],
|
|
2775
2749
|
serializer: serializer$3
|
|
2776
2750
|
};
|
|
2751
|
+
const getMarketplaceSaaSResourceDetailsOperationSpec = {
|
|
2752
|
+
path: "/subscriptions/{subscriptionId}/providers/Dynatrace.Observability/getMarketplaceSaaSResourceDetails",
|
|
2753
|
+
httpMethod: "POST",
|
|
2754
|
+
responses: {
|
|
2755
|
+
200: {
|
|
2756
|
+
bodyMapper: MarketplaceSaaSResourceDetailsResponse
|
|
2757
|
+
},
|
|
2758
|
+
404: {
|
|
2759
|
+
isError: true
|
|
2760
|
+
},
|
|
2761
|
+
default: {
|
|
2762
|
+
bodyMapper: ErrorResponse
|
|
2763
|
+
}
|
|
2764
|
+
},
|
|
2765
|
+
requestBody: request,
|
|
2766
|
+
queryParameters: [apiVersion],
|
|
2767
|
+
urlParameters: [$host, subscriptionId],
|
|
2768
|
+
headerParameters: [accept, contentType],
|
|
2769
|
+
mediaType: "json",
|
|
2770
|
+
serializer: serializer$3
|
|
2771
|
+
};
|
|
2777
2772
|
const listHostsOperationSpec = {
|
|
2778
2773
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listHosts",
|
|
2779
2774
|
httpMethod: "POST",
|
|
@@ -2795,6 +2790,27 @@ const listHostsOperationSpec = {
|
|
|
2795
2790
|
headerParameters: [accept],
|
|
2796
2791
|
serializer: serializer$3
|
|
2797
2792
|
};
|
|
2793
|
+
const getMetricStatusOperationSpec = {
|
|
2794
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getMetricStatus",
|
|
2795
|
+
httpMethod: "POST",
|
|
2796
|
+
responses: {
|
|
2797
|
+
200: {
|
|
2798
|
+
bodyMapper: MetricsStatusResponse
|
|
2799
|
+
},
|
|
2800
|
+
default: {
|
|
2801
|
+
bodyMapper: ErrorResponse
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
queryParameters: [apiVersion],
|
|
2805
|
+
urlParameters: [
|
|
2806
|
+
$host,
|
|
2807
|
+
subscriptionId,
|
|
2808
|
+
resourceGroupName,
|
|
2809
|
+
monitorName
|
|
2810
|
+
],
|
|
2811
|
+
headerParameters: [accept],
|
|
2812
|
+
serializer: serializer$3
|
|
2813
|
+
};
|
|
2798
2814
|
const listAppServicesOperationSpec = {
|
|
2799
2815
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listAppServices",
|
|
2800
2816
|
httpMethod: "POST",
|
|
@@ -2830,7 +2846,7 @@ const getSSODetailsOperationSpec = {
|
|
|
2830
2846
|
bodyMapper: ErrorResponse
|
|
2831
2847
|
}
|
|
2832
2848
|
},
|
|
2833
|
-
requestBody:
|
|
2849
|
+
requestBody: request1,
|
|
2834
2850
|
queryParameters: [apiVersion],
|
|
2835
2851
|
urlParameters: [
|
|
2836
2852
|
$host,
|
|
@@ -2853,7 +2869,7 @@ const listLinkableEnvironmentsOperationSpec = {
|
|
|
2853
2869
|
bodyMapper: ErrorResponse
|
|
2854
2870
|
}
|
|
2855
2871
|
},
|
|
2856
|
-
requestBody:
|
|
2872
|
+
requestBody: request2,
|
|
2857
2873
|
queryParameters: [apiVersion],
|
|
2858
2874
|
urlParameters: [
|
|
2859
2875
|
$host,
|
|
@@ -3231,7 +3247,7 @@ class TagRulesImpl {
|
|
|
3231
3247
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3232
3248
|
return this.client.sendOperationRequest(args, spec);
|
|
3233
3249
|
});
|
|
3234
|
-
const
|
|
3250
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3235
3251
|
var _a;
|
|
3236
3252
|
let currentRawResponse = undefined;
|
|
3237
3253
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3250,11 +3266,15 @@ class TagRulesImpl {
|
|
|
3250
3266
|
}
|
|
3251
3267
|
};
|
|
3252
3268
|
});
|
|
3253
|
-
const lro =
|
|
3254
|
-
|
|
3255
|
-
|
|
3269
|
+
const lro = createLroSpec({
|
|
3270
|
+
sendOperationFn,
|
|
3271
|
+
args: { resourceGroupName, monitorName, ruleSetName, resource, options },
|
|
3272
|
+
spec: createOrUpdateOperationSpec$1
|
|
3273
|
+
});
|
|
3274
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3275
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3256
3276
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3257
|
-
|
|
3277
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3258
3278
|
});
|
|
3259
3279
|
yield poller.poll();
|
|
3260
3280
|
return poller;
|
|
@@ -3274,17 +3294,6 @@ class TagRulesImpl {
|
|
|
3274
3294
|
return poller.pollUntilDone();
|
|
3275
3295
|
});
|
|
3276
3296
|
}
|
|
3277
|
-
/**
|
|
3278
|
-
* Update a TagRule
|
|
3279
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3280
|
-
* @param monitorName Monitor resource name
|
|
3281
|
-
* @param ruleSetName Monitor resource name
|
|
3282
|
-
* @param resource The resource properties to be updated.
|
|
3283
|
-
* @param options The options parameters.
|
|
3284
|
-
*/
|
|
3285
|
-
update(resourceGroupName, monitorName, ruleSetName, resource, options) {
|
|
3286
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, resource, options }, updateOperationSpec);
|
|
3287
|
-
}
|
|
3288
3297
|
/**
|
|
3289
3298
|
* Delete a TagRule
|
|
3290
3299
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -3297,7 +3306,7 @@ class TagRulesImpl {
|
|
|
3297
3306
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3298
3307
|
return this.client.sendOperationRequest(args, spec);
|
|
3299
3308
|
});
|
|
3300
|
-
const
|
|
3309
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3301
3310
|
var _a;
|
|
3302
3311
|
let currentRawResponse = undefined;
|
|
3303
3312
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3316,11 +3325,15 @@ class TagRulesImpl {
|
|
|
3316
3325
|
}
|
|
3317
3326
|
};
|
|
3318
3327
|
});
|
|
3319
|
-
const lro =
|
|
3320
|
-
|
|
3321
|
-
|
|
3328
|
+
const lro = createLroSpec({
|
|
3329
|
+
sendOperationFn,
|
|
3330
|
+
args: { resourceGroupName, monitorName, ruleSetName, options },
|
|
3331
|
+
spec: deleteOperationSpec
|
|
3332
|
+
});
|
|
3333
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3334
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3322
3335
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3323
|
-
|
|
3336
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3324
3337
|
});
|
|
3325
3338
|
yield poller.poll();
|
|
3326
3339
|
return poller;
|
|
@@ -3416,30 +3429,6 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
3416
3429
|
mediaType: "json",
|
|
3417
3430
|
serializer: serializer$1
|
|
3418
3431
|
};
|
|
3419
|
-
const updateOperationSpec = {
|
|
3420
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
3421
|
-
httpMethod: "PATCH",
|
|
3422
|
-
responses: {
|
|
3423
|
-
200: {
|
|
3424
|
-
bodyMapper: TagRule
|
|
3425
|
-
},
|
|
3426
|
-
default: {
|
|
3427
|
-
bodyMapper: ErrorResponse
|
|
3428
|
-
}
|
|
3429
|
-
},
|
|
3430
|
-
requestBody: resource3,
|
|
3431
|
-
queryParameters: [apiVersion],
|
|
3432
|
-
urlParameters: [
|
|
3433
|
-
$host,
|
|
3434
|
-
subscriptionId,
|
|
3435
|
-
resourceGroupName,
|
|
3436
|
-
monitorName,
|
|
3437
|
-
ruleSetName
|
|
3438
|
-
],
|
|
3439
|
-
headerParameters: [accept, contentType],
|
|
3440
|
-
mediaType: "json",
|
|
3441
|
-
serializer: serializer$1
|
|
3442
|
-
};
|
|
3443
3432
|
const deleteOperationSpec = {
|
|
3444
3433
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
3445
3434
|
httpMethod: "DELETE",
|
|
@@ -3604,7 +3593,7 @@ class SingleSignOnImpl {
|
|
|
3604
3593
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3605
3594
|
return this.client.sendOperationRequest(args, spec);
|
|
3606
3595
|
});
|
|
3607
|
-
const
|
|
3596
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3608
3597
|
var _a;
|
|
3609
3598
|
let currentRawResponse = undefined;
|
|
3610
3599
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3623,11 +3612,21 @@ class SingleSignOnImpl {
|
|
|
3623
3612
|
}
|
|
3624
3613
|
};
|
|
3625
3614
|
});
|
|
3626
|
-
const lro =
|
|
3627
|
-
|
|
3628
|
-
|
|
3615
|
+
const lro = createLroSpec({
|
|
3616
|
+
sendOperationFn,
|
|
3617
|
+
args: {
|
|
3618
|
+
resourceGroupName,
|
|
3619
|
+
monitorName,
|
|
3620
|
+
configurationName,
|
|
3621
|
+
resource,
|
|
3622
|
+
options
|
|
3623
|
+
},
|
|
3624
|
+
spec: createOrUpdateOperationSpec
|
|
3625
|
+
});
|
|
3626
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3627
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3629
3628
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3630
|
-
|
|
3629
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3631
3630
|
});
|
|
3632
3631
|
yield poller.poll();
|
|
3633
3632
|
return poller;
|
|
@@ -3699,7 +3698,7 @@ const createOrUpdateOperationSpec = {
|
|
|
3699
3698
|
bodyMapper: ErrorResponse
|
|
3700
3699
|
}
|
|
3701
3700
|
},
|
|
3702
|
-
requestBody:
|
|
3701
|
+
requestBody: resource3,
|
|
3703
3702
|
queryParameters: [apiVersion],
|
|
3704
3703
|
urlParameters: [
|
|
3705
3704
|
$host,
|
|
@@ -3807,7 +3806,7 @@ class DynatraceObservability extends coreClient__namespace.ServiceClient {
|
|
|
3807
3806
|
requestContentType: "application/json; charset=utf-8",
|
|
3808
3807
|
credential: credentials
|
|
3809
3808
|
};
|
|
3810
|
-
const packageDetails = `azsdk-js-arm-dynatrace/
|
|
3809
|
+
const packageDetails = `azsdk-js-arm-dynatrace/2.0.0`;
|
|
3811
3810
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3812
3811
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3813
3812
|
: `${packageDetails}`;
|
|
@@ -3840,7 +3839,7 @@ class DynatraceObservability extends coreClient__namespace.ServiceClient {
|
|
|
3840
3839
|
this.subscriptionId = subscriptionId;
|
|
3841
3840
|
// Assigning values to Constant parameters
|
|
3842
3841
|
this.$host = options.$host || "https://management.azure.com";
|
|
3843
|
-
this.apiVersion = options.apiVersion || "
|
|
3842
|
+
this.apiVersion = options.apiVersion || "2023-04-27";
|
|
3844
3843
|
this.monitors = new MonitorsImpl(this);
|
|
3845
3844
|
this.operations = new OperationsImpl(this);
|
|
3846
3845
|
this.tagRules = new TagRulesImpl(this);
|