From 48e7473e738caf610615f166e0f111bbc9b7b033 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 28 Jul 2021 21:10:32 +0000 Subject: [PATCH] CodeGen from PR 15414 in Azure/azure-rest-api-specs Merge f2dce01251c53c0835176d4b5957e99b70f2d701 into 57e30b59a95ea35181d547a97528adbf82360ae7 --- .../Models/CapacityReservationProperties.cs | 11 +---------- .../src/Generated/Models/Table.cs | 17 ----------------- ...kInfo_OperationalInsightsManagementClient.cs | 11 ----------- .../src/Generated/TablesOperations.cs | 8 -------- 4 files changed, 1 insertion(+), 46 deletions(-) diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/CapacityReservationProperties.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/CapacityReservationProperties.cs index e893322523f2..18d66429ce55 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/CapacityReservationProperties.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/CapacityReservationProperties.cs @@ -34,13 +34,10 @@ public CapacityReservationProperties() /// The last time Sku was updated. /// Minimum CapacityReservation value in /// GB. - /// Maximum CapacityReservation value in - /// GB. - public CapacityReservationProperties(string lastSkuUpdate = default(string), long? minCapacity = default(long?), long? maxCapacity = default(long?)) + public CapacityReservationProperties(string lastSkuUpdate = default(string), long? minCapacity = default(long?)) { LastSkuUpdate = lastSkuUpdate; MinCapacity = minCapacity; - MaxCapacity = maxCapacity; CustomInit(); } @@ -61,11 +58,5 @@ public CapacityReservationProperties() [JsonProperty(PropertyName = "minCapacity")] public long? MinCapacity { get; private set; } - /// - /// Gets maximum CapacityReservation value in GB. - /// - [JsonProperty(PropertyName = "maxCapacity")] - public long? MaxCapacity { get; private set; } - } } diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs index cb912d5f41a5..0e9f4c9fb9d9 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs @@ -61,22 +61,5 @@ public Table() [JsonProperty(PropertyName = "properties.retentionInDays")] public int? RetentionInDays { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (RetentionInDays > 730) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "RetentionInDays", 730); - } - if (RetentionInDays < 30) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "RetentionInDays", 30); - } - } } } diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs index 5fa7f8f684fd..b38c654c98a8 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs @@ -42,16 +42,5 @@ public static IEnumerable> ApiInfo_OperationalInsi }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/operationalinsights/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\One\\SDK\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "036c2de2b40ad05a1542b665a9e8bda18c813194"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs index 485f0c2c11fd..4c980a291c23 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs @@ -360,14 +360,6 @@ internal TablesOperations(OperationalInsightsManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "tableName"); } - if (retentionInDays > 730) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "retentionInDays", 730); - } - if (retentionInDays < 30) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "retentionInDays", 30); - } string apiVersion = "2020-08-01"; Table parameters = new Table(); if (retentionInDays != null)