diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs index 1ea6f161ecbc..69089be51c5b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.net8.0.cs @@ -742,8 +742,8 @@ public partial class ApplicationInsightsComponentProactiveDetectionConfiguration { public ApplicationInsightsComponentProactiveDetectionConfiguration() { } public System.Collections.Generic.IList CustomEmails { get { throw null; } } - public bool? IsEnabled { get { throw null; } set { } } - public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } + public bool? Enabled { get { throw null; } set { } } + public string LastUpdatedTime { get { throw null; } set { } } public string Name { get { throw null; } set { } } public Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions RuleDefinitions { get { throw null; } set { } } public bool? SendEmailsToSubscriptionOwners { get { throw null; } set { } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs index 1ea6f161ecbc..69089be51c5b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/api/Azure.ResourceManager.ApplicationInsights.netstandard2.0.cs @@ -742,8 +742,8 @@ public partial class ApplicationInsightsComponentProactiveDetectionConfiguration { public ApplicationInsightsComponentProactiveDetectionConfiguration() { } public System.Collections.Generic.IList CustomEmails { get { throw null; } } - public bool? IsEnabled { get { throw null; } set { } } - public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } + public bool? Enabled { get { throw null; } set { } } + public string LastUpdatedTime { get { throw null; } set { } } public string Name { get { throw null; } set { } } public Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions RuleDefinitions { get { throw null; } set { } } public bool? SendEmailsToSubscriptionOwners { get { throw null; } set { } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs index 910433cf1a19..e8fea53100c6 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/samples/Generated/Samples/Sample_ApplicationInsightsComponentResource.cs @@ -798,10 +798,10 @@ public async Task UpdateProactiveDetectionConfiguration_ProactiveDetectionConfig ApplicationInsightsComponentProactiveDetectionConfiguration proactiveDetectionProperties = new ApplicationInsightsComponentProactiveDetectionConfiguration { Name = "slowpageloadtime", - IsEnabled = true, + Enabled = true, SendEmailsToSubscriptionOwners = true, CustomEmails = { "foo@microsoft.com", "foo2@microsoft.com" }, - LastUpdatedOn = default, + LastUpdatedTime = null, RuleDefinitions = new ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions { Name = "slowpageloadtime", diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs index 86d6614a033d..d8390fb47adb 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.Serialization.cs @@ -38,22 +38,22 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (Optional.IsDefined(Name)) { - writer.WritePropertyName("Name"u8); + writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } - if (Optional.IsDefined(IsEnabled)) + if (Optional.IsDefined(Enabled)) { - writer.WritePropertyName("Enabled"u8); - writer.WriteBooleanValue(IsEnabled.Value); + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(Enabled.Value); } if (Optional.IsDefined(SendEmailsToSubscriptionOwners)) { - writer.WritePropertyName("SendEmailsToSubscriptionOwners"u8); + writer.WritePropertyName("sendEmailsToSubscriptionOwners"u8); writer.WriteBooleanValue(SendEmailsToSubscriptionOwners.Value); } if (Optional.IsCollectionDefined(CustomEmails)) { - writer.WritePropertyName("CustomEmails"u8); + writer.WritePropertyName("customEmails"u8); writer.WriteStartArray(); foreach (var item in CustomEmails) { @@ -61,14 +61,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } - if (Optional.IsDefined(LastUpdatedOn)) + if (Optional.IsDefined(LastUpdatedTime)) { - writer.WritePropertyName("LastUpdatedTime"u8); - writer.WriteStringValue(LastUpdatedOn.Value, "O"); + writer.WritePropertyName("lastUpdatedTime"u8); + writer.WriteStringValue(LastUpdatedTime); } if (Optional.IsDefined(RuleDefinitions)) { - writer.WritePropertyName("RuleDefinitions"u8); + writer.WritePropertyName("ruleDefinitions"u8); writer.WriteObjectValue(RuleDefinitions, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -112,18 +112,18 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese bool? enabled = default; bool? sendEmailsToSubscriptionOwners = default; IList customEmails = default; - DateTimeOffset? lastUpdatedTime = default; + string lastUpdatedTime = default; ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("Name"u8)) + if (property.NameEquals("name"u8)) { name = property.Value.GetString(); continue; } - if (property.NameEquals("Enabled"u8)) + if (property.NameEquals("enabled"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -132,7 +132,7 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese enabled = property.Value.GetBoolean(); continue; } - if (property.NameEquals("SendEmailsToSubscriptionOwners"u8)) + if (property.NameEquals("sendEmailsToSubscriptionOwners"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -141,7 +141,7 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese sendEmailsToSubscriptionOwners = property.Value.GetBoolean(); continue; } - if (property.NameEquals("CustomEmails"u8)) + if (property.NameEquals("customEmails"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -155,16 +155,12 @@ internal static ApplicationInsightsComponentProactiveDetectionConfiguration Dese customEmails = array; continue; } - if (property.NameEquals("LastUpdatedTime"u8)) + if (property.NameEquals("lastUpdatedTime"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - lastUpdatedTime = property.Value.GetDateTimeOffset("O"); + lastUpdatedTime = property.Value.GetString(); continue; } - if (property.NameEquals("RuleDefinitions"u8)) + if (property.NameEquals("ruleDefinitions"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { @@ -203,14 +199,14 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" Name: "); + builder.Append(" name: "); builder.AppendLine(propertyOverride); } else { if (Optional.IsDefined(Name)) { - builder.Append(" Name: "); + builder.Append(" name: "); if (Name.Contains(Environment.NewLine)) { builder.AppendLine("'''"); @@ -223,18 +219,18 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsEnabled), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Enabled), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" Enabled: "); + builder.Append(" enabled: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(IsEnabled)) + if (Optional.IsDefined(Enabled)) { - builder.Append(" Enabled: "); - var boolValue = IsEnabled.Value == true ? "true" : "false"; + builder.Append(" enabled: "); + var boolValue = Enabled.Value == true ? "true" : "false"; builder.AppendLine($"{boolValue}"); } } @@ -242,14 +238,14 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SendEmailsToSubscriptionOwners), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" SendEmailsToSubscriptionOwners: "); + builder.Append(" sendEmailsToSubscriptionOwners: "); builder.AppendLine(propertyOverride); } else { if (Optional.IsDefined(SendEmailsToSubscriptionOwners)) { - builder.Append(" SendEmailsToSubscriptionOwners: "); + builder.Append(" sendEmailsToSubscriptionOwners: "); var boolValue = SendEmailsToSubscriptionOwners.Value == true ? "true" : "false"; builder.AppendLine($"{boolValue}"); } @@ -258,7 +254,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomEmails), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" CustomEmails: "); + builder.Append(" customEmails: "); builder.AppendLine(propertyOverride); } else @@ -267,7 +263,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) { if (CustomEmails.Any()) { - builder.Append(" CustomEmails: "); + builder.Append(" customEmails: "); builder.AppendLine("["); foreach (var item in CustomEmails) { @@ -291,34 +287,41 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastUpdatedOn), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LastUpdatedTime), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" LastUpdatedTime: "); + builder.Append(" lastUpdatedTime: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(LastUpdatedOn)) + if (Optional.IsDefined(LastUpdatedTime)) { - builder.Append(" LastUpdatedTime: "); - var formattedDateTimeString = TypeFormatters.ToString(LastUpdatedOn.Value, "o"); - builder.AppendLine($"'{formattedDateTimeString}'"); + builder.Append(" lastUpdatedTime: "); + if (LastUpdatedTime.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{LastUpdatedTime}'''"); + } + else + { + builder.AppendLine($"'{LastUpdatedTime}'"); + } } } hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RuleDefinitions), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" RuleDefinitions: "); + builder.Append(" ruleDefinitions: "); builder.AppendLine(propertyOverride); } else { if (Optional.IsDefined(RuleDefinitions)) { - builder.Append(" RuleDefinitions: "); - BicepSerializationHelpers.AppendChildObject(builder, RuleDefinitions, options, 2, false, " RuleDefinitions: "); + builder.Append(" ruleDefinitions: "); + BicepSerializationHelpers.AppendChildObject(builder, RuleDefinitions, options, 2, false, " ruleDefinitions: "); } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs index 2800ddc09508..3a04b773300b 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/Generated/Models/ApplicationInsightsComponentProactiveDetectionConfiguration.cs @@ -53,40 +53,40 @@ public ApplicationInsightsComponentProactiveDetectionConfiguration() /// Initializes a new instance of . /// The rule name. - /// A flag that indicates whether this rule is enabled by the user. + /// A flag that indicates whether this rule is enabled by the user. /// A flag that indicated whether notifications on this rule should be sent to subscription owners. /// Custom email addresses for this rule notifications. - /// The last time this rule was updated. + /// The last time this rule was updated. /// Static definitions of the ProactiveDetection configuration rule (same values for all components). /// Keeps track of any properties unknown to the library. - internal ApplicationInsightsComponentProactiveDetectionConfiguration(string name, bool? isEnabled, bool? sendEmailsToSubscriptionOwners, IList customEmails, DateTimeOffset? lastUpdatedOn, ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions, IDictionary serializedAdditionalRawData) + internal ApplicationInsightsComponentProactiveDetectionConfiguration(string name, bool? enabled, bool? sendEmailsToSubscriptionOwners, IList customEmails, string lastUpdatedTime, ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions, IDictionary serializedAdditionalRawData) { Name = name; - IsEnabled = isEnabled; + Enabled = enabled; SendEmailsToSubscriptionOwners = sendEmailsToSubscriptionOwners; CustomEmails = customEmails; - LastUpdatedOn = lastUpdatedOn; + LastUpdatedTime = lastUpdatedTime; RuleDefinitions = ruleDefinitions; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The rule name. - [WirePath("Name")] + [WirePath("name")] public string Name { get; set; } /// A flag that indicates whether this rule is enabled by the user. - [WirePath("Enabled")] - public bool? IsEnabled { get; set; } + [WirePath("enabled")] + public bool? Enabled { get; set; } /// A flag that indicated whether notifications on this rule should be sent to subscription owners. - [WirePath("SendEmailsToSubscriptionOwners")] + [WirePath("sendEmailsToSubscriptionOwners")] public bool? SendEmailsToSubscriptionOwners { get; set; } /// Custom email addresses for this rule notifications. - [WirePath("CustomEmails")] + [WirePath("customEmails")] public IList CustomEmails { get; } /// The last time this rule was updated. - [WirePath("LastUpdatedTime")] - public DateTimeOffset? LastUpdatedOn { get; set; } + [WirePath("lastUpdatedTime")] + public string LastUpdatedTime { get; set; } /// Static definitions of the ProactiveDetection configuration rule (same values for all components). - [WirePath("RuleDefinitions")] + [WirePath("ruleDefinitions")] public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions RuleDefinitions { get; set; } } } diff --git a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md index 1b012731d871..d50679f37290 100644 --- a/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md +++ b/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: ApplicationInsights namespace: Azure.ResourceManager.ApplicationInsights -require: https://github.com/Azure/azure-rest-api-specs/blob/d4f3374fc56a25acc5442a7efe5aee11413fdfe2/specification/applicationinsights/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md tag: package-2024-04-25-only output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml index d8bf790b5988..f28c28a5d39c 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -79,7 +79,6 @@ trigger: - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/edgeorder/Azure.ResourceManager.EdgeOrder - - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/edgezones/Azure.ResourceManager.EdgeZones - sdk/elastic/Azure.ResourceManager.Elastic - sdk/elasticsan/Azure.ResourceManager.ElasticSan @@ -108,6 +107,7 @@ trigger: - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - sdk/iotcentral/Azure.ResourceManager.IotCentral - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/keyvault/Azure.ResourceManager.KeyVault - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - sdk/kusto/Azure.ResourceManager.Kusto @@ -285,7 +285,6 @@ pr: - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/edgeorder/Azure.ResourceManager.EdgeOrder - - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/edgezones/Azure.ResourceManager.EdgeZones - sdk/elastic/Azure.ResourceManager.Elastic - sdk/elasticsan/Azure.ResourceManager.ElasticSan @@ -314,6 +313,7 @@ pr: - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - sdk/iotcentral/Azure.ResourceManager.IotCentral - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/keyvault/Azure.ResourceManager.KeyVault - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - sdk/kusto/Azure.ResourceManager.Kusto