Skip to content

Commit 54851dc

Browse files
authored
[Hub Generated] Review request for Microsoft.ResourceHealth to add version stable/2020-05-01 (#19956)
* Fixing swagger to match actual responses * Fixing azure-sdk-for-net-track2 * Adding custom words * Fixing linting errors
1 parent f70b795 commit 54851dc

File tree

7 files changed

+36
-35
lines changed

7 files changed

+36
-35
lines changed

custom-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,6 +2714,8 @@ Skolt
27142714
Thangmi
27152715
Tuvan
27162716
Uyghur
2717+
occured
2718+
Occured
27172719
Paramter
27182720
Spza
27192721
metallb

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
"description": "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved.",
415415
"format": "date-time"
416416
},
417-
"occurredTime": {
417+
"occuredTime": {
418418
"type": "string",
419419
"description": "Timestamp for when last change in health status occurred.",
420420
"format": "date-time"
@@ -440,7 +440,7 @@
440440
"type": "object",
441441
"description": "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned",
442442
"properties": {
443-
"unavailableOccurredTime": {
443+
"unavailableOccuredTime": {
444444
"type": "string",
445445
"description": "Timestamp for when the availabilityState changed to Unavailable",
446446
"format": "date-time"
@@ -450,21 +450,23 @@
450450
"description": "Timestamp when the availabilityState changes to Available.",
451451
"format": "date-time"
452452
},
453-
"unavailabilitySummary": {
453+
"unavailableSummary": {
454454
"type": "string",
455455
"description": "Brief description of cause of the resource becoming unavailable."
456456
}
457457
}
458458
},
459459
"recommendedActions": {
460460
"type": "array",
461+
"x-ms-identifiers": [],
461462
"description": "Lists actions the user can take based on the current availabilityState of the resource.",
462463
"items": {
463464
"$ref": "#/definitions/recommendedAction"
464465
}
465466
},
466467
"serviceImpactingEvents": {
467468
"type": "array",
469+
"x-ms-identifiers": [],
468470
"description": "Lists the service impacting events that may be affecting the health of the resource.",
469471
"items": {
470472
"$ref": "#/definitions/serviceImpactingEvent"
@@ -475,9 +477,11 @@
475477
}
476478
},
477479
"operationListResult": {
480+
"type": "object",
478481
"properties": {
479482
"value": {
480483
"type": "array",
484+
"x-ms-identifiers": [],
481485
"items": {
482486
"$ref": "#/definitions/operation"
483487
},
@@ -491,6 +495,7 @@
491495
},
492496
"operation": {
493497
"description": "Operation available in the resourcehealth resource provider.",
498+
"type": "object",
494499
"properties": {
495500
"name": {
496501
"type": "string",
@@ -631,26 +636,20 @@
631636
"description": "Error details.",
632637
"type": "object",
633638
"properties": {
634-
"error": {
635-
"type": "object",
636-
"description": "The error object.",
637-
"properties": {
638-
"code": {
639-
"description": "The error code.",
640-
"type": "string",
641-
"readOnly": true
642-
},
643-
"message": {
644-
"description": "The error message.",
645-
"type": "string",
646-
"readOnly": true
647-
},
648-
"details": {
649-
"description": "The error details.",
650-
"type": "string",
651-
"readOnly": true
652-
}
653-
}
639+
"code": {
640+
"description": "The error code.",
641+
"type": "string",
642+
"readOnly": true
643+
},
644+
"message": {
645+
"description": "The error message.",
646+
"type": "string",
647+
"readOnly": true
648+
},
649+
"details": {
650+
"description": "The error details.",
651+
"type": "string",
652+
"readOnly": true
654653
}
655654
}
656655
}

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"reasonType": "Unplanned",
1919
"reasonChronicity": "Persistent",
2020
"detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
21-
"occurredTime": "2016-03-29T09:12:00Z",
21+
"occuredTime": "2016-03-29T09:12:00Z",
2222
"reportedTime": "2016-05-04T14:11:29.7598931Z",
2323
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
2424
"resolutionETA": "2016-03-29T09:37:00Z",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"reasonType": "Unplanned",
2020
"reasonChronicity": "Persistent",
2121
"detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
22-
"occurredTime": "2016-03-29T09:12:00Z",
22+
"occuredTime": "2016-03-29T09:12:00Z",
2323
"reportedTime": "2016-05-04T14:11:29.7598931Z",
2424
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
2525
"resolutionETA": "2016-03-29T09:37:00Z",
@@ -51,7 +51,7 @@
5151
"summary": "This virtual machine is running normally",
5252
"reasonChronicity": "Persistent",
5353
"detailedStatus": "There aren’t any known Azure platform problems affecting this virtual machine",
54-
"occurredTime": "2016-03-28T16:23:00Z"
54+
"occuredTime": "2016-03-28T16:23:00Z"
5555
}
5656
}
5757
]

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"reasonType": "Unplanned",
2222
"reasonChronicity": "Persistent",
2323
"detailedStatus": "We have not seen any issues with your virtual machine",
24-
"occurredTime": "2016-03-29T09:12:00Z",
24+
"occuredTime": "2016-03-29T09:12:00Z",
2525
"reportedTime": "2016-05-04T14:11:29.7598931Z",
2626
"recentlyResolved": {
27-
"unavailableOccurredTime": "2017-02-28T00:48:00Z",
27+
"unavailableOccuredTime": "2017-02-28T00:48:00Z",
2828
"resolvedTime": "2017-02-28T00:49:00Z",
29-
"unavailabilitySummary": "We are sorry your SQL database is unavailable"
29+
"unavailableSummary": "We are sorry your SQL database is unavailable"
3030
},
3131
"recommendedActions": [
3232
{
@@ -49,7 +49,7 @@
4949
"reasonType": "Unplanned",
5050
"reasonChronicity": "Persistent",
5151
"detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine",
52-
"occurredTime": "2016-03-29T09:12:00Z",
52+
"occuredTime": "2016-03-29T09:12:00Z",
5353
"reportedTime": "2016-05-04T14:11:29.7598931Z",
5454
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
5555
"resolutionETA": "2016-03-29T09:37:00Z",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"reasonType": "Unplanned",
2121
"reasonChronicity": "Persistent",
2222
"detailedStatus": "We have not seen any issues with your virtual machine",
23-
"occurredTime": "2016-03-29T09:12:00Z",
23+
"occuredTime": "2016-03-29T09:12:00Z",
2424
"reportedTime": "2016-05-04T14:11:29.7598931Z",
2525
"recentlyResolved": {
26-
"unavailableOccurredTime": "2017-02-28T00:48:00Z",
26+
"unavailableOccuredTime": "2017-02-28T00:48:00Z",
2727
"resolvedTime": "2017-02-28T00:49:00Z",
28-
"unavailabilitySummary": "We are sorry your SQL database is unavailable"
28+
"unavailableSummary": "We are sorry your SQL database is unavailable"
2929
},
3030
"recommendedActions": [
3131
{
@@ -48,7 +48,7 @@
4848
"reasonType": "Unplanned",
4949
"reasonChronicity": "Persistent",
5050
"detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine",
51-
"occurredTime": "2016-03-29T09:12:00Z",
51+
"occuredTime": "2016-03-29T09:12:00Z",
5252
"reportedTime": "2016-05-04T14:11:29.7598931Z",
5353
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
5454
"resolutionETA": "2016-03-29T09:37:00Z",

specification/resourcehealth/resource-manager/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ swagger-to-sdk:
101101
- repo: azure-sdk-for-node
102102
- repo: azure-sdk-for-python-track2
103103
- repo: azure-sdk-for-java
104-
- repo: azure-sdk-for-net
104+
- repo: azure-sdk-for-net-track2
105105
- repo: azure-sdk-for-ruby
106106
after_scripts:
107107
- bundle install && rake arm:regen_all_profiles['azure_mgmt_resourcehealth']

0 commit comments

Comments
 (0)