@azure/arm-resourcehealth 1.2.0 → 3.0.0-alpha.20211215.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -83
  4. package/dist/index.js +1811 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +6 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +13 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/microsoftResourceHealth.d.ts +20 -0
  13. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -0
  14. package/dist-esm/src/microsoftResourceHealth.js +27 -0
  15. package/dist-esm/src/microsoftResourceHealth.js.map +1 -0
  16. package/dist-esm/src/microsoftResourceHealthContext.d.ts +17 -0
  17. package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +1 -0
  18. package/dist-esm/src/microsoftResourceHealthContext.js +50 -0
  19. package/dist-esm/src/microsoftResourceHealthContext.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +402 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +22 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +21 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +393 -170
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +12 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/parameters.js +52 -36
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/availabilityStatuses.d.ts +102 -0
  33. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -0
  34. package/dist-esm/src/operations/availabilityStatuses.js +407 -0
  35. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -0
  36. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +51 -0
  37. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -0
  38. package/dist-esm/src/operations/childAvailabilityStatuses.js +173 -0
  39. package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -0
  40. package/dist-esm/src/operations/childResources.d.ts +43 -0
  41. package/dist-esm/src/operations/childResources.d.ts.map +1 -0
  42. package/dist-esm/src/operations/childResources.js +143 -0
  43. package/dist-esm/src/operations/childResources.js.map +1 -0
  44. package/dist-esm/src/operations/emergingIssues.d.ts +37 -0
  45. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -0
  46. package/dist-esm/src/operations/emergingIssues.js +143 -0
  47. package/dist-esm/src/operations/emergingIssues.js.map +1 -0
  48. package/dist-esm/src/operations/index.d.ts +6 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/dist-esm/src/operations/index.js +13 -0
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/operations.d.ts +18 -0
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/operations.js +46 -0
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +40 -0
  57. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/availabilityStatuses.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/availabilityStatuses.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
  61. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/childResources.d.ts +15 -0
  65. package/dist-esm/src/operationsInterfaces/childResources.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/childResources.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/childResources.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +16 -0
  69. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/emergingIssues.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/emergingIssues.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  77. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +67 -24
  85. package/review/arm-resourcehealth.api.md +396 -0
  86. package/rollup.config.js +184 -27
  87. package/src/index.ts +13 -0
  88. package/src/microsoftResourceHealth.ts +40 -38
  89. package/src/microsoftResourceHealthContext.ts +49 -47
  90. package/src/models/index.ts +382 -532
  91. package/src/models/mappers.ts +409 -175
  92. package/src/models/parameters.ts +66 -37
  93. package/src/operations/availabilityStatuses.ts +335 -272
  94. package/src/operations/childAvailabilityStatuses.ts +210 -0
  95. package/src/operations/childResources.ts +168 -0
  96. package/src/operations/emergingIssues.ts +165 -0
  97. package/src/operations/index.ts +6 -5
  98. package/src/operations/operations.ts +26 -41
  99. package/src/operationsInterfaces/availabilityStatuses.ts +67 -0
  100. package/src/operationsInterfaces/childAvailabilityStatuses.ts +43 -0
  101. package/src/operationsInterfaces/childResources.ts +30 -0
  102. package/src/operationsInterfaces/emergingIssues.ts +34 -0
  103. package/src/operationsInterfaces/index.ts +13 -0
  104. package/src/operationsInterfaces/operations.ts +21 -0
  105. package/tsconfig.json +4 -4
  106. package/types/arm-resourcehealth.d.ts +588 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-resourcehealth.js +0 -1047
  109. package/dist/arm-resourcehealth.js.map +0 -1
  110. package/dist/arm-resourcehealth.min.js +0 -1
  111. package/dist/arm-resourcehealth.min.js.map +0 -1
  112. package/esm/microsoftResourceHealth.d.ts +0 -26
  113. package/esm/microsoftResourceHealth.d.ts.map +0 -1
  114. package/esm/microsoftResourceHealth.js +0 -40
  115. package/esm/microsoftResourceHealth.js.map +0 -1
  116. package/esm/microsoftResourceHealthContext.d.ts +0 -23
  117. package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
  118. package/esm/microsoftResourceHealthContext.js +0 -62
  119. package/esm/microsoftResourceHealthContext.js.map +0 -1
  120. package/esm/models/availabilityStatusesMappers.d.ts +0 -2
  121. package/esm/models/availabilityStatusesMappers.d.ts.map +0 -1
  122. package/esm/models/availabilityStatusesMappers.js +0 -11
  123. package/esm/models/availabilityStatusesMappers.js.map +0 -1
  124. package/esm/models/index.d.ts +0 -589
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js +0 -10
  127. package/esm/models/index.js.map +0 -1
  128. package/esm/models/mappers.d.ts +0 -16
  129. package/esm/models/mappers.d.ts.map +0 -1
  130. package/esm/models/mappers.js.map +0 -1
  131. package/esm/models/operationsMappers.d.ts +0 -2
  132. package/esm/models/operationsMappers.d.ts.map +0 -1
  133. package/esm/models/operationsMappers.js +0 -11
  134. package/esm/models/operationsMappers.js.map +0 -1
  135. package/esm/models/parameters.d.ts +0 -10
  136. package/esm/models/parameters.d.ts.map +0 -1
  137. package/esm/models/parameters.js.map +0 -1
  138. package/esm/operations/availabilityStatuses.d.ts +0 -166
  139. package/esm/operations/availabilityStatuses.d.ts.map +0 -1
  140. package/esm/operations/availabilityStatuses.js +0 -225
  141. package/esm/operations/availabilityStatuses.js.map +0 -1
  142. package/esm/operations/index.d.ts +0 -3
  143. package/esm/operations/index.d.ts.map +0 -1
  144. package/esm/operations/index.js +0 -12
  145. package/esm/operations/index.js.map +0 -1
  146. package/esm/operations/operations.d.ts +0 -28
  147. package/esm/operations/operations.d.ts.map +0 -1
  148. package/esm/operations/operations.js +0 -51
  149. package/esm/operations/operations.js.map +0 -1
  150. package/src/models/availabilityStatusesMappers.ts +0 -22
  151. package/src/models/operationsMappers.ts +0 -17
