diff --git a/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/ActionStatus.cs b/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/ActionStatus.cs new file mode 100644 index 000000000000..8fbfc2a14f72 --- /dev/null +++ b/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/ActionStatus.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.AlertsManagement.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Action status + /// + public partial class ActionStatus + { + /// + /// Initializes a new instance of the ActionStatus class. + /// + public ActionStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ActionStatus class. + /// + /// Value indicating whether alert is + /// suppressed. + public ActionStatus(bool? isSuppressed = default(bool?)) + { + IsSuppressed = isSuppressed; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets value indicating whether alert is suppressed. + /// + [JsonProperty(PropertyName = "isSuppressed")] + public bool? IsSuppressed { get; set; } + + } +} diff --git a/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/Essentials.cs b/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/Essentials.cs index 287a6b5e6f0d..082ac48d89f7 100644 --- a/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/Essentials.cs +++ b/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/Essentials.cs @@ -77,7 +77,8 @@ public Essentials() /// User who last modified the /// alert, in case of monitor service updates user would be 'system', /// otherwise name of the user. - public Essentials(string severity = default(string), string signalType = default(string), string alertState = default(string), string monitorCondition = default(string), string targetResource = default(string), string targetResourceName = default(string), string targetResourceGroup = default(string), string targetResourceType = default(string), string monitorService = default(string), string alertRule = default(string), string sourceCreatedId = default(string), string smartGroupId = default(string), string smartGroupingReason = default(string), System.DateTime? startDateTime = default(System.DateTime?), System.DateTime? lastModifiedDateTime = default(System.DateTime?), System.DateTime? monitorConditionResolvedDateTime = default(System.DateTime?), string lastModifiedUserName = default(string)) + /// Alert description. + public Essentials(string severity = default(string), string signalType = default(string), string alertState = default(string), string monitorCondition = default(string), string targetResource = default(string), string targetResourceName = default(string), string targetResourceGroup = default(string), string targetResourceType = default(string), string monitorService = default(string), string alertRule = default(string), string sourceCreatedId = default(string), string smartGroupId = default(string), string smartGroupingReason = default(string), System.DateTime? startDateTime = default(System.DateTime?), System.DateTime? lastModifiedDateTime = default(System.DateTime?), System.DateTime? monitorConditionResolvedDateTime = default(System.DateTime?), string lastModifiedUserName = default(string), ActionStatus actionStatus = default(ActionStatus), string description = default(string)) { Severity = severity; SignalType = signalType; @@ -96,6 +97,8 @@ public Essentials() LastModifiedDateTime = lastModifiedDateTime; MonitorConditionResolvedDateTime = monitorConditionResolvedDateTime; LastModifiedUserName = lastModifiedUserName; + ActionStatus = actionStatus; + Description = description; CustomInit(); } @@ -227,5 +230,16 @@ public Essentials() [JsonProperty(PropertyName = "lastModifiedUserName")] public string LastModifiedUserName { get; private set; } + /// + /// + [JsonProperty(PropertyName = "actionStatus")] + public ActionStatus ActionStatus { get; set; } + + /// + /// Gets or sets alert description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + } } diff --git a/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/SdkInfo_AlertsManagementClient.cs b/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/SdkInfo_AlertsManagementClient.cs index 0f438cbeafe5..4ab23101e302 100644 --- a/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/SdkInfo_AlertsManagementClient.cs +++ b/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/SdkInfo_AlertsManagementClient.cs @@ -26,16 +26,5 @@ public static IEnumerable> ApiInfo_AlertsManagemen }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.4.2"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/alertsmanagement/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --tag=package-2021-08 --csharp-sdks-folder=C:\\Repos\\sdk\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "691920cda83cc0b89a8c821d0bb285100fad22b4"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -