@azure/arm-resourcehealth 2.0.0 → 3.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +1811 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/microsoftResourceHealth.d.ts +20 -0
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -0
- package/dist-esm/src/microsoftResourceHealth.js +27 -0
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -0
- package/dist-esm/src/microsoftResourceHealthContext.d.ts +17 -0
- package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +1 -0
- package/dist-esm/src/microsoftResourceHealthContext.js +50 -0
- package/dist-esm/src/microsoftResourceHealthContext.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +402 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +233 -309
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +44 -39
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/availabilityStatuses.d.ts +102 -0
- package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -0
- package/dist-esm/src/operations/availabilityStatuses.js +407 -0
- package/dist-esm/src/operations/availabilityStatuses.js.map +1 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +51 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.js +173 -0
- package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -0
- package/dist-esm/src/operations/childResources.d.ts +43 -0
- package/dist-esm/src/operations/childResources.d.ts.map +1 -0
- package/dist-esm/src/operations/childResources.js +143 -0
- package/dist-esm/src/operations/childResources.js.map +1 -0
- package/dist-esm/src/operations/emergingIssues.d.ts +37 -0
- package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -0
- package/dist-esm/src/operations/emergingIssues.js +143 -0
- package/dist-esm/src/operations/emergingIssues.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/availabilityStatuses.js} +2 -7
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js} +2 -2
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/childResources.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/childResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/childResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/childResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.js +9 -0
- package/dist-esm/src/operationsInterfaces/emergingIssues.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +63 -32
- package/review/arm-resourcehealth.api.md +396 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +13 -0
- package/src/microsoftResourceHealth.ts +38 -41
- package/src/microsoftResourceHealthContext.ts +47 -44
- package/src/models/index.ts +322 -878
- package/src/models/mappers.ts +232 -320
- package/src/models/parameters.ts +58 -40
- package/src/operations/availabilityStatuses.ts +325 -276
- package/src/operations/childAvailabilityStatuses.ts +137 -130
- package/src/operations/childResources.ts +109 -85
- package/src/operations/emergingIssues.ts +96 -103
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +24 -38
- package/src/operationsInterfaces/availabilityStatuses.ts +67 -0
- package/src/operationsInterfaces/childAvailabilityStatuses.ts +43 -0
- package/src/operationsInterfaces/childResources.ts +30 -0
- package/src/operationsInterfaces/emergingIssues.ts +34 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/tsconfig.json +3 -3
- package/types/arm-resourcehealth.d.ts +588 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-resourcehealth.js +0 -1743
- package/dist/arm-resourcehealth.js.map +0 -1
- package/dist/arm-resourcehealth.min.js +0 -1
- package/dist/arm-resourcehealth.min.js.map +0 -1
- package/esm/microsoftResourceHealth.d.ts +0 -29
- package/esm/microsoftResourceHealth.d.ts.map +0 -1
- package/esm/microsoftResourceHealth.js +0 -42
- package/esm/microsoftResourceHealth.js.map +0 -1
- package/esm/microsoftResourceHealthContext.d.ts +0 -23
- package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
- package/esm/microsoftResourceHealthContext.js +0 -61
- package/esm/microsoftResourceHealthContext.js.map +0 -1
- package/esm/models/availabilityStatusesMappers.d.ts +0 -2
- package/esm/models/availabilityStatusesMappers.d.ts.map +0 -1
- package/esm/models/availabilityStatusesMappers.js +0 -9
- package/esm/models/availabilityStatusesMappers.js.map +0 -1
- package/esm/models/childAvailabilityStatusesMappers.d.ts +0 -2
- package/esm/models/childAvailabilityStatusesMappers.d.ts.map +0 -1
- package/esm/models/childAvailabilityStatusesMappers.js +0 -9
- package/esm/models/childAvailabilityStatusesMappers.js.map +0 -1
- package/esm/models/childResourcesMappers.d.ts +0 -2
- package/esm/models/childResourcesMappers.d.ts.map +0 -1
- package/esm/models/childResourcesMappers.js +0 -9
- package/esm/models/childResourcesMappers.js.map +0 -1
- package/esm/models/emergingIssuesMappers.d.ts +0 -2
- package/esm/models/emergingIssuesMappers.d.ts.map +0 -1
- package/esm/models/emergingIssuesMappers.js +0 -9
- package/esm/models/emergingIssuesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -957
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -26
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/availabilityStatuses.d.ts +0 -166
- package/esm/operations/availabilityStatuses.d.ts.map +0 -1
- package/esm/operations/availabilityStatuses.js +0 -239
- package/esm/operations/availabilityStatuses.js.map +0 -1
- package/esm/operations/childAvailabilityStatuses.d.ts +0 -81
- package/esm/operations/childAvailabilityStatuses.d.ts.map +0 -1
- package/esm/operations/childAvailabilityStatuses.js +0 -117
- package/esm/operations/childAvailabilityStatuses.js.map +0 -1
- package/esm/operations/childResources.d.ts +0 -57
- package/esm/operations/childResources.d.ts.map +0 -1
- package/esm/operations/childResources.js +0 -87
- package/esm/operations/childResources.js.map +0 -1
- package/esm/operations/emergingIssues.d.ts +0 -61
- package/esm/operations/emergingIssues.d.ts.map +0 -1
- package/esm/operations/emergingIssues.js +0 -106
- package/esm/operations/emergingIssues.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/src/models/availabilityStatusesMappers.ts +0 -19
- package/src/models/childAvailabilityStatusesMappers.ts +0 -19
- package/src/models/childResourcesMappers.ts +0 -19
- package/src/models/emergingIssuesMappers.ts +0 -22
@@ -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 @@
|
|
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 @@
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
@@ -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,58 +1,89 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/arm-resourcehealth",
|
3
|
+
"sdk-type": "mgmt",
|
3
4
|
"author": "Microsoft Corporation",
|
4
|
-
"description": "
|
5
|
-
"version": "
|
5
|
+
"description": "A generated SDK for MicrosoftResourceHealth.",
|
6
|
+
"version": "3.0.0-beta.1",
|
7
|
+
"engines": { "node": ">=12.0.0" },
|
6
8
|
"dependencies": {
|
7
|
-
"@azure/
|
8
|
-
"@azure/
|
9
|
-
"@azure/core-auth": "^1.
|
10
|
-
"
|
9
|
+
"@azure/core-paging": "^1.2.0",
|
10
|
+
"@azure/core-client": "^1.0.0",
|
11
|
+
"@azure/core-auth": "^1.3.0",
|
12
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
13
|
+
"tslib": "^2.2.0"
|
11
14
|
},
|
12
|
-
"keywords": [
|
13
|
-
"node",
|
14
|
-
"azure",
|
15
|
-
"typescript",
|
16
|
-
"browser",
|
17
|
-
"isomorphic"
|
18
|
-
],
|
15
|
+
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
|
19
16
|
"license": "MIT",
|
20
|
-
"main": "./dist/
|
21
|
-
"module": "./esm/
|
22
|
-
"types": "./
|
17
|
+
"main": "./dist/index.js",
|
18
|
+
"module": "./dist-esm/src/index.js",
|
19
|
+
"types": "./types/arm-resourcehealth.d.ts",
|
23
20
|
"devDependencies": {
|
24
|
-
"
|
25
|
-
"rollup": "
|
26
|
-
"rollup
|
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",
|
26
|
+
"mkdirp": "^1.0.4",
|
27
|
+
"rollup": "^1.16.3",
|
27
28
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
28
|
-
"
|
29
|
+
"typescript": "~4.2.0",
|
30
|
+
"uglify-js": "^3.4.9",
|
31
|
+
"rimraf": "^3.0.0",
|
32
|
+
"@azure/identity": "^2.0.1",
|
33
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
34
|
+
"mocha": "^7.1.1",
|
35
|
+
"cross-env": "^7.0.2"
|
29
36
|
},
|
30
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/
|
37
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
|
31
38
|
"repository": {
|
32
39
|
"type": "git",
|
33
40
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
34
41
|
},
|
35
|
-
"bugs": {
|
36
|
-
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
37
|
-
},
|
42
|
+
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
|
38
43
|
"files": [
|
39
44
|
"dist/**/*.js",
|
40
45
|
"dist/**/*.js.map",
|
41
46
|
"dist/**/*.d.ts",
|
42
47
|
"dist/**/*.d.ts.map",
|
43
|
-
"esm/**/*.js",
|
44
|
-
"esm/**/*.js.map",
|
45
|
-
"esm/**/*.d.ts",
|
46
|
-
"esm/**/*.d.ts.map",
|
48
|
+
"dist-esm/**/*.js",
|
49
|
+
"dist-esm/**/*.js.map",
|
50
|
+
"dist-esm/**/*.d.ts",
|
51
|
+
"dist-esm/**/*.d.ts.map",
|
47
52
|
"src/**/*.ts",
|
48
53
|
"README.md",
|
54
|
+
"LICENSE",
|
49
55
|
"rollup.config.js",
|
50
|
-
"tsconfig.json"
|
56
|
+
"tsconfig.json",
|
57
|
+
"review/*",
|
58
|
+
"CHANGELOG.md",
|
59
|
+
"types/*"
|
51
60
|
],
|
52
61
|
"scripts": {
|
53
|
-
"build": "tsc && rollup -c
|
54
|
-
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/
|
55
|
-
"prepack": "npm
|
62
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
63
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
64
|
+
"prepack": "npm run build",
|
65
|
+
"pack": "npm pack 2>&1",
|
66
|
+
"extract-api": "api-extractor run --local",
|
67
|
+
"lint": "echo skipped",
|
68
|
+
"audit": "echo skipped",
|
69
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
70
|
+
"build:node": "echo skipped",
|
71
|
+
"build:browser": "echo skipped",
|
72
|
+
"build:test": "echo skipped",
|
73
|
+
"build:samples": "echo skipped.",
|
74
|
+
"check-format": "echo skipped",
|
75
|
+
"execute:samples": "echo skipped",
|
76
|
+
"format": "echo skipped",
|
77
|
+
"test": "npm run integration-test",
|
78
|
+
"test:node": "echo skipped",
|
79
|
+
"test:browser": "echo skipped",
|
80
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
81
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
82
|
+
"unit-test:browser": "echo skipped",
|
83
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
84
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
85
|
+
"integration-test:browser": "echo skipped",
|
86
|
+
"docs": "echo skipped"
|
56
87
|
},
|
57
88
|
"sideEffects": false,
|
58
89
|
"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
|
+
```
|