From c8c7248382e85eb6736582c683360649a2e55fcf Mon Sep 17 00:00:00 2001 From: Yang Yuan Date: Tue, 7 Jun 2022 16:08:21 -0700 Subject: [PATCH 1/2] [Cognitive Services] Refresh SDK with latest update. --- .../cognitiveservices_resource-manager.txt | 12 +++++++----- .../src/Generated/Models/DeploymentScaleSettings.cs | 4 ++-- .../src/Generated/Models/DeploymentScaleType.cs | 1 + .../SdkInfo_CognitiveServicesManagementClient.cs | 9 +++++---- ...crosoft.Azure.Management.CognitiveServices.csproj | 4 ++-- .../src/Properties/AssemblyInfo.cs | 4 ++-- 6 files changed, 19 insertions(+), 15 deletions(-) diff --git a/eng/mgmt/mgmtmetadata/cognitiveservices_resource-manager.txt b/eng/mgmt/mgmtmetadata/cognitiveservices_resource-manager.txt index 3599d24f6e5d..d8af0a87e6ee 100644 --- a/eng/mgmt/mgmtmetadata/cognitiveservices_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/cognitiveservices_resource-manager.txt @@ -3,13 +3,15 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Repos\azure-sdk-for-net\sdk +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/resource-manager/readme.md --csharp --version=2.0.4421 --reflect-api-versions --csharp-sdks-folder=C:\Repos\azure-sdk-for-net\sdk Autorest CSharp Version: 2.3.82 -2022-03-13 20:59:57 UTC +2022-06-07 22:30:22 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: main -Commit: 2c66a689c610dbef623d6c4e4c4e913446d5ac68 +Commit: ad5110c7ba2113d5f77946338231f45ac4d09c82 AutoRest information -Requested version: v2 -Bootstrapper version: autorest@3.4.1 +Requested version: 2.0.4421 +Bootstrapper version: autorest@2.0.4413 +npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. +npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleSettings.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleSettings.cs index 7769a7a4b6e2..7b959e5f883a 100644 --- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleSettings.cs +++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleSettings.cs @@ -30,7 +30,7 @@ public DeploymentScaleSettings() /// Initializes a new instance of the DeploymentScaleSettings class. /// /// Deployment scale type. Possible values - /// include: 'Manual' + /// include: 'Standard', 'Manual' /// Deployment capacity. /// Deployment active capacity. This value /// might be different from `capacity` if customer recently updated @@ -50,7 +50,7 @@ public DeploymentScaleSettings() /// /// Gets or sets deployment scale type. Possible values include: - /// 'Manual' + /// 'Standard', 'Manual' /// [JsonProperty(PropertyName = "scaleType")] public string ScaleType { get; set; } diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleType.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleType.cs index 8662f7ddf3a8..8b4ed2231b69 100644 --- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleType.cs +++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/DeploymentScaleType.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.Management.CognitiveServices.Models /// public static class DeploymentScaleType { + public const string Standard = "Standard"; public const string Manual = "Manual"; } } diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs index 611d0803eecf..399ec7f92689 100644 --- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs +++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs @@ -34,15 +34,16 @@ public static IEnumerable> ApiInfo_CognitiveServic } } // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.4.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Repos\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestVersion = "2.0.4421"; + 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/main/specification/cognitiveservices/resource-manager/readme.md --csharp --version=2.0.4421 --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 = "2c66a689c610dbef623d6c4e4c4e913446d5ac68"; + public static readonly String GithubCommidId = "ad5110c7ba2113d5f77946338231f45ac4d09c82"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section } } + diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Microsoft.Azure.Management.CognitiveServices.csproj b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Microsoft.Azure.Management.CognitiveServices.csproj index f9f360ee783e..a0235b32b63d 100644 --- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Microsoft.Azure.Management.CognitiveServices.csproj +++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Microsoft.Azure.Management.CognitiveServices.csproj @@ -6,12 +6,12 @@ Microsoft.Azure.Management.CognitiveServices Microsoft Azure Management Cognitive Services Library - 8.2.0 + 8.3.0 Microsoft.Azure.Management.CognitiveServices Cognitive Services management;Cognitive Services; diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs index 9ec5e0009d56..5a5700706c41 100644 --- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs +++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Cognitive Services Management Library")] [assembly: AssemblyDescription("Provides Microsoft Azure Cognitive Services management functions for managing Microsoft Azure Cognitive Services accounts.")] -[assembly: AssemblyVersion("8.2.0.0")] -[assembly: AssemblyFileVersion("8.2.0.0")] +[assembly: AssemblyVersion("8.3.0.0")] +[assembly: AssemblyFileVersion("8.3.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] From 3b8c4ca2dfc0261b0ee94cd0ba722da5a0566ed9 Mon Sep 17 00:00:00 2001 From: Yang Yuan Date: Tue, 7 Jun 2022 18:08:58 -0700 Subject: [PATCH 2/2] Revert change of AssemblyVersion. --- .../src/Properties/AssemblyInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs index 5a5700706c41..168654c2b89b 100644 --- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs +++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Properties/AssemblyInfo.cs @@ -7,7 +7,7 @@ [assembly: AssemblyTitle("Microsoft Azure Cognitive Services Management Library")] [assembly: AssemblyDescription("Provides Microsoft Azure Cognitive Services management functions for managing Microsoft Azure Cognitive Services accounts.")] -[assembly: AssemblyVersion("8.3.0.0")] +[assembly: AssemblyVersion("8.2.0.0")] [assembly: AssemblyFileVersion("8.3.0.0")] [assembly: AssemblyConfiguration("")]