@azure/arm-datadog 3.0.1-alpha.20220411.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -7
- package/README.md +11 -0
- package/dist/index.js +129 -66
- 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/marketplaceAgreementsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js +29 -0
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js +43 -0
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateSample.js +31 -0
- package/dist-esm/samples-dev/monitorsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js +31 -0
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +31 -0
- package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListApiKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListApiKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListApiKeysSample.js +45 -0
- package/dist-esm/samples-dev/monitorsListApiKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.js +45 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js +45 -0
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +45 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListSample.js +43 -0
- package/dist-esm/samples-dev/monitorsListSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js +31 -0
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js +31 -0
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.js +31 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js +32 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js +32 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js +45 -0
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +32 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesGetSample.js +32 -0
- package/dist-esm/samples-dev/tagRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesListSample.js +45 -0
- package/dist-esm/samples-dev/tagRulesListSample.js.map +1 -0
- package/dist-esm/src/microsoftDatadogClient.d.ts.map +1 -1
- package/dist-esm/src/microsoftDatadogClient.js +20 -2
- package/dist-esm/src/microsoftDatadogClient.js.map +1 -1
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +9 -3
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/singleSignOnConfigurations.d.ts.map +1 -1
- package/dist-esm/src/operations/singleSignOnConfigurations.js +3 -1
- package/dist-esm/src/operations/singleSignOnConfigurations.js.map +1 -1
- package/package.json +26 -10
- package/rollup.config.js +6 -72
- package/src/microsoftDatadogClient.ts +27 -2
- package/src/operations/monitors.ts +9 -3
- package/src/operations/singleSignOnConfigurations.ts +3 -1
- package/tsconfig.json +19 -5
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
@@ -16,6 +16,8 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|
16
16
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
18
18
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
20
|
+
|
19
21
|
### Prerequisites
|
20
22
|
|
21
23
|
- An [Azure subscription][azure_sub].
|
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|
49
51
|
```javascript
|
50
52
|
const { MicrosoftDatadogClient } = require("@azure/arm-datadog");
|
51
53
|
const { DefaultAzureCredential } = require("@azure/identity");
|
54
|
+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
55
|
+
|
52
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
53
57
|
const client = new MicrosoftDatadogClient(new DefaultAzureCredential(), subscriptionId);
|
58
|
+
|
59
|
+
// For client-side applications running in the browser, use this code instead:
|
60
|
+
// const credential = new InteractiveBrowserCredential({
|
61
|
+
// tenantId: "<YOUR_TENANT_ID>",
|
62
|
+
// clientId: "<YOUR_CLIENT_ID>"
|
63
|
+
// });
|
64
|
+
// const client = new MicrosoftDatadogClient(credential, subscriptionId);
|
54
65
|
```
|
55
66
|
|
56
67
|
|
package/dist/index.js
CHANGED
@@ -3,9 +3,31 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
6
7
|
var tslib = require('tslib');
|
7
8
|
var coreLro = require('@azure/core-lro');
|
8
9
|
|
10
|
+
function _interopNamespace(e) {
|
11
|
+
if (e && e.__esModule) return e;
|
12
|
+
var n = Object.create(null);
|
13
|
+
if (e) {
|
14
|
+
Object.keys(e).forEach(function (k) {
|
15
|
+
if (k !== 'default') {
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
18
|
+
enumerable: true,
|
19
|
+
get: function () { return e[k]; }
|
20
|
+
});
|
21
|
+
}
|
22
|
+
});
|
23
|
+
}
|
24
|
+
n["default"] = e;
|
25
|
+
return Object.freeze(n);
|
26
|
+
}
|
27
|
+
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
30
|
+
|
9
31
|
/*
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
11
33
|
* Licensed under the MIT License.
|
@@ -13,12 +35,16 @@ var coreLro = require('@azure/core-lro');
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
15
37
|
*/
|
38
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
39
|
+
exports.KnownCreatedByType = void 0;
|
16
40
|
(function (KnownCreatedByType) {
|
17
41
|
KnownCreatedByType["User"] = "User";
|
18
42
|
KnownCreatedByType["Application"] = "Application";
|
19
43
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
20
44
|
KnownCreatedByType["Key"] = "Key";
|
21
45
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
46
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
47
|
+
exports.KnownProvisioningState = void 0;
|
22
48
|
(function (KnownProvisioningState) {
|
23
49
|
KnownProvisioningState["Accepted"] = "Accepted";
|
24
50
|
KnownProvisioningState["Creating"] = "Creating";
|
@@ -30,28 +56,40 @@ var coreLro = require('@azure/core-lro');
|
|
30
56
|
KnownProvisioningState["Deleted"] = "Deleted";
|
31
57
|
KnownProvisioningState["NotSpecified"] = "NotSpecified";
|
32
58
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
59
|
+
/** Known values of {@link MonitoringStatus} that the service accepts. */
|
60
|
+
exports.KnownMonitoringStatus = void 0;
|
33
61
|
(function (KnownMonitoringStatus) {
|
34
62
|
KnownMonitoringStatus["Enabled"] = "Enabled";
|
35
63
|
KnownMonitoringStatus["Disabled"] = "Disabled";
|
36
64
|
})(exports.KnownMonitoringStatus || (exports.KnownMonitoringStatus = {}));
|
65
|
+
/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
|
66
|
+
exports.KnownMarketplaceSubscriptionStatus = void 0;
|
37
67
|
(function (KnownMarketplaceSubscriptionStatus) {
|
38
68
|
KnownMarketplaceSubscriptionStatus["Provisioning"] = "Provisioning";
|
39
69
|
KnownMarketplaceSubscriptionStatus["Active"] = "Active";
|
40
70
|
KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
|
41
71
|
KnownMarketplaceSubscriptionStatus["Unsubscribed"] = "Unsubscribed";
|
42
72
|
})(exports.KnownMarketplaceSubscriptionStatus || (exports.KnownMarketplaceSubscriptionStatus = {}));
|
73
|
+
/** Known values of {@link LiftrResourceCategories} that the service accepts. */
|
74
|
+
exports.KnownLiftrResourceCategories = void 0;
|
43
75
|
(function (KnownLiftrResourceCategories) {
|
44
76
|
KnownLiftrResourceCategories["Unknown"] = "Unknown";
|
45
77
|
KnownLiftrResourceCategories["MonitorLogs"] = "MonitorLogs";
|
46
78
|
})(exports.KnownLiftrResourceCategories || (exports.KnownLiftrResourceCategories = {}));
|
79
|
+
/** Known values of {@link ManagedIdentityTypes} that the service accepts. */
|
80
|
+
exports.KnownManagedIdentityTypes = void 0;
|
47
81
|
(function (KnownManagedIdentityTypes) {
|
48
82
|
KnownManagedIdentityTypes["SystemAssigned"] = "SystemAssigned";
|
49
83
|
KnownManagedIdentityTypes["UserAssigned"] = "UserAssigned";
|
50
84
|
})(exports.KnownManagedIdentityTypes || (exports.KnownManagedIdentityTypes = {}));
|
85
|
+
/** Known values of {@link TagAction} that the service accepts. */
|
86
|
+
exports.KnownTagAction = void 0;
|
51
87
|
(function (KnownTagAction) {
|
52
88
|
KnownTagAction["Include"] = "Include";
|
53
89
|
KnownTagAction["Exclude"] = "Exclude";
|
54
90
|
})(exports.KnownTagAction || (exports.KnownTagAction = {}));
|
91
|
+
/** Known values of {@link SingleSignOnStates} that the service accepts. */
|
92
|
+
exports.KnownSingleSignOnStates = void 0;
|
55
93
|
(function (KnownSingleSignOnStates) {
|
56
94
|
KnownSingleSignOnStates["Initial"] = "Initial";
|
57
95
|
KnownSingleSignOnStates["Enable"] = "Enable";
|
@@ -1605,14 +1643,14 @@ class MarketplaceAgreementsImpl {
|
|
1605
1643
|
* @param options The options parameters.
|
1606
1644
|
*/
|
1607
1645
|
_list(options) {
|
1608
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
1646
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
1609
1647
|
}
|
1610
1648
|
/**
|
1611
1649
|
* Create Datadog marketplace agreement in the subscription.
|
1612
1650
|
* @param options The options parameters.
|
1613
1651
|
*/
|
1614
1652
|
createOrUpdate(options) {
|
1615
|
-
return this.client.sendOperationRequest({ options }, createOrUpdateOperationSpec);
|
1653
|
+
return this.client.sendOperationRequest({ options }, createOrUpdateOperationSpec$2);
|
1616
1654
|
}
|
1617
1655
|
/**
|
1618
1656
|
* ListNext
|
@@ -1620,12 +1658,12 @@ class MarketplaceAgreementsImpl {
|
|
1620
1658
|
* @param options The options parameters.
|
1621
1659
|
*/
|
1622
1660
|
_listNext(nextLink, options) {
|
1623
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
1661
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
1624
1662
|
}
|
1625
1663
|
}
|
1626
1664
|
// Operation Specifications
|
1627
|
-
const serializer =
|
1628
|
-
const listOperationSpec = {
|
1665
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1666
|
+
const listOperationSpec$4 = {
|
1629
1667
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements",
|
1630
1668
|
httpMethod: "GET",
|
1631
1669
|
responses: {
|
@@ -1639,9 +1677,9 @@ const listOperationSpec = {
|
|
1639
1677
|
queryParameters: [apiVersion],
|
1640
1678
|
urlParameters: [$host, subscriptionId],
|
1641
1679
|
headerParameters: [accept],
|
1642
|
-
serializer
|
1680
|
+
serializer: serializer$4
|
1643
1681
|
};
|
1644
|
-
const createOrUpdateOperationSpec = {
|
1682
|
+
const createOrUpdateOperationSpec$2 = {
|
1645
1683
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default",
|
1646
1684
|
httpMethod: "PUT",
|
1647
1685
|
responses: {
|
@@ -1657,9 +1695,9 @@ const createOrUpdateOperationSpec = {
|
|
1657
1695
|
urlParameters: [$host, subscriptionId],
|
1658
1696
|
headerParameters: [accept, contentType],
|
1659
1697
|
mediaType: "json",
|
1660
|
-
serializer
|
1698
|
+
serializer: serializer$4
|
1661
1699
|
};
|
1662
|
-
const listNextOperationSpec = {
|
1700
|
+
const listNextOperationSpec$4 = {
|
1663
1701
|
path: "{nextLink}",
|
1664
1702
|
httpMethod: "GET",
|
1665
1703
|
responses: {
|
@@ -1677,7 +1715,7 @@ const listNextOperationSpec = {
|
|
1677
1715
|
nextLink
|
1678
1716
|
],
|
1679
1717
|
headerParameters: [accept],
|
1680
|
-
serializer
|
1718
|
+
serializer: serializer$4
|
1681
1719
|
};
|
1682
1720
|
|
1683
1721
|
/*
|
@@ -2081,7 +2119,7 @@ class MonitorsImpl {
|
|
2081
2119
|
* @param options The options parameters.
|
2082
2120
|
*/
|
2083
2121
|
_list(options) {
|
2084
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
2122
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
2085
2123
|
}
|
2086
2124
|
/**
|
2087
2125
|
* List all monitors under the specified resource group.
|
@@ -2098,7 +2136,7 @@ class MonitorsImpl {
|
|
2098
2136
|
* @param options The options parameters.
|
2099
2137
|
*/
|
2100
2138
|
get(resourceGroupName, monitorName, options) {
|
2101
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec);
|
2139
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec$2);
|
2102
2140
|
}
|
2103
2141
|
/**
|
2104
2142
|
* Create a monitor resource.
|
@@ -2131,11 +2169,13 @@ class MonitorsImpl {
|
|
2131
2169
|
};
|
2132
2170
|
});
|
2133
2171
|
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, createOperationSpec);
|
2134
|
-
|
2172
|
+
const poller = new coreLro.LroEngine(lro, {
|
2135
2173
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2136
2174
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
2137
2175
|
lroResourceLocationConfig: "azure-async-operation"
|
2138
2176
|
});
|
2177
|
+
yield poller.poll();
|
2178
|
+
return poller;
|
2139
2179
|
});
|
2140
2180
|
}
|
2141
2181
|
/**
|
@@ -2181,10 +2221,12 @@ class MonitorsImpl {
|
|
2181
2221
|
};
|
2182
2222
|
});
|
2183
2223
|
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, updateOperationSpec);
|
2184
|
-
|
2224
|
+
const poller = new coreLro.LroEngine(lro, {
|
2185
2225
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2186
2226
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2187
2227
|
});
|
2228
|
+
yield poller.poll();
|
2229
|
+
return poller;
|
2188
2230
|
});
|
2189
2231
|
}
|
2190
2232
|
/**
|
@@ -2230,10 +2272,12 @@ class MonitorsImpl {
|
|
2230
2272
|
};
|
2231
2273
|
});
|
2232
2274
|
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, deleteOperationSpec);
|
2233
|
-
|
2275
|
+
const poller = new coreLro.LroEngine(lro, {
|
2234
2276
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2235
2277
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2236
2278
|
});
|
2279
|
+
yield poller.poll();
|
2280
|
+
return poller;
|
2237
2281
|
});
|
2238
2282
|
}
|
2239
2283
|
/**
|
@@ -2303,7 +2347,7 @@ class MonitorsImpl {
|
|
2303
2347
|
* @param options The options parameters.
|
2304
2348
|
*/
|
2305
2349
|
_listNext(nextLink, options) {
|
2306
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
2350
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
2307
2351
|
}
|
2308
2352
|
/**
|
2309
2353
|
* ListByResourceGroupNext
|
@@ -2316,7 +2360,7 @@ class MonitorsImpl {
|
|
2316
2360
|
}
|
2317
2361
|
}
|
2318
2362
|
// Operation Specifications
|
2319
|
-
const serializer$
|
2363
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2320
2364
|
const listApiKeysOperationSpec = {
|
2321
2365
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys",
|
2322
2366
|
httpMethod: "POST",
|
@@ -2336,7 +2380,7 @@ const listApiKeysOperationSpec = {
|
|
2336
2380
|
monitorName
|
2337
2381
|
],
|
2338
2382
|
headerParameters: [accept],
|
2339
|
-
serializer: serializer$
|
2383
|
+
serializer: serializer$3
|
2340
2384
|
};
|
2341
2385
|
const getDefaultKeyOperationSpec = {
|
2342
2386
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey",
|
@@ -2357,7 +2401,7 @@ const getDefaultKeyOperationSpec = {
|
|
2357
2401
|
monitorName
|
2358
2402
|
],
|
2359
2403
|
headerParameters: [accept],
|
2360
|
-
serializer: serializer$
|
2404
|
+
serializer: serializer$3
|
2361
2405
|
};
|
2362
2406
|
const setDefaultKeyOperationSpec = {
|
2363
2407
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey",
|
@@ -2378,7 +2422,7 @@ const setDefaultKeyOperationSpec = {
|
|
2378
2422
|
],
|
2379
2423
|
headerParameters: [accept, contentType],
|
2380
2424
|
mediaType: "json",
|
2381
|
-
serializer: serializer$
|
2425
|
+
serializer: serializer$3
|
2382
2426
|
};
|
2383
2427
|
const listHostsOperationSpec = {
|
2384
2428
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts",
|
@@ -2399,7 +2443,7 @@ const listHostsOperationSpec = {
|
|
2399
2443
|
monitorName
|
2400
2444
|
],
|
2401
2445
|
headerParameters: [accept],
|
2402
|
-
serializer: serializer$
|
2446
|
+
serializer: serializer$3
|
2403
2447
|
};
|
2404
2448
|
const listLinkedResourcesOperationSpec = {
|
2405
2449
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources",
|
@@ -2420,7 +2464,7 @@ const listLinkedResourcesOperationSpec = {
|
|
2420
2464
|
monitorName
|
2421
2465
|
],
|
2422
2466
|
headerParameters: [accept],
|
2423
|
-
serializer: serializer$
|
2467
|
+
serializer: serializer$3
|
2424
2468
|
};
|
2425
2469
|
const listMonitoredResourcesOperationSpec = {
|
2426
2470
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources",
|
@@ -2441,9 +2485,9 @@ const listMonitoredResourcesOperationSpec = {
|
|
2441
2485
|
monitorName
|
2442
2486
|
],
|
2443
2487
|
headerParameters: [accept],
|
2444
|
-
serializer: serializer$
|
2488
|
+
serializer: serializer$3
|
2445
2489
|
};
|
2446
|
-
const listOperationSpec$
|
2490
|
+
const listOperationSpec$3 = {
|
2447
2491
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors",
|
2448
2492
|
httpMethod: "GET",
|
2449
2493
|
responses: {
|
@@ -2457,7 +2501,7 @@ const listOperationSpec$1 = {
|
|
2457
2501
|
queryParameters: [apiVersion],
|
2458
2502
|
urlParameters: [$host, subscriptionId],
|
2459
2503
|
headerParameters: [accept],
|
2460
|
-
serializer: serializer$
|
2504
|
+
serializer: serializer$3
|
2461
2505
|
};
|
2462
2506
|
const listByResourceGroupOperationSpec = {
|
2463
2507
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors",
|
@@ -2477,9 +2521,9 @@ const listByResourceGroupOperationSpec = {
|
|
2477
2521
|
resourceGroupName
|
2478
2522
|
],
|
2479
2523
|
headerParameters: [accept],
|
2480
|
-
serializer: serializer$
|
2524
|
+
serializer: serializer$3
|
2481
2525
|
};
|
2482
|
-
const getOperationSpec = {
|
2526
|
+
const getOperationSpec$2 = {
|
2483
2527
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
2484
2528
|
httpMethod: "GET",
|
2485
2529
|
responses: {
|
@@ -2498,7 +2542,7 @@ const getOperationSpec = {
|
|
2498
2542
|
monitorName
|
2499
2543
|
],
|
2500
2544
|
headerParameters: [accept],
|
2501
|
-
serializer: serializer$
|
2545
|
+
serializer: serializer$3
|
2502
2546
|
};
|
2503
2547
|
const createOperationSpec = {
|
2504
2548
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
@@ -2530,7 +2574,7 @@ const createOperationSpec = {
|
|
2530
2574
|
],
|
2531
2575
|
headerParameters: [accept, contentType],
|
2532
2576
|
mediaType: "json",
|
2533
|
-
serializer: serializer$
|
2577
|
+
serializer: serializer$3
|
2534
2578
|
};
|
2535
2579
|
const updateOperationSpec = {
|
2536
2580
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
@@ -2562,7 +2606,7 @@ const updateOperationSpec = {
|
|
2562
2606
|
],
|
2563
2607
|
headerParameters: [accept, contentType],
|
2564
2608
|
mediaType: "json",
|
2565
|
-
serializer: serializer$
|
2609
|
+
serializer: serializer$3
|
2566
2610
|
};
|
2567
2611
|
const deleteOperationSpec = {
|
2568
2612
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
@@ -2584,7 +2628,7 @@ const deleteOperationSpec = {
|
|
2584
2628
|
monitorName
|
2585
2629
|
],
|
2586
2630
|
headerParameters: [accept],
|
2587
|
-
serializer: serializer$
|
2631
|
+
serializer: serializer$3
|
2588
2632
|
};
|
2589
2633
|
const refreshSetPasswordLinkOperationSpec = {
|
2590
2634
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink",
|
@@ -2605,7 +2649,7 @@ const refreshSetPasswordLinkOperationSpec = {
|
|
2605
2649
|
monitorName
|
2606
2650
|
],
|
2607
2651
|
headerParameters: [accept],
|
2608
|
-
serializer: serializer$
|
2652
|
+
serializer: serializer$3
|
2609
2653
|
};
|
2610
2654
|
const listApiKeysNextOperationSpec = {
|
2611
2655
|
path: "{nextLink}",
|
@@ -2627,7 +2671,7 @@ const listApiKeysNextOperationSpec = {
|
|
2627
2671
|
monitorName
|
2628
2672
|
],
|
2629
2673
|
headerParameters: [accept],
|
2630
|
-
serializer: serializer$
|
2674
|
+
serializer: serializer$3
|
2631
2675
|
};
|
2632
2676
|
const listHostsNextOperationSpec = {
|
2633
2677
|
path: "{nextLink}",
|
@@ -2649,7 +2693,7 @@ const listHostsNextOperationSpec = {
|
|
2649
2693
|
monitorName
|
2650
2694
|
],
|
2651
2695
|
headerParameters: [accept],
|
2652
|
-
serializer: serializer$
|
2696
|
+
serializer: serializer$3
|
2653
2697
|
};
|
2654
2698
|
const listLinkedResourcesNextOperationSpec = {
|
2655
2699
|
path: "{nextLink}",
|
@@ -2671,7 +2715,7 @@ const listLinkedResourcesNextOperationSpec = {
|
|
2671
2715
|
monitorName
|
2672
2716
|
],
|
2673
2717
|
headerParameters: [accept],
|
2674
|
-
serializer: serializer$
|
2718
|
+
serializer: serializer$3
|
2675
2719
|
};
|
2676
2720
|
const listMonitoredResourcesNextOperationSpec = {
|
2677
2721
|
path: "{nextLink}",
|
@@ -2693,9 +2737,9 @@ const listMonitoredResourcesNextOperationSpec = {
|
|
2693
2737
|
monitorName
|
2694
2738
|
],
|
2695
2739
|
headerParameters: [accept],
|
2696
|
-
serializer: serializer$
|
2740
|
+
serializer: serializer$3
|
2697
2741
|
};
|
2698
|
-
const listNextOperationSpec$
|
2742
|
+
const listNextOperationSpec$3 = {
|
2699
2743
|
path: "{nextLink}",
|
2700
2744
|
httpMethod: "GET",
|
2701
2745
|
responses: {
|
@@ -2713,7 +2757,7 @@ const listNextOperationSpec$1 = {
|
|
2713
2757
|
nextLink
|
2714
2758
|
],
|
2715
2759
|
headerParameters: [accept],
|
2716
|
-
serializer: serializer$
|
2760
|
+
serializer: serializer$3
|
2717
2761
|
};
|
2718
2762
|
const listByResourceGroupNextOperationSpec = {
|
2719
2763
|
path: "{nextLink}",
|
@@ -2734,7 +2778,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
2734
2778
|
resourceGroupName
|
2735
2779
|
],
|
2736
2780
|
headerParameters: [accept],
|
2737
|
-
serializer: serializer$
|
2781
|
+
serializer: serializer$3
|
2738
2782
|
};
|
2739
2783
|
|
2740
2784
|
/*
|
@@ -2819,7 +2863,7 @@ class OperationsImpl {
|
|
2819
2863
|
}
|
2820
2864
|
}
|
2821
2865
|
// Operation Specifications
|
2822
|
-
const serializer$2 =
|
2866
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2823
2867
|
const listOperationSpec$2 = {
|
2824
2868
|
path: "/providers/Microsoft.Datadog/operations",
|
2825
2869
|
httpMethod: "GET",
|
@@ -2927,7 +2971,7 @@ class TagRulesImpl {
|
|
2927
2971
|
* @param options The options parameters.
|
2928
2972
|
*/
|
2929
2973
|
_list(resourceGroupName, monitorName, options) {
|
2930
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$
|
2974
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$1);
|
2931
2975
|
}
|
2932
2976
|
/**
|
2933
2977
|
* Create or update a tag rule set for a given monitor resource.
|
@@ -2957,12 +3001,12 @@ class TagRulesImpl {
|
|
2957
3001
|
* @param options The options parameters.
|
2958
3002
|
*/
|
2959
3003
|
_listNext(resourceGroupName, monitorName, nextLink, options) {
|
2960
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec$
|
3004
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec$1);
|
2961
3005
|
}
|
2962
3006
|
}
|
2963
3007
|
// Operation Specifications
|
2964
|
-
const serializer$
|
2965
|
-
const listOperationSpec$
|
3008
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3009
|
+
const listOperationSpec$1 = {
|
2966
3010
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules",
|
2967
3011
|
httpMethod: "GET",
|
2968
3012
|
responses: {
|
@@ -2981,7 +3025,7 @@ const listOperationSpec$3 = {
|
|
2981
3025
|
monitorName
|
2982
3026
|
],
|
2983
3027
|
headerParameters: [accept],
|
2984
|
-
serializer: serializer$
|
3028
|
+
serializer: serializer$1
|
2985
3029
|
};
|
2986
3030
|
const createOrUpdateOperationSpec$1 = {
|
2987
3031
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}",
|
@@ -3005,7 +3049,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
3005
3049
|
],
|
3006
3050
|
headerParameters: [accept, contentType],
|
3007
3051
|
mediaType: "json",
|
3008
|
-
serializer: serializer$
|
3052
|
+
serializer: serializer$1
|
3009
3053
|
};
|
3010
3054
|
const getOperationSpec$1 = {
|
3011
3055
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}",
|
@@ -3027,9 +3071,9 @@ const getOperationSpec$1 = {
|
|
3027
3071
|
ruleSetName
|
3028
3072
|
],
|
3029
3073
|
headerParameters: [accept],
|
3030
|
-
serializer: serializer$
|
3074
|
+
serializer: serializer$1
|
3031
3075
|
};
|
3032
|
-
const listNextOperationSpec$
|
3076
|
+
const listNextOperationSpec$1 = {
|
3033
3077
|
path: "{nextLink}",
|
3034
3078
|
httpMethod: "GET",
|
3035
3079
|
responses: {
|
@@ -3049,7 +3093,7 @@ const listNextOperationSpec$3 = {
|
|
3049
3093
|
monitorName
|
3050
3094
|
],
|
3051
3095
|
headerParameters: [accept],
|
3052
|
-
serializer: serializer$
|
3096
|
+
serializer: serializer$1
|
3053
3097
|
};
|
3054
3098
|
|
3055
3099
|
/*
|
@@ -3126,7 +3170,7 @@ class SingleSignOnConfigurationsImpl {
|
|
3126
3170
|
* @param options The options parameters.
|
3127
3171
|
*/
|
3128
3172
|
_list(resourceGroupName, monitorName, options) {
|
3129
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec
|
3173
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec);
|
3130
3174
|
}
|
3131
3175
|
/**
|
3132
3176
|
* Configures single-sign-on for this resource.
|
@@ -3159,12 +3203,14 @@ class SingleSignOnConfigurationsImpl {
|
|
3159
3203
|
}
|
3160
3204
|
};
|
3161
3205
|
});
|
3162
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, configurationName, options }, createOrUpdateOperationSpec
|
3163
|
-
|
3206
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, configurationName, options }, createOrUpdateOperationSpec);
|
3207
|
+
const poller = new coreLro.LroEngine(lro, {
|
3164
3208
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
3165
3209
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
3166
3210
|
lroResourceLocationConfig: "azure-async-operation"
|
3167
3211
|
});
|
3212
|
+
yield poller.poll();
|
3213
|
+
return poller;
|
3168
3214
|
});
|
3169
3215
|
}
|
3170
3216
|
/**
|
@@ -3188,7 +3234,7 @@ class SingleSignOnConfigurationsImpl {
|
|
3188
3234
|
* @param options The options parameters.
|
3189
3235
|
*/
|
3190
3236
|
get(resourceGroupName, monitorName, configurationName, options) {
|
3191
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec
|
3237
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec);
|
3192
3238
|
}
|
3193
3239
|
/**
|
3194
3240
|
* ListNext
|
@@ -3198,12 +3244,12 @@ class SingleSignOnConfigurationsImpl {
|
|
3198
3244
|
* @param options The options parameters.
|
3199
3245
|
*/
|
3200
3246
|
_listNext(resourceGroupName, monitorName, nextLink, options) {
|
3201
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec
|
3247
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec);
|
3202
3248
|
}
|
3203
3249
|
}
|
3204
3250
|
// Operation Specifications
|
3205
|
-
const serializer
|
3206
|
-
const listOperationSpec
|
3251
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3252
|
+
const listOperationSpec = {
|
3207
3253
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations",
|
3208
3254
|
httpMethod: "GET",
|
3209
3255
|
responses: {
|
@@ -3222,9 +3268,9 @@ const listOperationSpec$4 = {
|
|
3222
3268
|
monitorName
|
3223
3269
|
],
|
3224
3270
|
headerParameters: [accept],
|
3225
|
-
serializer
|
3271
|
+
serializer
|
3226
3272
|
};
|
3227
|
-
const createOrUpdateOperationSpec
|
3273
|
+
const createOrUpdateOperationSpec = {
|
3228
3274
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
3229
3275
|
httpMethod: "PUT",
|
3230
3276
|
responses: {
|
@@ -3255,9 +3301,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
3255
3301
|
],
|
3256
3302
|
headerParameters: [accept, contentType],
|
3257
3303
|
mediaType: "json",
|
3258
|
-
serializer
|
3304
|
+
serializer
|
3259
3305
|
};
|
3260
|
-
const getOperationSpec
|
3306
|
+
const getOperationSpec = {
|
3261
3307
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
3262
3308
|
httpMethod: "GET",
|
3263
3309
|
responses: {
|
@@ -3277,9 +3323,9 @@ const getOperationSpec$2 = {
|
|
3277
3323
|
configurationName
|
3278
3324
|
],
|
3279
3325
|
headerParameters: [accept],
|
3280
|
-
serializer
|
3326
|
+
serializer
|
3281
3327
|
};
|
3282
|
-
const listNextOperationSpec
|
3328
|
+
const listNextOperationSpec = {
|
3283
3329
|
path: "{nextLink}",
|
3284
3330
|
httpMethod: "GET",
|
3285
3331
|
responses: {
|
@@ -3299,7 +3345,7 @@ const listNextOperationSpec$4 = {
|
|
3299
3345
|
monitorName
|
3300
3346
|
],
|
3301
3347
|
headerParameters: [accept],
|
3302
|
-
serializer
|
3348
|
+
serializer
|
3303
3349
|
};
|
3304
3350
|
|
3305
3351
|
/*
|
@@ -3309,7 +3355,7 @@ const listNextOperationSpec$4 = {
|
|
3309
3355
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3310
3356
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3311
3357
|
*/
|
3312
|
-
class MicrosoftDatadogClient extends
|
3358
|
+
class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
|
3313
3359
|
/**
|
3314
3360
|
* Initializes a new instance of the MicrosoftDatadogClient class.
|
3315
3361
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
@@ -3317,6 +3363,7 @@ class MicrosoftDatadogClient extends coreClient.ServiceClient {
|
|
3317
3363
|
* @param options The parameter options
|
3318
3364
|
*/
|
3319
3365
|
constructor(credentials, subscriptionId, options) {
|
3366
|
+
var _a, _b;
|
3320
3367
|
if (credentials === undefined) {
|
3321
3368
|
throw new Error("'credentials' cannot be null");
|
3322
3369
|
}
|
@@ -3331,7 +3378,7 @@ class MicrosoftDatadogClient extends coreClient.ServiceClient {
|
|
3331
3378
|
requestContentType: "application/json; charset=utf-8",
|
3332
3379
|
credential: credentials
|
3333
3380
|
};
|
3334
|
-
const packageDetails = `azsdk-js-arm-datadog/3.0.
|
3381
|
+
const packageDetails = `azsdk-js-arm-datadog/3.0.1`;
|
3335
3382
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
3336
3383
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
3337
3384
|
: `${packageDetails}`;
|
@@ -3340,8 +3387,24 @@ class MicrosoftDatadogClient extends coreClient.ServiceClient {
|
|
3340
3387
|
}
|
3341
3388
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
3342
3389
|
userAgentPrefix
|
3343
|
-
}, baseUri: options.endpoint
|
3390
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
3344
3391
|
super(optionsWithDefaults);
|
3392
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
3393
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
3394
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
3395
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
3396
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
3397
|
+
this.pipeline.removePolicy({
|
3398
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
3399
|
+
});
|
3400
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
3401
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
3402
|
+
challengeCallbacks: {
|
3403
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
3404
|
+
}
|
3405
|
+
}));
|
3406
|
+
}
|
3407
|
+
}
|
3345
3408
|
// Parameter assignments
|
3346
3409
|
this.subscriptionId = subscriptionId;
|
3347
3410
|
// Assigning values to Constant parameters
|