@azure/arm-resourcehealth 3.2.1-alpha.20230511.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +111 -8
- package/dist/index.js +2621 -386
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +3 -3
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +3 -3
- package/dist-esm/samples-dev/availabilityStatusesListSample.js +3 -3
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +4 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +4 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childResourcesListSample.js +3 -3
- package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesGetSample.js +3 -2
- package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesListSample.js +1 -1
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +37 -0
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +38 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +43 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +44 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +59 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +63 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js +64 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +39 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.js +38 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +62 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +63 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.d.ts +2 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.js +38 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -0
- package/dist-esm/samples-dev/metadataListSample.d.ts +2 -0
- package/dist-esm/samples-dev/metadataListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/metadataListSample.js +58 -0
- package/dist-esm/samples-dev/metadataListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +37 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +58 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +59 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
- package/dist-esm/src/microsoftResourceHealth.d.ts +8 -4
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.js +10 -6
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +657 -34
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +114 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +24 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +883 -100
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +51 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.d.ts +9 -15
- package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.js +9 -15
- package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
- package/dist-esm/src/operations/emergingIssues.d.ts +6 -5
- package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
- package/dist-esm/src/operations/emergingIssues.js +15 -14
- package/dist-esm/src/operations/emergingIssues.js.map +1 -1
- package/dist-esm/src/operations/eventOperations.d.ts +39 -0
- package/dist-esm/src/operations/eventOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/eventOperations.js +137 -0
- package/dist-esm/src/operations/eventOperations.js.map +1 -0
- package/dist-esm/src/operations/eventsOperations.d.ts +83 -0
- package/dist-esm/src/operations/eventsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/eventsOperations.js +393 -0
- package/dist-esm/src/operations/eventsOperations.js.map +1 -0
- package/dist-esm/src/operations/impactedResources.d.ts +72 -0
- package/dist-esm/src/operations/impactedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/impactedResources.js +330 -0
- package/dist-esm/src/operations/impactedResources.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +6 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/metadata.d.ts +38 -0
- package/dist-esm/src/operations/metadata.d.ts.map +1 -0
- package/dist-esm/src/operations/metadata.js +162 -0
- package/dist-esm/src/operations/metadata.js.map +1 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts +58 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js +271 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +4 -7
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +3 -2
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/eventOperations.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/eventOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/eventOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts +26 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +6 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/metadata.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/metadata.js +9 -0
- package/dist-esm/src/operationsInterfaces/metadata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.js +56 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.js.map +1 -0
- package/package.json +6 -6
- package/review/arm-resourcehealth.api.md +516 -8
- package/src/microsoftResourceHealth.ts +29 -8
- package/src/models/index.ts +757 -35
- package/src/models/mappers.ts +956 -101
- package/src/models/parameters.ts +55 -3
- package/src/operations/availabilityStatuses.ts +9 -15
- package/src/operations/emergingIssues.ts +24 -18
- package/src/operations/eventOperations.ts +184 -0
- package/src/operations/eventsOperations.ts +434 -0
- package/src/operations/impactedResources.ts +414 -0
- package/src/operations/index.ts +6 -1
- package/src/operations/metadata.ts +182 -0
- package/src/operations/securityAdvisoryImpactedResources.ts +342 -0
- package/src/operationsInterfaces/availabilityStatuses.ts +4 -7
- package/src/operationsInterfaces/emergingIssues.ts +3 -0
- package/src/operationsInterfaces/eventOperations.ts +60 -0
- package/src/operationsInterfaces/eventsOperations.ts +47 -0
- package/src/operationsInterfaces/impactedResources.ts +63 -0
- package/src/operationsInterfaces/index.ts +6 -1
- package/src/operationsInterfaces/metadata.ts +36 -0
- package/src/operationsInterfaces/securityAdvisoryImpactedResources.ts +37 -0
- package/types/arm-resourcehealth.d.ts +853 -23
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
@@ -0,0 +1,342 @@
|
|
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, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
11
|
+
import { SecurityAdvisoryImpactedResources } from "../operationsInterfaces";
|
12
|
+
import * as coreClient from "@azure/core-client";
|
13
|
+
import * as Mappers from "../models/mappers";
|
14
|
+
import * as Parameters from "../models/parameters";
|
15
|
+
import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
|
16
|
+
import {
|
17
|
+
EventImpactedResource,
|
18
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams,
|
19
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,
|
20
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse,
|
21
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams,
|
22
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams,
|
23
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse,
|
24
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse,
|
25
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse
|
26
|
+
} from "../models";
|
27
|
+
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
29
|
+
/** Class containing SecurityAdvisoryImpactedResources operations. */
|
30
|
+
export class SecurityAdvisoryImpactedResourcesImpl
|
31
|
+
implements SecurityAdvisoryImpactedResources {
|
32
|
+
private readonly client: MicrosoftResourceHealth;
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Initialize a new instance of the class SecurityAdvisoryImpactedResources class.
|
36
|
+
* @param client Reference to the service client
|
37
|
+
*/
|
38
|
+
constructor(client: MicrosoftResourceHealth) {
|
39
|
+
this.client = client;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Lists impacted resources in the subscription by an event (Security Advisory).
|
44
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
45
|
+
* @param options The options parameters.
|
46
|
+
*/
|
47
|
+
public listBySubscriptionIdAndEventId(
|
48
|
+
eventTrackingId: string,
|
49
|
+
options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams
|
50
|
+
): PagedAsyncIterableIterator<EventImpactedResource> {
|
51
|
+
const iter = this.listBySubscriptionIdAndEventIdPagingAll(
|
52
|
+
eventTrackingId,
|
53
|
+
options
|
54
|
+
);
|
55
|
+
return {
|
56
|
+
next() {
|
57
|
+
return iter.next();
|
58
|
+
},
|
59
|
+
[Symbol.asyncIterator]() {
|
60
|
+
return this;
|
61
|
+
},
|
62
|
+
byPage: (settings?: PageSettings) => {
|
63
|
+
if (settings?.maxPageSize) {
|
64
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
65
|
+
}
|
66
|
+
return this.listBySubscriptionIdAndEventIdPagingPage(
|
67
|
+
eventTrackingId,
|
68
|
+
options,
|
69
|
+
settings
|
70
|
+
);
|
71
|
+
}
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
private async *listBySubscriptionIdAndEventIdPagingPage(
|
76
|
+
eventTrackingId: string,
|
77
|
+
options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,
|
78
|
+
settings?: PageSettings
|
79
|
+
): AsyncIterableIterator<EventImpactedResource[]> {
|
80
|
+
let result: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse;
|
81
|
+
let continuationToken = settings?.continuationToken;
|
82
|
+
if (!continuationToken) {
|
83
|
+
result = await this._listBySubscriptionIdAndEventId(
|
84
|
+
eventTrackingId,
|
85
|
+
options
|
86
|
+
);
|
87
|
+
let page = result.value || [];
|
88
|
+
continuationToken = result.nextLink;
|
89
|
+
setContinuationToken(page, continuationToken);
|
90
|
+
yield page;
|
91
|
+
}
|
92
|
+
while (continuationToken) {
|
93
|
+
result = await this._listBySubscriptionIdAndEventIdNext(
|
94
|
+
eventTrackingId,
|
95
|
+
continuationToken,
|
96
|
+
options
|
97
|
+
);
|
98
|
+
continuationToken = result.nextLink;
|
99
|
+
let page = result.value || [];
|
100
|
+
setContinuationToken(page, continuationToken);
|
101
|
+
yield page;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
private async *listBySubscriptionIdAndEventIdPagingAll(
|
106
|
+
eventTrackingId: string,
|
107
|
+
options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams
|
108
|
+
): AsyncIterableIterator<EventImpactedResource> {
|
109
|
+
for await (const page of this.listBySubscriptionIdAndEventIdPagingPage(
|
110
|
+
eventTrackingId,
|
111
|
+
options
|
112
|
+
)) {
|
113
|
+
yield* page;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Lists impacted resources in the tenant by an event (Security Advisory).
|
119
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
120
|
+
* @param options The options parameters.
|
121
|
+
*/
|
122
|
+
public listByTenantIdAndEventId(
|
123
|
+
eventTrackingId: string,
|
124
|
+
options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams
|
125
|
+
): PagedAsyncIterableIterator<EventImpactedResource> {
|
126
|
+
const iter = this.listByTenantIdAndEventIdPagingAll(
|
127
|
+
eventTrackingId,
|
128
|
+
options
|
129
|
+
);
|
130
|
+
return {
|
131
|
+
next() {
|
132
|
+
return iter.next();
|
133
|
+
},
|
134
|
+
[Symbol.asyncIterator]() {
|
135
|
+
return this;
|
136
|
+
},
|
137
|
+
byPage: (settings?: PageSettings) => {
|
138
|
+
if (settings?.maxPageSize) {
|
139
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
140
|
+
}
|
141
|
+
return this.listByTenantIdAndEventIdPagingPage(
|
142
|
+
eventTrackingId,
|
143
|
+
options,
|
144
|
+
settings
|
145
|
+
);
|
146
|
+
}
|
147
|
+
};
|
148
|
+
}
|
149
|
+
|
150
|
+
private async *listByTenantIdAndEventIdPagingPage(
|
151
|
+
eventTrackingId: string,
|
152
|
+
options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams,
|
153
|
+
settings?: PageSettings
|
154
|
+
): AsyncIterableIterator<EventImpactedResource[]> {
|
155
|
+
let result: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse;
|
156
|
+
let continuationToken = settings?.continuationToken;
|
157
|
+
if (!continuationToken) {
|
158
|
+
result = await this._listByTenantIdAndEventId(eventTrackingId, options);
|
159
|
+
let page = result.value || [];
|
160
|
+
continuationToken = result.nextLink;
|
161
|
+
setContinuationToken(page, continuationToken);
|
162
|
+
yield page;
|
163
|
+
}
|
164
|
+
while (continuationToken) {
|
165
|
+
result = await this._listByTenantIdAndEventIdNext(
|
166
|
+
eventTrackingId,
|
167
|
+
continuationToken,
|
168
|
+
options
|
169
|
+
);
|
170
|
+
continuationToken = result.nextLink;
|
171
|
+
let page = result.value || [];
|
172
|
+
setContinuationToken(page, continuationToken);
|
173
|
+
yield page;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
private async *listByTenantIdAndEventIdPagingAll(
|
178
|
+
eventTrackingId: string,
|
179
|
+
options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams
|
180
|
+
): AsyncIterableIterator<EventImpactedResource> {
|
181
|
+
for await (const page of this.listByTenantIdAndEventIdPagingPage(
|
182
|
+
eventTrackingId,
|
183
|
+
options
|
184
|
+
)) {
|
185
|
+
yield* page;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
/**
|
190
|
+
* Lists impacted resources in the subscription by an event (Security Advisory).
|
191
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
192
|
+
* @param options The options parameters.
|
193
|
+
*/
|
194
|
+
private _listBySubscriptionIdAndEventId(
|
195
|
+
eventTrackingId: string,
|
196
|
+
options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams
|
197
|
+
): Promise<
|
198
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse
|
199
|
+
> {
|
200
|
+
return this.client.sendOperationRequest(
|
201
|
+
{ eventTrackingId, options },
|
202
|
+
listBySubscriptionIdAndEventIdOperationSpec
|
203
|
+
);
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Lists impacted resources in the tenant by an event (Security Advisory).
|
208
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
209
|
+
* @param options The options parameters.
|
210
|
+
*/
|
211
|
+
private _listByTenantIdAndEventId(
|
212
|
+
eventTrackingId: string,
|
213
|
+
options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams
|
214
|
+
): Promise<
|
215
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse
|
216
|
+
> {
|
217
|
+
return this.client.sendOperationRequest(
|
218
|
+
{ eventTrackingId, options },
|
219
|
+
listByTenantIdAndEventIdOperationSpec
|
220
|
+
);
|
221
|
+
}
|
222
|
+
|
223
|
+
/**
|
224
|
+
* ListBySubscriptionIdAndEventIdNext
|
225
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
226
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId
|
227
|
+
* method.
|
228
|
+
* @param options The options parameters.
|
229
|
+
*/
|
230
|
+
private _listBySubscriptionIdAndEventIdNext(
|
231
|
+
eventTrackingId: string,
|
232
|
+
nextLink: string,
|
233
|
+
options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams
|
234
|
+
): Promise<
|
235
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse
|
236
|
+
> {
|
237
|
+
return this.client.sendOperationRequest(
|
238
|
+
{ eventTrackingId, nextLink, options },
|
239
|
+
listBySubscriptionIdAndEventIdNextOperationSpec
|
240
|
+
);
|
241
|
+
}
|
242
|
+
|
243
|
+
/**
|
244
|
+
* ListByTenantIdAndEventIdNext
|
245
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
246
|
+
* @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId
|
247
|
+
* method.
|
248
|
+
* @param options The options parameters.
|
249
|
+
*/
|
250
|
+
private _listByTenantIdAndEventIdNext(
|
251
|
+
eventTrackingId: string,
|
252
|
+
nextLink: string,
|
253
|
+
options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams
|
254
|
+
): Promise<
|
255
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse
|
256
|
+
> {
|
257
|
+
return this.client.sendOperationRequest(
|
258
|
+
{ eventTrackingId, nextLink, options },
|
259
|
+
listByTenantIdAndEventIdNextOperationSpec
|
260
|
+
);
|
261
|
+
}
|
262
|
+
}
|
263
|
+
// Operation Specifications
|
264
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
265
|
+
|
266
|
+
const listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = {
|
267
|
+
path:
|
268
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",
|
269
|
+
httpMethod: "POST",
|
270
|
+
responses: {
|
271
|
+
200: {
|
272
|
+
bodyMapper: Mappers.EventImpactedResourceListResult
|
273
|
+
},
|
274
|
+
default: {
|
275
|
+
bodyMapper: Mappers.ErrorResponse
|
276
|
+
}
|
277
|
+
},
|
278
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
279
|
+
urlParameters: [
|
280
|
+
Parameters.$host,
|
281
|
+
Parameters.subscriptionId,
|
282
|
+
Parameters.eventTrackingId
|
283
|
+
],
|
284
|
+
headerParameters: [Parameters.accept],
|
285
|
+
serializer
|
286
|
+
};
|
287
|
+
const listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = {
|
288
|
+
path:
|
289
|
+
"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",
|
290
|
+
httpMethod: "POST",
|
291
|
+
responses: {
|
292
|
+
200: {
|
293
|
+
bodyMapper: Mappers.EventImpactedResourceListResult
|
294
|
+
},
|
295
|
+
default: {
|
296
|
+
bodyMapper: Mappers.ErrorResponse
|
297
|
+
}
|
298
|
+
},
|
299
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
300
|
+
urlParameters: [Parameters.$host, Parameters.eventTrackingId],
|
301
|
+
headerParameters: [Parameters.accept],
|
302
|
+
serializer
|
303
|
+
};
|
304
|
+
const listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {
|
305
|
+
path: "{nextLink}",
|
306
|
+
httpMethod: "GET",
|
307
|
+
responses: {
|
308
|
+
200: {
|
309
|
+
bodyMapper: Mappers.EventImpactedResourceListResult
|
310
|
+
},
|
311
|
+
default: {
|
312
|
+
bodyMapper: Mappers.ErrorResponse
|
313
|
+
}
|
314
|
+
},
|
315
|
+
urlParameters: [
|
316
|
+
Parameters.$host,
|
317
|
+
Parameters.subscriptionId,
|
318
|
+
Parameters.nextLink,
|
319
|
+
Parameters.eventTrackingId
|
320
|
+
],
|
321
|
+
headerParameters: [Parameters.accept],
|
322
|
+
serializer
|
323
|
+
};
|
324
|
+
const listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {
|
325
|
+
path: "{nextLink}",
|
326
|
+
httpMethod: "GET",
|
327
|
+
responses: {
|
328
|
+
200: {
|
329
|
+
bodyMapper: Mappers.EventImpactedResourceListResult
|
330
|
+
},
|
331
|
+
default: {
|
332
|
+
bodyMapper: Mappers.ErrorResponse
|
333
|
+
}
|
334
|
+
},
|
335
|
+
urlParameters: [
|
336
|
+
Parameters.$host,
|
337
|
+
Parameters.nextLink,
|
338
|
+
Parameters.eventTrackingId
|
339
|
+
],
|
340
|
+
headerParameters: [Parameters.accept],
|
341
|
+
serializer
|
342
|
+
};
|
@@ -20,17 +20,15 @@ import {
|
|
20
20
|
/** Interface representing a AvailabilityStatuses. */
|
21
21
|
export interface AvailabilityStatuses {
|
22
22
|
/**
|
23
|
-
* Lists the current availability status for all the resources in the subscription.
|
24
|
-
* property in the response to get the next page of availability statuses.
|
23
|
+
* Lists the current availability status for all the resources in the subscription.
|
25
24
|
* @param options The options parameters.
|
26
25
|
*/
|
27
26
|
listBySubscriptionId(
|
28
27
|
options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
|
29
28
|
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
30
29
|
/**
|
31
|
-
* Lists the current availability status for all the resources in the resource group.
|
32
|
-
*
|
33
|
-
* @param resourceGroupName The name of the resource group.
|
30
|
+
* Lists the current availability status for all the resources in the resource group.
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
34
32
|
* @param options The options parameters.
|
35
33
|
*/
|
36
34
|
listByResourceGroup(
|
@@ -38,8 +36,7 @@ export interface AvailabilityStatuses {
|
|
38
36
|
options?: AvailabilityStatusesListByResourceGroupOptionalParams
|
39
37
|
): PagedAsyncIterableIterator<AvailabilityStatus>;
|
40
38
|
/**
|
41
|
-
* Lists all historical availability transitions and impacting events for a single resource.
|
42
|
-
* nextLink property in the response to get the next page of availability status
|
39
|
+
* Lists all historical availability transitions and impacting events for a single resource.
|
43
40
|
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
44
41
|
* type. Currently the API support not nested and one nesting level resource types :
|
45
42
|
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
@@ -10,6 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
10
|
import {
|
11
11
|
EmergingIssuesGetResult,
|
12
12
|
EmergingIssuesListOptionalParams,
|
13
|
+
IssueNameParameter,
|
13
14
|
EmergingIssuesGetOptionalParams,
|
14
15
|
EmergingIssuesGetResponse
|
15
16
|
} from "../models";
|
@@ -26,9 +27,11 @@ export interface EmergingIssues {
|
|
26
27
|
): PagedAsyncIterableIterator<EmergingIssuesGetResult>;
|
27
28
|
/**
|
28
29
|
* Gets Azure services' emerging issues.
|
30
|
+
* @param issueName The name of the emerging issue.
|
29
31
|
* @param options The options parameters.
|
30
32
|
*/
|
31
33
|
get(
|
34
|
+
issueName: IssueNameParameter,
|
32
35
|
options?: EmergingIssuesGetOptionalParams
|
33
36
|
): Promise<EmergingIssuesGetResponse>;
|
34
37
|
}
|
@@ -0,0 +1,60 @@
|
|
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
|
+
EventGetBySubscriptionIdAndTrackingIdOptionalParams,
|
11
|
+
EventGetBySubscriptionIdAndTrackingIdResponse,
|
12
|
+
EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams,
|
13
|
+
EventFetchDetailsBySubscriptionIdAndTrackingIdResponse,
|
14
|
+
EventGetByTenantIdAndTrackingIdOptionalParams,
|
15
|
+
EventGetByTenantIdAndTrackingIdResponse,
|
16
|
+
EventFetchDetailsByTenantIdAndTrackingIdOptionalParams,
|
17
|
+
EventFetchDetailsByTenantIdAndTrackingIdResponse
|
18
|
+
} from "../models";
|
19
|
+
|
20
|
+
/** Interface representing a EventOperations. */
|
21
|
+
export interface EventOperations {
|
22
|
+
/**
|
23
|
+
* Service health event in the subscription by event tracking id
|
24
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
25
|
+
* @param options The options parameters.
|
26
|
+
*/
|
27
|
+
getBySubscriptionIdAndTrackingId(
|
28
|
+
eventTrackingId: string,
|
29
|
+
options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams
|
30
|
+
): Promise<EventGetBySubscriptionIdAndTrackingIdResponse>;
|
31
|
+
/**
|
32
|
+
* Service health event details in the subscription by event tracking id. This can be used to fetch
|
33
|
+
* sensitive properties for Security Advisory events
|
34
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
35
|
+
* @param options The options parameters.
|
36
|
+
*/
|
37
|
+
fetchDetailsBySubscriptionIdAndTrackingId(
|
38
|
+
eventTrackingId: string,
|
39
|
+
options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams
|
40
|
+
): Promise<EventFetchDetailsBySubscriptionIdAndTrackingIdResponse>;
|
41
|
+
/**
|
42
|
+
* Service health event in the tenant by event tracking id
|
43
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
44
|
+
* @param options The options parameters.
|
45
|
+
*/
|
46
|
+
getByTenantIdAndTrackingId(
|
47
|
+
eventTrackingId: string,
|
48
|
+
options?: EventGetByTenantIdAndTrackingIdOptionalParams
|
49
|
+
): Promise<EventGetByTenantIdAndTrackingIdResponse>;
|
50
|
+
/**
|
51
|
+
* Service health event details in the tenant by event tracking id. This can be used to fetch sensitive
|
52
|
+
* properties for Security Advisory events
|
53
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
54
|
+
* @param options The options parameters.
|
55
|
+
*/
|
56
|
+
fetchDetailsByTenantIdAndTrackingId(
|
57
|
+
eventTrackingId: string,
|
58
|
+
options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams
|
59
|
+
): Promise<EventFetchDetailsByTenantIdAndTrackingIdResponse>;
|
60
|
+
}
|
@@ -0,0 +1,47 @@
|
|
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
|
+
Event,
|
12
|
+
EventsListBySubscriptionIdOptionalParams,
|
13
|
+
EventsListByTenantIdOptionalParams,
|
14
|
+
EventsListBySingleResourceOptionalParams
|
15
|
+
} from "../models";
|
16
|
+
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
18
|
+
/** Interface representing a EventsOperations. */
|
19
|
+
export interface EventsOperations {
|
20
|
+
/**
|
21
|
+
* Lists service health events in the subscription.
|
22
|
+
* @param options The options parameters.
|
23
|
+
*/
|
24
|
+
listBySubscriptionId(
|
25
|
+
options?: EventsListBySubscriptionIdOptionalParams
|
26
|
+
): PagedAsyncIterableIterator<Event>;
|
27
|
+
/**
|
28
|
+
* Lists current service health events in the tenant.
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
listByTenantId(
|
32
|
+
options?: EventsListByTenantIdOptionalParams
|
33
|
+
): PagedAsyncIterableIterator<Event>;
|
34
|
+
/**
|
35
|
+
* Lists current service health events for given resource.
|
36
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
37
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
38
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
39
|
+
* and
|
40
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
41
|
+
* @param options The options parameters.
|
42
|
+
*/
|
43
|
+
listBySingleResource(
|
44
|
+
resourceUri: string,
|
45
|
+
options?: EventsListBySingleResourceOptionalParams
|
46
|
+
): PagedAsyncIterableIterator<Event>;
|
47
|
+
}
|
@@ -0,0 +1,63 @@
|
|
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
|
+
EventImpactedResource,
|
12
|
+
ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,
|
13
|
+
ImpactedResourcesListByTenantIdAndEventIdOptionalParams,
|
14
|
+
ImpactedResourcesGetOptionalParams,
|
15
|
+
ImpactedResourcesGetResponse,
|
16
|
+
ImpactedResourcesGetByTenantIdOptionalParams,
|
17
|
+
ImpactedResourcesGetByTenantIdResponse
|
18
|
+
} from "../models";
|
19
|
+
|
20
|
+
/// <reference lib="esnext.asynciterable" />
|
21
|
+
/** Interface representing a ImpactedResources. */
|
22
|
+
export interface ImpactedResources {
|
23
|
+
/**
|
24
|
+
* Lists impacted resources in the subscription by an event.
|
25
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
listBySubscriptionIdAndEventId(
|
29
|
+
eventTrackingId: string,
|
30
|
+
options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams
|
31
|
+
): PagedAsyncIterableIterator<EventImpactedResource>;
|
32
|
+
/**
|
33
|
+
* Lists impacted resources in the tenant by an event.
|
34
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
35
|
+
* @param options The options parameters.
|
36
|
+
*/
|
37
|
+
listByTenantIdAndEventId(
|
38
|
+
eventTrackingId: string,
|
39
|
+
options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams
|
40
|
+
): PagedAsyncIterableIterator<EventImpactedResource>;
|
41
|
+
/**
|
42
|
+
* Gets the specific impacted resource in the subscription by an event.
|
43
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
44
|
+
* @param impactedResourceName Name of the Impacted Resource.
|
45
|
+
* @param options The options parameters.
|
46
|
+
*/
|
47
|
+
get(
|
48
|
+
eventTrackingId: string,
|
49
|
+
impactedResourceName: string,
|
50
|
+
options?: ImpactedResourcesGetOptionalParams
|
51
|
+
): Promise<ImpactedResourcesGetResponse>;
|
52
|
+
/**
|
53
|
+
* Gets the specific impacted resource in the tenant by an event.
|
54
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
55
|
+
* @param impactedResourceName Name of the Impacted Resource.
|
56
|
+
* @param options The options parameters.
|
57
|
+
*/
|
58
|
+
getByTenantId(
|
59
|
+
eventTrackingId: string,
|
60
|
+
impactedResourceName: string,
|
61
|
+
options?: ImpactedResourcesGetByTenantIdOptionalParams
|
62
|
+
): Promise<ImpactedResourcesGetByTenantIdResponse>;
|
63
|
+
}
|
@@ -7,7 +7,12 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
export * from "./availabilityStatuses";
|
10
|
+
export * from "./operations";
|
11
|
+
export * from "./metadata";
|
12
|
+
export * from "./impactedResources";
|
13
|
+
export * from "./securityAdvisoryImpactedResources";
|
14
|
+
export * from "./eventsOperations";
|
15
|
+
export * from "./eventOperations";
|
10
16
|
export * from "./childAvailabilityStatuses";
|
11
17
|
export * from "./childResources";
|
12
|
-
export * from "./operations";
|
13
18
|
export * from "./emergingIssues";
|
@@ -0,0 +1,36 @@
|
|
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
|
+
MetadataEntity,
|
12
|
+
MetadataListOptionalParams,
|
13
|
+
MetadataGetEntityOptionalParams,
|
14
|
+
MetadataGetEntityResponse
|
15
|
+
} from "../models";
|
16
|
+
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
18
|
+
/** Interface representing a Metadata. */
|
19
|
+
export interface Metadata {
|
20
|
+
/**
|
21
|
+
* Gets the list of metadata entities.
|
22
|
+
* @param options The options parameters.
|
23
|
+
*/
|
24
|
+
list(
|
25
|
+
options?: MetadataListOptionalParams
|
26
|
+
): PagedAsyncIterableIterator<MetadataEntity>;
|
27
|
+
/**
|
28
|
+
* Gets the list of metadata entities.
|
29
|
+
* @param name Name of metadata entity.
|
30
|
+
* @param options The options parameters.
|
31
|
+
*/
|
32
|
+
getEntity(
|
33
|
+
name: string,
|
34
|
+
options?: MetadataGetEntityOptionalParams
|
35
|
+
): Promise<MetadataGetEntityResponse>;
|
36
|
+
}
|
@@ -0,0 +1,37 @@
|
|
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
|
+
EventImpactedResource,
|
12
|
+
SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,
|
13
|
+
SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams
|
14
|
+
} from "../models";
|
15
|
+
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
17
|
+
/** Interface representing a SecurityAdvisoryImpactedResources. */
|
18
|
+
export interface SecurityAdvisoryImpactedResources {
|
19
|
+
/**
|
20
|
+
* Lists impacted resources in the subscription by an event (Security Advisory).
|
21
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
22
|
+
* @param options The options parameters.
|
23
|
+
*/
|
24
|
+
listBySubscriptionIdAndEventId(
|
25
|
+
eventTrackingId: string,
|
26
|
+
options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams
|
27
|
+
): PagedAsyncIterableIterator<EventImpactedResource>;
|
28
|
+
/**
|
29
|
+
* Lists impacted resources in the tenant by an event (Security Advisory).
|
30
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
31
|
+
* @param options The options parameters.
|
32
|
+
*/
|
33
|
+
listByTenantIdAndEventId(
|
34
|
+
eventTrackingId: string,
|
35
|
+
options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams
|
36
|
+
): PagedAsyncIterableIterator<EventImpactedResource>;
|
37
|
+
}
|