@@ -0,0 +1,16 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { EmergingIssuesGetResult, EmergingIssuesListOptionalParams, EmergingIssuesGetOptionalParams, EmergingIssuesGetResponse } from "../models";
3
+ /** Interface representing a EmergingIssues. */
4
+ export interface EmergingIssues {
5
+ /**
6
+ * Lists Azure services' emerging issues.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: EmergingIssuesListOptionalParams): PagedAsyncIterableIterator<EmergingIssuesGetResult>;
10
+ /**
11
+ * Gets Azure services' emerging issues.
12
+ * @param options The options parameters.
13
+ */
14
+ get(options?: EmergingIssuesGetOptionalParams): Promise<EmergingIssuesGetResponse>;
15
+ }
16
+ //# sourceMappingURL=emergingIssues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emergingIssues.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/emergingIssues.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAGnB,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,uBAAuB,CAAC,CAAC;IACvD;;;OAGG;IACH,GAAG,CACD,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACvC"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=emergingIssues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emergingIssues.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/emergingIssues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,6 @@
1
+ export * from "./availabilityStatuses";
2
+ export * from "./childAvailabilityStatuses";
3
+ export * from "./childResources";
4
+ export * from "./operations";
5
+ export * from "./emergingIssues";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
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
+ export * from "./availabilityStatuses";
9
+ export * from "./childAvailabilityStatuses";
10
+ export * from "./childResources";
11
+ export * from "./operations";
12
+ export * from "./emergingIssues";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models";
2
+ /** Interface representing a Operations. */
3
+ export interface Operations {
4
+ /**
5
+ * Lists available operations for the resourcehealth resource provider
6
+ * @param options The options parameters.
7
+ */
8
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
9
+ }
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sampleTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ import { record } from "@azure-tools/test-recorder";
10
+ const recorderEnvSetup = {
11
+ replaceableVariables: {
12
+ AZURE_CLIENT_ID: "azure_client_id",
13
+ AZURE_CLIENT_SECRET: "azure_client_secret",
14
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
+ SUBSCRIPTION_ID: "azure_subscription_id"
16
+ },
17
+ customizationsOnRecordings: [
18
+ (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
+ ],
20
+ queryParametersToSkip: []
21
+ };
22
+ describe("My test", () => {
23
+ let recorder;
24
+ beforeEach(function () {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ recorder = record(this, recorderEnvSetup);
27
+ });
28
+ });
29
+ afterEach(function () {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield recorder.stop();
32
+ });
33
+ });
34
+ it("sample test", function () {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ console.log("Hi, I'm a test!");
37
+ });
38
+ });
39
+ });
40
+ //# sourceMappingURL=sampleTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@azure/arm-resourcehealth",
3
+ "sdk-type": "mgmt",
3
4
  "author": "Microsoft Corporation",
