@azure/arm-portal 1.0.0-beta.2 → 1.0.0-beta.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 +6 -0
- package/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +81 -40
- 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/dashboardsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js +46 -0
- package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dashboardsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/dashboardsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dashboardsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/dashboardsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dashboardsGetSample.js +31 -0
- package/dist-esm/samples-dev/dashboardsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dashboardsUpdateSample.js +34 -0
- package/dist-esm/samples-dev/dashboardsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js +43 -0
- package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.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/tenantConfigurationsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js +33 -0
- package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js +30 -0
- package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsGetSample.js +30 -0
- package/dist-esm/samples-dev/tenantConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tenantConfigurationsListSample.js +43 -0
- package/dist-esm/samples-dev/tenantConfigurationsListSample.js.map +1 -0
- package/dist-esm/src/portal.d.ts.map +1 -1
- package/dist-esm/src/portal.js +20 -2
- package/dist-esm/src/portal.js.map +1 -1
- package/package.json +40 -14
- package/rollup.config.js +6 -72
- package/src/portal.ts +27 -2
- package/tsconfig.json +19 -5
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## Release History
|
|
2
2
|
|
|
3
|
+
### 1.0.0-beta.3 (2022-04-28)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Bug fix
|
|
8
|
+
|
|
3
9
|
### 1.0.0-beta.2 (2021-11-30)
|
|
4
10
|
|
|
5
11
|
The package of @azure/arm-portal is using our next generation design principles since version 1.0.0-beta.2, which contains breaking changes.
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ Allows creation and deletion of Azure Shared Dashboards.
|
|
|
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 { Portal } = require("@azure/arm-portal");
|
|
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 Portal(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 Portal(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,30 @@
|
|
|
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
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
|
+
|
|
8
30
|
/*
|
|
9
31
|
* Copyright (c) Microsoft Corporation.
|
|
10
32
|
* Licensed under the MIT License.
|
|
@@ -12,6 +34,8 @@ var tslib = require('tslib');
|
|
|
12
34
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
35
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
36
|
*/
|
|
37
|
+
/** Known values of {@link ConfigurationName} that the service accepts. */
|
|
38
|
+
exports.KnownConfigurationName = void 0;
|
|
15
39
|
(function (KnownConfigurationName) {
|
|
16
40
|
KnownConfigurationName["Default"] = "default";
|
|
17
41
|
})(exports.KnownConfigurationName || (exports.KnownConfigurationName = {}));
|
|
@@ -856,7 +880,7 @@ class OperationsImpl {
|
|
|
856
880
|
* @param options The options parameters.
|
|
857
881
|
*/
|
|
858
882
|
_list(options) {
|
|
859
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
883
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
860
884
|
}
|
|
861
885
|
/**
|
|
862
886
|
* ListNext
|
|
@@ -864,12 +888,12 @@ class OperationsImpl {
|
|
|
864
888
|
* @param options The options parameters.
|
|
865
889
|
*/
|
|
866
890
|
_listNext(nextLink, options) {
|
|
867
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
891
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
868
892
|
}
|
|
869
893
|
}
|
|
870
894
|
// Operation Specifications
|
|
871
|
-
const serializer =
|
|
872
|
-
const listOperationSpec = {
|
|
895
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
896
|
+
const listOperationSpec$2 = {
|
|
873
897
|
path: "/providers/Microsoft.Portal/operations",
|
|
874
898
|
httpMethod: "GET",
|
|
875
899
|
responses: {
|
|
@@ -883,9 +907,9 @@ const listOperationSpec = {
|
|
|
883
907
|
queryParameters: [apiVersion],
|
|
884
908
|
urlParameters: [$host],
|
|
885
909
|
headerParameters: [accept],
|
|
886
|
-
serializer
|
|
910
|
+
serializer: serializer$3
|
|
887
911
|
};
|
|
888
|
-
const listNextOperationSpec = {
|
|
912
|
+
const listNextOperationSpec$2 = {
|
|
889
913
|
path: "{nextLink}",
|
|
890
914
|
httpMethod: "GET",
|
|
891
915
|
responses: {
|
|
@@ -899,7 +923,7 @@ const listNextOperationSpec = {
|
|
|
899
923
|
queryParameters: [apiVersion],
|
|
900
924
|
urlParameters: [$host, nextLink],
|
|
901
925
|
headerParameters: [accept],
|
|
902
|
-
serializer
|
|
926
|
+
serializer: serializer$3
|
|
903
927
|
};
|
|
904
928
|
|
|
905
929
|
/*
|
|
@@ -1033,7 +1057,7 @@ class DashboardsImpl {
|
|
|
1033
1057
|
* @param options The options parameters.
|
|
1034
1058
|
*/
|
|
1035
1059
|
delete(resourceGroupName, dashboardName, options) {
|
|
1036
|
-
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, deleteOperationSpec);
|
|
1060
|
+
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, deleteOperationSpec$1);
|
|
1037
1061
|
}
|
|
1038
1062
|
/**
|
|
1039
1063
|
* Gets the Dashboard.
|
|
@@ -1042,7 +1066,7 @@ class DashboardsImpl {
|
|
|
1042
1066
|
* @param options The options parameters.
|
|
1043
1067
|
*/
|
|
1044
1068
|
get(resourceGroupName, dashboardName, options) {
|
|
1045
|
-
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, getOperationSpec);
|
|
1069
|
+
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, getOperationSpec$1);
|
|
1046
1070
|
}
|
|
1047
1071
|
/**
|
|
1048
1072
|
* Updates an existing Dashboard.
|
|
@@ -1088,7 +1112,7 @@ class DashboardsImpl {
|
|
|
1088
1112
|
}
|
|
1089
1113
|
}
|
|
1090
1114
|
// Operation Specifications
|
|
1091
|
-
const serializer$
|
|
1115
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1092
1116
|
const createOrUpdateOperationSpec = {
|
|
1093
1117
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1094
1118
|
httpMethod: "PUT",
|
|
@@ -1113,9 +1137,9 @@ const createOrUpdateOperationSpec = {
|
|
|
1113
1137
|
],
|
|
1114
1138
|
headerParameters: [accept, contentType],
|
|
1115
1139
|
mediaType: "json",
|
|
1116
|
-
serializer: serializer$
|
|
1140
|
+
serializer: serializer$2
|
|
1117
1141
|
};
|
|
1118
|
-
const deleteOperationSpec = {
|
|
1142
|
+
const deleteOperationSpec$1 = {
|
|
1119
1143
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1120
1144
|
httpMethod: "DELETE",
|
|
1121
1145
|
responses: {
|
|
@@ -1133,9 +1157,9 @@ const deleteOperationSpec = {
|
|
|
1133
1157
|
dashboardName
|
|
1134
1158
|
],
|
|
1135
1159
|
headerParameters: [accept],
|
|
1136
|
-
serializer: serializer$
|
|
1160
|
+
serializer: serializer$2
|
|
1137
1161
|
};
|
|
1138
|
-
const getOperationSpec = {
|
|
1162
|
+
const getOperationSpec$1 = {
|
|
1139
1163
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1140
1164
|
httpMethod: "GET",
|
|
1141
1165
|
responses: {
|
|
@@ -1155,7 +1179,7 @@ const getOperationSpec = {
|
|
|
1155
1179
|
dashboardName
|
|
1156
1180
|
],
|
|
1157
1181
|
headerParameters: [accept],
|
|
1158
|
-
serializer: serializer$
|
|
1182
|
+
serializer: serializer$2
|
|
1159
1183
|
};
|
|
1160
1184
|
const updateOperationSpec = {
|
|
1161
1185
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
@@ -1179,7 +1203,7 @@ const updateOperationSpec = {
|
|
|
1179
1203
|
],
|
|
1180
1204
|
headerParameters: [accept, contentType],
|
|
1181
1205
|
mediaType: "json",
|
|
1182
|
-
serializer: serializer$
|
|
1206
|
+
serializer: serializer$2
|
|
1183
1207
|
};
|
|
1184
1208
|
const listByResourceGroupOperationSpec = {
|
|
1185
1209
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards",
|
|
@@ -1199,7 +1223,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
1199
1223
|
resourceGroupName
|
|
1200
1224
|
],
|
|
1201
1225
|
headerParameters: [accept],
|
|
1202
|
-
serializer: serializer$
|
|
1226
|
+
serializer: serializer$2
|
|
1203
1227
|
};
|
|
1204
1228
|
const listBySubscriptionOperationSpec = {
|
|
1205
1229
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards",
|
|
@@ -1215,7 +1239,7 @@ const listBySubscriptionOperationSpec = {
|
|
|
1215
1239
|
queryParameters: [apiVersion],
|
|
1216
1240
|
urlParameters: [$host, subscriptionId],
|
|
1217
1241
|
headerParameters: [accept],
|
|
1218
|
-
serializer: serializer$
|
|
1242
|
+
serializer: serializer$2
|
|
1219
1243
|
};
|
|
1220
1244
|
const listByResourceGroupNextOperationSpec = {
|
|
1221
1245
|
path: "{nextLink}",
|
|
@@ -1236,7 +1260,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1236
1260
|
resourceGroupName
|
|
1237
1261
|
],
|
|
1238
1262
|
headerParameters: [accept],
|
|
1239
|
-
serializer: serializer$
|
|
1263
|
+
serializer: serializer$2
|
|
1240
1264
|
};
|
|
1241
1265
|
const listBySubscriptionNextOperationSpec = {
|
|
1242
1266
|
path: "{nextLink}",
|
|
@@ -1256,7 +1280,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
1256
1280
|
subscriptionId
|
|
1257
1281
|
],
|
|
1258
1282
|
headerParameters: [accept],
|
|
1259
|
-
serializer: serializer$
|
|
1283
|
+
serializer: serializer$2
|
|
1260
1284
|
};
|
|
1261
1285
|
|
|
1262
1286
|
/*
|
|
@@ -1337,7 +1361,7 @@ class TenantConfigurationsImpl {
|
|
|
1337
1361
|
* @param options The options parameters.
|
|
1338
1362
|
*/
|
|
1339
1363
|
get(configurationName, options) {
|
|
1340
|
-
return this.client.sendOperationRequest({ configurationName, options }, getOperationSpec
|
|
1364
|
+
return this.client.sendOperationRequest({ configurationName, options }, getOperationSpec);
|
|
1341
1365
|
}
|
|
1342
1366
|
/**
|
|
1343
1367
|
* Create the tenant configuration. If configuration already exists - update it. User has to be a
|
|
@@ -1355,7 +1379,7 @@ class TenantConfigurationsImpl {
|
|
|
1355
1379
|
* @param options The options parameters.
|
|
1356
1380
|
*/
|
|
1357
1381
|
delete(configurationName, options) {
|
|
1358
|
-
return this.client.sendOperationRequest({ configurationName, options }, deleteOperationSpec
|
|
1382
|
+
return this.client.sendOperationRequest({ configurationName, options }, deleteOperationSpec);
|
|
1359
1383
|
}
|
|
1360
1384
|
/**
|
|
1361
1385
|
* ListNext
|
|
@@ -1367,7 +1391,7 @@ class TenantConfigurationsImpl {
|
|
|
1367
1391
|
}
|
|
1368
1392
|
}
|
|
1369
1393
|
// Operation Specifications
|
|
1370
|
-
const serializer$
|
|
1394
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1371
1395
|
const listOperationSpec$1 = {
|
|
1372
1396
|
path: "/providers/Microsoft.Portal/tenantConfigurations",
|
|
1373
1397
|
httpMethod: "GET",
|
|
@@ -1382,9 +1406,9 @@ const listOperationSpec$1 = {
|
|
|
1382
1406
|
queryParameters: [apiVersion],
|
|
1383
1407
|
urlParameters: [$host],
|
|
1384
1408
|
headerParameters: [accept],
|
|
1385
|
-
serializer: serializer$
|
|
1409
|
+
serializer: serializer$1
|
|
1386
1410
|
};
|
|
1387
|
-
const getOperationSpec
|
|
1411
|
+
const getOperationSpec = {
|
|
1388
1412
|
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
1389
1413
|
httpMethod: "GET",
|
|
1390
1414
|
responses: {
|
|
@@ -1399,7 +1423,7 @@ const getOperationSpec$1 = {
|
|
|
1399
1423
|
queryParameters: [apiVersion],
|
|
1400
1424
|
urlParameters: [$host, configurationName],
|
|
1401
1425
|
headerParameters: [accept],
|
|
1402
|
-
serializer: serializer$
|
|
1426
|
+
serializer: serializer$1
|
|
1403
1427
|
};
|
|
1404
1428
|
const createOperationSpec = {
|
|
1405
1429
|
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
@@ -1420,9 +1444,9 @@ const createOperationSpec = {
|
|
|
1420
1444
|
urlParameters: [$host, configurationName],
|
|
1421
1445
|
headerParameters: [accept, contentType],
|
|
1422
1446
|
mediaType: "json",
|
|
1423
|
-
serializer: serializer$
|
|
1447
|
+
serializer: serializer$1
|
|
1424
1448
|
};
|
|
1425
|
-
const deleteOperationSpec
|
|
1449
|
+
const deleteOperationSpec = {
|
|
1426
1450
|
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
1427
1451
|
httpMethod: "DELETE",
|
|
1428
1452
|
responses: {
|
|
@@ -1435,7 +1459,7 @@ const deleteOperationSpec$1 = {
|
|
|
1435
1459
|
queryParameters: [apiVersion],
|
|
1436
1460
|
urlParameters: [$host, configurationName],
|
|
1437
1461
|
headerParameters: [accept],
|
|
1438
|
-
serializer: serializer$
|
|
1462
|
+
serializer: serializer$1
|
|
1439
1463
|
};
|
|
1440
1464
|
const listNextOperationSpec$1 = {
|
|
1441
1465
|
path: "{nextLink}",
|
|
@@ -1451,7 +1475,7 @@ const listNextOperationSpec$1 = {
|
|
|
1451
1475
|
queryParameters: [apiVersion],
|
|
1452
1476
|
urlParameters: [$host, nextLink],
|
|
1453
1477
|
headerParameters: [accept],
|
|
1454
|
-
serializer: serializer$
|
|
1478
|
+
serializer: serializer$1
|
|
1455
1479
|
};
|
|
1456
1480
|
|
|
1457
1481
|
/*
|
|
@@ -1524,7 +1548,7 @@ class ListTenantConfigurationViolationsImpl {
|
|
|
1524
1548
|
* @param options The options parameters.
|
|
1525
1549
|
*/
|
|
1526
1550
|
_list(options) {
|
|
1527
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
1551
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1528
1552
|
}
|
|
1529
1553
|
/**
|
|
1530
1554
|
* ListNext
|
|
@@ -1532,12 +1556,12 @@ class ListTenantConfigurationViolationsImpl {
|
|
|
1532
1556
|
* @param options The options parameters.
|
|
1533
1557
|
*/
|
|
1534
1558
|
_listNext(nextLink, options) {
|
|
1535
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
1559
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1536
1560
|
}
|
|
1537
1561
|
}
|
|
1538
1562
|
// Operation Specifications
|
|
1539
|
-
const serializer
|
|
1540
|
-
const listOperationSpec
|
|
1563
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1564
|
+
const listOperationSpec = {
|
|
1541
1565
|
path: "/providers/Microsoft.Portal/listTenantConfigurationViolations",
|
|
1542
1566
|
httpMethod: "POST",
|
|
1543
1567
|
responses: {
|
|
@@ -1551,9 +1575,9 @@ const listOperationSpec$2 = {
|
|
|
1551
1575
|
queryParameters: [apiVersion],
|
|
1552
1576
|
urlParameters: [$host],
|
|
1553
1577
|
headerParameters: [accept],
|
|
1554
|
-
serializer
|
|
1578
|
+
serializer
|
|
1555
1579
|
};
|
|
1556
|
-
const listNextOperationSpec
|
|
1580
|
+
const listNextOperationSpec = {
|
|
1557
1581
|
path: "{nextLink}",
|
|
1558
1582
|
httpMethod: "GET",
|
|
1559
1583
|
responses: {
|
|
@@ -1567,7 +1591,7 @@ const listNextOperationSpec$2 = {
|
|
|
1567
1591
|
queryParameters: [apiVersion],
|
|
1568
1592
|
urlParameters: [$host, nextLink],
|
|
1569
1593
|
headerParameters: [accept],
|
|
1570
|
-
serializer
|
|
1594
|
+
serializer
|
|
1571
1595
|
};
|
|
1572
1596
|
|
|
1573
1597
|
/*
|
|
@@ -1577,7 +1601,7 @@ const listNextOperationSpec$2 = {
|
|
|
1577
1601
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1578
1602
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1579
1603
|
*/
|
|
1580
|
-
class Portal extends
|
|
1604
|
+
class Portal extends coreClient__namespace.ServiceClient {
|
|
1581
1605
|
/**
|
|
1582
1606
|
* Initializes a new instance of the Portal class.
|
|
1583
1607
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -1586,6 +1610,7 @@ class Portal extends coreClient.ServiceClient {
|
|
|
1586
1610
|
* @param options The parameter options
|
|
1587
1611
|
*/
|
|
1588
1612
|
constructor(credentials, subscriptionId, options) {
|
|
1613
|
+
var _a, _b;
|
|
1589
1614
|
if (credentials === undefined) {
|
|
1590
1615
|
throw new Error("'credentials' cannot be null");
|
|
1591
1616
|
}
|
|
@@ -1600,7 +1625,7 @@ class Portal extends coreClient.ServiceClient {
|
|
|
1600
1625
|
requestContentType: "application/json; charset=utf-8",
|
|
1601
1626
|
credential: credentials
|
|
1602
1627
|
};
|
|
1603
|
-
const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.
|
|
1628
|
+
const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.3`;
|
|
1604
1629
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1605
1630
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1606
1631
|
: `${packageDetails}`;
|
|
@@ -1609,8 +1634,24 @@ class Portal extends coreClient.ServiceClient {
|
|
|
1609
1634
|
}
|
|
1610
1635
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1611
1636
|
userAgentPrefix
|
|
1612
|
-
}, baseUri: options.endpoint
|
|
1637
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1613
1638
|
super(optionsWithDefaults);
|
|
1639
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1640
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1641
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1642
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1643
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
1644
|
+
this.pipeline.removePolicy({
|
|
1645
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1646
|
+
});
|
|
1647
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1648
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
1649
|
+
challengeCallbacks: {
|
|
1650
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1651
|
+
}
|
|
1652
|
+
}));
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1614
1655
|
// Parameter assignments
|
|
1615
1656
|
this.subscriptionId = subscriptionId;
|
|
1616
1657
|
// Assigning values to Constant parameters
|