@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.
Files changed (63) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +81 -40
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js +46 -0
  11. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/dashboardsDeleteSample.js +31 -0
  15. package/dist-esm/samples-dev/dashboardsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/dashboardsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/dashboardsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/dashboardsGetSample.js +31 -0
  19. package/dist-esm/samples-dev/dashboardsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js +44 -0
  23. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js +43 -0
  27. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js.map +1 -0
  28. package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/dashboardsUpdateSample.js +34 -0
  31. package/dist-esm/samples-dev/dashboardsUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js +43 -0
  35. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  39. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  40. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js +33 -0
  43. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js +30 -0
  47. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js.map +1 -0
  48. package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js +30 -0
  51. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/tenantConfigurationsListSample.js +43 -0
  55. package/dist-esm/samples-dev/tenantConfigurationsListSample.js.map +1 -0
  56. package/dist-esm/src/portal.d.ts.map +1 -1
  57. package/dist-esm/src/portal.js +20 -2
  58. package/dist-esm/src/portal.js.map +1 -1
  59. package/package.json +40 -14
  60. package/rollup.config.js +6 -72
  61. package/src/portal.ts +27 -2
  62. package/tsconfig.json +19 -5
  63. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { Portal } from "@azure/arm-portal";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to The Microsoft Portal operations API.
