diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/RecurrencePattern.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/RecurrencePattern.cs index 3907c87b3cc2..06b03e08da93 100644 --- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/RecurrencePattern.cs +++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/RecurrencePattern.cs @@ -95,16 +95,13 @@ public RecurrencePattern() /// public virtual void Validate() { - if (Interval != null) + if (Interval > 365) { - if (Interval > 365) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "Interval", 365); - } - if (Interval < 1) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "Interval", 1); - } + throw new ValidationException(ValidationRules.InclusiveMaximum, "Interval", 365); + } + if (Interval < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Interval", 1); } } } diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_LabServicesClient.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_LabServicesClient.cs index 60c344681b87..83aeb2059f42 100644 --- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_LabServicesClient.cs +++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_LabServicesClient.cs @@ -32,16 +32,5 @@ public static IEnumerable> ApiInfo_LabServicesClie }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.4.0"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/labservices/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Repos\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "679887ace44697c726aba8d2814ee415a5d25e6f"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -