From 26523d986811ce0f0664c0cd70769c153abde81b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:19:34 -0700 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20240427.2 (#43698) * Update Generator Version 3.0.0-beta.20240427.2 * Update SDK codes ad_co_0 * Update SDK codes mi_pu_4 * Update SDK codes co_de_1 --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 16 +++++----- eng/emitter-package.json | 6 ++-- .../ResourceRecommendationBaseData.cs | 31 ++++++++++++++++++- .../Models/AppPlatformAppProperties.cs | 31 ++++++++++++++++++- .../Models/AppPlatformDeploymentSettings.cs | 31 ++++++++++++++++++- .../src/Generated/Models/ForecastResult.cs | 31 ++++++++++++++++++- .../src/Generated/Models/QueryResult.cs | 31 ++++++++++++++++++- .../Models/DatabricksNotebookActivity.cs | 31 ++++++++++++++++++- .../Models/DatabricksSparkJarActivity.cs | 31 ++++++++++++++++++- .../Models/DatabricksSparkPythonActivity.cs | 31 ++++++++++++++++++- .../src/Generated/AtlasGlossaryTerm.cs | 27 ++++++++++++++++ .../src/Generated/AtlasLineageInfo.cs | 31 ++++++++++++++++++- 13 files changed, 309 insertions(+), 21 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index d414853df53d..741cbfe3c356 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -223,7 +223,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index cd331a633200..af52cf97ff0e 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240427.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240427.2" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.41.0", @@ -18,9 +18,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240427.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240427.1.tgz", - "integrity": "sha512-fVaP91OIogqpPcp8kIhAb6Y7JOwtgLDZsjYLk8DQUFQWJWP1dTkPSLoOw4WxGPrw7S9+tFvvooXE5B3uPo5Jew==" + "version": "3.0.0-beta.20240427.2", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240427.2.tgz", + "integrity": "sha512-2PSy14bF6Ga8dwfLIZeOKPGaS5/vScsuTRa7rn+d6i9pPSovbNA2ufp/fldYUZhy7He0p9GrV0tFe5qd7JRD8g==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.41.0", @@ -57,11 +57,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240427.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240427.1.tgz", - "integrity": "sha512-PpSIY8CilKNiKMKoUtLUBLIFiGLXjCpMmpIY9DmHwb94fAq7G70ZJuc7+YnO8dqNM3ABeSr1KHVwXUzhPCAxnw==", + "version": "0.2.0-beta.20240427.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240427.2.tgz", + "integrity": "sha512-PDkl3h12XSlFToNrj1JI61HjON0CghNcmaMxaFUn9Xz8LtKZAgwESDQqTjkhT7lGF2JVWQmxF031ySy0UtySag==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240427.1", + "@autorest/csharp": "3.0.0-beta.20240427.2", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 0d9a21ee8273..2858543d9e47 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,14 +1,14 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240427.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240427.2" }, "devDependencies": { + "@azure-tools/typespec-azure-core": "0.41.0", "@typespec/openapi": "0.55.0", + "@typespec/compiler": "0.55.0", "@typespec/http": "0.55.0", - "@azure-tools/typespec-azure-core": "0.41.0", "@typespec/versioning": "0.55.0", - "@typespec/compiler": "0.55.0", "@typespec/rest": "0.55.0", "@azure-tools/typespec-client-generator-core": "0.41.5" } diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs index 854b4208bbcf..6f972e501ff9 100644 --- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs +++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseData.cs @@ -172,7 +172,36 @@ internal ResourceRecommendationBaseData(ResourceIdentifier id, string name, Reso public string LearnMoreLink { get; set; } /// The potential benefit of implementing recommendation. public string PotentialBenefits { get; set; } - /// The list of recommended actions to implement recommendation. + /// + /// The list of recommended actions to implement recommendation. + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IList> Actions { get; } /// /// The automated way to apply recommendation. diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs index b3cb4bb352d8..a8e28894e7e5 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformAppProperties.cs @@ -90,7 +90,36 @@ internal AppPlatformAppProperties(bool? isPublic, string uriString, IDictionary< public bool? IsPublic { get; set; } /// URL of the App. public string UriString { get; } - /// Collection of addons. + /// + /// Collection of addons + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IDictionary> AddonConfigs { get; } /// Provisioning state of the App. public AppPlatformAppProvisioningState? ProvisioningState { get; } diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentSettings.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentSettings.cs index 776b83ca36ca..6c93c36de5e1 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentSettings.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/Models/AppPlatformDeploymentSettings.cs @@ -79,7 +79,36 @@ internal AppPlatformDeploymentSettings(AppPlatformDeploymentResourceRequirements public AppPlatformDeploymentResourceRequirements ResourceRequests { get; set; } /// Collection of environment variables. public IDictionary EnvironmentVariables { get; } - /// Collection of addons. + /// + /// Collection of addons + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IDictionary> AddonConfigs { get; } /// Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. public AppInstanceProbe LivenessProbe { get; set; } diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs index d4eb400a5b57..744fb3992d9b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/ForecastResult.cs @@ -84,7 +84,36 @@ internal ForecastResult(ResourceIdentifier id, string name, ResourceType resourc public string NextLink { get; } /// Array of columns. public IReadOnlyList Columns { get; } - /// Array of rows. + /// + /// Array of rows + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IReadOnlyList> Rows { get; } /// Location of the resource. public AzureLocation? Location { get; } diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs index 9b915411d7e0..9e54546bdced 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/QueryResult.cs @@ -84,7 +84,36 @@ internal QueryResult(ResourceIdentifier id, string name, ResourceType resourceTy public string NextLink { get; } /// Array of columns. public IReadOnlyList Columns { get; } - /// Array of rows. + /// + /// Array of rows + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IReadOnlyList> Rows { get; } /// Location of the resource. public AzureLocation? Location { get; } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs index 237987d28a38..f19d84f53506 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs @@ -89,7 +89,36 @@ internal DatabricksNotebookActivity() /// /// public IDictionary BaseParameters { get; } - /// A list of libraries to be installed on the cluster that will execute the job. + /// + /// A list of libraries to be installed on the cluster that will execute the job. + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IList> Libraries { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs index df6016fe35ba..b1632f2901d6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs @@ -89,7 +89,36 @@ internal DatabricksSparkJarActivity() /// /// public IList Parameters { get; } - /// A list of libraries to be installed on the cluster that will execute the job. + /// + /// A list of libraries to be installed on the cluster that will execute the job. + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IList> Libraries { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs index ca585574d2b2..28e25ac93596 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs @@ -89,7 +89,36 @@ internal DatabricksSparkPythonActivity() /// /// public IList Parameters { get; } - /// A list of libraries to be installed on the cluster that will execute the job. + /// + /// A list of libraries to be installed on the cluster that will execute the job. + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IList> Libraries { get; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs index 4eb67b2934ae..e37f525c1059 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasGlossaryTerm.cs @@ -230,6 +230,33 @@ internal AtlasGlossaryTerm(string guid, IList classificatio /// The custom attributes of the term, which is map<string,map<string,object>>. /// The /// key of the first layer map is term template name. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// /// public IDictionary> Attributes { get; } /// An array of related object IDs. diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs index b248a282213e..901127e90720 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/AtlasLineageInfo.cs @@ -83,7 +83,36 @@ internal AtlasLineageInfo(string baseEntityGuid, IReadOnlyDictionary The GUID entity map. public IReadOnlyDictionary GuidEntityMap { get; } - /// The entity count in specific direction. + /// + /// The entity count in specific direction. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// public IReadOnlyDictionary> WidthCounts { get; } /// The depth of lineage. public int? LineageDepth { get; }