Skip to content

Commit 3ae9e18

Browse files
author
SDKAuto
committed
CodeGen from PR 19273 in Azure/azure-rest-api-specs
Merge b91ffac4f3b4981092c1d868dfffd85590e476b8 into 2e59fa3ef47822961f3bde711183859729fc9970
1 parent 9067ea6 commit 3ae9e18

20 files changed

+291
-1260
lines changed

sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
11
# Release History
2+
3+
## 4.0.0 (2022-06-02)
4+
5+
**Features**
26

3-
## 3.0.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added Interface AvailabilityStatusPropertiesRecentlyResolved
8+
- Added Interface ErrorResponseError
9+
- Added Type Alias ImpactedResourceStatus
10+
- Added Type Alias ReasonTypeValues
11+
- Interface AvailabilityStatusProperties has a new optional parameter occurredTime
12+
- Interface AvailabilityStatusProperties has a new optional parameter recentlyResolved
13+
- Interface AvailabilityStatusProperties has a new optional parameter title
14+
- Interface ErrorResponse has a new optional parameter error
15+
- Added Enum KnownAvailabilityStateValues
16+
- Added Enum KnownReasonChronicityTypes
17+
- Added Enum KnownReasonTypeValues
18+
19+
**Breaking Changes**
20+
21+
- Removed operation group ChildAvailabilityStatuses
22+
- Removed operation group ChildResources
23+
- Removed operation group EmergingIssues
24+
- Interface AvailabilityStatusProperties no longer has parameter occuredTime
25+
- Interface AvailabilityStatusProperties no longer has parameter recentlyResolvedState
26+
- Interface ErrorResponse no longer has parameter code
27+
- Interface ErrorResponse no longer has parameter details
28+
- Interface ErrorResponse no longer has parameter message
29+
- Class MicrosoftResourceHealth no longer has parameter childAvailabilityStatuses
30+
- Class MicrosoftResourceHealth no longer has parameter childResources
31+
- Class MicrosoftResourceHealth no longer has parameter emergingIssues
32+
- Removed Enum KnownSeverityValues
33+
- Removed Enum KnownStageValues
34+
1335
## 3.0.1 (2022-04-29)
1436

1537
**Features**
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
3-
"readme": "specification\\resourcehealth\\resource-manager\\readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourcehealth\\resource-manager\\readme.md --use=@autorest/[email protected].20220408.1 --generate-sample=true",
2+
"commit": "072dca0080f39db3099eb21cf610456e62c16fb2",
3+
"readme": "specification/resourcehealth/resource-manager/readme.md",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md --use=@autorest/[email protected].20220425.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].0",
7-
"use": "@autorest/[email protected].20220408.1"
8-
}
6+
"release_tool": "@azure-tools/[email protected].1",
7+
"use": "@autorest/[email protected].20220425.1"
8+
}

sdk/resourcehealth/arm-resourcehealth/package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for MicrosoftResourceHealth.",
6-
"version": "3.0.2",
6+
"version": "4.0.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -38,9 +38,11 @@
3838
"uglify-js": "^3.4.9",
3939
"rimraf": "^3.0.0",
4040
"@azure/identity": "^2.0.1",
41-
"@azure-tools/test-recorder": "^1.0.0",
41+
"@azure-tools/test-recorder": "^2.0.0",
42+
"@azure-tools/test-credential": "^1.0.0",
4243
"mocha": "^7.1.1",
43-
"cross-env": "^7.0.2"
44+
"cross-env": "^7.0.2",
45+
"@azure/dev-tool": "^1.0.0"
4446
},
4547
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
4648
"repository": {
@@ -91,7 +93,7 @@
9193
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
9294
"unit-test:browser": "echo skipped",
9395
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
94-
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
96+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
9597
"integration-test:browser": "echo skipped",
9698
"docs": "echo skipped"
9799
},
@@ -104,13 +106,5 @@
104106
}
105107
]
106108
},
107-
"autoPublish": true,
108-
"//sampleConfiguration": {
109-
"productName": "",
110-
"productSlugs": [
111-
"azure"
112-
],
113-
"disableDocsMs": true,
114-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview"
115-
}
116-
}
109+
"autoPublish": true
110+
}

sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md

Lines changed: 38 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as coreClient from '@azure/core-client';
99
import { PagedAsyncIterableIterator } from '@azure/core-paging';
1010

1111
// @public
12-
export type AvailabilityStateValues = "Available" | "Unavailable" | "Unknown";
12+
export type AvailabilityStateValues = string;
1313