15
+ *
16
+ * @summary The Microsoft Portal operations API.
17
+ * x-ms-original-file: specification/portal/resource-manager/Microsoft.Portal/preview/2020-09-01-preview/examples/operationsList.json
18
+ */
19
+ function listThePortalOperations() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new Portal(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listThePortalOperations().catch(console.error);
43
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tenantConfigurationsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { Portal } from "@azure/arm-portal";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create the tenant configuration. If configuration already exists - update it. User has to be a Tenant Admin for this operation.
15
+ *
16
+ * @summary Create the tenant configuration. If configuration already exists - update it. User has to be a Tenant Admin for this operation.
17
+ * x-ms-original-file: specification/portal/resource-manager/Microsoft.Portal/preview/2020-09-01-preview/examples/TenantConfiguration/CreateOrUpdateTenantConfiguration.json
18
+ */
19
+ function createOrUpdateTenantConfiguration() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const configurationName = "default";
23
+ const tenantConfiguration = {
24
+ enforcePrivateMarkdownStorage: true
25
+ };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new Portal(credential, subscriptionId);
28
+ const result = yield client.tenantConfigurations.create(configurationName, tenantConfiguration);
29
+ console.log(result);
30
+ });
31
+ }
32
+ createOrUpdateTenantConfiguration().catch(console.error);
33
+ //# sourceMappingURL=tenantConfigurationsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAiB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,mBAAmB,GAAkB;YACzC,6BAA6B,EAAE,IAAI;SACpC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,MAAM,CACrD,iBAAiB,EACjB,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tenantConfigurationsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { Portal } from "@azure/arm-portal";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete the tenant configuration. User has to be a Tenant Admin for this operation.
15
+ *
16
+ * @summary Delete the tenant configuration. User has to be a Tenant Admin for this operation.
17
+ * x-ms-original-file: specification/portal/resource-manager/Microsoft.Portal/preview/2020-09-01-preview/examples/TenantConfiguration/DeleteTenantConfiguration.json
18
+ */
19
+ function deleteTenantConfiguration() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const configurationName = "default";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new Portal(credential, subscriptionId);
25
+ const result = yield client.tenantConfigurations.delete(configurationName);
26
+ console.log(result);
27
+ });
28
+ }
29
+ deleteTenantConfiguration().catch(console.error);
30
+ //# sourceMappingURL=tenantConfigurationsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAC3E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tenantConfigurationsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { Portal } from "@azure/arm-portal";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the tenant configuration.
15
+ *
16
+ * @summary Gets the tenant configuration.
17
+ * x-ms-original-file: specification/portal/resource-manager/Microsoft.Portal/preview/2020-09-01-preview/examples/TenantConfiguration/GetTenantConfiguration.json
18
+ */
19
+ function getTenantConfiguration() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const configurationName = "default";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new Portal(credential, subscriptionId);
25
+ const result = yield client.tenantConfigurations.get(configurationName);
26
+ console.log(result);
27
+ });
28
+ }
29
+ getTenantConfiguration().catch(console.error);
30
+ //# sourceMappingURL=tenantConfigurationsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tenantConfigurationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { Portal } from "@azure/arm-portal";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets list of the tenant configurations.
15
+ *
16
+ * @summary Gets list of the tenant configurations.
17
+ * x-ms-original-file: specification/portal/resource-manager/Microsoft.Portal/preview/2020-09-01-preview/examples/TenantConfiguration/GetListOfTenantConfigurations.json
18
+ */
19
+ function getListOfTenantConfigurations() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new Portal(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.tenantConfigurations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ getListOfTenantConfigurations().catch(console.error);
43
+ //# sourceMappingURL=tenantConfigurationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurationsListSample.js","sourceRoot":"","sources":["../../samples-dev/tenantConfigurationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA9C,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oBAAoB;IAkDhC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iCAAiC,EAAE,iCAAiC,CAAC;CACtE"}
1
+ {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oBAAoB;IA0EhC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iCAAiC,EAAE,iCAAiC,CAAC;CACtE"}
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
9
10
  import { OperationsImpl, DashboardsImpl, TenantConfigurationsImpl, ListTenantConfigurationViolationsImpl } from "./operations";
10
11
  export class Portal extends coreClient.ServiceClient {
11
12
  /**
@@ -16,6 +17,7 @@ export class Portal extends coreClient.ServiceClient {
16
17
  * @param options The parameter options
17
18
  */
18
19
  constructor(credentials, subscriptionId, options) {
20
+ var _a, _b;
19
21
  if (credentials === undefined) {
20
22
  throw new Error("'credentials' cannot be null");
21
23
  }
@@ -30,7 +32,7 @@ export class Portal extends coreClient.ServiceClient {
30
32
  requestContentType: "application/json; charset=utf-8",
31
33
  credential: credentials
32
34
  };
33
- const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.2`;
35
+ const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.3`;
34
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
38
  : `${packageDetails}`;
@@ -39,8 +41,24 @@ export class Portal extends coreClient.ServiceClient {
39
41
  }
40
42
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
43
  userAgentPrefix
42
- }, baseUri: options.endpoint || "https://management.azure.com" });
44
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
45
  super(optionsWithDefaults);
46
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
47
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
48
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
49
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
+ if (!bearerTokenAuthenticationPolicyFound) {
51
+ this.pipeline.removePolicy({
52
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
53
+ });
54
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
55
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
56
+ challengeCallbacks: {
57
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
58
+ }
59
+ }));
60
+ }
61
+ }
44
62
  // Parameter assignments
45
63
  this.subscriptionId = subscriptionId;
46
64
  // Assigning values to Constant parameters
