@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.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -83
- 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 +393 -170
- 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 +52 -36
- 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/dist-esm/src/operations/index.d.ts +6 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +13 -0
- 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/dist-esm/src/operationsInterfaces/availabilityStatuses.js +9 -0
- 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/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js +9 -0
- 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/dist-esm/src/operationsInterfaces/operations.js +9 -0
- 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 +67 -24
- package/review/arm-resourcehealth.api.md +396 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +13 -0
- package/src/microsoftResourceHealth.ts +40 -38
- package/src/microsoftResourceHealthContext.ts +49 -47
- package/src/models/index.ts +382 -532
- package/src/models/mappers.ts +409 -175
- package/src/models/parameters.ts +66 -37
- package/src/operations/availabilityStatuses.ts +335 -272
- package/src/operations/childAvailabilityStatuses.ts +210 -0
- package/src/operations/childResources.ts +168 -0
- package/src/operations/emergingIssues.ts +165 -0
- package/src/operations/index.ts +6 -5
- package/src/operations/operations.ts +26 -41
- 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 +4 -4
- package/types/arm-resourcehealth.d.ts +588 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-resourcehealth.js +0 -1047
- 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 -26
- package/esm/microsoftResourceHealth.d.ts.map +0 -1
- package/esm/microsoftResourceHealth.js +0 -40
- 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 -62
- 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 -11
- package/esm/models/availabilityStatusesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -589
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -16
- 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 +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- 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 -225
- package/esm/operations/availabilityStatuses.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- 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 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/models/availabilityStatusesMappers.ts +0 -22
- package/src/models/operationsMappers.ts +0 -17
@@ -0,0 +1,67 @@
|
|
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
|
+
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import {
|
11
|
+
AvailabilityStatus,
|
12
|
+
AvailabilityStatusesListBySubscriptionIdOptionalParams,
|
13
|
+
AvailabilityStatusesListByResourceGroupOptionalParams,
|
14
|
+
AvailabilityStatusesListOptionalParams,
|
15
|
+
AvailabilityStatusesGetByResourceOptionalParams,
|
16
|
+
AvailabilityStatusesGetByResourceResponse
|
17
|
+
} from "../models";
|
18
|
+
|
19
|
+
/// <reference lib="esnext.asynciterable" />
|
20
|
+
/** Interface representing a AvailabilityStatuses. */
|
21
|
+
export interface AvailabilityStatuses {
|
22
|
+
/**
|
23
|
+
* Lists the current availability status for all the resources in the subscription. Use the nextLink
|
24
|
+
* property in the response to get the next page of availability statuses.
|
25
|
+
* @param options The options parameters.
|
26
|
+
*/
|
27
|
+
listBySubscriptionId(
|
28
|
+
options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
|
29
|
+
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
30
|
+
/**
|
31
|
+
* Lists the current availability status for all the resources in the resource group. Use the nextLink
|
32
|
+
* property in the response to get the next page of availability statuses.
|
33
|
+
* @param resourceGroupName The name of the resource group.
|
34
|
+
* @param options The options parameters.
|
35
|
+
*/
|
36
|
+
listByResourceGroup(
|
37
|
+
resourceGroupName: string,
|
38
|
+
options?: AvailabilityStatusesListByResourceGroupOptionalParams
|
39
|
+
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
40
|
+
/**
|
41
|
+
* Lists all historical availability transitions and impacting events for a single resource. Use the
|
42
|
+
* nextLink property in the response to get the next page of availability status
|
43
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
44
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
45
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
46
|
+
* and
|
47
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
48
|
+
* @param options The options parameters.
|
49
|
+
*/
|
50
|
+
list(
|
51
|
+
resourceUri: string,
|
52
|
+
options?: AvailabilityStatusesListOptionalParams
|
53
|
+
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
54
|
+
/**
|
55
|
+
* Gets current availability status for a single resource
|
56
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
57
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
58
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
59
|
+
* and
|
60
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
61
|
+
* @param options The options parameters.
|
62
|
+
*/
|
63
|
+
getByResource(
|
64
|
+
resourceUri: string,
|
65
|
+
options?: AvailabilityStatusesGetByResourceOptionalParams
|
66
|
+
): Promise<AvailabilityStatusesGetByResourceResponse>;
|
67
|
+
}
|
@@ -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
|
+
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import {
|
11
|
+
AvailabilityStatus,
|
12
|
+
ChildAvailabilityStatusesListOptionalParams,
|
13
|
+
ChildAvailabilityStatusesGetByResourceOptionalParams,
|
14
|
+
ChildAvailabilityStatusesGetByResourceResponse
|
15
|
+
} from "../models";
|
16
|
+
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
18
|
+
/** Interface representing a ChildAvailabilityStatuses. */
|
19
|
+
export interface ChildAvailabilityStatuses {
|
20
|
+
/**
|
21
|
+
* Lists the historical availability statuses for a single child resource. Use the nextLink property in
|
22
|
+
* the response to get the next page of availability status
|
23
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
24
|
+
* type. Currently the API only support one nesting level resource types :
|
25
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
list(
|
29
|
+
resourceUri: string,
|
30
|
+
options?: ChildAvailabilityStatusesListOptionalParams
|
31
|
+
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
32
|
+
/**
|
33
|
+
* Gets current availability status for a single resource
|
34
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
35
|
+
* type. Currently the API only support one nesting level resource types :
|
36
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
37
|
+
* @param options The options parameters.
|
38
|
+
*/
|
39
|
+
getByResource(
|
40
|
+
resourceUri: string,
|
41
|
+
options?: ChildAvailabilityStatusesGetByResourceOptionalParams
|
42
|
+
): Promise<ChildAvailabilityStatusesGetByResourceResponse>;
|
43
|
+
}
|
@@ -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
|
+
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import {
|
11
|
+
AvailabilityStatus,
|
12
|
+
ChildResourcesListOptionalParams
|
13
|
+
} from "../models";
|
14
|
+
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
16
|
+
/** Interface representing a ChildResources. */
|
17
|
+
export interface ChildResources {
|
18
|
+
/**
|
19
|
+
* Lists the all the children and its current health status for a parent resource. Use the nextLink
|
20
|
+
* property in the response to get the next page of children current health
|
21
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
22
|
+
* type. Currently the API only support not nested parent resource type:
|
23
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
24
|
+
* @param options The options parameters.
|
25
|
+
*/
|
26
|
+
list(
|
27
|
+
resourceUri: string,
|
28
|
+
options?: ChildResourcesListOptionalParams
|
29
|
+
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
30
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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
|
+
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import {
|
11
|
+
EmergingIssuesGetResult,
|
12
|
+
EmergingIssuesListOptionalParams,
|
13
|
+
EmergingIssuesGetOptionalParams,
|
14
|
+
EmergingIssuesGetResponse
|
15
|
+
} from "../models";
|
16
|
+
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
18
|
+
/** Interface representing a EmergingIssues. */
|
19
|
+
export interface EmergingIssues {
|
20
|
+
/**
|
21
|
+
* Lists Azure services' emerging issues.
|
22
|
+
* @param options The options parameters.
|
23
|
+
*/
|
24
|
+
list(
|
25
|
+
options?: EmergingIssuesListOptionalParams
|
26
|
+
): PagedAsyncIterableIterator<EmergingIssuesGetResult>;
|
27
|
+
/**
|
28
|
+
* Gets Azure services' emerging issues.
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
get(
|
32
|
+
options?: EmergingIssuesGetOptionalParams
|
33
|
+
): Promise<EmergingIssuesGetResponse>;
|
34
|
+
}
|
@@ -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
|
+
|
9
|
+
export * from "./availabilityStatuses";
|
10
|
+
export * from "./childAvailabilityStatuses";
|
11
|
+
export * from "./childResources";
|
12
|
+
export * from "./operations";
|
13
|
+
export * from "./emergingIssues";
|
@@ -0,0 +1,21 @@
|
|
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
|
+
|
9
|
+
import {
|
10
|
+
OperationsListOptionalParams,
|
11
|
+
OperationsListResponse
|
12
|
+
} from "../models";
|
13
|
+
|
14
|
+
/** Interface representing a Operations. */
|
15
|
+
export interface Operations {
|
16
|
+
/**
|
17
|
+
* Lists available operations for the resourcehealth resource provider
|
18
|
+
* @param options The options parameters.
|
19
|
+
*/
|
20
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
21
|
+
}
|
package/tsconfig.json
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
"module": "es6",
|
4
4
|
"moduleResolution": "node",
|
5
5
|
"strict": true,
|
6
|
-
"target": "
|
6
|
+
"target": "es6",
|
7
7
|
"sourceMap": true,
|
8
8
|
"declarationMap": true,
|
9
9
|
"esModuleInterop": true,
|
10
10
|
"allowSyntheticDefaultImports": true,
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
12
|
-
"lib": ["es6"],
|
12
|
+
"lib": ["es6", "dom"],
|
13
13
|
"declaration": true,
|
14
|
-
"outDir": "./esm",
|
14
|
+
"outDir": "./dist-esm",
|
15
15
|
"importHelpers": true
|
16
16
|
},
|
17
|
-
"include": ["./src/**/*.ts"],
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
18
18
|
"exclude": ["node_modules"]
|
19
19
|
}
|