Skip to content

Commit

Permalink
CodeGen from PR 21588 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b461f90250a731b6ff5a9c131effea0e8da41a61 into 903a8802a13b5f3c05cdceea9ba4716aaee5de45
  • Loading branch information
SDKAuto committed Dec 6, 2022
1 parent c8c9838 commit ce1b38f
Show file tree
Hide file tree
Showing 19 changed files with 3,084 additions and 783 deletions.
64 changes: 64 additions & 0 deletions sdk/resourcemanager/resourcehealth/armresourcehealth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,69 @@
# Release History

## 2.0.0 (2022-12-06)
### Breaking Changes

- Struct `ErrorResponseError` has been removed
- Field `OccurredTime` of struct `AvailabilityStatusProperties` has been removed
- Field `UnavailabilitySummary` of struct `AvailabilityStatusPropertiesRecentlyResolved` has been removed
- Field `UnavailableOccurredTime` of struct `AvailabilityStatusPropertiesRecentlyResolved` has been removed
- Field `Error` of struct `ErrorResponse` has been removed

### Features Added

- New type alias `CreatedByType` with values `CreatedByTypeApplication`, `CreatedByTypeKey`, `CreatedByTypeManagedIdentity`, `CreatedByTypeUser`
- New type alias `EventLevelValues` with values `EventLevelValuesCritical`, `EventLevelValuesError`, `EventLevelValuesInformational`, `EventLevelValuesWarning`
- New type alias `EventSourceValues` with values `EventSourceValuesResourceHealth`, `EventSourceValuesServiceHealth`
- New type alias `EventStatusValues` with values `EventStatusValuesActive`, `EventStatusValuesResolved`
- New type alias `EventTypeValues` with values `EventTypeValuesEmergingIssues`, `EventTypeValuesHealthAdvisory`, `EventTypeValuesPlannedMaintenance`, `EventTypeValuesRCA`, `EventTypeValuesSecurityAdvisory`, `EventTypeValuesServiceIssue`
- New type alias `LevelValues` with values `LevelValuesCritical`, `LevelValuesWarning`
- New type alias `LinkTypeValues` with values `LinkTypeValuesButton`, `LinkTypeValuesHyperlink`
- New function `NewEventClient(string, azcore.TokenCredential, *arm.ClientOptions) (*EventClient, error)`
- New function `*EventClient.GetBySubscriptionIDAndTrackingID(context.Context, string, *EventClientGetBySubscriptionIDAndTrackingIDOptions) (EventClientGetBySubscriptionIDAndTrackingIDResponse, error)`
- New function `*EventClient.GetByTenantIDAndTrackingID(context.Context, string, *EventClientGetByTenantIDAndTrackingIDOptions) (EventClientGetByTenantIDAndTrackingIDResponse, error)`
- New function `NewEventsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*EventsClient, error)`
- New function `*EventsClient.NewListBySingleResourcePager(string, *EventsClientListBySingleResourceOptions) *runtime.Pager[EventsClientListBySingleResourceResponse]`
- New function `*EventsClient.NewListBySubscriptionIDPager(*EventsClientListBySubscriptionIDOptions) *runtime.Pager[EventsClientListBySubscriptionIDResponse]`
- New function `*EventsClient.NewListByTenantIDPager(*EventsClientListByTenantIDOptions) *runtime.Pager[EventsClientListByTenantIDResponse]`
- New function `NewImpactedResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ImpactedResourcesClient, error)`
- New function `*ImpactedResourcesClient.Get(context.Context, string, string, *ImpactedResourcesClientGetOptions) (ImpactedResourcesClientGetResponse, error)`
- New function `*ImpactedResourcesClient.NewListBySubscriptionIDAndEventIDPager(string, *ImpactedResourcesClientListBySubscriptionIDAndEventIDOptions) *runtime.Pager[ImpactedResourcesClientListBySubscriptionIDAndEventIDResponse]`
- New struct `Event`
- New struct `EventClient`
- New struct `EventImpactedResource`
- New struct `EventImpactedResourceListResult`
- New struct `EventImpactedResourceProperties`
- New struct `EventProperties`
- New struct `EventPropertiesAdditionalInformation`
- New struct `EventPropertiesArticle`
- New struct `EventPropertiesRecommendedActions`
- New struct `EventPropertiesRecommendedActionsItem`
- New struct `Events`
- New struct `EventsClient`
- New struct `EventsClientListBySingleResourceResponse`
- New struct `EventsClientListBySubscriptionIDResponse`
- New struct `EventsClientListByTenantIDResponse`
- New struct `Faq`
- New struct `Impact`
- New struct `ImpactedResourcesClient`
- New struct `ImpactedResourcesClientListBySubscriptionIDAndEventIDResponse`
- New struct `ImpactedServiceRegion`
- New struct `KeyValueItem`
- New struct `Link`
- New struct `LinkDisplayText`
- New struct `ProxyResource`
- New struct `SystemData`
- New struct `Update`
- New field `OccuredTime` in struct `AvailabilityStatusProperties`
- New field `UnavailableOccuredTime` in struct `AvailabilityStatusPropertiesRecentlyResolved`
- New field `UnavailableSummary` in struct `AvailabilityStatusPropertiesRecentlyResolved`
- New field `Code` in struct `ErrorResponse`
- New field `Details` in struct `ErrorResponse`
- New field `Message` in struct `ErrorResponse`
- New field `SystemData` in struct `ImpactedResourceStatus`
- New field `SystemData` in struct `Resource`


## 1.0.0 (2022-05-18)

The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
``` yaml
azure-arm: true
require:
- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resourcehealth/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/resourcehealth/resource-manager/readme.go.md
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 1.0.0
module-version: 2.0.0
```

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

198 changes: 198 additions & 0 deletions sdk/resourcemanager/resourcehealth/armresourcehealth/constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ce1b38f

Please sign in to comment.