@@ -1 +1 @@
1
- {"version":3,"file":"portal.js","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,qCAAqC,EACtC,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,MAAO,SAAQ,UAAU,CAAC,aAAa;IAKlD;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8B;QAE9B,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAyB;YACrC,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,kCAAkC,CAAC;QAC1D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,iCAAiC,GAAG,IAAI,qCAAqC,CAChF,IAAI,CACL,CAAC;IACJ,CAAC;CAMF"}
1
+ {"version":3,"file":"portal.js","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -3,29 +3,37 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for Portal.",
6
- "version": "1.0.0-beta.2",
7
- "engines": { "node": ">=12.0.0" },
6
+ "version": "1.0.0-beta.3",
7
+ "engines": {
8
+ "node": ">=12.0.0"
9
+ },
8
10
  "dependencies": {
9
11
  "@azure/core-paging": "^1.2.0",
10
- "@azure/core-client": "^1.0.0",
12
+ "@azure/core-client": "^1.5.0",
11
13
  "@azure/core-auth": "^1.3.0",
12
- "@azure/core-rest-pipeline": "^1.1.0",
14
+ "@azure/core-rest-pipeline": "^1.8.0",
13
15
  "tslib": "^2.2.0"
14
16
  },
15
- "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
17
+ "keywords": [
18
+ "node",
19
+ "azure",
20
+ "typescript",
21
+ "browser",
22
+ "isomorphic"
23
+ ],
16
24
  "license": "MIT",
17
25
  "main": "./dist/index.js",
18
26
  "module": "./dist-esm/src/index.js",
19
27
  "types": "./types/arm-portal.d.ts",
20
28
  "devDependencies": {
21
- "@microsoft/api-extractor": "^7.18.11",
22
- "@rollup/plugin-commonjs": "11.0.2",
23
- "@rollup/plugin-json": "^4.0.0",
24
- "@rollup/plugin-multi-entry": "^3.0.0",
25
- "@rollup/plugin-node-resolve": "^8.0.0",
29
+ "@microsoft/api-extractor": "7.18.11",
30
+ "@rollup/plugin-commonjs": "^21.0.1",
31
+ "@rollup/plugin-json": "^4.1.0",
32
+ "@rollup/plugin-multi-entry": "^4.1.0",
33
+ "@rollup/plugin-node-resolve": "^13.1.3",
26
34
  "mkdirp": "^1.0.4",
27
- "rollup": "^1.16.3",
28
- "rollup-plugin-sourcemaps": "^0.4.2",
35
+ "rollup": "^2.66.1",
36
+ "rollup-plugin-sourcemaps": "^0.6.3",
29
37
  "typescript": "~4.2.0",
30
38
  "uglify-js": "^3.4.9",
31
39
  "rimraf": "^3.0.0",
@@ -39,7 +47,9 @@
39
47
  "type": "git",
40
48
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
41
49
  },
42
- "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
50
+ "bugs": {
51
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
52
+ },
43
53
  "files": [
44
54
  "dist/**/*.js",
45
55
  "dist/**/*.js.map",
@@ -86,5 +96,21 @@
86
96
  "docs": "echo skipped"
87
97
  },
88
98
  "sideEffects": false,
89
- "autoPublish": true
99
+ "//metadata": {
100
+ "constantPaths": [
101
+ {
102
+ "path": "src/portal.ts",
103
+ "prefix": "packageDetails"
104
+ }
105
+ ]
106
+ },
107
+ "autoPublish": true,
108
+ "//sampleConfiguration": {
109
+ "productName": "",
110
+ "productSlugs": [
111
+ "azure"
112
+ ],
113
+ "disableDocsMs": true,
114
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-portal?view=azure-node-preview"
115
+ }
90
116
  }
package/rollup.config.js CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
14
14
 
15
15
  import nodeBuiltins from "builtin-modules";
16
16
 
