@azure/arm-advisor 3.0.1-alpha.20220208.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/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +78 -43
- 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/configurationsCreateInResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.js +51 -0
- package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.js +50 -0
- package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/configurationsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/configurationsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/recommendationMetadataGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/recommendationMetadataGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recommendationMetadataGetSample.js +30 -0
- package/dist-esm/samples-dev/recommendationMetadataGetSample.js.map +1 -0
- package/dist-esm/samples-dev/recommendationMetadataListSample.d.ts +2 -0
- package/dist-esm/samples-dev/recommendationMetadataListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recommendationMetadataListSample.js +43 -0
- package/dist-esm/samples-dev/recommendationMetadataListSample.js.map +1 -0
- package/dist-esm/samples-dev/recommendationsGenerateSample.d.ts +2 -0
- package/dist-esm/samples-dev/recommendationsGenerateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recommendationsGenerateSample.js +29 -0
- package/dist-esm/samples-dev/recommendationsGenerateSample.js.map +1 -0
- package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.js +30 -0
- package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/recommendationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/recommendationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recommendationsGetSample.js +31 -0
- package/dist-esm/samples-dev/recommendationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/recommendationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/recommendationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recommendationsListSample.js +45 -0
- package/dist-esm/samples-dev/recommendationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/suppressionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/suppressionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/suppressionsCreateSample.js +33 -0
- package/dist-esm/samples-dev/suppressionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/suppressionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/suppressionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/suppressionsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/suppressionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/suppressionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/suppressionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/suppressionsGetSample.js +32 -0
- package/dist-esm/samples-dev/suppressionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/suppressionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/suppressionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/suppressionsListSample.js +43 -0
- package/dist-esm/samples-dev/suppressionsListSample.js.map +1 -0
- package/dist-esm/src/advisorManagementClient.d.ts.map +1 -1
- package/dist-esm/src/advisorManagementClient.js +3 -2
- package/dist-esm/src/advisorManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.d.ts +1 -3
- package/dist-esm/test/sampleTest.d.ts.map +1 -1
- package/dist-esm/test/sampleTest.js +1 -4
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +24 -8
- package/rollup.config.js +6 -72
- package/src/advisorManagementClient.ts +3 -2
- package/tsconfig.json +19 -5
package/CHANGELOG.md
CHANGED
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ REST APIs for Azure Advisor
|
|
|
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 { AdvisorManagementClient } = require("@azure/arm-advisor");
|
|
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 AdvisorManagementClient(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 AdvisorManagementClient(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
27
|
+
|
|
8
28
|
/*
|
|
9
29
|
* Copyright (c) Microsoft Corporation.
|
|
10
30
|
* Licensed under the MIT License.
|
|
@@ -12,15 +32,21 @@ var tslib = require('tslib');
|
|
|
12
32
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
33
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
34
|
*/
|
|
35
|
+
/** Known values of {@link Scenario} that the service accepts. */
|
|
36
|
+
exports.KnownScenario = void 0;
|
|
15
37
|
(function (KnownScenario) {
|
|
16
38
|
KnownScenario["Alerts"] = "Alerts";
|
|
17
39
|
})(exports.KnownScenario || (exports.KnownScenario = {}));
|
|
40
|
+
/** Known values of {@link CpuThreshold} that the service accepts. */
|
|
41
|
+
exports.KnownCpuThreshold = void 0;
|
|
18
42
|
(function (KnownCpuThreshold) {
|
|
19
43
|
KnownCpuThreshold["Five"] = "5";
|
|
20
44
|
KnownCpuThreshold["Ten"] = "10";
|
|
21
45
|
KnownCpuThreshold["Fifteen"] = "15";
|
|
22
46
|
KnownCpuThreshold["Twenty"] = "20";
|
|
23
47
|
})(exports.KnownCpuThreshold || (exports.KnownCpuThreshold = {}));
|
|
48
|
+
/** Known values of {@link Category} that the service accepts. */
|
|
49
|
+
exports.KnownCategory = void 0;
|
|
24
50
|
(function (KnownCategory) {
|
|
25
51
|
KnownCategory["HighAvailability"] = "HighAvailability";
|
|
26
52
|
KnownCategory["Security"] = "Security";
|
|
@@ -28,18 +54,26 @@ var tslib = require('tslib');
|
|
|
28
54
|
KnownCategory["Cost"] = "Cost";
|
|
29
55
|
KnownCategory["OperationalExcellence"] = "OperationalExcellence";
|
|
30
56
|
})(exports.KnownCategory || (exports.KnownCategory = {}));
|
|
57
|
+
/** Known values of {@link DigestConfigState} that the service accepts. */
|
|
58
|
+
exports.KnownDigestConfigState = void 0;
|
|
31
59
|
(function (KnownDigestConfigState) {
|
|
32
60
|
KnownDigestConfigState["Active"] = "Active";
|
|
33
61
|
KnownDigestConfigState["Disabled"] = "Disabled";
|
|
34
62
|
})(exports.KnownDigestConfigState || (exports.KnownDigestConfigState = {}));
|
|
63
|
+
/** Known values of {@link ConfigurationName} that the service accepts. */
|
|
64
|
+
exports.KnownConfigurationName = void 0;
|
|
35
65
|
(function (KnownConfigurationName) {
|
|
36
66
|
KnownConfigurationName["Default"] = "default";
|
|
37
67
|
})(exports.KnownConfigurationName || (exports.KnownConfigurationName = {}));
|
|
68
|
+
/** Known values of {@link Impact} that the service accepts. */
|
|
69
|
+
exports.KnownImpact = void 0;
|
|
38
70
|
(function (KnownImpact) {
|
|
39
71
|
KnownImpact["High"] = "High";
|
|
40
72
|
KnownImpact["Medium"] = "Medium";
|
|
41
73
|
KnownImpact["Low"] = "Low";
|
|
42
74
|
})(exports.KnownImpact || (exports.KnownImpact = {}));
|
|
75
|
+
/** Known values of {@link Risk} that the service accepts. */
|
|
76
|
+
exports.KnownRisk = void 0;
|
|
43
77
|
(function (KnownRisk) {
|
|
44
78
|
KnownRisk["Error"] = "Error";
|
|
45
79
|
KnownRisk["Warning"] = "Warning";
|
|
@@ -957,14 +991,14 @@ class RecommendationMetadataImpl {
|
|
|
957
991
|
* @param options The options parameters.
|
|
958
992
|
*/
|
|
959
993
|
get(name, options) {
|
|
960
|
-
return this.client.sendOperationRequest({ name, options }, getOperationSpec);
|
|
994
|
+
return this.client.sendOperationRequest({ name, options }, getOperationSpec$2);
|
|
961
995
|
}
|
|
962
996
|
/**
|
|
963
997
|
* Gets the list of metadata entities.
|
|
964
998
|
* @param options The options parameters.
|
|
965
999
|
*/
|
|
966
1000
|
_list(options) {
|
|
967
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1001
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
968
1002
|
}
|
|
969
1003
|
/**
|
|
970
1004
|
* ListNext
|
|
@@ -972,12 +1006,12 @@ class RecommendationMetadataImpl {
|
|
|
972
1006
|
* @param options The options parameters.
|
|
973
1007
|
*/
|
|
974
1008
|
_listNext(nextLink, options) {
|
|
975
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1009
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
|
976
1010
|
}
|
|
977
1011
|
}
|
|
978
1012
|
// Operation Specifications
|
|
979
|
-
const serializer =
|
|
980
|
-
const getOperationSpec = {
|
|
1013
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1014
|
+
const getOperationSpec$2 = {
|
|
981
1015
|
path: "/providers/Microsoft.Advisor/metadata/{name}",
|
|
982
1016
|
httpMethod: "GET",
|
|
983
1017
|
responses: {
|
|
@@ -995,9 +1029,9 @@ const getOperationSpec = {
|
|
|
995
1029
|
queryParameters: [apiVersion],
|
|
996
1030
|
urlParameters: [$host, name],
|
|
997
1031
|
headerParameters: [accept],
|
|
998
|
-
serializer
|
|
1032
|
+
serializer: serializer$4
|
|
999
1033
|
};
|
|
1000
|
-
const listOperationSpec = {
|
|
1034
|
+
const listOperationSpec$3 = {
|
|
1001
1035
|
path: "/providers/Microsoft.Advisor/metadata",
|
|
1002
1036
|
httpMethod: "GET",
|
|
1003
1037
|
responses: {
|
|
@@ -1011,9 +1045,9 @@ const listOperationSpec = {
|
|
|
1011
1045
|
queryParameters: [apiVersion],
|
|
1012
1046
|
urlParameters: [$host],
|
|
1013
1047
|
headerParameters: [accept],
|
|
1014
|
-
serializer
|
|
1048
|
+
serializer: serializer$4
|
|
1015
1049
|
};
|
|
1016
|
-
const listNextOperationSpec = {
|
|
1050
|
+
const listNextOperationSpec$3 = {
|
|
1017
1051
|
path: "{nextLink}",
|
|
1018
1052
|
httpMethod: "GET",
|
|
1019
1053
|
responses: {
|
|
@@ -1027,7 +1061,7 @@ const listNextOperationSpec = {
|
|
|
1027
1061
|
queryParameters: [apiVersion],
|
|
1028
1062
|
urlParameters: [$host, nextLink],
|
|
1029
1063
|
headerParameters: [accept],
|
|
1030
|
-
serializer
|
|
1064
|
+
serializer: serializer$4
|
|
1031
1065
|
};
|
|
1032
1066
|
|
|
1033
1067
|
/*
|
|
@@ -1183,7 +1217,7 @@ class ConfigurationsImpl {
|
|
|
1183
1217
|
}
|
|
1184
1218
|
}
|
|
1185
1219
|
// Operation Specifications
|
|
1186
|
-
const serializer$
|
|
1220
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1187
1221
|
const listBySubscriptionOperationSpec = {
|
|
1188
1222
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations",
|
|
1189
1223
|
httpMethod: "GET",
|
|
@@ -1198,7 +1232,7 @@ const listBySubscriptionOperationSpec = {
|
|
|
1198
1232
|
queryParameters: [apiVersion],
|
|
1199
1233
|
urlParameters: [$host, subscriptionId],
|
|
1200
1234
|
headerParameters: [accept],
|
|
1201
|
-
serializer: serializer$
|
|
1235
|
+
serializer: serializer$3
|
|
1202
1236
|
};
|
|
1203
1237
|
const createInSubscriptionOperationSpec = {
|
|
1204
1238
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations/{configurationName}",
|
|
@@ -1220,7 +1254,7 @@ const createInSubscriptionOperationSpec = {
|
|
|
1220
1254
|
],
|
|
1221
1255
|
headerParameters: [accept, contentType],
|
|
1222
1256
|
mediaType: "json",
|
|
1223
|
-
serializer: serializer$
|
|
1257
|
+
serializer: serializer$3
|
|
1224
1258
|
};
|
|
1225
1259
|
const listByResourceGroupOperationSpec = {
|
|
1226
1260
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations",
|
|
@@ -1240,7 +1274,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
1240
1274
|
resourceGroup
|
|
1241
1275
|
],
|
|
1242
1276
|
headerParameters: [accept],
|
|
1243
|
-
serializer: serializer$
|
|
1277
|
+
serializer: serializer$3
|
|
1244
1278
|
};
|
|
1245
1279
|
const createInResourceGroupOperationSpec = {
|
|
1246
1280
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations/{configurationName}",
|
|
@@ -1263,7 +1297,7 @@ const createInResourceGroupOperationSpec = {
|
|
|
1263
1297
|
],
|
|
1264
1298
|
headerParameters: [accept, contentType],
|
|
1265
1299
|
mediaType: "json",
|
|
1266
|
-
serializer: serializer$
|
|
1300
|
+
serializer: serializer$3
|
|
1267
1301
|
};
|
|
1268
1302
|
const listBySubscriptionNextOperationSpec = {
|
|
1269
1303
|
path: "{nextLink}",
|
|
@@ -1283,7 +1317,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
1283
1317
|
subscriptionId
|
|
1284
1318
|
],
|
|
1285
1319
|
headerParameters: [accept],
|
|
1286
|
-
serializer: serializer$
|
|
1320
|
+
serializer: serializer$3
|
|
1287
1321
|
};
|
|
1288
1322
|
|
|
1289
1323
|
/*
|
|
@@ -1377,7 +1411,7 @@ class RecommendationsImpl {
|
|
|
1377
1411
|
* @param options The options parameters.
|
|
1378
1412
|
*/
|
|
1379
1413
|
_list(options) {
|
|
1380
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
1414
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1381
1415
|
}
|
|
1382
1416
|
/**
|
|
1383
1417
|
* Obtains details of a cached recommendation.
|
|
@@ -1395,11 +1429,11 @@ class RecommendationsImpl {
|
|
|
1395
1429
|
* @param options The options parameters.
|
|
1396
1430
|
*/
|
|
1397
1431
|
_listNext(nextLink, options) {
|
|
1398
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
1432
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
1399
1433
|
}
|
|
1400
1434
|
}
|
|
1401
1435
|
// Operation Specifications
|
|
1402
|
-
const serializer$2 =
|
|
1436
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1403
1437
|
const generateOperationSpec = {
|
|
1404
1438
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations",
|
|
1405
1439
|
httpMethod: "POST",
|
|
@@ -1435,7 +1469,7 @@ const getGenerateStatusOperationSpec = {
|
|
|
1435
1469
|
headerParameters: [accept],
|
|
1436
1470
|
serializer: serializer$2
|
|
1437
1471
|
};
|
|
1438
|
-
const listOperationSpec$
|
|
1472
|
+
const listOperationSpec$2 = {
|
|
1439
1473
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/recommendations",
|
|
1440
1474
|
httpMethod: "GET",
|
|
1441
1475
|
responses: {
|
|
@@ -1476,7 +1510,7 @@ const getOperationSpec$1 = {
|
|
|
1476
1510
|
headerParameters: [accept],
|
|
1477
1511
|
serializer: serializer$2
|
|
1478
1512
|
};
|
|
1479
|
-
const listNextOperationSpec$
|
|
1513
|
+
const listNextOperationSpec$2 = {
|
|
1480
1514
|
path: "{nextLink}",
|
|
1481
1515
|
httpMethod: "GET",
|
|
1482
1516
|
responses: {
|
|
@@ -1572,7 +1606,7 @@ class OperationsImpl {
|
|
|
1572
1606
|
* @param options The options parameters.
|
|
1573
1607
|
*/
|
|
1574
1608
|
_list(options) {
|
|
1575
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
1609
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1576
1610
|
}
|
|
1577
1611
|
/**
|
|
1578
1612
|
* ListNext
|
|
@@ -1580,12 +1614,12 @@ class OperationsImpl {
|
|
|
1580
1614
|
* @param options The options parameters.
|
|
1581
1615
|
*/
|
|
1582
1616
|
_listNext(nextLink, options) {
|
|
1583
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
1617
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1584
1618
|
}
|
|
1585
1619
|
}
|
|
1586
1620
|
// Operation Specifications
|
|
1587
|
-
const serializer$
|
|
1588
|
-
const listOperationSpec$
|
|
1621
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1622
|
+
const listOperationSpec$1 = {
|
|
1589
1623
|
path: "/providers/Microsoft.Advisor/operations",
|
|
1590
1624
|
httpMethod: "GET",
|
|
1591
1625
|
responses: {
|
|
@@ -1599,9 +1633,9 @@ const listOperationSpec$2 = {
|
|
|
1599
1633
|
queryParameters: [apiVersion],
|
|
1600
1634
|
urlParameters: [$host],
|
|
1601
1635
|
headerParameters: [accept],
|
|
1602
|
-
serializer: serializer$
|
|
1636
|
+
serializer: serializer$1
|
|
1603
1637
|
};
|
|
1604
|
-
const listNextOperationSpec$
|
|
1638
|
+
const listNextOperationSpec$1 = {
|
|
1605
1639
|
path: "{nextLink}",
|
|
1606
1640
|
httpMethod: "GET",
|
|
1607
1641
|
responses: {
|
|
@@ -1615,7 +1649,7 @@ const listNextOperationSpec$2 = {
|
|
|
1615
1649
|
queryParameters: [apiVersion],
|
|
1616
1650
|
urlParameters: [$host, nextLink],
|
|
1617
1651
|
headerParameters: [accept],
|
|
1618
|
-
serializer: serializer$
|
|
1652
|
+
serializer: serializer$1
|
|
1619
1653
|
};
|
|
1620
1654
|
|
|
1621
1655
|
/*
|
|
@@ -1693,7 +1727,7 @@ class SuppressionsImpl {
|
|
|
1693
1727
|
* @param options The options parameters.
|
|
1694
1728
|
*/
|
|
1695
1729
|
get(resourceUri, recommendationId, name, options) {
|
|
1696
|
-
return this.client.sendOperationRequest({ resourceUri, recommendationId, name, options }, getOperationSpec
|
|
1730
|
+
return this.client.sendOperationRequest({ resourceUri, recommendationId, name, options }, getOperationSpec);
|
|
1697
1731
|
}
|
|
1698
1732
|
/**
|
|
1699
1733
|
* Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute
|
|
@@ -1727,7 +1761,7 @@ class SuppressionsImpl {
|
|
|
1727
1761
|
* @param options The options parameters.
|
|
1728
1762
|
*/
|
|
1729
1763
|
_list(options) {
|
|
1730
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
1764
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1731
1765
|
}
|
|
1732
1766
|
/**
|
|
1733
1767
|
* ListNext
|
|
@@ -1735,12 +1769,12 @@ class SuppressionsImpl {
|
|
|
1735
1769
|
* @param options The options parameters.
|
|
1736
1770
|
*/
|
|
1737
1771
|
_listNext(nextLink, options) {
|
|
1738
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
1772
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1739
1773
|
}
|
|
1740
1774
|
}
|
|
1741
1775
|
// Operation Specifications
|
|
1742
|
-
const serializer
|
|
1743
|
-
const getOperationSpec
|
|
1776
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1777
|
+
const getOperationSpec = {
|
|
1744
1778
|
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}",
|
|
1745
1779
|
httpMethod: "GET",
|
|
1746
1780
|
responses: {
|
|
@@ -1763,7 +1797,7 @@ const getOperationSpec$2 = {
|
|
|
1763
1797
|
recommendationId
|
|
1764
1798
|
],
|
|
1765
1799
|
headerParameters: [accept],
|
|
1766
|
-
serializer
|
|
1800
|
+
serializer
|
|
1767
1801
|
};
|
|
1768
1802
|
const createOperationSpec = {
|
|
1769
1803
|
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}",
|
|
@@ -1790,7 +1824,7 @@ const createOperationSpec = {
|
|
|
1790
1824
|
],
|
|
1791
1825
|
headerParameters: [accept, contentType],
|
|
1792
1826
|
mediaType: "json",
|
|
1793
|
-
serializer
|
|
1827
|
+
serializer
|
|
1794
1828
|
};
|
|
1795
1829
|
const deleteOperationSpec = {
|
|
1796
1830
|
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}",
|
|
@@ -1809,9 +1843,9 @@ const deleteOperationSpec = {
|
|
|
1809
1843
|
recommendationId
|
|
1810
1844
|
],
|
|
1811
1845
|
headerParameters: [accept],
|
|
1812
|
-
serializer
|
|
1846
|
+
serializer
|
|
1813
1847
|
};
|
|
1814
|
-
const listOperationSpec
|
|
1848
|
+
const listOperationSpec = {
|
|
1815
1849
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions",
|
|
1816
1850
|
httpMethod: "GET",
|
|
1817
1851
|
responses: {
|
|
@@ -1829,9 +1863,9 @@ const listOperationSpec$3 = {
|
|
|
1829
1863
|
],
|
|
1830
1864
|
urlParameters: [$host, subscriptionId],
|
|
1831
1865
|
headerParameters: [accept],
|
|
1832
|
-
serializer
|
|
1866
|
+
serializer
|
|
1833
1867
|
};
|
|
1834
|
-
const listNextOperationSpec
|
|
1868
|
+
const listNextOperationSpec = {
|
|
1835
1869
|
path: "{nextLink}",
|
|
1836
1870
|
httpMethod: "GET",
|
|
1837
1871
|
responses: {
|
|
@@ -1853,7 +1887,7 @@ const listNextOperationSpec$3 = {
|
|
|
1853
1887
|
subscriptionId
|
|
1854
1888
|
],
|
|
1855
1889
|
headerParameters: [accept],
|
|
1856
|
-
serializer
|
|
1890
|
+
serializer
|
|
1857
1891
|
};
|
|
1858
1892
|
|
|
1859
1893
|
/*
|
|
@@ -1863,7 +1897,7 @@ const listNextOperationSpec$3 = {
|
|
|
1863
1897
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1864
1898
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1865
1899
|
*/
|
|
1866
|
-
class AdvisorManagementClient extends
|
|
1900
|
+
class AdvisorManagementClient extends coreClient__namespace.ServiceClient {
|
|
1867
1901
|
/**
|
|
1868
1902
|
* Initializes a new instance of the AdvisorManagementClient class.
|
|
1869
1903
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -1871,6 +1905,7 @@ class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
|
1871
1905
|
* @param options The parameter options
|
|
1872
1906
|
*/
|
|
1873
1907
|
constructor(credentials, subscriptionId, options) {
|
|
1908
|
+
var _a, _b;
|
|
1874
1909
|
if (credentials === undefined) {
|
|
1875
1910
|
throw new Error("'credentials' cannot be null");
|
|
1876
1911
|
}
|
|
@@ -1885,7 +1920,7 @@ class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
|
1885
1920
|
requestContentType: "application/json; charset=utf-8",
|
|
1886
1921
|
credential: credentials
|
|
1887
1922
|
};
|
|
1888
|
-
const packageDetails = `azsdk-js-arm-advisor/3.0.
|
|
1923
|
+
const packageDetails = `azsdk-js-arm-advisor/3.0.1`;
|
|
1889
1924
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1890
1925
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1891
1926
|
: `${packageDetails}`;
|
|
@@ -1894,7 +1929,7 @@ class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
|
1894
1929
|
}
|
|
1895
1930
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1896
1931
|
userAgentPrefix
|
|
1897
|
-
}, baseUri: options.endpoint
|
|
1932
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1898
1933
|
super(optionsWithDefaults);
|
|
1899
1934
|
// Parameter assignments
|
|
1900
1935
|
this.subscriptionId = subscriptionId;
|