4
- "description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.",
5
- "version": "1.2.0",
5
+ "description": "A generated SDK for MicrosoftResourceHealth.",
6
+ "version": "3.0.0-alpha.20211215.1",
7
+ "engines": {
8
+ "node": ">=12.0.0"
9
+ },
6
10
  "dependencies": {
7
- "@azure/ms-rest-azure-js": "^1.4.0",
8
- "@azure/ms-rest-js": "^1.11.0",
9
- "@azure/core-auth": "^1.1.4",
10
- "tslib": "^1.9.3"
11
+ "@azure/core-paging": ">=1.2.0-alpha <1.2.0-alphb",
12
+ "@azure/core-client": "^1.0.0",
13
+ "@azure/core-auth": "^1.3.0",
14
+ "@azure/core-rest-pipeline": "^1.1.0",
15
+ "tslib": "^2.2.0"
11
16
  },
12
17
  "keywords": [
13
18
  "node",
@@ -17,40 +22,78 @@
17
22
  "isomorphic"
18
23
  ],
19
24
  "license": "MIT",
20
- "main": "./dist/arm-resourcehealth.js",
21
- "module": "./esm/microsoftResourceHealth.js",
22
- "types": "./esm/microsoftResourceHealth.d.ts",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist-esm/src/index.js",
27
+ "types": "./types/arm-resourcehealth.d.ts",
23
28
  "devDependencies": {
24
- "typescript": "^3.6.0",
25
- "rollup": "^0.66.2",
26
- "rollup-plugin-node-resolve": "^3.4.0",
27
- "uglify-js": "^3.4.9"
29
+ "@microsoft/api-extractor": "^7.18.11",
30
+ "@rollup/plugin-commonjs": "11.0.2",
31
+ "@rollup/plugin-json": "^4.0.0",
32
+ "@rollup/plugin-multi-entry": "^3.0.0",
33
+ "@rollup/plugin-node-resolve": "^8.0.0",
34
+ "mkdirp": "^1.0.4",
35
+ "rollup": "^1.16.3",
36
+ "rollup-plugin-sourcemaps": "^0.4.2",
37
+ "typescript": "~4.2.0",
38
+ "uglify-js": "^3.4.9",
39
+ "rimraf": "^3.0.0",
40
+ "@azure/identity": "^2.0.1",
41
+ "@azure-tools/test-recorder": "^1.0.0",
42
+ "mocha": "^7.1.1",
43
+ "cross-env": "^7.0.2"
28
44
  },
29
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
45
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
30
46
  "repository": {
31
47
  "type": "git",
32
- "url": "https://github.com/azure/azure-sdk-for-js.git"
48
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
33
49
  },
34
50
  "bugs": {
35
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
51
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
36
52
  },
37
53
  "files": [
38
54
  "dist/**/*.js",
39
55
  "dist/**/*.js.map",
40
56
  "dist/**/*.d.ts",
41
57
  "dist/**/*.d.ts.map",
42
- "esm/**/*.js",
43
- "esm/**/*.js.map",
44
- "esm/**/*.d.ts",
45
- "esm/**/*.d.ts.map",
58
+ "dist-esm/**/*.js",
59
+ "dist-esm/**/*.js.map",
60
+ "dist-esm/**/*.d.ts",
61
+ "dist-esm/**/*.d.ts.map",
46
62
  "src/**/*.ts",
63
+ "README.md",
64
+ "LICENSE",
47
65
  "rollup.config.js",
48
- "tsconfig.json"
66
+ "tsconfig.json",
67
+ "review/*",
68
+ "CHANGELOG.md",
69
+ "types/*"
49
70
  ],
