@azure/arm-datadog 3.0.3-alpha.20231016.1 → 3.1.0-alpha.20231025.3
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 +35 -11
- package/LICENSE +1 -1
- package/dist/index.js +955 -259
- 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/creationSupportedGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/creationSupportedGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creationSupportedGetSample.js +38 -0
- package/dist-esm/samples-dev/creationSupportedGetSample.js.map +1 -0
- package/dist-esm/samples-dev/creationSupportedListSample.d.ts +2 -0
- package/dist-esm/samples-dev/creationSupportedListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creationSupportedListSample.js +54 -0
- package/dist-esm/samples-dev/creationSupportedListSample.js.map +1 -0
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js +14 -11
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js.map +1 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.js +40 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.js +40 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.js +55 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.js +40 -0
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateSample.js +12 -4
- package/dist-esm/samples-dev/monitorsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js +12 -4
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetSample.js +12 -4
- package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListApiKeysSample.js +15 -12
- package/dist-esm/samples-dev/monitorsListApiKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +15 -12
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListHostsSample.js +15 -12
- package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js +15 -12
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +15 -12
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListSample.js +14 -11
- package/dist-esm/samples-dev/monitorsListSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js +12 -4
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js +12 -4
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +16 -13
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js +12 -4
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js +15 -12
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesGetSample.js +12 -4
- package/dist-esm/samples-dev/tagRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesListSample.js +15 -12
- package/dist-esm/samples-dev/tagRulesListSample.js.map +1 -1
- 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/microsoftDatadogClient.d.ts +3 -1
- package/dist-esm/src/microsoftDatadogClient.d.ts.map +1 -1
- package/dist-esm/src/microsoftDatadogClient.js +5 -3
- package/dist-esm/src/microsoftDatadogClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +177 -19
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +26 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +190 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +16 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/creationSupported.d.ts +34 -0
- package/dist-esm/src/operations/creationSupported.d.ts.map +1 -0
- package/dist-esm/src/operations/creationSupported.js +122 -0
- package/dist-esm/src/operations/creationSupported.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/marketplaceAgreements.js +3 -9
- package/dist-esm/src/operations/marketplaceAgreements.js.map +1 -1
- package/dist-esm/src/operations/monitoredSubscriptions.d.ts +87 -0
- package/dist-esm/src/operations/monitoredSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/monitoredSubscriptions.js +399 -0
- package/dist-esm/src/operations/monitoredSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/monitors.d.ts +4 -4
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +45 -69
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +5 -11
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/singleSignOnConfigurations.d.ts +2 -2
- package/dist-esm/src/operations/singleSignOnConfigurations.d.ts.map +1 -1
- package/dist-esm/src/operations/singleSignOnConfigurations.js +14 -16
- package/dist-esm/src/operations/singleSignOnConfigurations.js.map +1 -1
- package/dist-esm/src/operations/tagRules.js +3 -9
- package/dist-esm/src/operations/tagRules.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/creationSupported.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/creationSupported.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/creationSupported.js +9 -0
- package/dist-esm/src/operationsInterfaces/creationSupported.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/datadog_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/datadog_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/datadog_operations_test.spec.js +73 -0
- package/dist-esm/test/datadog_operations_test.spec.js.map +1 -0
- package/package.json +9 -8
- package/review/arm-datadog.api.md +155 -8
- package/src/lroImpl.ts +31 -23
- package/src/microsoftDatadogClient.ts +12 -4
- package/src/models/index.ts +204 -19
- package/src/models/mappers.ts +197 -2
- package/src/models/parameters.ts +19 -2
- package/src/operations/creationSupported.ts +150 -0
- package/src/operations/index.ts +2 -0
- package/src/operations/marketplaceAgreements.ts +0 -1
- package/src/operations/monitoredSubscriptions.ts +557 -0
- package/src/operations/monitors.ts +42 -38
- package/src/operations/operations.ts +2 -3
- package/src/operations/singleSignOnConfigurations.ts +20 -14
- package/src/operations/tagRules.ts +0 -1
- package/src/operationsInterfaces/creationSupported.ts +38 -0
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/monitoredSubscriptions.ts +138 -0
- package/src/operationsInterfaces/monitors.ts +6 -6
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/singleSignOnConfigurations.ts +3 -3
- package/src/pagingHelper.ts +4 -4
- package/types/arm-datadog.d.ts +297 -30
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js
CHANGED
@@ -34,11 +34,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRest
|
|
34
34
|
*/
|
35
35
|
const pageMap = new WeakMap();
|
36
36
|
/**
|
37
|
-
* Given
|
38
|
-
* continuation token that can be used to begin paging from
|
37
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
38
|
+
* returns a continuation token that can be used to begin paging from
|
39
39
|
* that point later.
|
40
|
-
* @param page
|
41
|
-
* @returns The continuation token that can be passed into byPage().
|
40
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
41
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
42
42
|
*/
|
43
43
|
function getContinuationToken(page) {
|
44
44
|
var _a;
|
@@ -154,6 +154,32 @@ exports.KnownSingleSignOnStates = void 0;
|
|
154
154
|
/** Existing */
|
155
155
|
KnownSingleSignOnStates["Existing"] = "Existing";
|
156
156
|
})(exports.KnownSingleSignOnStates || (exports.KnownSingleSignOnStates = {}));
|
157
|
+
/** Known values of {@link Operation} that the service accepts. */
|
158
|
+
exports.KnownOperation = void 0;
|
159
|
+
(function (KnownOperation) {
|
160
|
+
/** AddBegin */
|
161
|
+
KnownOperation["AddBegin"] = "AddBegin";
|
162
|
+
/** AddComplete */
|
163
|
+
KnownOperation["AddComplete"] = "AddComplete";
|
164
|
+
/** DeleteBegin */
|
165
|
+
KnownOperation["DeleteBegin"] = "DeleteBegin";
|
166
|
+
/** DeleteComplete */
|
167
|
+
KnownOperation["DeleteComplete"] = "DeleteComplete";
|
168
|
+
/** Active */
|
169
|
+
KnownOperation["Active"] = "Active";
|
170
|
+
})(exports.KnownOperation || (exports.KnownOperation = {}));
|
171
|
+
/** Known values of {@link Status} that the service accepts. */
|
172
|
+
exports.KnownStatus = void 0;
|
173
|
+
(function (KnownStatus) {
|
174
|
+
/** InProgress */
|
175
|
+
KnownStatus["InProgress"] = "InProgress";
|
176
|
+
/** Active */
|
177
|
+
KnownStatus["Active"] = "Active";
|
178
|
+
/** Failed */
|
179
|
+
KnownStatus["Failed"] = "Failed";
|
180
|
+
/** Deleting */
|
181
|
+
KnownStatus["Deleting"] = "Deleting";
|
182
|
+
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
157
183
|
|
158
184
|
/*
|
159
185
|
* Copyright (c) Microsoft Corporation.
|
@@ -424,6 +450,63 @@ const ErrorAdditionalInfo = {
|
|
424
450
|
}
|
425
451
|
}
|
426
452
|
};
|
453
|
+
const CreateResourceSupportedResponseList = {
|
454
|
+
type: {
|
455
|
+
name: "Composite",
|
456
|
+
className: "CreateResourceSupportedResponseList",
|
457
|
+
modelProperties: {
|
458
|
+
value: {
|
459
|
+
serializedName: "value",
|
460
|
+
type: {
|
461
|
+
name: "Sequence",
|
462
|
+
element: {
|
463
|
+
type: {
|
464
|
+
name: "Composite",
|
465
|
+
className: "CreateResourceSupportedResponse"
|
466
|
+
}
|
467
|
+
}
|
468
|
+
}
|
469
|
+
}
|
470
|
+
}
|
471
|
+
}
|
472
|
+
};
|
473
|
+
const CreateResourceSupportedResponse = {
|
474
|
+
type: {
|
475
|
+
name: "Composite",
|
476
|
+
className: "CreateResourceSupportedResponse",
|
477
|
+
modelProperties: {
|
478
|
+
properties: {
|
479
|
+
serializedName: "properties",
|
480
|
+
type: {
|
481
|
+
name: "Composite",
|
482
|
+
className: "CreateResourceSupportedProperties"
|
483
|
+
}
|
484
|
+
}
|
485
|
+
}
|
486
|
+
}
|
487
|
+
};
|
488
|
+
const CreateResourceSupportedProperties = {
|
489
|
+
type: {
|
490
|
+
name: "Composite",
|
491
|
+
className: "CreateResourceSupportedProperties",
|
492
|
+
modelProperties: {
|
493
|
+
name: {
|
494
|
+
serializedName: "name",
|
495
|
+
readOnly: true,
|
496
|
+
type: {
|
497
|
+
name: "String"
|
498
|
+
}
|
499
|
+
},
|
500
|
+
creationSupported: {
|
501
|
+
serializedName: "creationSupported",
|
502
|
+
readOnly: true,
|
503
|
+
type: {
|
504
|
+
name: "Boolean"
|
505
|
+
}
|
506
|
+
}
|
507
|
+
}
|
508
|
+
}
|
509
|
+
};
|
427
510
|
const DatadogApiKeyListResponse = {
|
428
511
|
type: {
|
429
512
|
name: "Composite",
|
@@ -985,14 +1068,12 @@ const DatadogOrganizationProperties = {
|
|
985
1068
|
modelProperties: {
|
986
1069
|
name: {
|
987
1070
|
serializedName: "name",
|
988
|
-
readOnly: true,
|
989
1071
|
type: {
|
990
1072
|
name: "String"
|
991
1073
|
}
|
992
1074
|
},
|
993
1075
|
id: {
|
994
1076
|
serializedName: "id",
|
995
|
-
readOnly: true,
|
996
1077
|
type: {
|
997
1078
|
name: "String"
|
998
1079
|
}
|
@@ -1032,6 +1113,12 @@ const DatadogOrganizationProperties = {
|
|
1032
1113
|
type: {
|
1033
1114
|
name: "String"
|
1034
1115
|
}
|
1116
|
+
},
|
1117
|
+
cspm: {
|
1118
|
+
serializedName: "cspm",
|
1119
|
+
type: {
|
1120
|
+
name: "Boolean"
|
1121
|
+
}
|
1035
1122
|
}
|
1036
1123
|
}
|
1037
1124
|
}
|
@@ -1139,6 +1226,12 @@ const MonitorUpdateProperties = {
|
|
1139
1226
|
type: {
|
1140
1227
|
name: "String"
|
1141
1228
|
}
|
1229
|
+
},
|
1230
|
+
cspm: {
|
1231
|
+
serializedName: "cspm",
|
1232
|
+
type: {
|
1233
|
+
name: "Boolean"
|
1234
|
+
}
|
1142
1235
|
}
|
1143
1236
|
}
|
1144
1237
|
}
|
@@ -1251,6 +1344,12 @@ const MonitoringTagRulesProperties = {
|
|
1251
1344
|
name: "Composite",
|
1252
1345
|
className: "MetricRules"
|
1253
1346
|
}
|
1347
|
+
},
|
1348
|
+
automuting: {
|
1349
|
+
serializedName: "automuting",
|
1350
|
+
type: {
|
1351
|
+
name: "Boolean"
|
1352
|
+
}
|
1254
1353
|
}
|
1255
1354
|
}
|
1256
1355
|
}
|
@@ -1442,9 +1541,127 @@ const DatadogSingleSignOnProperties = {
|
|
1442
1541
|
}
|
1443
1542
|
}
|
1444
1543
|
};
|
1544
|
+
const MonitoredSubscriptionPropertiesList = {
|
1545
|
+
type: {
|
1546
|
+
name: "Composite",
|
1547
|
+
className: "MonitoredSubscriptionPropertiesList",
|
1548
|
+
modelProperties: {
|
1549
|
+
value: {
|
1550
|
+
serializedName: "value",
|
1551
|
+
type: {
|
1552
|
+
name: "Sequence",
|
1553
|
+
element: {
|
1554
|
+
type: {
|
1555
|
+
name: "Composite",
|
1556
|
+
className: "MonitoredSubscriptionProperties"
|
1557
|
+
}
|
1558
|
+
}
|
1559
|
+
}
|
1560
|
+
}
|
1561
|
+
}
|
1562
|
+
}
|
1563
|
+
};
|
1564
|
+
const MonitoredSubscriptionProperties = {
|
1565
|
+
type: {
|
1566
|
+
name: "Composite",
|
1567
|
+
className: "MonitoredSubscriptionProperties",
|
1568
|
+
modelProperties: {
|
1569
|
+
name: {
|
1570
|
+
serializedName: "name",
|
1571
|
+
readOnly: true,
|
1572
|
+
type: {
|
1573
|
+
name: "String"
|
1574
|
+
}
|
1575
|
+
},
|
1576
|
+
id: {
|
1577
|
+
serializedName: "id",
|
1578
|
+
readOnly: true,
|
1579
|
+
type: {
|
1580
|
+
name: "String"
|
1581
|
+
}
|
1582
|
+
},
|
1583
|
+
type: {
|
1584
|
+
serializedName: "type",
|
1585
|
+
readOnly: true,
|
1586
|
+
type: {
|
1587
|
+
name: "String"
|
1588
|
+
}
|
1589
|
+
},
|
1590
|
+
properties: {
|
1591
|
+
serializedName: "properties",
|
1592
|
+
type: {
|
1593
|
+
name: "Composite",
|
1594
|
+
className: "SubscriptionList"
|
1595
|
+
}
|
1596
|
+
}
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
};
|
1600
|
+
const SubscriptionList = {
|
1601
|
+
type: {
|
1602
|
+
name: "Composite",
|
1603
|
+
className: "SubscriptionList",
|
1604
|
+
modelProperties: {
|
1605
|
+
operation: {
|
1606
|
+
serializedName: "operation",
|
1607
|
+
type: {
|
1608
|
+
name: "String"
|
1609
|
+
}
|
1610
|
+
},
|
1611
|
+
monitoredSubscriptionList: {
|
1612
|
+
serializedName: "monitoredSubscriptionList",
|
1613
|
+
type: {
|
1614
|
+
name: "Sequence",
|
1615
|
+
element: {
|
1616
|
+
type: {
|
1617
|
+
name: "Composite",
|
1618
|
+
className: "MonitoredSubscription"
|
1619
|
+
}
|
1620
|
+
}
|
1621
|
+
}
|
1622
|
+
}
|
1623
|
+
}
|
1624
|
+
}
|
1625
|
+
};
|
1626
|
+
const MonitoredSubscription = {
|
1627
|
+
type: {
|
1628
|
+
name: "Composite",
|
1629
|
+
className: "MonitoredSubscription",
|
1630
|
+
modelProperties: {
|
1631
|
+
subscriptionId: {
|
1632
|
+
serializedName: "subscriptionId",
|
1633
|
+
type: {
|
1634
|
+
name: "String"
|
1635
|
+
}
|
1636
|
+
},
|
1637
|
+
status: {
|
1638
|
+
serializedName: "status",
|
1639
|
+
type: {
|
1640
|
+
name: "String"
|
1641
|
+
}
|
1642
|
+
},
|
1643
|
+
error: {
|
1644
|
+
serializedName: "error",
|
1645
|
+
type: {
|
1646
|
+
name: "String"
|
1647
|
+
}
|
1648
|
+
},
|
1649
|
+
tagRules: {
|
1650
|
+
serializedName: "tagRules",
|
1651
|
+
type: {
|
1652
|
+
name: "Composite",
|
1653
|
+
className: "MonitoringTagRulesProperties"
|
1654
|
+
}
|
1655
|
+
}
|
1656
|
+
}
|
1657
|
+
}
|
1658
|
+
};
|
1445
1659
|
|
1446
1660
|
var Mappers = /*#__PURE__*/Object.freeze({
|
1447
1661
|
__proto__: null,
|
1662
|
+
CreateResourceSupportedProperties: CreateResourceSupportedProperties,
|
1663
|
+
CreateResourceSupportedResponse: CreateResourceSupportedResponse,
|
1664
|
+
CreateResourceSupportedResponseList: CreateResourceSupportedResponseList,
|
1448
1665
|
DatadogAgreementProperties: DatadogAgreementProperties,
|
1449
1666
|
DatadogAgreementResource: DatadogAgreementResource,
|
1450
1667
|
DatadogAgreementResourceListResponse: DatadogAgreementResourceListResponse,
|
@@ -1476,6 +1693,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
1476
1693
|
MonitorUpdateProperties: MonitorUpdateProperties,
|
1477
1694
|
MonitoredResource: MonitoredResource,
|
1478
1695
|
MonitoredResourceListResponse: MonitoredResourceListResponse,
|
1696
|
+
MonitoredSubscription: MonitoredSubscription,
|
1697
|
+
MonitoredSubscriptionProperties: MonitoredSubscriptionProperties,
|
1698
|
+
MonitoredSubscriptionPropertiesList: MonitoredSubscriptionPropertiesList,
|
1479
1699
|
MonitoringTagRules: MonitoringTagRules,
|
1480
1700
|
MonitoringTagRulesListResponse: MonitoringTagRulesListResponse,
|
1481
1701
|
MonitoringTagRulesProperties: MonitoringTagRulesProperties,
|
@@ -1483,6 +1703,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
1483
1703
|
OperationListResult: OperationListResult,
|
1484
1704
|
OperationResult: OperationResult,
|
1485
1705
|
ResourceSku: ResourceSku,
|
1706
|
+
SubscriptionList: SubscriptionList,
|
1486
1707
|
SystemData: SystemData,
|
1487
1708
|
UserInfo: UserInfo
|
1488
1709
|
});
|
@@ -1532,7 +1753,7 @@ const subscriptionId = {
|
|
1532
1753
|
const apiVersion = {
|
1533
1754
|
parameterPath: "apiVersion",
|
1534
1755
|
mapper: {
|
1535
|
-
defaultValue: "
|
1756
|
+
defaultValue: "2023-01-01",
|
1536
1757
|
isConstant: true,
|
1537
1758
|
serializedName: "api-version",
|
1538
1759
|
type: {
|
@@ -1566,6 +1787,16 @@ const nextLink = {
|
|
1566
1787
|
},
|
1567
1788
|
skipEncoding: true
|
1568
1789
|
};
|
1790
|
+
const datadogOrganizationId = {
|
1791
|
+
parameterPath: "datadogOrganizationId",
|
1792
|
+
mapper: {
|
1793
|
+
serializedName: "datadogOrganizationId",
|
1794
|
+
required: true,
|
1795
|
+
type: {
|
1796
|
+
name: "String"
|
1797
|
+
}
|
1798
|
+
}
|
1799
|
+
};
|
1569
1800
|
const resourceGroupName = {
|
1570
1801
|
parameterPath: "resourceGroupName",
|
1571
1802
|
mapper: {
|
@@ -1630,6 +1861,10 @@ const configurationName = {
|
|
1630
1861
|
}
|
1631
1862
|
}
|
1632
1863
|
};
|
1864
|
+
const body6 = {
|
1865
|
+
parameterPath: ["options", "body"],
|
1866
|
+
mapper: MonitoredSubscriptionProperties
|
1867
|
+
};
|
1633
1868
|
|
1634
1869
|
/*
|
1635
1870
|
* Copyright (c) Microsoft Corporation.
|
@@ -1693,16 +1928,11 @@ class MarketplaceAgreementsImpl {
|
|
1693
1928
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1694
1929
|
var _a, e_1, _b, _c;
|
1695
1930
|
try {
|
1696
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1931
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1697
1932
|
_c = _f.value;
|
1698
1933
|
_d = false;
|
1699
|
-
|
1700
|
-
|
1701
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1702
|
-
}
|
1703
|
-
finally {
|
1704
|
-
_d = true;
|
1705
|
-
}
|
1934
|
+
const page = _c;
|
1935
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1706
1936
|
}
|
1707
1937
|
}
|
1708
1938
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -1719,7 +1949,7 @@ class MarketplaceAgreementsImpl {
|
|
1719
1949
|
* @param options The options parameters.
|
1720
1950
|
*/
|
1721
1951
|
_list(options) {
|
1722
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
1952
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$6);
|
1723
1953
|
}
|
1724
1954
|
/**
|
1725
1955
|
* Create Datadog marketplace agreement in the subscription.
|
@@ -1738,8 +1968,8 @@ class MarketplaceAgreementsImpl {
|
|
1738
1968
|
}
|
1739
1969
|
}
|
1740
1970
|
// Operation Specifications
|
1741
|
-
const serializer$
|
1742
|
-
const listOperationSpec$
|
1971
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1972
|
+
const listOperationSpec$6 = {
|
1743
1973
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements",
|
1744
1974
|
httpMethod: "GET",
|
1745
1975
|
responses: {
|
@@ -1753,7 +1983,7 @@ const listOperationSpec$4 = {
|
|
1753
1983
|
queryParameters: [apiVersion],
|
1754
1984
|
urlParameters: [$host, subscriptionId],
|
1755
1985
|
headerParameters: [accept],
|
1756
|
-
serializer: serializer$
|
1986
|
+
serializer: serializer$6
|
1757
1987
|
};
|
1758
1988
|
const createOrUpdateOperationSpec$2 = {
|
1759
1989
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default",
|
@@ -1771,7 +2001,7 @@ const createOrUpdateOperationSpec$2 = {
|
|
1771
2001
|
urlParameters: [$host, subscriptionId],
|
1772
2002
|
headerParameters: [accept, contentType],
|
1773
2003
|
mediaType: "json",
|
1774
|
-
serializer: serializer$
|
2004
|
+
serializer: serializer$6
|
1775
2005
|
};
|
1776
2006
|
const listNextOperationSpec$4 = {
|
1777
2007
|
path: "{nextLink}",
|
@@ -1784,44 +2014,15 @@ const listNextOperationSpec$4 = {
|
|
1784
2014
|
bodyMapper: ErrorResponse
|
1785
2015
|
}
|
1786
2016
|
},
|
1787
|
-
queryParameters: [apiVersion],
|
1788
2017
|
urlParameters: [
|
1789
2018
|
$host,
|
1790
2019
|
subscriptionId,
|
1791
2020
|
nextLink
|
1792
2021
|
],
|
1793
2022
|
headerParameters: [accept],
|
1794
|
-
serializer: serializer$
|
2023
|
+
serializer: serializer$6
|
1795
2024
|
};
|
1796
2025
|
|
1797
|
-
/*
|
1798
|
-
* Copyright (c) Microsoft Corporation.
|
1799
|
-
* Licensed under the MIT License.
|
1800
|
-
*
|
1801
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1802
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1803
|
-
*/
|
1804
|
-
class LroImpl {
|
1805
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
1806
|
-
this.sendOperationFn = sendOperationFn;
|
1807
|
-
this.args = args;
|
1808
|
-
this.spec = spec;
|
1809
|
-
this.requestPath = requestPath;
|
1810
|
-
this.requestMethod = requestMethod;
|
1811
|
-
}
|
1812
|
-
sendInitialRequest() {
|
1813
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1814
|
-
return this.sendOperationFn(this.args, this.spec);
|
1815
|
-
});
|
1816
|
-
}
|
1817
|
-
sendPollRequest(path) {
|
1818
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1819
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
1820
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
1821
|
-
});
|
1822
|
-
}
|
1823
|
-
}
|
1824
|
-
|
1825
2026
|
/*
|
1826
2027
|
* Copyright (c) Microsoft Corporation.
|
1827
2028
|
* Licensed under the MIT License.
|
@@ -1830,23 +2031,22 @@ class LroImpl {
|
|
1830
2031
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1831
2032
|
*/
|
1832
2033
|
/// <reference lib="esnext.asynciterable" />
|
1833
|
-
/** Class containing
|
1834
|
-
class
|
2034
|
+
/** Class containing CreationSupported operations. */
|
2035
|
+
class CreationSupportedImpl {
|
1835
2036
|
/**
|
1836
|
-
* Initialize a new instance of the class
|
2037
|
+
* Initialize a new instance of the class CreationSupported class.
|
1837
2038
|
* @param client Reference to the service client
|
1838
2039
|
*/
|
1839
2040
|
constructor(client) {
|
1840
2041
|
this.client = client;
|
1841
2042
|
}
|
1842
2043
|
/**
|
1843
|
-
*
|
1844
|
-
* @param
|
1845
|
-
* @param monitorName Monitor resource name
|
2044
|
+
* Informs if the current subscription is being already monitored for selected Datadog organization.
|
2045
|
+
* @param datadogOrganizationId Datadog Organization Id
|
1846
2046
|
* @param options The options parameters.
|
1847
2047
|
*/
|
1848
|
-
|
1849
|
-
const iter = this.
|
2048
|
+
list(datadogOrganizationId, options) {
|
2049
|
+
const iter = this.listPagingAll(datadogOrganizationId, options);
|
1850
2050
|
return {
|
1851
2051
|
next() {
|
1852
2052
|
return iter.next();
|
@@ -1858,44 +2058,26 @@ class MonitorsImpl {
|
|
1858
2058
|
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1859
2059
|
throw new Error("maxPageSize is not supported by this operation.");
|
1860
2060
|
}
|
1861
|
-
return this.
|
2061
|
+
return this.listPagingPage(datadogOrganizationId, options, settings);
|
1862
2062
|
}
|
1863
2063
|
};
|
1864
2064
|
}
|
1865
|
-
|
1866
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
2065
|
+
listPagingPage(datadogOrganizationId, options, _settings) {
|
2066
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1867
2067
|
let result;
|
1868
|
-
|
1869
|
-
|
1870
|
-
result = yield tslib.__await(this._listApiKeys(resourceGroupName, monitorName, options));
|
1871
|
-
let page = result.value || [];
|
1872
|
-
continuationToken = result.nextLink;
|
1873
|
-
setContinuationToken(page, continuationToken);
|
1874
|
-
yield yield tslib.__await(page);
|
1875
|
-
}
|
1876
|
-
while (continuationToken) {
|
1877
|
-
result = yield tslib.__await(this._listApiKeysNext(resourceGroupName, monitorName, continuationToken, options));
|
1878
|
-
continuationToken = result.nextLink;
|
1879
|
-
let page = result.value || [];
|
1880
|
-
setContinuationToken(page, continuationToken);
|
1881
|
-
yield yield tslib.__await(page);
|
1882
|
-
}
|
2068
|
+
result = yield tslib.__await(this._list(datadogOrganizationId, options));
|
2069
|
+
yield yield tslib.__await(result.value || []);
|
1883
2070
|
});
|
1884
2071
|
}
|
1885
|
-
|
1886
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
2072
|
+
listPagingAll(datadogOrganizationId, options) {
|
2073
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1887
2074
|
var _a, e_1, _b, _c;
|
1888
2075
|
try {
|
1889
|
-
for (var _d = true, _e = tslib.__asyncValues(this.
|
2076
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(datadogOrganizationId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1890
2077
|
_c = _f.value;
|
1891
2078
|
_d = false;
|
1892
|
-
|
1893
|
-
|
1894
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1895
|
-
}
|
1896
|
-
finally {
|
1897
|
-
_d = true;
|
1898
|
-
}
|
2079
|
+
const page = _c;
|
2080
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1899
2081
|
}
|
1900
2082
|
}
|
1901
2083
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -1908,39 +2090,191 @@ class MonitorsImpl {
|
|
1908
2090
|
});
|
1909
2091
|
}
|
1910
2092
|
/**
|
1911
|
-
*
|
1912
|
-
* @param
|
1913
|
-
* @param monitorName Monitor resource name
|
2093
|
+
* Informs if the current subscription is being already monitored for selected Datadog organization.
|
2094
|
+
* @param datadogOrganizationId Datadog Organization Id
|
1914
2095
|
* @param options The options parameters.
|
1915
2096
|
*/
|
1916
|
-
|
1917
|
-
|
1918
|
-
return {
|
1919
|
-
next() {
|
1920
|
-
return iter.next();
|
1921
|
-
},
|
1922
|
-
[Symbol.asyncIterator]() {
|
1923
|
-
return this;
|
1924
|
-
},
|
1925
|
-
byPage: (settings) => {
|
1926
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1927
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
1928
|
-
}
|
1929
|
-
return this.listHostsPagingPage(resourceGroupName, monitorName, options, settings);
|
1930
|
-
}
|
1931
|
-
};
|
2097
|
+
_list(datadogOrganizationId, options) {
|
2098
|
+
return this.client.sendOperationRequest({ datadogOrganizationId, options }, listOperationSpec$5);
|
1932
2099
|
}
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
2100
|
+
/**
|
2101
|
+
* Informs if the current subscription is being already monitored for selected Datadog organization.
|
2102
|
+
* @param datadogOrganizationId Datadog Organization Id
|
2103
|
+
* @param options The options parameters.
|
2104
|
+
*/
|
2105
|
+
get(datadogOrganizationId, options) {
|
2106
|
+
return this.client.sendOperationRequest({ datadogOrganizationId, options }, getOperationSpec$4);
|
2107
|
+
}
|
2108
|
+
}
|
2109
|
+
// Operation Specifications
|
2110
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2111
|
+
const listOperationSpec$5 = {
|
2112
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses",
|
2113
|
+
httpMethod: "GET",
|
2114
|
+
responses: {
|
2115
|
+
200: {
|
2116
|
+
bodyMapper: CreateResourceSupportedResponseList
|
2117
|
+
},
|
2118
|
+
default: {
|
2119
|
+
bodyMapper: ErrorResponse
|
2120
|
+
}
|
2121
|
+
},
|
2122
|
+
queryParameters: [apiVersion, datadogOrganizationId],
|
2123
|
+
urlParameters: [$host, subscriptionId],
|
2124
|
+
headerParameters: [accept],
|
2125
|
+
serializer: serializer$5
|
2126
|
+
};
|
2127
|
+
const getOperationSpec$4 = {
|
2128
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses/default",
|
2129
|
+
httpMethod: "GET",
|
2130
|
+
responses: {
|
2131
|
+
200: {
|
2132
|
+
bodyMapper: CreateResourceSupportedResponse
|
2133
|
+
},
|
2134
|
+
default: {
|
2135
|
+
bodyMapper: ErrorResponse
|
2136
|
+
}
|
2137
|
+
},
|
2138
|
+
queryParameters: [apiVersion, datadogOrganizationId],
|
2139
|
+
urlParameters: [$host, subscriptionId],
|
2140
|
+
headerParameters: [accept],
|
2141
|
+
serializer: serializer$5
|
2142
|
+
};
|
2143
|
+
|
2144
|
+
/*
|
2145
|
+
* Copyright (c) Microsoft Corporation.
|
2146
|
+
* Licensed under the MIT License.
|
2147
|
+
*
|
2148
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2149
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2150
|
+
*/
|
2151
|
+
function createLroSpec(inputs) {
|
2152
|
+
const { args, spec, sendOperationFn } = inputs;
|
2153
|
+
return {
|
2154
|
+
requestMethod: spec.httpMethod,
|
2155
|
+
requestPath: spec.path,
|
2156
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
2157
|
+
sendPollRequest: (path, options) => {
|
2158
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
2159
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
2160
|
+
}
|
2161
|
+
};
|
2162
|
+
}
|
2163
|
+
|
2164
|
+
/*
|
2165
|
+
* Copyright (c) Microsoft Corporation.
|
2166
|
+
* Licensed under the MIT License.
|
2167
|
+
*
|
2168
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2169
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2170
|
+
*/
|
2171
|
+
/// <reference lib="esnext.asynciterable" />
|
2172
|
+
/** Class containing Monitors operations. */
|
2173
|
+
class MonitorsImpl {
|
2174
|
+
/**
|
2175
|
+
* Initialize a new instance of the class Monitors class.
|
2176
|
+
* @param client Reference to the service client
|
2177
|
+
*/
|
2178
|
+
constructor(client) {
|
2179
|
+
this.client = client;
|
2180
|
+
}
|
2181
|
+
/**
|
2182
|
+
* List the api keys for a given monitor resource.
|
2183
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2184
|
+
* @param monitorName Monitor resource name
|
2185
|
+
* @param options The options parameters.
|
2186
|
+
*/
|
2187
|
+
listApiKeys(resourceGroupName, monitorName, options) {
|
2188
|
+
const iter = this.listApiKeysPagingAll(resourceGroupName, monitorName, options);
|
2189
|
+
return {
|
2190
|
+
next() {
|
2191
|
+
return iter.next();
|
2192
|
+
},
|
2193
|
+
[Symbol.asyncIterator]() {
|
2194
|
+
return this;
|
2195
|
+
},
|
2196
|
+
byPage: (settings) => {
|
2197
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2198
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2199
|
+
}
|
2200
|
+
return this.listApiKeysPagingPage(resourceGroupName, monitorName, options, settings);
|
2201
|
+
}
|
2202
|
+
};
|
2203
|
+
}
|
2204
|
+
listApiKeysPagingPage(resourceGroupName, monitorName, options, settings) {
|
2205
|
+
return tslib.__asyncGenerator(this, arguments, function* listApiKeysPagingPage_1() {
|
2206
|
+
let result;
|
2207
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2208
|
+
if (!continuationToken) {
|
2209
|
+
result = yield tslib.__await(this._listApiKeys(resourceGroupName, monitorName, options));
|
2210
|
+
let page = result.value || [];
|
2211
|
+
continuationToken = result.nextLink;
|
2212
|
+
setContinuationToken(page, continuationToken);
|
2213
|
+
yield yield tslib.__await(page);
|
2214
|
+
}
|
2215
|
+
while (continuationToken) {
|
2216
|
+
result = yield tslib.__await(this._listApiKeysNext(resourceGroupName, monitorName, continuationToken, options));
|
2217
|
+
continuationToken = result.nextLink;
|
2218
|
+
let page = result.value || [];
|
2219
|
+
setContinuationToken(page, continuationToken);
|
2220
|
+
yield yield tslib.__await(page);
|
2221
|
+
}
|
2222
|
+
});
|
2223
|
+
}
|
2224
|
+
listApiKeysPagingAll(resourceGroupName, monitorName, options) {
|
2225
|
+
return tslib.__asyncGenerator(this, arguments, function* listApiKeysPagingAll_1() {
|
2226
|
+
var _a, e_1, _b, _c;
|
2227
|
+
try {
|
2228
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listApiKeysPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2229
|
+
_c = _f.value;
|
2230
|
+
_d = false;
|
2231
|
+
const page = _c;
|
2232
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2233
|
+
}
|
2234
|
+
}
|
2235
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2236
|
+
finally {
|
2237
|
+
try {
|
2238
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2239
|
+
}
|
2240
|
+
finally { if (e_1) throw e_1.error; }
|
2241
|
+
}
|
2242
|
+
});
|
2243
|
+
}
|
2244
|
+
/**
|
2245
|
+
* List the hosts for a given monitor resource.
|
2246
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2247
|
+
* @param monitorName Monitor resource name
|
2248
|
+
* @param options The options parameters.
|
2249
|
+
*/
|
2250
|
+
listHosts(resourceGroupName, monitorName, options) {
|
2251
|
+
const iter = this.listHostsPagingAll(resourceGroupName, monitorName, options);
|
2252
|
+
return {
|
2253
|
+
next() {
|
2254
|
+
return iter.next();
|
2255
|
+
},
|
2256
|
+
[Symbol.asyncIterator]() {
|
2257
|
+
return this;
|
2258
|
+
},
|
2259
|
+
byPage: (settings) => {
|
2260
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2261
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2262
|
+
}
|
2263
|
+
return this.listHostsPagingPage(resourceGroupName, monitorName, options, settings);
|
2264
|
+
}
|
2265
|
+
};
|
2266
|
+
}
|
2267
|
+
listHostsPagingPage(resourceGroupName, monitorName, options, settings) {
|
2268
|
+
return tslib.__asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
|
2269
|
+
let result;
|
2270
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2271
|
+
if (!continuationToken) {
|
2272
|
+
result = yield tslib.__await(this._listHosts(resourceGroupName, monitorName, options));
|
2273
|
+
let page = result.value || [];
|
2274
|
+
continuationToken = result.nextLink;
|
2275
|
+
setContinuationToken(page, continuationToken);
|
2276
|
+
yield yield tslib.__await(page);
|
2277
|
+
}
|
1944
2278
|
while (continuationToken) {
|
1945
2279
|
result = yield tslib.__await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
|
1946
2280
|
continuationToken = result.nextLink;
|
@@ -1954,16 +2288,11 @@ class MonitorsImpl {
|
|
1954
2288
|
return tslib.__asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
|
1955
2289
|
var _a, e_2, _b, _c;
|
1956
2290
|
try {
|
1957
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2291
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1958
2292
|
_c = _f.value;
|
1959
2293
|
_d = false;
|
1960
|
-
|
1961
|
-
|
1962
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1963
|
-
}
|
1964
|
-
finally {
|
1965
|
-
_d = true;
|
1966
|
-
}
|
2294
|
+
const page = _c;
|
2295
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1967
2296
|
}
|
1968
2297
|
}
|
1969
2298
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
@@ -2022,16 +2351,11 @@ class MonitorsImpl {
|
|
2022
2351
|
return tslib.__asyncGenerator(this, arguments, function* listLinkedResourcesPagingAll_1() {
|
2023
2352
|
var _a, e_3, _b, _c;
|
2024
2353
|
try {
|
2025
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2354
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2026
2355
|
_c = _f.value;
|
2027
2356
|
_d = false;
|
2028
|
-
|
2029
|
-
|
2030
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2031
|
-
}
|
2032
|
-
finally {
|
2033
|
-
_d = true;
|
2034
|
-
}
|
2357
|
+
const page = _c;
|
2358
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2035
2359
|
}
|
2036
2360
|
}
|
2037
2361
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
@@ -2090,16 +2414,11 @@ class MonitorsImpl {
|
|
2090
2414
|
return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
|
2091
2415
|
var _a, e_4, _b, _c;
|
2092
2416
|
try {
|
2093
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2417
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2094
2418
|
_c = _f.value;
|
2095
2419
|
_d = false;
|
2096
|
-
|
2097
|
-
|
2098
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2099
|
-
}
|
2100
|
-
finally {
|
2101
|
-
_d = true;
|
2102
|
-
}
|
2420
|
+
const page = _c;
|
2421
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2103
2422
|
}
|
2104
2423
|
}
|
2105
2424
|
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
@@ -2156,16 +2475,11 @@ class MonitorsImpl {
|
|
2156
2475
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2157
2476
|
var _a, e_5, _b, _c;
|
2158
2477
|
try {
|
2159
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2478
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2160
2479
|
_c = _f.value;
|
2161
2480
|
_d = false;
|
2162
|
-
|
2163
|
-
|
2164
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2165
|
-
}
|
2166
|
-
finally {
|
2167
|
-
_d = true;
|
2168
|
-
}
|
2481
|
+
const page = _c;
|
2482
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2169
2483
|
}
|
2170
2484
|
}
|
2171
2485
|
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
@@ -2223,16 +2537,11 @@ class MonitorsImpl {
|
|
2223
2537
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
2224
2538
|
var _a, e_6, _b, _c;
|
2225
2539
|
try {
|
2226
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2540
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2227
2541
|
_c = _f.value;
|
2228
2542
|
_d = false;
|
2229
|
-
|
2230
|
-
|
2231
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2232
|
-
}
|
2233
|
-
finally {
|
2234
|
-
_d = true;
|
2235
|
-
}
|
2543
|
+
const page = _c;
|
2544
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2236
2545
|
}
|
2237
2546
|
}
|
2238
2547
|
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
@@ -2303,7 +2612,7 @@ class MonitorsImpl {
|
|
2303
2612
|
* @param options The options parameters.
|
2304
2613
|
*/
|
2305
2614
|
_list(options) {
|
2306
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
2615
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
2307
2616
|
}
|
2308
2617
|
/**
|
2309
2618
|
* List all monitors under the specified resource group.
|
@@ -2320,7 +2629,7 @@ class MonitorsImpl {
|
|
2320
2629
|
* @param options The options parameters.
|
2321
2630
|
*/
|
2322
2631
|
get(resourceGroupName, monitorName, options) {
|
2323
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec$
|
2632
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec$3);
|
2324
2633
|
}
|
2325
2634
|
/**
|
2326
2635
|
* Create a monitor resource.
|
@@ -2333,7 +2642,7 @@ class MonitorsImpl {
|
|
2333
2642
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2334
2643
|
return this.client.sendOperationRequest(args, spec);
|
2335
2644
|
});
|
2336
|
-
const
|
2645
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2337
2646
|
var _a;
|
2338
2647
|
let currentRawResponse = undefined;
|
2339
2648
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -2352,11 +2661,15 @@ class MonitorsImpl {
|
|
2352
2661
|
}
|
2353
2662
|
};
|
2354
2663
|
});
|
2355
|
-
const lro =
|
2356
|
-
|
2357
|
-
|
2664
|
+
const lro = createLroSpec({
|
2665
|
+
sendOperationFn,
|
2666
|
+
args: { resourceGroupName, monitorName, options },
|
2667
|
+
spec: createOperationSpec
|
2668
|
+
});
|
2669
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
2670
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2358
2671
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
2359
|
-
|
2672
|
+
resourceLocationConfig: "azure-async-operation"
|
2360
2673
|
});
|
2361
2674
|
yield poller.poll();
|
2362
2675
|
return poller;
|
@@ -2385,7 +2698,7 @@ class MonitorsImpl {
|
|
2385
2698
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2386
2699
|
return this.client.sendOperationRequest(args, spec);
|
2387
2700
|
});
|
2388
|
-
const
|
2701
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2389
2702
|
var _a;
|
2390
2703
|
let currentRawResponse = undefined;
|
2391
2704
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -2404,9 +2717,13 @@ class MonitorsImpl {
|
|
2404
2717
|
}
|
2405
2718
|
};
|
2406
2719
|
});
|
2407
|
-
const lro =
|
2408
|
-
|
2409
|
-
|
2720
|
+
const lro = createLroSpec({
|
2721
|
+
sendOperationFn,
|
2722
|
+
args: { resourceGroupName, monitorName, options },
|
2723
|
+
spec: updateOperationSpec$1
|
2724
|
+
});
|
2725
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
2726
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2410
2727
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2411
2728
|
});
|
2412
2729
|
yield poller.poll();
|
@@ -2436,7 +2753,7 @@ class MonitorsImpl {
|
|
2436
2753
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2437
2754
|
return this.client.sendOperationRequest(args, spec);
|
2438
2755
|
});
|
2439
|
-
const
|
2756
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2440
2757
|
var _a;
|
2441
2758
|
let currentRawResponse = undefined;
|
2442
2759
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -2455,9 +2772,13 @@ class MonitorsImpl {
|
|
2455
2772
|
}
|
2456
2773
|
};
|
2457
2774
|
});
|
2458
|
-
const lro =
|
2459
|
-
|
2460
|
-
|
2775
|
+
const lro = createLroSpec({
|
2776
|
+
sendOperationFn,
|
2777
|
+
args: { resourceGroupName, monitorName, options },
|
2778
|
+
spec: deleteOperationSpec$1
|
2779
|
+
});
|
2780
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
2781
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2461
2782
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2462
2783
|
});
|
2463
2784
|
yield poller.poll();
|
@@ -2544,7 +2865,7 @@ class MonitorsImpl {
|
|
2544
2865
|
}
|
2545
2866
|
}
|
2546
2867
|
// Operation Specifications
|
2547
|
-
const serializer$
|
2868
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2548
2869
|
const listApiKeysOperationSpec = {
|
2549
2870
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys",
|
2550
2871
|
httpMethod: "POST",
|
@@ -2564,7 +2885,7 @@ const listApiKeysOperationSpec = {
|
|
2564
2885
|
monitorName
|
2565
2886
|
],
|
2566
2887
|
headerParameters: [accept],
|
2567
|
-
serializer: serializer$
|
2888
|
+
serializer: serializer$4
|
2568
2889
|
};
|
2569
2890
|
const getDefaultKeyOperationSpec = {
|
2570
2891
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey",
|
@@ -2585,7 +2906,7 @@ const getDefaultKeyOperationSpec = {
|
|
2585
2906
|
monitorName
|
2586
2907
|
],
|
2587
2908
|
headerParameters: [accept],
|
2588
|
-
serializer: serializer$
|
2909
|
+
serializer: serializer$4
|
2589
2910
|
};
|
2590
2911
|
const setDefaultKeyOperationSpec = {
|
2591
2912
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey",
|
@@ -2606,7 +2927,7 @@ const setDefaultKeyOperationSpec = {
|
|
2606
2927
|
],
|
2607
2928
|
headerParameters: [accept, contentType],
|
2608
2929
|
mediaType: "json",
|
2609
|
-
serializer: serializer$
|
2930
|
+
serializer: serializer$4
|
2610
2931
|
};
|
2611
2932
|
const listHostsOperationSpec = {
|
2612
2933
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts",
|
@@ -2627,7 +2948,7 @@ const listHostsOperationSpec = {
|
|
2627
2948
|
monitorName
|
2628
2949
|
],
|
2629
2950
|
headerParameters: [accept],
|
2630
|
-
serializer: serializer$
|
2951
|
+
serializer: serializer$4
|
2631
2952
|
};
|
2632
2953
|
const listLinkedResourcesOperationSpec = {
|
2633
2954
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources",
|
@@ -2648,7 +2969,7 @@ const listLinkedResourcesOperationSpec = {
|
|
2648
2969
|
monitorName
|
2649
2970
|
],
|
2650
2971
|
headerParameters: [accept],
|
2651
|
-
serializer: serializer$
|
2972
|
+
serializer: serializer$4
|
2652
2973
|
};
|
2653
2974
|
const listMonitoredResourcesOperationSpec = {
|
2654
2975
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources",
|
@@ -2669,9 +2990,9 @@ const listMonitoredResourcesOperationSpec = {
|
|
2669
2990
|
monitorName
|
2670
2991
|
],
|
2671
2992
|
headerParameters: [accept],
|
2672
|
-
serializer: serializer$
|
2993
|
+
serializer: serializer$4
|
2673
2994
|
};
|
2674
|
-
const listOperationSpec$
|
2995
|
+
const listOperationSpec$4 = {
|
2675
2996
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors",
|
2676
2997
|
httpMethod: "GET",
|
2677
2998
|
responses: {
|
@@ -2685,7 +3006,7 @@ const listOperationSpec$3 = {
|
|
2685
3006
|
queryParameters: [apiVersion],
|
2686
3007
|
urlParameters: [$host, subscriptionId],
|
2687
3008
|
headerParameters: [accept],
|
2688
|
-
serializer: serializer$
|
3009
|
+
serializer: serializer$4
|
2689
3010
|
};
|
2690
3011
|
const listByResourceGroupOperationSpec = {
|
2691
3012
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors",
|
@@ -2705,9 +3026,9 @@ const listByResourceGroupOperationSpec = {
|
|
2705
3026
|
resourceGroupName
|
2706
3027
|
],
|
2707
3028
|
headerParameters: [accept],
|
2708
|
-
serializer: serializer$
|
3029
|
+
serializer: serializer$4
|
2709
3030
|
};
|
2710
|
-
const getOperationSpec$
|
3031
|
+
const getOperationSpec$3 = {
|
2711
3032
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
2712
3033
|
httpMethod: "GET",
|
2713
3034
|
responses: {
|
@@ -2726,7 +3047,7 @@ const getOperationSpec$2 = {
|
|
2726
3047
|
monitorName
|
2727
3048
|
],
|
2728
3049
|
headerParameters: [accept],
|
2729
|
-
serializer: serializer$
|
3050
|
+
serializer: serializer$4
|
2730
3051
|
};
|
2731
3052
|
const createOperationSpec = {
|
2732
3053
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
@@ -2758,9 +3079,9 @@ const createOperationSpec = {
|
|
2758
3079
|
],
|
2759
3080
|
headerParameters: [accept, contentType],
|
2760
3081
|
mediaType: "json",
|
2761
|
-
serializer: serializer$
|
3082
|
+
serializer: serializer$4
|
2762
3083
|
};
|
2763
|
-
const updateOperationSpec = {
|
3084
|
+
const updateOperationSpec$1 = {
|
2764
3085
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
2765
3086
|
httpMethod: "PATCH",
|
2766
3087
|
responses: {
|
@@ -2790,9 +3111,9 @@ const updateOperationSpec = {
|
|
2790
3111
|
],
|
2791
3112
|
headerParameters: [accept, contentType],
|
2792
3113
|
mediaType: "json",
|
2793
|
-
serializer: serializer$
|
3114
|
+
serializer: serializer$4
|
2794
3115
|
};
|
2795
|
-
const deleteOperationSpec = {
|
3116
|
+
const deleteOperationSpec$1 = {
|
2796
3117
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
2797
3118
|
httpMethod: "DELETE",
|
2798
3119
|
responses: {
|
@@ -2812,7 +3133,7 @@ const deleteOperationSpec = {
|
|
2812
3133
|
monitorName
|
2813
3134
|
],
|
2814
3135
|
headerParameters: [accept],
|
2815
|
-
serializer: serializer$
|
3136
|
+
serializer: serializer$4
|
2816
3137
|
};
|
2817
3138
|
const refreshSetPasswordLinkOperationSpec = {
|
2818
3139
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink",
|
@@ -2833,7 +3154,7 @@ const refreshSetPasswordLinkOperationSpec = {
|
|
2833
3154
|
monitorName
|
2834
3155
|
],
|
2835
3156
|
headerParameters: [accept],
|
2836
|
-
serializer: serializer$
|
3157
|
+
serializer: serializer$4
|
2837
3158
|
};
|
2838
3159
|
const listApiKeysNextOperationSpec = {
|
2839
3160
|
path: "{nextLink}",
|
@@ -2846,7 +3167,6 @@ const listApiKeysNextOperationSpec = {
|
|
2846
3167
|
bodyMapper: ErrorResponse
|
2847
3168
|
}
|
2848
3169
|
},
|
2849
|
-
queryParameters: [apiVersion],
|
2850
3170
|
urlParameters: [
|
2851
3171
|
$host,
|
2852
3172
|
subscriptionId,
|
@@ -2855,7 +3175,7 @@ const listApiKeysNextOperationSpec = {
|
|
2855
3175
|
monitorName
|
2856
3176
|
],
|
2857
3177
|
headerParameters: [accept],
|
2858
|
-
serializer: serializer$
|
3178
|
+
serializer: serializer$4
|
2859
3179
|
};
|
2860
3180
|
const listHostsNextOperationSpec = {
|
2861
3181
|
path: "{nextLink}",
|
@@ -2868,7 +3188,6 @@ const listHostsNextOperationSpec = {
|
|
2868
3188
|
bodyMapper: ErrorResponse
|
2869
3189
|
}
|
2870
3190
|
},
|
2871
|
-
queryParameters: [apiVersion],
|
2872
3191
|
urlParameters: [
|
2873
3192
|
$host,
|
2874
3193
|
subscriptionId,
|
@@ -2877,7 +3196,7 @@ const listHostsNextOperationSpec = {
|
|
2877
3196
|
monitorName
|
2878
3197
|
],
|
2879
3198
|
headerParameters: [accept],
|
2880
|
-
serializer: serializer$
|
3199
|
+
serializer: serializer$4
|
2881
3200
|
};
|
2882
3201
|
const listLinkedResourcesNextOperationSpec = {
|
2883
3202
|
path: "{nextLink}",
|
@@ -2890,7 +3209,6 @@ const listLinkedResourcesNextOperationSpec = {
|
|
2890
3209
|
bodyMapper: ErrorResponse
|
2891
3210
|
}
|
2892
3211
|
},
|
2893
|
-
queryParameters: [apiVersion],
|
2894
3212
|
urlParameters: [
|
2895
3213
|
$host,
|
2896
3214
|
subscriptionId,
|
@@ -2899,7 +3217,7 @@ const listLinkedResourcesNextOperationSpec = {
|
|
2899
3217
|
monitorName
|
2900
3218
|
],
|
2901
3219
|
headerParameters: [accept],
|
2902
|
-
serializer: serializer$
|
3220
|
+
serializer: serializer$4
|
2903
3221
|
};
|
2904
3222
|
const listMonitoredResourcesNextOperationSpec = {
|
2905
3223
|
path: "{nextLink}",
|
@@ -2912,7 +3230,6 @@ const listMonitoredResourcesNextOperationSpec = {
|
|
2912
3230
|
bodyMapper: ErrorResponse
|
2913
3231
|
}
|
2914
3232
|
},
|
2915
|
-
queryParameters: [apiVersion],
|
2916
3233
|
urlParameters: [
|
2917
3234
|
$host,
|
2918
3235
|
subscriptionId,
|
@@ -2921,7 +3238,7 @@ const listMonitoredResourcesNextOperationSpec = {
|
|
2921
3238
|
monitorName
|
2922
3239
|
],
|
2923
3240
|
headerParameters: [accept],
|
2924
|
-
serializer: serializer$
|
3241
|
+
serializer: serializer$4
|
2925
3242
|
};
|
2926
3243
|
const listNextOperationSpec$3 = {
|
2927
3244
|
path: "{nextLink}",
|
@@ -2934,14 +3251,13 @@ const listNextOperationSpec$3 = {
|
|
2934
3251
|
bodyMapper: ErrorResponse
|
2935
3252
|
}
|
2936
3253
|
},
|
2937
|
-
queryParameters: [apiVersion],
|
2938
3254
|
urlParameters: [
|
2939
3255
|
$host,
|
2940
3256
|
subscriptionId,
|
2941
3257
|
nextLink
|
2942
3258
|
],
|
2943
3259
|
headerParameters: [accept],
|
2944
|
-
serializer: serializer$
|
3260
|
+
serializer: serializer$4
|
2945
3261
|
};
|
2946
3262
|
const listByResourceGroupNextOperationSpec = {
|
2947
3263
|
path: "{nextLink}",
|
@@ -2954,7 +3270,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
2954
3270
|
bodyMapper: ErrorResponse
|
2955
3271
|
}
|
2956
3272
|
},
|
2957
|
-
queryParameters: [apiVersion],
|
2958
3273
|
urlParameters: [
|
2959
3274
|
$host,
|
2960
3275
|
subscriptionId,
|
@@ -2962,7 +3277,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
2962
3277
|
resourceGroupName
|
2963
3278
|
],
|
2964
3279
|
headerParameters: [accept],
|
2965
|
-
serializer: serializer$
|
3280
|
+
serializer: serializer$4
|
2966
3281
|
};
|
2967
3282
|
|
2968
3283
|
/*
|
@@ -2983,7 +3298,7 @@ class OperationsImpl {
|
|
2983
3298
|
this.client = client;
|
2984
3299
|
}
|
2985
3300
|
/**
|
2986
|
-
* List all operations provided by Microsoft.Datadog for the
|
3301
|
+
* List all operations provided by Microsoft.Datadog for the 2023-01-01 api version.
|
2987
3302
|
* @param options The options parameters.
|
2988
3303
|
*/
|
2989
3304
|
list(options) {
|
@@ -3027,16 +3342,11 @@ class OperationsImpl {
|
|
3027
3342
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3028
3343
|
var _a, e_1, _b, _c;
|
3029
3344
|
try {
|
3030
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3345
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3031
3346
|
_c = _f.value;
|
3032
3347
|
_d = false;
|
3033
|
-
|
3034
|
-
|
3035
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3036
|
-
}
|
3037
|
-
finally {
|
3038
|
-
_d = true;
|
3039
|
-
}
|
3348
|
+
const page = _c;
|
3349
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3040
3350
|
}
|
3041
3351
|
}
|
3042
3352
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -3049,11 +3359,11 @@ class OperationsImpl {
|
|
3049
3359
|
});
|
3050
3360
|
}
|
3051
3361
|
/**
|
3052
|
-
* List all operations provided by Microsoft.Datadog for the
|
3362
|
+
* List all operations provided by Microsoft.Datadog for the 2023-01-01 api version.
|
3053
3363
|
* @param options The options parameters.
|
3054
3364
|
*/
|
3055
3365
|
_list(options) {
|
3056
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
3366
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
3057
3367
|
}
|
3058
3368
|
/**
|
3059
3369
|
* ListNext
|
@@ -3065,8 +3375,8 @@ class OperationsImpl {
|
|
3065
3375
|
}
|
3066
3376
|
}
|
3067
3377
|
// Operation Specifications
|
3068
|
-
const serializer$
|
3069
|
-
const listOperationSpec$
|
3378
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3379
|
+
const listOperationSpec$3 = {
|
3070
3380
|
path: "/providers/Microsoft.Datadog/operations",
|
3071
3381
|
httpMethod: "GET",
|
3072
3382
|
responses: {
|
@@ -3080,7 +3390,7 @@ const listOperationSpec$2 = {
|
|
3080
3390
|
queryParameters: [apiVersion],
|
3081
3391
|
urlParameters: [$host],
|
3082
3392
|
headerParameters: [accept],
|
3083
|
-
serializer: serializer$
|
3393
|
+
serializer: serializer$3
|
3084
3394
|
};
|
3085
3395
|
const listNextOperationSpec$2 = {
|
3086
3396
|
path: "{nextLink}",
|
@@ -3093,10 +3403,9 @@ const listNextOperationSpec$2 = {
|
|
3093
3403
|
bodyMapper: ErrorResponse
|
3094
3404
|
}
|
3095
3405
|
},
|
3096
|
-
queryParameters: [apiVersion],
|
3097
3406
|
urlParameters: [$host, nextLink],
|
3098
3407
|
headerParameters: [accept],
|
3099
|
-
serializer: serializer$
|
3408
|
+
serializer: serializer$3
|
3100
3409
|
};
|
3101
3410
|
|
3102
3411
|
/*
|
@@ -3163,16 +3472,11 @@ class TagRulesImpl {
|
|
3163
3472
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3164
3473
|
var _a, e_1, _b, _c;
|
3165
3474
|
try {
|
3166
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3475
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3167
3476
|
_c = _f.value;
|
3168
3477
|
_d = false;
|
3169
|
-
|
3170
|
-
|
3171
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3172
|
-
}
|
3173
|
-
finally {
|
3174
|
-
_d = true;
|
3175
|
-
}
|
3478
|
+
const page = _c;
|
3479
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3176
3480
|
}
|
3177
3481
|
}
|
3178
3482
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -3191,7 +3495,7 @@ class TagRulesImpl {
|
|
3191
3495
|
* @param options The options parameters.
|
3192
3496
|
*/
|
3193
3497
|
_list(resourceGroupName, monitorName, options) {
|
3194
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$
|
3498
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$2);
|
3195
3499
|
}
|
3196
3500
|
/**
|
3197
3501
|
* Create or update a tag rule set for a given monitor resource.
|
@@ -3211,7 +3515,7 @@ class TagRulesImpl {
|
|
3211
3515
|
* @param options The options parameters.
|
3212
3516
|
*/
|
3213
3517
|
get(resourceGroupName, monitorName, ruleSetName, options) {
|
3214
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec$
|
3518
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec$2);
|
3215
3519
|
}
|
3216
3520
|
/**
|
3217
3521
|
* ListNext
|
@@ -3225,8 +3529,8 @@ class TagRulesImpl {
|
|
3225
3529
|
}
|
3226
3530
|
}
|
3227
3531
|
// Operation Specifications
|
3228
|
-
const serializer$
|
3229
|
-
const listOperationSpec$
|
3532
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3533
|
+
const listOperationSpec$2 = {
|
3230
3534
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules",
|
3231
3535
|
httpMethod: "GET",
|
3232
3536
|
responses: {
|
@@ -3245,7 +3549,7 @@ const listOperationSpec$1 = {
|
|
3245
3549
|
monitorName
|
3246
3550
|
],
|
3247
3551
|
headerParameters: [accept],
|
3248
|
-
serializer: serializer$
|
3552
|
+
serializer: serializer$2
|
3249
3553
|
};
|
3250
3554
|
const createOrUpdateOperationSpec$1 = {
|
3251
3555
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}",
|
@@ -3269,9 +3573,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
3269
3573
|
],
|
3270
3574
|
headerParameters: [accept, contentType],
|
3271
3575
|
mediaType: "json",
|
3272
|
-
serializer: serializer$
|
3576
|
+
serializer: serializer$2
|
3273
3577
|
};
|
3274
|
-
const getOperationSpec$
|
3578
|
+
const getOperationSpec$2 = {
|
3275
3579
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}",
|
3276
3580
|
httpMethod: "GET",
|
3277
3581
|
responses: {
|
@@ -3291,7 +3595,7 @@ const getOperationSpec$1 = {
|
|
3291
3595
|
ruleSetName
|
3292
3596
|
],
|
3293
3597
|
headerParameters: [accept],
|
3294
|
-
serializer: serializer$
|
3598
|
+
serializer: serializer$2
|
3295
3599
|
};
|
3296
3600
|
const listNextOperationSpec$1 = {
|
3297
3601
|
path: "{nextLink}",
|
@@ -3304,7 +3608,6 @@ const listNextOperationSpec$1 = {
|
|
3304
3608
|
bodyMapper: ErrorResponse
|
3305
3609
|
}
|
3306
3610
|
},
|
3307
|
-
queryParameters: [apiVersion],
|
3308
3611
|
urlParameters: [
|
3309
3612
|
$host,
|
3310
3613
|
subscriptionId,
|
@@ -3313,7 +3616,7 @@ const listNextOperationSpec$1 = {
|
|
3313
3616
|
monitorName
|
3314
3617
|
],
|
3315
3618
|
headerParameters: [accept],
|
3316
|
-
serializer: serializer$
|
3619
|
+
serializer: serializer$2
|
3317
3620
|
};
|
3318
3621
|
|
3319
3622
|
/*
|
@@ -3380,16 +3683,11 @@ class SingleSignOnConfigurationsImpl {
|
|
3380
3683
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3381
3684
|
var _a, e_1, _b, _c;
|
3382
3685
|
try {
|
3383
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
3686
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3384
3687
|
_c = _f.value;
|
3385
3688
|
_d = false;
|
3386
|
-
|
3387
|
-
|
3388
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3389
|
-
}
|
3390
|
-
finally {
|
3391
|
-
_d = true;
|
3392
|
-
}
|
3689
|
+
const page = _c;
|
3690
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3393
3691
|
}
|
3394
3692
|
}
|
3395
3693
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
@@ -3408,7 +3706,7 @@ class SingleSignOnConfigurationsImpl {
|
|
3408
3706
|
* @param options The options parameters.
|
3409
3707
|
*/
|
3410
3708
|
_list(resourceGroupName, monitorName, options) {
|
3411
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec);
|
3709
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$1);
|
3412
3710
|
}
|
3413
3711
|
/**
|
3414
3712
|
* Configures single-sign-on for this resource.
|
@@ -3422,7 +3720,7 @@ class SingleSignOnConfigurationsImpl {
|
|
3422
3720
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
3423
3721
|
return this.client.sendOperationRequest(args, spec);
|
3424
3722
|
});
|
3425
|
-
const
|
3723
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
3426
3724
|
var _a;
|
3427
3725
|
let currentRawResponse = undefined;
|
3428
3726
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -3441,11 +3739,15 @@ class SingleSignOnConfigurationsImpl {
|
|
3441
3739
|
}
|
3442
3740
|
};
|
3443
3741
|
});
|
3444
|
-
const lro =
|
3445
|
-
|
3446
|
-
|
3742
|
+
const lro = createLroSpec({
|
3743
|
+
sendOperationFn,
|
3744
|
+
args: { resourceGroupName, monitorName, configurationName, options },
|
3745
|
+
spec: createOrUpdateOperationSpec
|
3746
|
+
});
|
3747
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
3748
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
3447
3749
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
3448
|
-
|
3750
|
+
resourceLocationConfig: "azure-async-operation"
|
3449
3751
|
});
|
3450
3752
|
yield poller.poll();
|
3451
3753
|
return poller;
|
@@ -3472,7 +3774,7 @@ class SingleSignOnConfigurationsImpl {
|
|
3472
3774
|
* @param options The options parameters.
|
3473
3775
|
*/
|
3474
3776
|
get(resourceGroupName, monitorName, configurationName, options) {
|
3475
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec);
|
3777
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec$1);
|
3476
3778
|
}
|
3477
3779
|
/**
|
3478
3780
|
* ListNext
|
@@ -3486,8 +3788,8 @@ class SingleSignOnConfigurationsImpl {
|
|
3486
3788
|
}
|
3487
3789
|
}
|
3488
3790
|
// Operation Specifications
|
3489
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3490
|
-
const listOperationSpec = {
|
3791
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3792
|
+
const listOperationSpec$1 = {
|
3491
3793
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations",
|
3492
3794
|
httpMethod: "GET",
|
3493
3795
|
responses: {
|
@@ -3506,7 +3808,7 @@ const listOperationSpec = {
|
|
3506
3808
|
monitorName
|
3507
3809
|
],
|
3508
3810
|
headerParameters: [accept],
|
3509
|
-
serializer
|
3811
|
+
serializer: serializer$1
|
3510
3812
|
};
|
3511
3813
|
const createOrUpdateOperationSpec = {
|
3512
3814
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
@@ -3539,9 +3841,9 @@ const createOrUpdateOperationSpec = {
|
|
3539
3841
|
],
|
3540
3842
|
headerParameters: [accept, contentType],
|
3541
3843
|
mediaType: "json",
|
3542
|
-
serializer
|
3844
|
+
serializer: serializer$1
|
3543
3845
|
};
|
3544
|
-
const getOperationSpec = {
|
3846
|
+
const getOperationSpec$1 = {
|
3545
3847
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
3546
3848
|
httpMethod: "GET",
|
3547
3849
|
responses: {
|
@@ -3561,7 +3863,7 @@ const getOperationSpec = {
|
|
3561
3863
|
configurationName
|
3562
3864
|
],
|
3563
3865
|
headerParameters: [accept],
|
3564
|
-
serializer
|
3866
|
+
serializer: serializer$1
|
3565
3867
|
};
|
3566
3868
|
const listNextOperationSpec = {
|
3567
3869
|
path: "{nextLink}",
|
@@ -3574,7 +3876,6 @@ const listNextOperationSpec = {
|
|
3574
3876
|
bodyMapper: ErrorResponse
|
3575
3877
|
}
|
3576
3878
|
},
|
3577
|
-
queryParameters: [apiVersion],
|
3578
3879
|
urlParameters: [
|
3579
3880
|
$host,
|
3580
3881
|
subscriptionId,
|
@@ -3583,6 +3884,399 @@ const listNextOperationSpec = {
|
|
3583
3884
|
monitorName
|
3584
3885
|
],
|
3585
3886
|
headerParameters: [accept],
|
3887
|
+
serializer: serializer$1
|
3888
|
+
};
|
3889
|
+
|
3890
|
+
/*
|
3891
|
+
* Copyright (c) Microsoft Corporation.
|
3892
|
+
* Licensed under the MIT License.
|
3893
|
+
*
|
3894
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3895
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3896
|
+
*/
|
3897
|
+
/// <reference lib="esnext.asynciterable" />
|
3898
|
+
/** Class containing MonitoredSubscriptions operations. */
|
3899
|
+
class MonitoredSubscriptionsImpl {
|
3900
|
+
/**
|
3901
|
+
* Initialize a new instance of the class MonitoredSubscriptions class.
|
3902
|
+
* @param client Reference to the service client
|
3903
|
+
*/
|
3904
|
+
constructor(client) {
|
3905
|
+
this.client = client;
|
3906
|
+
}
|
3907
|
+
/**
|
3908
|
+
* List the subscriptions currently being monitored by the Datadog monitor resource.
|
3909
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3910
|
+
* @param monitorName Monitor resource name
|
3911
|
+
* @param options The options parameters.
|
3912
|
+
*/
|
3913
|
+
list(resourceGroupName, monitorName, options) {
|
3914
|
+
const iter = this.listPagingAll(resourceGroupName, monitorName, options);
|
3915
|
+
return {
|
3916
|
+
next() {
|
3917
|
+
return iter.next();
|
3918
|
+
},
|
3919
|
+
[Symbol.asyncIterator]() {
|
3920
|
+
return this;
|
3921
|
+
},
|
3922
|
+
byPage: (settings) => {
|
3923
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
3924
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
3925
|
+
}
|
3926
|
+
return this.listPagingPage(resourceGroupName, monitorName, options, settings);
|
3927
|
+
}
|
3928
|
+
};
|
3929
|
+
}
|
3930
|
+
listPagingPage(resourceGroupName, monitorName, options, _settings) {
|
3931
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
3932
|
+
let result;
|
3933
|
+
result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
|
3934
|
+
yield yield tslib.__await(result.value || []);
|
3935
|
+
});
|
3936
|
+
}
|
3937
|
+
listPagingAll(resourceGroupName, monitorName, options) {
|
3938
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3939
|
+
var _a, e_1, _b, _c;
|
3940
|
+
try {
|
3941
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3942
|
+
_c = _f.value;
|
3943
|
+
_d = false;
|
3944
|
+
const page = _c;
|
3945
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3946
|
+
}
|
3947
|
+
}
|
3948
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3949
|
+
finally {
|
3950
|
+
try {
|
3951
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
3952
|
+
}
|
3953
|
+
finally { if (e_1) throw e_1.error; }
|
3954
|
+
}
|
3955
|
+
});
|
3956
|
+
}
|
3957
|
+
/**
|
3958
|
+
* List the subscriptions currently being monitored by the Datadog monitor resource.
|
3959
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3960
|
+
* @param monitorName Monitor resource name
|
3961
|
+
* @param options The options parameters.
|
3962
|
+
*/
|
3963
|
+
_list(resourceGroupName, monitorName, options) {
|
3964
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec);
|
3965
|
+
}
|
3966
|
+
/**
|
3967
|
+
* List the subscriptions currently being monitored by the Datadog monitor resource.
|
3968
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3969
|
+
* @param monitorName Monitor resource name
|
3970
|
+
* @param configurationName The configuration name. Only 'default' value is supported.
|
3971
|
+
* @param options The options parameters.
|
3972
|
+
*/
|
3973
|
+
get(resourceGroupName, monitorName, configurationName, options) {
|
3974
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec);
|
3975
|
+
}
|
3976
|
+
/**
|
3977
|
+
* Add the subscriptions that should be monitored by the Datadog monitor resource.
|
3978
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3979
|
+
* @param monitorName Monitor resource name
|
3980
|
+
* @param configurationName The configuration name. Only 'default' value is supported.
|
3981
|
+
* @param options The options parameters.
|
3982
|
+
*/
|
3983
|
+
beginCreateorUpdate(resourceGroupName, monitorName, configurationName, options) {
|
3984
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
3985
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
3986
|
+
return this.client.sendOperationRequest(args, spec);
|
3987
|
+
});
|
3988
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
3989
|
+
var _a;
|
3990
|
+
let currentRawResponse = undefined;
|
3991
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
3992
|
+
const callback = (rawResponse, flatResponse) => {
|
3993
|
+
currentRawResponse = rawResponse;
|
3994
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
3995
|
+
};
|
3996
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3997
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
3998
|
+
return {
|
3999
|
+
flatResponse,
|
4000
|
+
rawResponse: {
|
4001
|
+
statusCode: currentRawResponse.status,
|
4002
|
+
body: currentRawResponse.parsedBody,
|
4003
|
+
headers: currentRawResponse.headers.toJSON()
|
4004
|
+
}
|
4005
|
+
};
|
4006
|
+
});
|
4007
|
+
const lro = createLroSpec({
|
4008
|
+
sendOperationFn,
|
4009
|
+
args: { resourceGroupName, monitorName, configurationName, options },
|
4010
|
+
spec: createorUpdateOperationSpec
|
4011
|
+
});
|
4012
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
4013
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
4014
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
4015
|
+
});
|
4016
|
+
yield poller.poll();
|
4017
|
+
return poller;
|
4018
|
+
});
|
4019
|
+
}
|
4020
|
+
/**
|
4021
|
+
* Add the subscriptions that should be monitored by the Datadog monitor resource.
|
4022
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4023
|
+
* @param monitorName Monitor resource name
|
4024
|
+
* @param configurationName The configuration name. Only 'default' value is supported.
|
4025
|
+
* @param options The options parameters.
|
4026
|
+
*/
|
4027
|
+
beginCreateorUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
|
4028
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
4029
|
+
const poller = yield this.beginCreateorUpdate(resourceGroupName, monitorName, configurationName, options);
|
4030
|
+
return poller.pollUntilDone();
|
4031
|
+
});
|
4032
|
+
}
|
4033
|
+
/**
|
4034
|
+
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4035
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4036
|
+
* @param monitorName Monitor resource name
|
4037
|
+
* @param configurationName The configuration name. Only 'default' value is supported.
|
4038
|
+
* @param options The options parameters.
|
4039
|
+
*/
|
4040
|
+
beginUpdate(resourceGroupName, monitorName, configurationName, options) {
|
4041
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
4042
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
4043
|
+
return this.client.sendOperationRequest(args, spec);
|
4044
|
+
});
|
4045
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
4046
|
+
var _a;
|
4047
|
+
let currentRawResponse = undefined;
|
4048
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
4049
|
+
const callback = (rawResponse, flatResponse) => {
|
4050
|
+
currentRawResponse = rawResponse;
|
4051
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
4052
|
+
};
|
4053
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4054
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
4055
|
+
return {
|
4056
|
+
flatResponse,
|
4057
|
+
rawResponse: {
|
4058
|
+
statusCode: currentRawResponse.status,
|
4059
|
+
body: currentRawResponse.parsedBody,
|
4060
|
+
headers: currentRawResponse.headers.toJSON()
|
4061
|
+
}
|
4062
|
+
};
|
4063
|
+
});
|
4064
|
+
const lro = createLroSpec({
|
4065
|
+
sendOperationFn,
|
4066
|
+
args: { resourceGroupName, monitorName, configurationName, options },
|
4067
|
+
spec: updateOperationSpec
|
4068
|
+
});
|
4069
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
4070
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
4071
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
4072
|
+
});
|
4073
|
+
yield poller.poll();
|
4074
|
+
return poller;
|
4075
|
+
});
|
4076
|
+
}
|
4077
|
+
/**
|
4078
|
+
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4079
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4080
|
+
* @param monitorName Monitor resource name
|
4081
|
+
* @param configurationName The configuration name. Only 'default' value is supported.
|
4082
|
+
* @param options The options parameters.
|
4083
|
+
*/
|
4084
|
+
beginUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
|
4085
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
4086
|
+
const poller = yield this.beginUpdate(resourceGroupName, monitorName, configurationName, options);
|
4087
|
+
return poller.pollUntilDone();
|
4088
|
+
});
|
4089
|
+
}
|
4090
|
+
/**
|
4091
|
+
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4092
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4093
|
+
* @param monitorName Monitor resource name
|
4094
|
+
* @param configurationName Configuration name
|
4095
|
+
* @param options The options parameters.
|
4096
|
+
*/
|
4097
|
+
beginDelete(resourceGroupName, monitorName, configurationName, options) {
|
4098
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
4099
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
4100
|
+
return this.client.sendOperationRequest(args, spec);
|
4101
|
+
});
|
4102
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
4103
|
+
var _a;
|
4104
|
+
let currentRawResponse = undefined;
|
4105
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
4106
|
+
const callback = (rawResponse, flatResponse) => {
|
4107
|
+
currentRawResponse = rawResponse;
|
4108
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
4109
|
+
};
|
4110
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4111
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
4112
|
+
return {
|
4113
|
+
flatResponse,
|
4114
|
+
rawResponse: {
|
4115
|
+
statusCode: currentRawResponse.status,
|
4116
|
+
body: currentRawResponse.parsedBody,
|
4117
|
+
headers: currentRawResponse.headers.toJSON()
|
4118
|
+
}
|
4119
|
+
};
|
4120
|
+
});
|
4121
|
+
const lro = createLroSpec({
|
4122
|
+
sendOperationFn,
|
4123
|
+
args: { resourceGroupName, monitorName, configurationName, options },
|
4124
|
+
spec: deleteOperationSpec
|
4125
|
+
});
|
4126
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
4127
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
4128
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
4129
|
+
});
|
4130
|
+
yield poller.poll();
|
4131
|
+
return poller;
|
4132
|
+
});
|
4133
|
+
}
|
4134
|
+
/**
|
4135
|
+
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4136
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4137
|
+
* @param monitorName Monitor resource name
|
4138
|
+
* @param configurationName Configuration name
|
4139
|
+
* @param options The options parameters.
|
4140
|
+
*/
|
4141
|
+
beginDeleteAndWait(resourceGroupName, monitorName, configurationName, options) {
|
4142
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
4143
|
+
const poller = yield this.beginDelete(resourceGroupName, monitorName, configurationName, options);
|
4144
|
+
return poller.pollUntilDone();
|
4145
|
+
});
|
4146
|
+
}
|
4147
|
+
}
|
4148
|
+
// Operation Specifications
|
4149
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
4150
|
+
const listOperationSpec = {
|
4151
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions",
|
4152
|
+
httpMethod: "GET",
|
4153
|
+
responses: {
|
4154
|
+
200: {
|
4155
|
+
bodyMapper: MonitoredSubscriptionPropertiesList
|
4156
|
+
},
|
4157
|
+
default: {
|
4158
|
+
bodyMapper: ErrorResponse
|
4159
|
+
}
|
4160
|
+
},
|
4161
|
+
queryParameters: [apiVersion],
|
4162
|
+
urlParameters: [
|
4163
|
+
$host,
|
4164
|
+
subscriptionId,
|
4165
|
+
resourceGroupName,
|
4166
|
+
monitorName
|
4167
|
+
],
|
4168
|
+
headerParameters: [accept],
|
4169
|
+
serializer
|
4170
|
+
};
|
4171
|
+
const getOperationSpec = {
|
4172
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4173
|
+
httpMethod: "GET",
|
4174
|
+
responses: {
|
4175
|
+
200: {
|
4176
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4177
|
+
},
|
4178
|
+
default: {
|
4179
|
+
bodyMapper: ErrorResponse
|
4180
|
+
}
|
4181
|
+
},
|
4182
|
+
queryParameters: [apiVersion],
|
4183
|
+
urlParameters: [
|
4184
|
+
$host,
|
4185
|
+
subscriptionId,
|
4186
|
+
resourceGroupName,
|
4187
|
+
monitorName,
|
4188
|
+
configurationName
|
4189
|
+
],
|
4190
|
+
headerParameters: [accept],
|
4191
|
+
serializer
|
4192
|
+
};
|
4193
|
+
const createorUpdateOperationSpec = {
|
4194
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4195
|
+
httpMethod: "PUT",
|
4196
|
+
responses: {
|
4197
|
+
200: {
|
4198
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4199
|
+
},
|
4200
|
+
201: {
|
4201
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4202
|
+
},
|
4203
|
+
202: {
|
4204
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4205
|
+
},
|
4206
|
+
204: {
|
4207
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4208
|
+
},
|
4209
|
+
default: {
|
4210
|
+
bodyMapper: ErrorResponse
|
4211
|
+
}
|
4212
|
+
},
|
4213
|
+
requestBody: body6,
|
4214
|
+
queryParameters: [apiVersion],
|
4215
|
+
urlParameters: [
|
4216
|
+
$host,
|
4217
|
+
subscriptionId,
|
4218
|
+
resourceGroupName,
|
4219
|
+
monitorName,
|
4220
|
+
configurationName
|
4221
|
+
],
|
4222
|
+
headerParameters: [accept, contentType],
|
4223
|
+
mediaType: "json",
|
4224
|
+
serializer
|
4225
|
+
};
|
4226
|
+
const updateOperationSpec = {
|
4227
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4228
|
+
httpMethod: "PATCH",
|
4229
|
+
responses: {
|
4230
|
+
200: {
|
4231
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4232
|
+
},
|
4233
|
+
201: {
|
4234
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4235
|
+
},
|
4236
|
+
202: {
|
4237
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4238
|
+
},
|
4239
|
+
204: {
|
4240
|
+
bodyMapper: MonitoredSubscriptionProperties
|
4241
|
+
},
|
4242
|
+
default: {
|
4243
|
+
bodyMapper: ErrorResponse
|
4244
|
+
}
|
4245
|
+
},
|
4246
|
+
requestBody: body6,
|
4247
|
+
queryParameters: [apiVersion],
|
4248
|
+
urlParameters: [
|
4249
|
+
$host,
|
4250
|
+
subscriptionId,
|
4251
|
+
resourceGroupName,
|
4252
|
+
monitorName,
|
4253
|
+
configurationName
|
4254
|
+
],
|
4255
|
+
headerParameters: [accept, contentType],
|
4256
|
+
mediaType: "json",
|
4257
|
+
serializer
|
4258
|
+
};
|
4259
|
+
const deleteOperationSpec = {
|
4260
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4261
|
+
httpMethod: "DELETE",
|
4262
|
+
responses: {
|
4263
|
+
200: {},
|
4264
|
+
201: {},
|
4265
|
+
202: {},
|
4266
|
+
204: {},
|
4267
|
+
default: {
|
4268
|
+
bodyMapper: ErrorResponse
|
4269
|
+
}
|
4270
|
+
},
|
4271
|
+
queryParameters: [apiVersion],
|
4272
|
+
urlParameters: [
|
4273
|
+
$host,
|
4274
|
+
subscriptionId,
|
4275
|
+
resourceGroupName,
|
4276
|
+
monitorName,
|
4277
|
+
configurationName
|
4278
|
+
],
|
4279
|
+
headerParameters: [accept],
|
3586
4280
|
serializer
|
3587
4281
|
};
|
3588
4282
|
|
@@ -3616,7 +4310,7 @@ class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
|
|
3616
4310
|
requestContentType: "application/json; charset=utf-8",
|
3617
4311
|
credential: credentials
|
3618
4312
|
};
|
3619
|
-
const packageDetails = `azsdk-js-arm-datadog/3.0
|
4313
|
+
const packageDetails = `azsdk-js-arm-datadog/3.1.0`;
|
3620
4314
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
3621
4315
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
3622
4316
|
: `${packageDetails}`;
|
@@ -3649,12 +4343,14 @@ class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
|
|
3649
4343
|
this.subscriptionId = subscriptionId;
|
3650
4344
|
// Assigning values to Constant parameters
|
3651
4345
|
this.$host = options.$host || "https://management.azure.com";
|
3652
|
-
this.apiVersion = options.apiVersion || "
|
4346
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
3653
4347
|
this.marketplaceAgreements = new MarketplaceAgreementsImpl(this);
|
4348
|
+
this.creationSupported = new CreationSupportedImpl(this);
|
3654
4349
|
this.monitors = new MonitorsImpl(this);
|
3655
4350
|
this.operations = new OperationsImpl(this);
|
3656
4351
|
this.tagRules = new TagRulesImpl(this);
|
3657
4352
|
this.singleSignOnConfigurations = new SingleSignOnConfigurationsImpl(this);
|
4353
|
+
this.monitoredSubscriptions = new MonitoredSubscriptionsImpl(this);
|
3658
4354
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
3659
4355
|
}
|
3660
4356
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|