1414
// @public
1515
export interface AvailabilityStatus {
@@ -105,159 +105,81 @@ export interface AvailabilityStatusProperties {
105105
healthEventCause?: string;
106106
healthEventId?: string;
107107
healthEventType?: string;
108-
occuredTime?: Date;
108+
occurredTime?: Date;
109109
reasonChronicity?: ReasonChronicityTypes;
110110
reasonType?: string;
111-
recentlyResolvedState?: AvailabilityStatusPropertiesRecentlyResolvedState;
111+
recentlyResolved?: AvailabilityStatusPropertiesRecentlyResolved;
112112
recommendedActions?: RecommendedAction[];
113113
reportedTime?: Date;
114114
resolutionETA?: Date;
115115
rootCauseAttributionTime?: Date;
116116
serviceImpactingEvents?: ServiceImpactingEvent[];
117117
summary?: string;
118+
title?: string;
118119
}
119120

120121
// @public
121-
export interface AvailabilityStatusPropertiesRecentlyResolvedState {
122+
export interface AvailabilityStatusPropertiesRecentlyResolved {
122123
resolvedTime?: Date;
123124
unavailabilitySummary?: string;
124125
unavailableOccurredTime?: Date;
125126
}
126127

127128
// @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;
129+
export interface ErrorResponse {
130+
error?: ErrorResponseError;
169131
}
170132

171133
// @public
172-
export type ChildResourcesListNextResponse = AvailabilityStatusListResult;
173-
174-
// @public
175-
export interface ChildResourcesListOptionalParams extends coreClient.OperationOptions {
176-
expand?: string;
177-
filter?: string;
134+
export interface ErrorResponseError {
135+
readonly code?: string;
136+
readonly details?: string;
137+
readonly message?: string;
178138
}
179139

180140
// @public
181-
export type ChildResourcesListResponse = AvailabilityStatusListResult;
182-
183-
// @public
184-
export interface EmergingIssueImpact {
141+
export interface ImpactedRegion {
185142
id?: string;
186143
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>;
200144
}
201145

202146
// @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[];
147+
export type ImpactedResourceStatus = Resource & {
148+
availabilityState?: AvailabilityStateValues;
149+
title?: string;
150+
summary?: string;
151+
reasonType?: ReasonTypeValues;
152+
occurredTime?: Date;
214153
};
215154

216155
// @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;
156+
export enum KnownAvailabilityStateValues {
157+
// (undocumented)
158+
Available = "Available",
159+
// (undocumented)
160+
Degraded = "Degraded",
161+
// (undocumented)
162+
Unavailable = "Unavailable",
163+
// (undocumented)
164+
Unknown = "Unknown"
241165
}
242166

243167
// @public
244-
export enum KnownSeverityValues {
245-
// (undocumented)
246-
Error = "Error",
168+
export enum KnownReasonChronicityTypes {
247169
// (undocumented)
248-
Information = "Information",
170+
Persistent = "Persistent",
249171
// (undocumented)
250-
Warning = "Warning"
172+
Transient = "Transient"
251173
}
252174

253175
// @public
254-
export enum KnownStageValues {
176+
export enum KnownReasonTypeValues {
255177
// (undocumented)
256-
Active = "Active",
178+
Planned = "Planned",
257179
// (undocumented)
258-
Archived = "Archived",
180+
Unplanned = "Unplanned",
259181
// (undocumented)
260-
Resolve = "Resolve"
182+
UserInitiated = "UserInitiated"
261183
}
262184

263185
// @public (undocumented)
@@ -270,12 +192,6 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
270192
// (undocumented)
271193
availabilityStatuses: AvailabilityStatuses;
272194
// (undocumented)
273-
childAvailabilityStatuses: ChildAvailabilityStatuses;
274-
// (undocumented)
275-
childResources: ChildResources;
276-
// (undocumented)
277-
emergingIssues: EmergingIssues;
278-
// (undocumented)
279195
operations: Operations;
280196
// (undocumented)
281197
subscriptionId: string;
@@ -320,7 +236,10 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
320236
export type OperationsListResponse = OperationListResult;
321237

322238
// @public
323-
export type ReasonChronicityTypes = "Transient" | "Persistent";
239+
export type ReasonChronicityTypes = string;
240+
241+
// @public
242+
export type ReasonTypeValues = string;
324243

325244
// @public
326245
export interface RecommendedAction {
@@ -358,26 +277,6 @@ export interface ServiceImpactingEventStatus {
358277
value?: string;
359278
}
360279

361-
// @public
362-
export type SeverityValues = string;
363-
364-
// @public
365-
export type StageValues = string;
366-
367-
// @public
368-
export interface StatusActiveEvent {
369-
cloud?: string;
370-
description?: string;
371-
impacts?: EmergingIssueImpact[];
372-
lastModifiedTime?: Date;
373-
published?: boolean;
374-
severity?: SeverityValues;
375-
stage?: StageValues;
376-
startTime?: Date;
377-
title?: string;
378-
trackingId?: string;
379-
}
380-
381280
// @public
382281
export interface StatusBanner {
383282
cloud?: string;

0 commit comments

Comments
 (0)