50
71
  "scripts": {
51
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
52
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-resourcehealth.js.map'\" -o ./dist/arm-resourcehealth.min.js ./dist/arm-resourcehealth.js",
53
- "prepack": "npm install && npm run build"
72
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
73
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
74
+ "prepack": "npm run build",
75
+ "pack": "npm pack 2>&1",
76
+ "extract-api": "api-extractor run --local",
77
+ "lint": "echo skipped",
78
+ "audit": "echo skipped",
79
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
80
+ "build:node": "echo skipped",
81
+ "build:browser": "echo skipped",
82
+ "build:test": "echo skipped",
83
+ "build:samples": "echo skipped.",
84
+ "check-format": "echo skipped",
85
+ "execute:samples": "echo skipped",
86
+ "format": "echo skipped",
87
+ "test": "npm run integration-test",
88
+ "test:node": "echo skipped",
89
+ "test:browser": "echo skipped",
90
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
91
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
92
+ "unit-test:browser": "echo skipped",
93
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
94
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
95
+ "integration-test:browser": "echo skipped",
96
+ "docs": "echo skipped"
54
97
  },
55
98
  "sideEffects": false,
56
99
  "autoPublish": true
@@ -0,0 +1,396 @@
1
+ ## API Report File for "@azure/arm-resourcehealth"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export type AvailabilityStateValues = "Available" | "Unavailable" | "Unknown";
13
+
14
+ // @public
15
+ export interface AvailabilityStatus {
16
+ id?: string;
17
+ location?: string;
18
+ name?: string;
19
+ properties?: AvailabilityStatusProperties;
20
+ type?: string;
21
+ }
22
+
23
+ // @public
24
+ export interface AvailabilityStatuses {
25
+ getByResource(resourceUri: string, options?: AvailabilityStatusesGetByResourceOptionalParams): Promise<AvailabilityStatusesGetByResourceResponse>;
26
+ list(resourceUri: string, options?: AvailabilityStatusesListOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
27
+ listByResourceGroup(resourceGroupName: string, options?: AvailabilityStatusesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
28
+ listBySubscriptionId(options?: AvailabilityStatusesListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
29
+ }
30
+
31
+ // @public
32
+ export interface AvailabilityStatusesGetByResourceOptionalParams extends coreClient.OperationOptions {
33
+ expand?: string;
34
+ filter?: string;
35
+ }
36
+
37
+ // @public
38
+ export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus;
39
+
40
+ // @public
41
+ export interface AvailabilityStatusesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
42
+ expand?: string;
43
+ filter?: string;
44
+ }
45
+
46
+ // @public
47
+ export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilityStatusListResult;
48
+
49
+ // @public
50
+ export interface AvailabilityStatusesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
51
+ expand?: string;
52
+ filter?: string;
53
+ }
54
+
55
+ // @public
56
+ export type AvailabilityStatusesListByResourceGroupResponse = AvailabilityStatusListResult;
57
+
58
+ // @public
59
+ export interface AvailabilityStatusesListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {
60
+ expand?: string;
61
+ filter?: string;
62
+ }
63
+
64
+ // @public
65
+ export type AvailabilityStatusesListBySubscriptionIdNextResponse = AvailabilityStatusListResult;
66
+
67
+ // @public
68
+ export interface AvailabilityStatusesListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
69
+ expand?: string;
70
+ filter?: string;
71
+ }
72
+
73
+ // @public
74
+ export type AvailabilityStatusesListBySubscriptionIdResponse = AvailabilityStatusListResult;
75
+
76
+ // @public
77
+ export interface AvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions {
78
+ expand?: string;
79
+ filter?: string;
80
+ }
81
+
82
+ // @public
83
+ export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult;
84
+
85
+ // @public
86
+ export interface AvailabilityStatusesListOptionalParams extends coreClient.OperationOptions {
87
+ expand?: string;
88
+ filter?: string;
89
+ }
90
+
91
+ // @public
92
+ export type AvailabilityStatusesListResponse = AvailabilityStatusListResult;
93
+
94
+ // @public
95
+ export interface AvailabilityStatusListResult {
96
+ nextLink?: string;
97
+ value: AvailabilityStatus[];
98
+ }
99
+
100
+ // @public
101
+ export interface AvailabilityStatusProperties {
102
+ availabilityState?: AvailabilityStateValues;
103
+ detailedStatus?: string;
104
+ healthEventCategory?: string;
105
+ healthEventCause?: string;
106
+ healthEventId?: string;
107
+ healthEventType?: string;
108
+ occuredTime?: Date;
109
+ reasonChronicity?: ReasonChronicityTypes;
110
+ reasonType?: string;
111
+ recentlyResolvedState?: AvailabilityStatusPropertiesRecentlyResolvedState;
112
+ recommendedActions?: RecommendedAction[];
113
+ reportedTime?: Date;
114
+ resolutionETA?: Date;
115
+ rootCauseAttributionTime?: Date;
116
+ serviceImpactingEvents?: ServiceImpactingEvent[];
117
+ summary?: string;
118
+ }
119
+
120
+ // @public
121
+ export interface AvailabilityStatusPropertiesRecentlyResolvedState {
122
+ resolvedTime?: Date;
123
+ unavailabilitySummary?: string;
124
+ unavailableOccurredTime?: Date;
125
+ }
126
+
127
+ // @public
128
+ export interface ChildAvailabilityStatuses {
129
+ getByResource(resourceUri: string, options?: ChildAvailabilityStatusesGetByResourceOptionalParams): Promise<ChildAvailabilityStatusesGetByResourceResponse>;
130
+ list(resourceUri: string, options?: ChildAvailabilityStatusesListOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
131
+ }
132
+
133
+ // @public
134
+ export interface ChildAvailabilityStatusesGetByResourceOptionalParams extends coreClient.OperationOptions {
135
+ expand?: string;
136
+ filter?: string;
137
+ }
138
+
139
+ // @public
140
+ export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus;
141
+
142
+ // @public
143
+ export interface ChildAvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions {
144
+ expand?: string;
145
+ filter?: string;
146
+ }
147
+
148
+ // @public
149
+ export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult;
150
+
151
+ // @public
152
+ export interface ChildAvailabilityStatusesListOptionalParams extends coreClient.OperationOptions {
153
+ expand?: string;
154
+ filter?: string;
155
+ }
156
+
157
+ // @public
158
+ export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult;
159
+
160
+ // @public
161
+ export interface ChildResources {
162
+ list(resourceUri: string, options?: ChildResourcesListOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
163
+ }
164
+
165
+ // @public
166
+ export interface ChildResourcesListNextOptionalParams extends coreClient.OperationOptions {
167
+ expand?: string;
168
+ filter?: string;
169
+ }
170
+
171
+ // @public
172
+ export type ChildResourcesListNextResponse = AvailabilityStatusListResult;
173
+
174
+ // @public
175
+ export interface ChildResourcesListOptionalParams extends coreClient.OperationOptions {
176
+ expand?: string;
177
+ filter?: string;
178
+ }
179
+
180
+ // @public
181
+ export type ChildResourcesListResponse = AvailabilityStatusListResult;
182
+
183
+ // @public
184
+ export interface EmergingIssueImpact {
185
+ id?: string;
186
+ name?: string;
187
+ regions?: ImpactedRegion[];
188
+ }
189
+
190
+ // @public
191
+ export interface EmergingIssueListResult {
192
+ nextLink?: string;
193
+ value?: EmergingIssuesGetResult[];
194
+ }
195
+
196
+ // @public
197
+ export interface EmergingIssues {
198
+ get(options?: EmergingIssuesGetOptionalParams): Promise<EmergingIssuesGetResponse>;
199
+ list(options?: EmergingIssuesListOptionalParams): PagedAsyncIterableIterator<EmergingIssuesGetResult>;
200
+ }
201
+
202
+ // @public
203
+ export interface EmergingIssuesGetOptionalParams extends coreClient.OperationOptions {
204
+ }
205
+
206
+ // @public
207
+ export type EmergingIssuesGetResponse = EmergingIssuesGetResult;
208
+
209
+ // @public
210
+ export type EmergingIssuesGetResult = Resource & {
211
+ refreshTimestamp?: Date;
212
+ statusBanners?: StatusBanner[];
213
+ statusActiveEvents?: StatusActiveEvent[];
214
+ };
215
+
216
+ // @public
217
+ export interface EmergingIssuesListNextOptionalParams extends coreClient.OperationOptions {
218
+ }
219
+
220
+ // @public
221
+ export type EmergingIssuesListNextResponse = EmergingIssueListResult;
222
+
223
+ // @public
224
+ export interface EmergingIssuesListOptionalParams extends coreClient.OperationOptions {
225
+ }
226
+
227
+ // @public
228
+ export type EmergingIssuesListResponse = EmergingIssueListResult;
229
+
230
+ // @public
231
+ export interface ErrorResponse {
232
+ readonly code?: string;
233
+ readonly details?: string;
234
+ readonly message?: string;
235
+ }
236
+
237
+ // @public
238
+ export interface ImpactedRegion {
239
+ id?: string;
240
+ name?: string;
241
+ }
242
+
243
+ // @public
244
+ export enum KnownSeverityValues {
245
+ // (undocumented)
246
+ Error = "Error",
247
+ // (undocumented)
248
+ Information = "Information",
249
+ // (undocumented)
250
+ Warning = "Warning"
251
+ }
252
+
253
+ // @public
254
+ export enum KnownStageValues {
255
+ // (undocumented)
256
+ Active = "Active",
257
+ // (undocumented)
258
+ Archived = "Archived",
259
+ // (undocumented)
260
+ Resolve = "Resolve"
261
+ }
262
+
263
+ // @public (undocumented)
264
+ export class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
265
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams);
266
+ // (undocumented)
267
+ availabilityStatuses: AvailabilityStatuses;
268
+ // (undocumented)
269
+ childAvailabilityStatuses: ChildAvailabilityStatuses;
270
+ // (undocumented)
271
+ childResources: ChildResources;
272
+ // (undocumented)
273
+ emergingIssues: EmergingIssues;
274
+ // (undocumented)
275
+ operations: Operations;
276
+ }
277
+
278
+ // @public (undocumented)
279
+ export class MicrosoftResourceHealthContext extends coreClient.ServiceClient {
280
+ // (undocumented)
281
+ $host: string;
282
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams);
283
+ // (undocumented)
284
+ apiVersion: string;
285
+ // (undocumented)
286
+ subscriptionId: string;
287
+ }
288
+
289
+ // @public
290
+ export interface MicrosoftResourceHealthOptionalParams extends coreClient.ServiceClientOptions {
291
+ $host?: string;
292
+ apiVersion?: string;
293
+ endpoint?: string;
294
+ }
295
+
296
+ // @public
297
+ export interface Operation {
298
+ display?: OperationDisplay;
299
+ name?: string;
300
+ }
301
+
302
+ // @public
303
+ export interface OperationDisplay {
304
+ description?: string;
305
+ operation?: string;
306
+ provider?: string;
307
+ resource?: string;
308
+ }
309
+
310
+ // @public
311
+ export interface OperationListResult {
312
+ value: Operation[];
313
+ }
314
+
315
+ // @public
316
+ export interface Operations {
317
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
318
+ }
319
+
320
+ // @public
321
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
322
+ }
323
+
324
+ // @public
325
+ export type OperationsListResponse = OperationListResult;
326
+
327
+ // @public
328
+ export type ReasonChronicityTypes = "Transient" | "Persistent";
329
+
330
+ // @public
331
+ export interface RecommendedAction {
332
+ action?: string;
333
+ actionUrl?: string;
334
+ actionUrlText?: string;
335
+ }
336
+
337
+ // @public
338
+ export interface Resource {
339
+ readonly id?: string;
340
+ readonly name?: string;
341
+ readonly type?: string;
342
+ }
343
+
344
+ // @public
345
+ export interface ServiceImpactingEvent {
346
+ correlationId?: string;
347
+ eventStartTime?: Date;
348
+ eventStatusLastModifiedTime?: Date;
349
+ incidentProperties?: ServiceImpactingEventIncidentProperties;
350
+ status?: ServiceImpactingEventStatus;
351
+ }
352
+
353
+ // @public
354
+ export interface ServiceImpactingEventIncidentProperties {
355
+ incidentType?: string;
356
+ region?: string;
357
+ service?: string;
358
+ title?: string;
359
+ }
360
+
361
+ // @public
362
+ export interface ServiceImpactingEventStatus {
363
+ value?: string;
364
+ }
365
+
366
+ // @public
367
+ export type SeverityValues = string;
368
+
369
+ // @public
370
+ export type StageValues = string;
371
+
372
+ // @public
373
+ export interface StatusActiveEvent {
374
+ cloud?: string;
375
+ description?: string;
376
+ impacts?: EmergingIssueImpact[];
377
+ lastModifiedTime?: Date;
378
+ published?: boolean;
379
+ severity?: SeverityValues;
380
+ stage?: StageValues;
381
+ startTime?: Date;
382
+ title?: string;
383
+ trackingId?: string;
384
+ }
385
+
386
+ // @public
387
+ export interface StatusBanner {
388
+ cloud?: string;
389
+ lastModifiedTime?: Date;
390
+ message?: string;
391
+ title?: string;
392
+ }
393
+
394
+ // (No @packageDocumentation comment for this package)
395
+
396
+ ```