diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md index a70bb5f478007..43a93c3feb9d4 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md @@ -1,15 +1,23 @@ # Release History -## 1.1.0-beta.2 (Unreleased) +## 1.1.0-beta.2 (2023-10-31) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Model Event has a new parameter arg_query +- Model Event has a new parameter event_sub_type +- Model Event has a new parameter maintenance_id +- Model Event has a new parameter maintenance_type +- Model EventImpactedResource has a new parameter maintenance_end_time +- Model EventImpactedResource has a new parameter maintenance_start_time +- Model EventImpactedResource has a new parameter resource_group +- Model EventImpactedResource has a new parameter resource_name +- Model EventImpactedResource has a new parameter status ### Other Changes +- Upgraded API version to `2023-10-01-preview` + ## 1.1.0-beta.1 (2023-05-31) ### Features Added diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs index 445bbdb62be76..94a6398fdb7b0 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs @@ -19,11 +19,13 @@ public partial class ResourceHealthEventData : Azure.ResourceManager.Models.Reso { internal ResourceHealthEventData() { } public string AdditionalInformationMessage { get { throw null; } } + public string ArgQuery { get { throw null; } } public Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventArticle Article { get { throw null; } } public string Description { get { throw null; } } public int? Duration { get { throw null; } } public Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLevelValue? EventLevel { get { throw null; } } public Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventSourceValue? EventSource { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue? EventSubType { get { throw null; } } public Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventTypeValue? EventType { get { throw null; } } public string ExternalIncidentId { get { throw null; } } public System.Collections.Generic.IReadOnlyList Faqs { get { throw null; } } @@ -40,6 +42,8 @@ internal ResourceHealthEventData() { } public System.DateTimeOffset? LastUpdateOn { get { throw null; } } public Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventInsightLevelValue? Level { get { throw null; } } public System.Collections.Generic.IReadOnlyList Links { get { throw null; } } + public string MaintenanceId { get { throw null; } } + public string MaintenanceType { get { throw null; } } public int? Priority { get { throw null; } } public string Reason { get { throw null; } } public Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventRecommendedActions RecommendedActions { get { throw null; } } @@ -76,6 +80,11 @@ public partial class ResourceHealthEventImpactedResourceData : Azure.ResourceMan { internal ResourceHealthEventImpactedResourceData() { } public System.Collections.Generic.IReadOnlyList Info { get { throw null; } } + public string MaintenanceEndTime { get { throw null; } } + public string MaintenanceStartTime { get { throw null; } } + public string ResourceGroup { get { throw null; } } + public string ResourceName { get { throw null; } } + public string Status { get { throw null; } } public string TargetRegion { get { throw null; } } public Azure.Core.ResourceIdentifier TargetResourceId { get { throw null; } } public Azure.Core.ResourceType? TargetResourceType { get { throw null; } } @@ -270,10 +279,10 @@ public static partial class ArmResourceHealthModelFactory public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStatus ResourceHealthAvailabilityStatus(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStatusProperties properties = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStatusProperties ResourceHealthAvailabilityStatusProperties(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStateValue? availabilityState = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStateValue?), string title = null, string summary = null, string detailedStatus = null, string reasonType = null, string context = null, string category = null, string articleId = null, System.DateTimeOffset? rootCauseAttributionOn = default(System.DateTimeOffset?), string healthEventType = null, string healthEventCause = null, string healthEventCategory = null, string healthEventId = null, System.DateTimeOffset? resolutionEta = default(System.DateTimeOffset?), System.DateTimeOffset? occuredOn = default(System.DateTimeOffset?), Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType? reasonChronicity = default(Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType?), System.DateTimeOffset? reportedOn = default(System.DateTimeOffset?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthAvailabilityStateRecentlyResolved recentlyResolved = null, System.Collections.Generic.IEnumerable recommendedActions = null, System.Collections.Generic.IEnumerable serviceImpactingEvents = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventArticle ResourceHealthEventArticle(string articleContent = null, string articleId = null, System.BinaryData parameters = null) { throw null; } - public static Azure.ResourceManager.ResourceHealth.ResourceHealthEventData ResourceHealthEventData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventTypeValue? eventType = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventTypeValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventSourceValue? eventSource = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventSourceValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventStatusValue? status = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventStatusValue?), string title = null, string summary = null, string header = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventInsightLevelValue? level = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventInsightLevelValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLevelValue? eventLevel = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLevelValue?), string externalIncidentId = null, string reason = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventArticle article = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset? impactStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? impactMitigationOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable impact = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventRecommendedActions recommendedActions = null, System.Collections.Generic.IEnumerable faqs = null, bool? isHirEvent = default(bool?), bool? isMicrosoftSupportEnabled = default(bool?), string description = null, bool? isPlatformInitiated = default(bool?), bool? isChatWithUsEnabled = default(bool?), int? priority = default(int?), System.DateTimeOffset? lastUpdateOn = default(System.DateTimeOffset?), string hirStage = null, string additionalInformationMessage = null, int? duration = default(int?), string impactType = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.ResourceHealthEventData ResourceHealthEventData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventTypeValue? eventType = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventTypeValue?), Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue? eventSubType = default(Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventSourceValue? eventSource = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventSourceValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventStatusValue? status = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventStatusValue?), string title = null, string summary = null, string header = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventInsightLevelValue? level = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventInsightLevelValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLevelValue? eventLevel = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLevelValue?), string externalIncidentId = null, string reason = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventArticle article = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset? impactStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? impactMitigationOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable impact = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventRecommendedActions recommendedActions = null, System.Collections.Generic.IEnumerable faqs = null, bool? isHirEvent = default(bool?), bool? isMicrosoftSupportEnabled = default(bool?), string description = null, bool? isPlatformInitiated = default(bool?), bool? isChatWithUsEnabled = default(bool?), int? priority = default(int?), System.DateTimeOffset? lastUpdateOn = default(System.DateTimeOffset?), string hirStage = null, string additionalInformationMessage = null, int? duration = default(int?), string impactType = null, string maintenanceId = null, string maintenanceType = null, string argQuery = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventFaq ResourceHealthEventFaq(string question = null, string answer = null, string localeCode = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventImpact ResourceHealthEventImpact(string impactedService = null, System.Collections.Generic.IEnumerable impactedRegions = null) { throw null; } - public static Azure.ResourceManager.ResourceHealth.ResourceHealthEventImpactedResourceData ResourceHealthEventImpactedResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceType? targetResourceType = default(Azure.Core.ResourceType?), Azure.Core.ResourceIdentifier targetResourceId = null, string targetRegion = null, System.Collections.Generic.IEnumerable info = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.ResourceHealthEventImpactedResourceData ResourceHealthEventImpactedResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceType? targetResourceType = default(Azure.Core.ResourceType?), Azure.Core.ResourceIdentifier targetResourceId = null, string targetRegion = null, string resourceName = null, string resourceGroup = null, string status = null, string maintenanceStartTime = null, string maintenanceEndTime = null, System.Collections.Generic.IEnumerable info = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventImpactedServiceRegion ResourceHealthEventImpactedServiceRegion(string impactedRegion = null, Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventStatusValue? status = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventStatusValue?), System.Collections.Generic.IEnumerable impactedSubscriptions = null, System.Collections.Generic.IEnumerable impactedTenants = null, System.DateTimeOffset? lastUpdateOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable updates = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLink ResourceHealthEventLink(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLinkTypeValue? linkType = default(Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLinkTypeValue?), Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLinkDisplayText displayText = null, string extensionName = null, string bladeName = null, System.BinaryData parameters = null) { throw null; } public static Azure.ResourceManager.ResourceHealth.Models.ResourceHealthEventLinkDisplayText ResourceHealthEventLinkDisplayText(string value = null, string localizedValue = null) { throw null; } @@ -340,6 +349,23 @@ internal EmergingIssueImpactedRegion() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EventSubTypeValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventSubTypeValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue Retirement { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue left, Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue left, Azure.ResourceManager.ResourceHealth.Models.EventSubTypeValue right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MetadataEntityScenario : System.IEquatable { private readonly object _dummy; diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ArmResourceExtensions.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ArmResourceExtensions.cs index e8d81f551e21c..86fb8c7cd0447 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ArmResourceExtensions.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ArmResourceExtensions.cs @@ -22,7 +22,7 @@ public partial class Sample_ArmResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailabilityStatus_GetCurrentHealthByResource() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/AvailabilityStatus_GetByResource.json // this example is just showing the usage of "AvailabilityStatuses_GetByResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -44,7 +44,7 @@ public async Task GetAvailabilityStatus_GetCurrentHealthByResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailabilityStatuses_GetHealthHistoryByResource() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/AvailabilityStatuses_List.json // this example is just showing the usage of "AvailabilityStatuses_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -68,7 +68,7 @@ public async Task GetAvailabilityStatuses_GetHealthHistoryByResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetHealthEventsOfSingleResource_ListEventsBySingleResource() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Events_ListBySingleResource.json // this example is just showing the usage of "Events_ListBySingleResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task GetHealthEventsOfSingleResource_ListEventsBySingleResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailabilityStatusOfChildResource_GetChildCurrentHealthByResource() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json // this example is just showing the usage of "ChildAvailabilityStatuses_GetByResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task GetAvailabilityStatusOfChildResource_GetChildCurrentHealthByRe [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetHistoricalAvailabilityStatusesOfChildResource_GetChildHealthHistoryByResource() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ChildAvailabilityStatuses_List.json // this example is just showing the usage of "ChildAvailabilityStatuses_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task GetHistoricalAvailabilityStatusesOfChildResource_GetChildHealt [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailabilityStatusOfChildResources_GetCurrentChildHealthByResource() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ChildResources_List.json // this example is just showing the usage of "ChildResources_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs index 7ecb826ac762f..08f5dd78be21b 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_ResourceGroupResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailabilityStatusesByResourceGroup_ListByResourceGroup() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json // this example is just showing the usage of "AvailabilityStatuses_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventCollection.cs index 44aa4ec11b02f..06d56abeece84 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventCollection.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ResourceHealthEventCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEventsBySubscriptionId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Events_ListBySubscriptionId.json // this example is just showing the usage of "Events_ListBySubscriptionId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEventsBySubscriptionId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResource.cs index b8af367869e24..a961cae6b4a8b 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResource.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceHealthEventImpactedResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_Get.json // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResourceCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResourceCollection.cs index 9c8c19b40058f..1c4d8a5c1433d 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResourceCollection.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventImpactedResourceCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ResourceHealthEventImpactedResourceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListImpactedResourcesBySubscriptionId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json // this example is just showing the usage of "ImpactedResources_ListBySubscriptionIdAndEventId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_ListImpactedResourcesBySubscriptionId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_Get.json // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_ImpactedResourcesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_Get.json // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_ImpactedResourcesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_Get.json // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventResource.cs index 6cea6b47ef2ee..7e441d4d1afb4 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventResource.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthEventResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceHealthEventResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId_ListSecurityAdvisoryImpactedResourcesBySubscriptionId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json // this example is just showing the usage of "SecurityAdvisoryImpactedResources_ListBySubscriptionIdAndEventId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task FetchDetailsBySubscriptionIdAndTrackingId_EventDetailsBySubscriptionIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json // this example is just showing the usage of "Event_fetchDetailsBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityCollection.cs index 3a3ef0015d6cd..b00741a8e8201 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityCollection.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ResourceHealthMetadataEntityCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetMetadata() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Metadata_List.json // this example is just showing the usage of "Metadata_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_GetMetadata() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetMetadata() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Metadata_GetEntity.json // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Get_GetMetadata() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetMetadata() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Metadata_GetEntity.json // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Exists_GetMetadata() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetMetadata() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Metadata_GetEntity.json // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityResource.cs index 322b4fece7935..29495bd057480 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityResource.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ResourceHealthMetadataEntityResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceHealthMetadataEntityResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetMetadata() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Metadata_GetEntity.json // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueCollection.cs index f623796197576..45882925e0b47 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueCollection.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ServiceEmergingIssueCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetEmergingIssues() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/EmergingIssues_List.json // this example is just showing the usage of "EmergingIssues_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_GetEmergingIssues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEmergingIssues() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/EmergingIssues_Get.json // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetEmergingIssues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetEmergingIssues() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/EmergingIssues_Get.json // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Exists_GetEmergingIssues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetEmergingIssues() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/EmergingIssues_Get.json // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueResource.cs index 24fda896e5b22..81829d199e3c5 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueResource.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_ServiceEmergingIssueResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ServiceEmergingIssueResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEmergingIssues() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/EmergingIssues_Get.json // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 0051202fb12e9..f9c8e9c3503a7 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailabilityStatusesBySubscription_ListHealthBySubscriptionId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json // this example is just showing the usage of "AvailabilityStatuses_ListBySubscriptionId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventCollection.cs index f62aaa13392eb..82928dcc33af0 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventCollection.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_TenantResourceHealthEventCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEventsByTenantId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Events_ListByTenantId.json // this example is just showing the usage of "Events_ListByTenantId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListEventsByTenantId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EventByTenantIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_EventByTenantIdAndTrackingId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_EventByTenantIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_EventByTenantIdAndTrackingId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_EventByTenantIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs index 2313b1f79ebee..c11a0b6ad24b4 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs @@ -21,7 +21,7 @@ public partial class Sample_TenantResourceHealthEventImpactedResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_GetByTenantId.json // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs index fc87b9aa75a89..df5a842e60547 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_TenantResourceHealthEventImpactedResourceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEventsByTenantId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_ListByTenantId_ListByEventId.json // this example is just showing the usage of "ImpactedResources_ListByTenantIdAndEventId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListEventsByTenantId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_GetByTenantId.json // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_ImpactedResourcesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_GetByTenantId.json // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Exists_ImpactedResourcesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ImpactedResourcesGet() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/ImpactedResources_GetByTenantId.json // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventResource.cs index 71dfec3e96d35..52ce36fe26601 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventResource.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventResource.cs @@ -21,7 +21,7 @@ public partial class Sample_TenantResourceHealthEventResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId_ListSecurityAdvisoryImpactedResourcesByTenantId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json // this example is just showing the usage of "SecurityAdvisoryImpactedResources_ListByTenantIdAndEventId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId_ListS [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_EventByTenantIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Get_EventByTenantIdAndTrackingId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task FetchDetailsByTenantIdAndTrackingId_EventDetailsByTenantIdAndTrackingId() { - // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2023-10-01-preview/examples/Event_fetchDetailsByTenantIdAndTrackingId.json // this example is just showing the usage of "Event_fetchDetailsByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs index 484997e81fd02..14850eb99cc60 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs @@ -143,13 +143,18 @@ public static MetadataSupportedValueDetail MetadataSupportedValueDetail(string i /// Resource type within Microsoft cloud. /// Identity for resource within Microsoft cloud. /// Impacted resource region name. + /// Resource name of the impacted resource. + /// Resource group name of the impacted resource. + /// Status of the impacted resource. + /// Start time of maintenance for the impacted resource. + /// End time of maintenance for the impacted resource. /// Additional information. /// A new instance for mocking. - public static ResourceHealthEventImpactedResourceData ResourceHealthEventImpactedResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceType? targetResourceType = null, ResourceIdentifier targetResourceId = null, string targetRegion = null, IEnumerable info = null) + public static ResourceHealthEventImpactedResourceData ResourceHealthEventImpactedResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceType? targetResourceType = null, ResourceIdentifier targetResourceId = null, string targetRegion = null, string resourceName = null, string resourceGroup = null, string status = null, string maintenanceStartTime = null, string maintenanceEndTime = null, IEnumerable info = null) { info ??= new List(); - return new ResourceHealthEventImpactedResourceData(id, name, resourceType, systemData, targetResourceType, targetResourceId, targetRegion, info?.ToList()); + return new ResourceHealthEventImpactedResourceData(id, name, resourceType, systemData, targetResourceType, targetResourceId, targetRegion, resourceName, resourceGroup, status, maintenanceStartTime, maintenanceEndTime, info?.ToList()); } /// Initializes a new instance of ResourceHealthKeyValueItem. @@ -167,6 +172,7 @@ public static ResourceHealthKeyValueItem ResourceHealthKeyValueItem(string key = /// The resourceType. /// The systemData. /// Type of event. + /// Sub type of the event. Currently used to determine retirement communications for health advisory events. /// Source of event. /// Current status of event. /// Title text of event. @@ -194,14 +200,17 @@ public static ResourceHealthKeyValueItem ResourceHealthKeyValueItem(string key = /// Additional information. /// duration in seconds. /// The type of the impact. + /// Unique identifier for planned maintenance event. + /// The type of planned maintenance event. + /// Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. /// A new instance for mocking. - public static ResourceHealthEventData ResourceHealthEventData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceHealthEventTypeValue? eventType = null, ResourceHealthEventSourceValue? eventSource = null, ResourceHealthEventStatusValue? status = null, string title = null, string summary = null, string header = null, ResourceHealthEventInsightLevelValue? level = null, ResourceHealthEventLevelValue? eventLevel = null, string externalIncidentId = null, string reason = null, ResourceHealthEventArticle article = null, IEnumerable links = null, DateTimeOffset? impactStartOn = null, DateTimeOffset? impactMitigationOn = null, IEnumerable impact = null, ResourceHealthEventRecommendedActions recommendedActions = null, IEnumerable faqs = null, bool? isHirEvent = null, bool? isMicrosoftSupportEnabled = null, string description = null, bool? isPlatformInitiated = null, bool? isChatWithUsEnabled = null, int? priority = null, DateTimeOffset? lastUpdateOn = null, string hirStage = null, string additionalInformationMessage = null, int? duration = null, string impactType = null) + public static ResourceHealthEventData ResourceHealthEventData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceHealthEventTypeValue? eventType = null, EventSubTypeValue? eventSubType = null, ResourceHealthEventSourceValue? eventSource = null, ResourceHealthEventStatusValue? status = null, string title = null, string summary = null, string header = null, ResourceHealthEventInsightLevelValue? level = null, ResourceHealthEventLevelValue? eventLevel = null, string externalIncidentId = null, string reason = null, ResourceHealthEventArticle article = null, IEnumerable links = null, DateTimeOffset? impactStartOn = null, DateTimeOffset? impactMitigationOn = null, IEnumerable impact = null, ResourceHealthEventRecommendedActions recommendedActions = null, IEnumerable faqs = null, bool? isHirEvent = null, bool? isMicrosoftSupportEnabled = null, string description = null, bool? isPlatformInitiated = null, bool? isChatWithUsEnabled = null, int? priority = null, DateTimeOffset? lastUpdateOn = null, string hirStage = null, string additionalInformationMessage = null, int? duration = null, string impactType = null, string maintenanceId = null, string maintenanceType = null, string argQuery = null) { links ??= new List(); impact ??= new List(); faqs ??= new List(); - return new ResourceHealthEventData(id, name, resourceType, systemData, eventType, eventSource, status, title, summary, header, level, eventLevel, externalIncidentId, reason, article, links?.ToList(), impactStartOn, impactMitigationOn, impact?.ToList(), recommendedActions, faqs?.ToList(), isHirEvent, isMicrosoftSupportEnabled, description, isPlatformInitiated, isChatWithUsEnabled, priority, lastUpdateOn, hirStage, additionalInformationMessage != null ? new ResourceHealthEventAdditionalInformation(additionalInformationMessage) : null, duration, impactType); + return new ResourceHealthEventData(id, name, resourceType, systemData, eventType, eventSubType, eventSource, status, title, summary, header, level, eventLevel, externalIncidentId, reason, article, links?.ToList(), impactStartOn, impactMitigationOn, impact?.ToList(), recommendedActions, faqs?.ToList(), isHirEvent, isMicrosoftSupportEnabled, description, isPlatformInitiated, isChatWithUsEnabled, priority, lastUpdateOn, hirStage, additionalInformationMessage != null ? new ResourceHealthEventAdditionalInformation(additionalInformationMessage) : null, duration, impactType, maintenanceId, maintenanceType, argQuery); } /// Initializes a new instance of ResourceHealthEventArticle. diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSubTypeValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSubTypeValue.cs new file mode 100644 index 0000000000000..646d5287cace8 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSubTypeValue.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Sub type of the event. Currently used to determine retirement communications for health advisory events. + public readonly partial struct EventSubTypeValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EventSubTypeValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RetirementValue = "Retirement"; + + /// Retirement. + public static EventSubTypeValue Retirement { get; } = new EventSubTypeValue(RetirementValue); + /// Determines if two values are the same. + public static bool operator ==(EventSubTypeValue left, EventSubTypeValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventSubTypeValue left, EventSubTypeValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EventSubTypeValue(string value) => new EventSubTypeValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EventSubTypeValue other && Equals(other); + /// + public bool Equals(EventSubTypeValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventData.Serialization.cs index ded1eebd5441e..8b899bd50fc16 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventData.Serialization.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventData.Serialization.cs @@ -27,6 +27,7 @@ internal static ResourceHealthEventData DeserializeResourceHealthEventData(JsonE ResourceType type = default; Optional systemData = default; Optional eventType = default; + Optional eventSubType = default; Optional eventSource = default; Optional status = default; Optional title = default; @@ -54,6 +55,9 @@ internal static ResourceHealthEventData DeserializeResourceHealthEventData(JsonE Optional additionalInformation = default; Optional duration = default; Optional impactType = default; + Optional maintenanceId = default; + Optional maintenanceType = default; + Optional argQuery = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -98,6 +102,15 @@ internal static ResourceHealthEventData DeserializeResourceHealthEventData(JsonE eventType = new ResourceHealthEventTypeValue(property0.Value.GetString()); continue; } + if (property0.NameEquals("eventSubType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + eventSubType = new EventSubTypeValue(property0.Value.GetString()); + continue; + } if (property0.NameEquals("eventSource"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -324,11 +337,26 @@ internal static ResourceHealthEventData DeserializeResourceHealthEventData(JsonE impactType = property0.Value.GetString(); continue; } + if (property0.NameEquals("maintenanceId"u8)) + { + maintenanceId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("maintenanceType"u8)) + { + maintenanceType = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("argQuery"u8)) + { + argQuery = property0.Value.GetString(); + continue; + } } continue; } } - return new ResourceHealthEventData(id, name, type, systemData.Value, Optional.ToNullable(eventType), Optional.ToNullable(eventSource), Optional.ToNullable(status), title.Value, summary.Value, header.Value, Optional.ToNullable(level), Optional.ToNullable(eventLevel), externalIncidentId.Value, reason.Value, article.Value, Optional.ToList(links), Optional.ToNullable(impactStartTime), Optional.ToNullable(impactMitigationTime), Optional.ToList(impact), recommendedActions.Value, Optional.ToList(faqs), Optional.ToNullable(isHIR), Optional.ToNullable(enableMicrosoftSupport), description.Value, Optional.ToNullable(platformInitiated), Optional.ToNullable(enableChatWithUs), Optional.ToNullable(priority), Optional.ToNullable(lastUpdateTime), hirStage.Value, additionalInformation.Value, Optional.ToNullable(duration), impactType.Value); + return new ResourceHealthEventData(id, name, type, systemData.Value, Optional.ToNullable(eventType), Optional.ToNullable(eventSubType), Optional.ToNullable(eventSource), Optional.ToNullable(status), title.Value, summary.Value, header.Value, Optional.ToNullable(level), Optional.ToNullable(eventLevel), externalIncidentId.Value, reason.Value, article.Value, Optional.ToList(links), Optional.ToNullable(impactStartTime), Optional.ToNullable(impactMitigationTime), Optional.ToList(impact), recommendedActions.Value, Optional.ToList(faqs), Optional.ToNullable(isHIR), Optional.ToNullable(enableMicrosoftSupport), description.Value, Optional.ToNullable(platformInitiated), Optional.ToNullable(enableChatWithUs), Optional.ToNullable(priority), Optional.ToNullable(lastUpdateTime), hirStage.Value, additionalInformation.Value, Optional.ToNullable(duration), impactType.Value, maintenanceId.Value, maintenanceType.Value, argQuery.Value); } } } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResourceData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResourceData.Serialization.cs index 7f1803e49cff8..6ef88402fca5b 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResourceData.Serialization.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ResourceHealthEventImpactedResourceData.Serialization.cs @@ -28,6 +28,11 @@ internal static ResourceHealthEventImpactedResourceData DeserializeResourceHealt Optional targetResourceType = default; Optional targetResourceId = default; Optional targetRegion = default; + Optional resourceName = default; + Optional resourceGroup = default; + Optional status = default; + Optional maintenanceStartTime = default; + Optional maintenanceEndTime = default; Optional> info = default; foreach (var property in element.EnumerateObject()) { @@ -87,6 +92,31 @@ internal static ResourceHealthEventImpactedResourceData DeserializeResourceHealt targetRegion = property0.Value.GetString(); continue; } + if (property0.NameEquals("resourceName"u8)) + { + resourceName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("resourceGroup"u8)) + { + resourceGroup = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("status"u8)) + { + status = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("maintenanceStartTime"u8)) + { + maintenanceStartTime = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("maintenanceEndTime"u8)) + { + maintenanceEndTime = property0.Value.GetString(); + continue; + } if (property0.NameEquals("info"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -105,7 +135,7 @@ internal static ResourceHealthEventImpactedResourceData DeserializeResourceHealt continue; } } - return new ResourceHealthEventImpactedResourceData(id, name, type, systemData.Value, Optional.ToNullable(targetResourceType), targetResourceId.Value, targetRegion.Value, Optional.ToList(info)); + return new ResourceHealthEventImpactedResourceData(id, name, type, systemData.Value, Optional.ToNullable(targetResourceType), targetResourceId.Value, targetRegion.Value, resourceName.Value, resourceGroup.Value, status.Value, maintenanceStartTime.Value, maintenanceEndTime.Value, Optional.ToList(info)); } } } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventData.cs index 550fc508c9b25..d4ba19659f952 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventData.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventData.cs @@ -33,6 +33,7 @@ internal ResourceHealthEventData() /// The resourceType. /// The systemData. /// Type of event. + /// Sub type of the event. Currently used to determine retirement communications for health advisory events. /// Source of event. /// Current status of event. /// Title text of event. @@ -60,9 +61,13 @@ internal ResourceHealthEventData() /// Additional information. /// duration in seconds. /// The type of the impact. - internal ResourceHealthEventData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceHealthEventTypeValue? eventType, ResourceHealthEventSourceValue? eventSource, ResourceHealthEventStatusValue? status, string title, string summary, string header, ResourceHealthEventInsightLevelValue? level, ResourceHealthEventLevelValue? eventLevel, string externalIncidentId, string reason, ResourceHealthEventArticle article, IReadOnlyList links, DateTimeOffset? impactStartOn, DateTimeOffset? impactMitigationOn, IReadOnlyList impact, ResourceHealthEventRecommendedActions recommendedActions, IReadOnlyList faqs, bool? isHirEvent, bool? isMicrosoftSupportEnabled, string description, bool? isPlatformInitiated, bool? isChatWithUsEnabled, int? priority, DateTimeOffset? lastUpdateOn, string hirStage, ResourceHealthEventAdditionalInformation additionalInformation, int? duration, string impactType) : base(id, name, resourceType, systemData) + /// Unique identifier for planned maintenance event. + /// The type of planned maintenance event. + /// Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. + internal ResourceHealthEventData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceHealthEventTypeValue? eventType, EventSubTypeValue? eventSubType, ResourceHealthEventSourceValue? eventSource, ResourceHealthEventStatusValue? status, string title, string summary, string header, ResourceHealthEventInsightLevelValue? level, ResourceHealthEventLevelValue? eventLevel, string externalIncidentId, string reason, ResourceHealthEventArticle article, IReadOnlyList links, DateTimeOffset? impactStartOn, DateTimeOffset? impactMitigationOn, IReadOnlyList impact, ResourceHealthEventRecommendedActions recommendedActions, IReadOnlyList faqs, bool? isHirEvent, bool? isMicrosoftSupportEnabled, string description, bool? isPlatformInitiated, bool? isChatWithUsEnabled, int? priority, DateTimeOffset? lastUpdateOn, string hirStage, ResourceHealthEventAdditionalInformation additionalInformation, int? duration, string impactType, string maintenanceId, string maintenanceType, string argQuery) : base(id, name, resourceType, systemData) { EventType = eventType; + EventSubType = eventSubType; EventSource = eventSource; Status = status; Title = title; @@ -90,10 +95,15 @@ internal ResourceHealthEventData(ResourceIdentifier id, string name, ResourceTyp AdditionalInformation = additionalInformation; Duration = duration; ImpactType = impactType; + MaintenanceId = maintenanceId; + MaintenanceType = maintenanceType; + ArgQuery = argQuery; } /// Type of event. public ResourceHealthEventTypeValue? EventType { get; } + /// Sub type of the event. Currently used to determine retirement communications for health advisory events. + public EventSubTypeValue? EventSubType { get; } /// Source of event. public ResourceHealthEventSourceValue? EventSource { get; } /// Current status of event. @@ -154,5 +164,11 @@ public string AdditionalInformationMessage public int? Duration { get; } /// The type of the impact. public string ImpactType { get; } + /// Unique identifier for planned maintenance event. + public string MaintenanceId { get; } + /// The type of planned maintenance event. + public string MaintenanceType { get; } + /// Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. + public string ArgQuery { get; } } } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventImpactedResourceData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventImpactedResourceData.cs index 8e39a71db8c16..7ddeae4e0ecb1 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventImpactedResourceData.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ResourceHealthEventImpactedResourceData.cs @@ -32,12 +32,22 @@ internal ResourceHealthEventImpactedResourceData() /// Resource type within Microsoft cloud. /// Identity for resource within Microsoft cloud. /// Impacted resource region name. + /// Resource name of the impacted resource. + /// Resource group name of the impacted resource. + /// Status of the impacted resource. + /// Start time of maintenance for the impacted resource. + /// End time of maintenance for the impacted resource. /// Additional information. - internal ResourceHealthEventImpactedResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceType? targetResourceType, ResourceIdentifier targetResourceId, string targetRegion, IReadOnlyList info) : base(id, name, resourceType, systemData) + internal ResourceHealthEventImpactedResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceType? targetResourceType, ResourceIdentifier targetResourceId, string targetRegion, string resourceName, string resourceGroup, string status, string maintenanceStartTime, string maintenanceEndTime, IReadOnlyList info) : base(id, name, resourceType, systemData) { TargetResourceType = targetResourceType; TargetResourceId = targetResourceId; TargetRegion = targetRegion; + ResourceName = resourceName; + ResourceGroup = resourceGroup; + Status = status; + MaintenanceStartTime = maintenanceStartTime; + MaintenanceEndTime = maintenanceEndTime; Info = info; } @@ -47,6 +57,16 @@ internal ResourceHealthEventImpactedResourceData(ResourceIdentifier id, string n public ResourceIdentifier TargetResourceId { get; } /// Impacted resource region name. public string TargetRegion { get; } + /// Resource name of the impacted resource. + public string ResourceName { get; } + /// Resource group name of the impacted resource. + public string ResourceGroup { get; } + /// Status of the impacted resource. + public string Status { get; } + /// Start time of maintenance for the impacted resource. + public string MaintenanceStartTime { get; } + /// End time of maintenance for the impacted resource. + public string MaintenanceEndTime { get; } /// Additional information. public IReadOnlyList Info { get; } } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs index fabceb748bc00..15fe93f357c8c 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs @@ -33,7 +33,7 @@ public AvailabilityStatusesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs index 65f83bcafb4f7..4025516c98357 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildAvailabilityStatusesRestOperations.cs @@ -33,7 +33,7 @@ public ChildAvailabilityStatusesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs index 5cb346b03e4b5..40e69caba2eae 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ChildResourcesRestOperations.cs @@ -33,7 +33,7 @@ public ChildResourcesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs index 9691c9891a2bf..218b088411ec6 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs @@ -33,7 +33,7 @@ public EmergingIssuesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs index 6b956e9f97820..fb39c828d20ce 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs @@ -32,7 +32,7 @@ public EventRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs index 7e9a44e2d87a3..a21d358278b0a 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs @@ -33,7 +33,7 @@ public EventsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs index a4be08190e169..af689095e862a 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs @@ -33,7 +33,7 @@ public ImpactedResourcesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs index 1b7ada1503f28..b1f45f76fa221 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs @@ -33,7 +33,7 @@ public MetadataRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs index bb3dcb6c309c3..e3176d4b0c94a 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs @@ -33,7 +33,7 @@ public SecurityAdvisoryImpactedResourcesRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md index c9612d90b23e2..0e30a70387c33 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md @@ -7,8 +7,8 @@ azure-arm: true csharp: true library-name: ResourceHealth namespace: Azure.ResourceManager.ResourceHealth -require: https://github.com/Azure/azure-rest-api-specs/blob/56b585b014e28a73a0a7831e27b93fa803effead/specification/resourcehealth/resource-manager/readme.md -# tag: package-2022-10 +require: https://github.com/Azure/azure-rest-api-specs/blob/4bafbf3ab1532e390ad5757433679e9ebb5cbf38/specification/resourcehealth/resource-manager/readme.md +tag: package-preview-2023-10 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj index cdff0dc86a67f..4a9d8679070fa 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj @@ -1,5 +1,6 @@  +