17
- /**
18
- * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
- *
20
- * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
- * __exportStar downleveled helper function to declare its exports which confuses
22
- * rollup's automatic discovery mechanism.
23
- *
24
- * @returns an object reference that can be `...`'d into your cjs() configuration.
25
- */
26
- export function openTelemetryCommonJs() {
27
- const namedExports = {};
28
-
29
- for (const key of [
30
- "@opentelemetry/api",
31
- "@azure/core-tracing/node_modules/@opentelemetry/api"
32
- ]) {
33
- namedExports[key] = [
34
- "SpanKind",
35
- "TraceFlags",
36
- "getSpan",
37
- "setSpan",
38
- "SpanStatusCode",
39
- "getSpanContext",
40
- "setSpanContext"
41
- ];
42
- }
43
-
44
- const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
-
46
- for (const version of releasedOpenTelemetryVersions) {
47
- namedExports[
48
- // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
- `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
- ] = [
51
- "SpanKind",
52
- "TraceFlags",
53
- "getSpan",
54
- "setSpan",
55
- "StatusCode",
56
- "CanonicalCode",
57
- "getSpanContext",
58
- "setSpanContext"
59
- ];
60
- }
61
-
62
- return namedExports;
63
- }
64
-
65
17
  // #region Warning Handler
66
18
 
67
19
  /**
68
- * A function that can determine whether a rollupwarning should be ignored. If
20
+ * A function that can determine whether a rollup warning should be ignored. If
69
21
  * the function returns `true`, then the warning will not be displayed.
70
22
  */
71
23
 
72
- function ignoreNiseSinonEvalWarnings(warning) {
24
+ function ignoreNiseSinonEval(warning) {
73
25
  return (
74
26
  warning.code === "EVAL" &&
75
27
  warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
78
30
  );
79
31
  }
80
32
 
81
- function ignoreChaiCircularDependencyWarnings(warning) {
33
+ function ignoreChaiCircularDependency(warning) {
82
34
  return (
83
35
  warning.code === "CIRCULAR_DEPENDENCY" &&
84
36
  warning.importer && warning.importer.includes("node_modules/chai") === true
85
37
  );
86
38
  }
87
39
 
88
- const warningInhibitors = [
89
- ignoreChaiCircularDependencyWarnings,
90
- ignoreNiseSinonEvalWarnings
91
- ];
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
92
41
 
93
42
  /**
94
43
  * Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
122
71
  nodeResolve({
123
72
  mainFields: ["module", "browser"]
124
73
  }),
125
- cjs({
126
- namedExports: {
127
- // Chai's strange internal architecture makes it impossible to statically
128
- // analyze its exports.
129
- chai: [
130
- "version",
131
- "use",
132
- "util",
133
- "config",
134
- "expect",
135
- "should",
136
- "assert"
137
- ],
138
- ...openTelemetryCommonJs()
139
- }
140
- }),
74
+ cjs(),
141
75
  json(),
142
76
  sourcemaps()
143
77
  //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173
107
  ],
174
108
  output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
109
  preserveSymlinks: false,
176
- plugins: [sourcemaps(), nodeResolve(), cjs()]
110
+ plugins: [sourcemaps(), nodeResolve()]
177
111
  };
178
112
 
179
113
  const config = [baseConfig];
package/src/portal.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
11
  import * as coreAuth from "@azure/core-auth";
11
12
  import {
12
13
  OperationsImpl,
@@ -55,7 +56,7 @@ export class Portal extends coreClient.ServiceClient {
55
56
  credential: credentials
56
57
  };
57
58
 
58
- const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.2`;
59
+ const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.3`;
59
60
  const userAgentPrefix =
60
61
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
61
62
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -70,9 +71,33 @@ export class Portal extends coreClient.ServiceClient {
70
71
  userAgentOptions: {
71
72
  userAgentPrefix
72
73
  },
73
- baseUri: options.endpoint || "https://management.azure.com"
74
+ baseUri:
75
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com"
74
76
  };
75
77
  super(optionsWithDefaults);
78
+
79
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
80
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
81
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
82
+ (pipelinePolicy) =>
83
+ pipelinePolicy.name ===
84
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
85
+ );
86
+ if (!bearerTokenAuthenticationPolicyFound) {
87
+ this.pipeline.removePolicy({
88
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
89
+ });
90
+ this.pipeline.addPolicy(
91
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
92
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
93
+ challengeCallbacks: {
94
+ authorizeRequestOnChallenge:
95
+ coreClient.authorizeRequestOnClaimChallenge
96
+ }
97
+ })
98
+ );
99
+ }
100
+ }
76
101
  // Parameter assignments
77
102
  this.subscriptionId = subscriptionId;
78
103
 
package/tsconfig.json CHANGED
@@ -9,11 +9,25 @@
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6", "dom"],
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
13
16
  "declaration": true,
14
17
  "outDir": "./dist-esm",
15
- "importHelpers": true
18
+ "importHelpers": true,
19
+ "paths": {
20
+ "@azure/arm-portal": [
21
+ "./src/index"
22
+ ]
23
+ }
16
24
  },
17
- "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
- "exclude": ["node_modules"]
19
- }
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts",
28
+ "samples-dev/**/*.ts"
29
+ ],
30
+ "exclude": [
31
+ "node_modules"
32
+ ]
33
+ }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.2"
8
+ "packageVersion": "7.18.11"
9
9
  }
10
10
  ]
11
11
  }