From f344c54e43b4920103beda6a2a4a629daaf5a23e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:46:31 -0400 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20240624.1 (#44714) * Update Generator Version 3.0.0-beta.20240624.1 * Update SDK codes de_he_2 * Update SDK codes ad_co_0 * Update SDK codes st_wo_6 * Update SDK codes mi_pu_4 * Update SDK codes co_de_1 * Update SDK codes he_me_3 * update changelog --------- Co-authored-by: FAREAST\chunyu --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 178 +++++++-------- eng/emitter-package.json | 22 +- ...Azure.AI.AnomalyDetector.netstandard2.0.cs | 38 ++-- .../AIAnomalyDetectorModelFactory.cs | 63 ++++++ .../DiagnosticsInfo.Serialization.cs | 2 +- .../src/Generated/DiagnosticsInfo.cs | 8 +- .../src/Generated/ErrorResponse.cs | 6 +- .../src/Generated/ModelState.Serialization.cs | 8 +- .../src/Generated/ModelState.cs | 12 +- .../src/Generated/VariableState.cs | 12 +- ...tionProviderOperationInfo.Serialization.cs | 16 +- .../Models/WafPolicySettings.Serialization.cs | 16 +- .../src/Generated/tspCodeModel.json | 203 +++++------------- .../Generated/DocumentIntelligenceClient.cs | 4 +- .../AnalyticsDefenderEasmModelFactory.cs | 4 +- .../src/Generated/AsAssetResource.cs | 2 +- .../src/Generated/AssetResource.cs | 4 +- .../AzureDataExplorerDataConnection.cs | 2 +- .../AzureDataExplorerDataConnectionPayload.cs | 2 +- .../src/Generated/ContactAssetResource.cs | 2 +- .../src/Generated/DataConnection.cs | 4 +- .../src/Generated/DataConnectionPayload.cs | 4 +- .../src/Generated/DomainAssetResource.cs | 2 +- .../src/Generated/HostAssetResource.cs | 2 +- .../src/Generated/IpAddressAssetResource.cs | 2 +- .../src/Generated/IpBlockAssetResource.cs | 2 +- .../Generated/LogAnalyticsDataConnection.cs | 2 +- .../LogAnalyticsDataConnectionPayload.cs | 2 +- .../src/Generated/PageAssetResource.cs | 2 +- .../src/Generated/SslCertAssetResource.cs | 2 +- .../src/Generated/UnknownAssetResource.cs | 2 +- .../src/Generated/UnknownDataConnection.cs | 2 +- .../Generated/UnknownDataConnectionPayload.cs | 2 +- .../src/Generated/EventGridSenderClient.cs | 4 +- .../src/Generated/InnerError.Serialization.cs | 153 ------------- .../src/Generated/InnerError.cs | 69 ------ .../src/Generated/FaceClient.cs | 4 +- .../src/Generated/FaceSessionClient.cs | 2 +- .../src/Generated/AgeMismatchInference.cs | 2 +- .../CompleteOrderDiscrepancyInference.cs | 2 +- .../src/Generated/CriticalResultInference.cs | 2 +- .../src/Generated/FindingInference.cs | 2 +- .../FollowupCommunicationInference.cs | 2 +- .../FollowupRecommendationInference.cs | 2 +- .../GenericProcedureRecommendation.cs | 2 +- ...thInsightsRadiologyInsightsModelFactory.cs | 2 +- .../ImagingProcedureRecommendation.cs | 2 +- .../LateralityDiscrepancyInference.cs | 2 +- .../LimitedOrderDiscrepancyInference.cs | 2 +- .../src/Generated/ProcedureRecommendation.cs | 4 +- .../Generated/RadiologyInsightsInference.cs | 4 +- .../Generated/RadiologyProcedureInference.cs | 2 +- .../src/Generated/SexMismatchInference.cs | 2 +- .../UnknownProcedureRecommendation.cs | 2 +- .../UnknownRadiologyInsightsInference.cs | 2 +- .../AmlComputeProperties.Serialization.cs | 16 +- .../Models/ColumnTransformer.Serialization.cs | 16 +- ...MachineLearningCommandJob.Serialization.cs | 16 +- ...omponentVersionProperties.Serialization.cs | 16 +- ...achineLearningPipelineJob.Serialization.cs | 16 +- ...ningStackEnsembleSettings.Serialization.cs | 16 +- .../src/Generated/Entity.cs | 2 +- .../CHANGELOG.md | 2 +- .../Models/NotebookCell.Serialization.cs | 12 +- .../Models/NotebookParameter.Serialization.cs | 12 +- .../CHANGELOG.md | 7 + .../SingleDocumentTranslationClient.cs | 2 +- .../src/Generated/ImageAnalysisClient.cs | 4 +- 69 files changed, 442 insertions(+), 601 deletions(-) delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index c25be4eb40f4..b0e54f73d156 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -222,7 +222,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 11cef1eab30a..1dd3a2f7d9f5 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,62 +5,63 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240619.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240624.1" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.42.1", - "@azure-tools/typespec-azure-core": "0.42.0", - "@azure-tools/typespec-azure-resource-manager": "0.42.1", - "@azure-tools/typespec-azure-rulesets": "0.42.1", - "@azure-tools/typespec-client-generator-core": "0.42.3", - "@typespec/compiler": "0.56.0", - "@typespec/http": "0.56.0", - "@typespec/openapi": "0.56.0", - "@typespec/rest": "0.56.0", - "@typespec/versioning": "0.56.0" + "@azure-tools/typespec-autorest": "0.43.0", + "@azure-tools/typespec-azure-core": "0.43.0", + "@azure-tools/typespec-azure-resource-manager": "0.43.0", + "@azure-tools/typespec-azure-rulesets": "0.43.0", + "@azure-tools/typespec-client-generator-core": "0.43.0", + "@typespec/compiler": "0.57.0", + "@typespec/http": "0.57.0", + "@typespec/openapi": "0.57.0", + "@typespec/rest": "0.57.0", + "@typespec/versioning": "0.57.0" } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240619.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240619.1.tgz", - "integrity": "sha512-/QZ/QyWpdKH8dmxI57UZAfkOCYzSOuoSpNDF7uzgBke1kxZnihImoFB5L1YZx0ny+t+1OlJhIrmzafLFKga/Aw==" + "version": "3.0.0-beta.20240624.1", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240624.1.tgz", + "integrity": "sha512-VUJ4zzP30lWF03M4fhom8QfJSqRMlRO9BhOxj9yyWwjrP+/L4NQT4p10ZFzsi0A7JVn9+z0KBa7/TxFVyRTd6g==" }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.42.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.42.1.tgz", - "integrity": "sha512-egWR2Ljxde5PvyDwuVu/8Rq8cSW6FW+qMbvwHfzrtm/sULdSnA6k+VnGD/PQ+dk+1SmFeKG1b+0MlaFuBVz1Hw==", + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.43.0.tgz", + "integrity": "sha512-tZ9uXXOdxu2y01W9n3mzXf+IEY2MQkP/JaQaKlcOx2+dbklHNQWSDU0Vm6Gmm6l//XiF9QiI8653BiuO97czyw==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.42.0", - "@azure-tools/typespec-client-generator-core": "~0.42.0", - "@typespec/compiler": "~0.56.0", - "@typespec/http": "~0.56.0", - "@typespec/openapi": "~0.56.0", - "@typespec/rest": "~0.56.0", - "@typespec/versioning": "~0.56.0" + "@azure-tools/typespec-azure-core": "~0.43.0", + "@azure-tools/typespec-azure-resource-manager": "~0.43.0", + "@azure-tools/typespec-client-generator-core": "~0.43.0", + "@typespec/compiler": "~0.57.0", + "@typespec/http": "~0.57.0", + "@typespec/openapi": "~0.57.0", + "@typespec/rest": "~0.57.0", + "@typespec/versioning": "~0.57.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.42.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.42.0.tgz", - "integrity": "sha512-8C96RkgSWtgqsaHRMWCd2iDltFJZTGmFQiTZazZj/uRy0Wn1ikjSriSN8t1puL5SiUPd0BVJP/YXiwAfjfZYDA==", + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.43.0.tgz", + "integrity": "sha512-B1r0i3segJ7RuNXxcAMBy8H2t+jTkaf74dkyUWD0HIFPkhETN0uR59nuor+s+LoLU8yI4JypOFSNZt6e1rod8w==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.56.0", - "@typespec/http": "~0.56.0", - "@typespec/rest": "~0.56.0" + "@typespec/compiler": "~0.57.0", + "@typespec/http": "~0.57.0", + "@typespec/rest": "~0.57.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.42.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.42.1.tgz", - "integrity": "sha512-vUqmHWS9OrN+16jXfpgUdUXXa1RLrr8Pkrzb1HFQGmdXuRxMZZtLCRcyyEHZJIMYE4RmmpPoB3JJeqiGWxlegQ==", + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.43.0.tgz", + "integrity": "sha512-0GQL+/o1u+PAB63FpYz3sy3ZgZvCtk5T4sDAnICnV23v2YWIONDMUfxxd0x40xJbY6PkcwwHDpBLNMqajf2H6A==", "dev": true, "dependencies": { "change-case": "~5.4.4", @@ -70,34 +71,33 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-autorest": "~0.42.1", - "@azure-tools/typespec-azure-core": "~0.42.0", - "@typespec/compiler": "~0.56.0", - "@typespec/http": "~0.56.0", - "@typespec/openapi": "~0.56.0", - "@typespec/rest": "~0.56.0", - "@typespec/versioning": "~0.56.0" + "@azure-tools/typespec-azure-core": "~0.43.0", + "@typespec/compiler": "~0.57.0", + "@typespec/http": "~0.57.0", + "@typespec/openapi": "~0.57.0", + "@typespec/rest": "~0.57.0", + "@typespec/versioning": "~0.57.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.42.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.42.1.tgz", - "integrity": "sha512-GRiMErWJ96DvDBQMVgGI1sgMTOegXxpx7w6enZyEF0BaodxGfObJyl1TrMb9Pj6NAZfV5Q6uJAfXFbpF1MVDCw==", + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.43.0.tgz", + "integrity": "sha512-yh0dNQIM4hRDWATh/tkONP991uMxFDHY8BkC0eWtIpfTjQTuR2PlGhrLgMxHT2Q5cCusfkNWeFvKDYlxKeoFLA==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.42.0", - "@azure-tools/typespec-azure-resource-manager": "~0.42.1", - "@azure-tools/typespec-client-generator-core": "~0.42.3", - "@typespec/compiler": "~0.56.0" + "@azure-tools/typespec-azure-core": "~0.43.0", + "@azure-tools/typespec-azure-resource-manager": "~0.43.0", + "@azure-tools/typespec-client-generator-core": "~0.43.0", + "@typespec/compiler": "~0.57.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.42.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.42.3.tgz", - "integrity": "sha512-ZDVVIY1uJ8EaI4QhCdQmTdKVACm4xYn/I7ySpwv4oxk9X8kZFhxx+PKNHAlx34mhOf4oF0PW3wCN5DMeU6asYg==", + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.43.0.tgz", + "integrity": "sha512-rssB/zsg89wstzJC1MWzbd8oPpqbgoftkp9G/NP3BoMb/gCP5uRLggwlSUAgnoU2Lt0jBUKcMlqEiVLTAkY9LA==", "dev": true, "dependencies": { "change-case": "~5.4.4", @@ -107,19 +107,19 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.42.0", - "@typespec/compiler": "~0.56.0", - "@typespec/http": "~0.56.0", - "@typespec/rest": "~0.56.0", - "@typespec/versioning": "~0.56.0" + "@azure-tools/typespec-azure-core": "~0.43.0", + "@typespec/compiler": "~0.57.0", + "@typespec/http": "~0.57.0", + "@typespec/rest": "~0.57.0", + "@typespec/versioning": "~0.57.0" } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240619.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240619.1.tgz", - "integrity": "sha512-P8WXBGdCpeu4URveOMAK9RhRqczjcY250fZmUwXVSG1YmZ90YFKAEQVfYeDK424zHadfjW31ABXSri4ajkKT+Q==", + "version": "0.2.0-beta.20240624.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240624.1.tgz", + "integrity": "sha512-D/l9QcMoctNYbJ7gI5hKgNMzF5uNncz97YZWFV0lCj46tB9FbGBN+LW4EKeqTJ3QUdVU4scB/Qn/MWplAGzAAA==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240619.1", + "@autorest/csharp": "3.0.0-beta.20240624.1", "json-serialize-refs": "0.1.0-0" }, "peerDependencies": { @@ -220,23 +220,23 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.56.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.56.0.tgz", - "integrity": "sha512-K+VhXycoeqcoSGtB0/l1XYco4V2qRsCOOwqklVM4Yew7kTcKVfz7CT7a6a2OKWDMNg5iijZtRBoM5YF50XtQug==", + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.57.0.tgz", + "integrity": "sha512-Z5L7J90Ol21IbzU+rBD2wzKy2vJ2Yg2FIzi+yB5rtb7/c4oBea/CgEByMVHBtT7uw45ZXJpHOiepuGSPVXw2EA==", "dev": true, "dependencies": { "@babel/code-frame": "~7.24.2", - "ajv": "~8.12.0", + "ajv": "~8.13.0", "change-case": "~5.4.4", "globby": "~14.0.1", "mustache": "~4.2.0", - "picocolors": "~1.0.0", + "picocolors": "~1.0.1", "prettier": "~3.2.5", "prompts": "~2.4.2", - "semver": "^7.6.0", + "semver": "^7.6.2", "vscode-languageserver": "~9.0.1", "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.4.1", + "yaml": "~2.4.2", "yargs": "~17.7.2" }, "bin": { @@ -248,65 +248,65 @@ } }, "node_modules/@typespec/http": { - "version": "0.56.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.56.0.tgz", - "integrity": "sha512-f/tpHRWev9bnAtNPFkfCU/5SFou9glA/rPDY0m2W5bK6EG1/6/TKKKz5FoKPA4xvc2dQ5vu/ouGLb4i5UzXvWQ==", + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.57.0.tgz", + "integrity": "sha512-k3bWOTPNqlRB3/TmrXVBtObmxj2J20l2FnhGXvs+tjdtbXLxCQWmvQz6xlne9nkLAtWVB/pQRUn+oMJfhWta3w==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.56.0" + "@typespec/compiler": "~0.57.0" } }, "node_modules/@typespec/openapi": { - "version": "0.56.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.56.0.tgz", - "integrity": "sha512-q8+IHRglXBm3slvonRLSNYN2fX7plbWA+ugIiMJZTeyc3enqfxPqMGA8BCiAFV3kwP0uPPpIXbCSIVhHgkONbA==", + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.57.0.tgz", + "integrity": "sha512-35wK/BqjOXSlhWuGMwoYN3FSgIYFOKtw8ot4ErcgmxAGuKaS2GkUhZvtQJXUn2ByU0Fl4jqslPmTz8SEcz7rbw==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.56.0", - "@typespec/http": "~0.56.0" + "@typespec/compiler": "~0.57.0", + "@typespec/http": "~0.57.0" } }, "node_modules/@typespec/rest": { - "version": "0.56.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.56.0.tgz", - "integrity": "sha512-8w4WhWDcpEQNW8bB1BHhiBxIQUChDJtyq/n9p2OI/Bm1wncd61y/ZNOtcxmlKq8uB9d+dzHiZdEfqFCR8HF8/Q==", + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.57.0.tgz", + "integrity": "sha512-mZj76Kf+cmH38pYA6LT8Zz7QjuR3fdQo5bc8pXhKMwLq9vRqNLz6Z9InbOeo8zY+xP0GfUwEU9kXczmCc8gyRA==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.56.0", - "@typespec/http": "~0.56.0" + "@typespec/compiler": "~0.57.0", + "@typespec/http": "~0.57.0" } }, "node_modules/@typespec/versioning": { - "version": "0.56.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.56.0.tgz", - "integrity": "sha512-j7IN9XFyGn3LH6IOJkinEvk9sDncsxiWPULOAe0VQ+D/dtCfLawDMUALnvklMDRKeD1OOUPSCjjUAp9OB0f7YA==", + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.57.0.tgz", + "integrity": "sha512-kk6zCNSwcqqYB9isNNagTy+Zv6wEIRA4NkcZ/X1riTj2zhJwKsIFNXQWm1yxpZn+BY4+1QtuaQHuBLo8HbgR/w==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.56.0" + "@typespec/compiler": "~0.57.0" } }, "node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", + "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", + "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "uri-js": "^4.4.1" }, "funding": { "type": "github", diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 24b087a0fdb6..03b4aa251528 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,18 +1,18 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240619.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240624.1" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.42.1", - "@azure-tools/typespec-azure-core": "0.42.0", - "@azure-tools/typespec-azure-resource-manager": "0.42.1", - "@azure-tools/typespec-azure-rulesets": "0.42.1", - "@azure-tools/typespec-client-generator-core": "0.42.3", - "@typespec/compiler": "0.56.0", - "@typespec/http": "0.56.0", - "@typespec/openapi": "0.56.0", - "@typespec/rest": "0.56.0", - "@typespec/versioning": "0.56.0" + "@azure-tools/typespec-autorest": "0.43.0", + "@azure-tools/typespec-azure-core": "0.43.0", + "@azure-tools/typespec-azure-resource-manager": "0.43.0", + "@azure-tools/typespec-azure-rulesets": "0.43.0", + "@azure-tools/typespec-client-generator-core": "0.43.0", + "@typespec/compiler": "0.57.0", + "@typespec/http": "0.57.0", + "@typespec/openapi": "0.57.0", + "@typespec/rest": "0.57.0", + "@typespec/versioning": "0.57.0" } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs index 81696a691716..fd5bad62c154 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs @@ -7,7 +7,10 @@ public static partial class AIAnomalyDetectorModelFactory public static Azure.AI.AnomalyDetector.AnomalyState AnomalyState(System.DateTimeOffset timestamp = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.AnomalyValue value = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } public static Azure.AI.AnomalyDetector.AnomalyValue AnomalyValue(bool isAnomaly = false, float severity = 0f, float score = 0f, System.Collections.Generic.IEnumerable interpretation = null) { throw null; } public static Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges(System.Collections.Generic.IEnumerable changedVariables = null) { throw null; } + public static Azure.AI.AnomalyDetector.DiagnosticsInfo DiagnosticsInfo(Azure.AI.AnomalyDetector.ModelState modelState = null, System.Collections.Generic.IEnumerable variableStates = null) { throw null; } + public static Azure.AI.AnomalyDetector.ErrorResponse ErrorResponse(string code = null, string message = null) { throw null; } public static Azure.AI.AnomalyDetector.ModelInfo ModelInfo(System.Uri dataSource = null, Azure.AI.AnomalyDetector.DataSchema? dataSchema = default(Azure.AI.AnomalyDetector.DataSchema?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), string displayName = null, int? slidingWindow = default(int?), Azure.AI.AnomalyDetector.AlignPolicy alignPolicy = null, Azure.AI.AnomalyDetector.ModelStatus? status = default(Azure.AI.AnomalyDetector.ModelStatus?), System.Collections.Generic.IEnumerable errors = null, Azure.AI.AnomalyDetector.DiagnosticsInfo diagnosticsInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.ModelState ModelState(System.Collections.Generic.IEnumerable epochIds = null, System.Collections.Generic.IEnumerable trainLosses = null, System.Collections.Generic.IEnumerable validationLosses = null, System.Collections.Generic.IEnumerable latenciesInSeconds = null) { throw null; } public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary MultivariateBatchDetectionResultSummary(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus status = default(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable variableStates = null, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions setupInfo = null) { throw null; } public static Azure.AI.AnomalyDetector.MultivariateDetectionResult MultivariateDetectionResult(System.Guid resultId = default(System.Guid), Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary summary = null, System.Collections.Generic.IEnumerable results = null) { throw null; } public static Azure.AI.AnomalyDetector.MultivariateLastDetectionResult MultivariateLastDetectionResult(System.Collections.Generic.IEnumerable variableStates = null, System.Collections.Generic.IEnumerable results = null) { throw null; } @@ -15,6 +18,7 @@ public static partial class AIAnomalyDetectorModelFactory public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions UnivariateChangePointDetectionOptions(System.Collections.Generic.IEnumerable series = null, Azure.AI.AnomalyDetector.TimeGranularity granularity = default(Azure.AI.AnomalyDetector.TimeGranularity), int? customInterval = default(int?), int? period = default(int?), int? stableTrendWindow = default(int?), float? threshold = default(float?)) { throw null; } public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = default(int?), System.Collections.Generic.IEnumerable isChangePoint = null, System.Collections.Generic.IEnumerable confidenceScores = null) { throw null; } public static Azure.AI.AnomalyDetector.UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = 0, int suggestedWindow = 0, float expectedValue = 0f, float upperMargin = 0f, float lowerMargin = 0f, bool isAnomaly = false, bool isNegativeAnomaly = false, bool isPositiveAnomaly = false, float? severity = default(float?)) { throw null; } + public static Azure.AI.AnomalyDetector.VariableState VariableState(string variable = null, float? filledNARatio = default(float?), int? effectiveCount = default(int?), System.DateTimeOffset? firstTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? lastTimestamp = default(System.DateTimeOffset?)) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AlignMode : System.IEquatable @@ -143,9 +147,9 @@ internal CorrelationChanges() { } } public partial class DiagnosticsInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public DiagnosticsInfo() { } - public Azure.AI.AnomalyDetector.ModelState ModelState { get { throw null; } set { } } - public System.Collections.Generic.IList VariableStates { get { throw null; } } + internal DiagnosticsInfo() { } + public Azure.AI.AnomalyDetector.ModelState ModelState { get { throw null; } } + public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } Azure.AI.AnomalyDetector.DiagnosticsInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.AnomalyDetector.DiagnosticsInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -154,9 +158,9 @@ public DiagnosticsInfo() { } } public partial class ErrorResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public ErrorResponse(string code, string message) { } - public string Code { get { throw null; } set { } } - public string Message { get { throw null; } set { } } + internal ErrorResponse() { } + public string Code { get { throw null; } } + public string Message { get { throw null; } } Azure.AI.AnomalyDetector.ErrorResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.AnomalyDetector.ErrorResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -227,11 +231,11 @@ public ModelInfo(System.Uri dataSource, System.DateTimeOffset startTime, System. } public partial class ModelState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public ModelState() { } - public System.Collections.Generic.IList EpochIds { get { throw null; } } - public System.Collections.Generic.IList LatenciesInSeconds { get { throw null; } } - public System.Collections.Generic.IList TrainLosses { get { throw null; } } - public System.Collections.Generic.IList ValidationLosses { get { throw null; } } + internal ModelState() { } + public System.Collections.Generic.IReadOnlyList EpochIds { get { throw null; } } + public System.Collections.Generic.IReadOnlyList LatenciesInSeconds { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TrainLosses { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ValidationLosses { get { throw null; } } Azure.AI.AnomalyDetector.ModelState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.AnomalyDetector.ModelState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -484,12 +488,12 @@ internal UnivariateLastDetectionResult() { } } public partial class VariableState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public VariableState() { } - public int? EffectiveCount { get { throw null; } set { } } - public float? FilledNARatio { get { throw null; } set { } } - public System.DateTimeOffset? FirstTimestamp { get { throw null; } set { } } - public System.DateTimeOffset? LastTimestamp { get { throw null; } set { } } - public string Variable { get { throw null; } set { } } + internal VariableState() { } + public int? EffectiveCount { get { throw null; } } + public float? FilledNARatio { get { throw null; } } + public System.DateTimeOffset? FirstTimestamp { get { throw null; } } + public System.DateTimeOffset? LastTimestamp { get { throw null; } } + public string Variable { get { throw null; } } Azure.AI.AnomalyDetector.VariableState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.AnomalyDetector.VariableState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs index b9a280b9fa0e..626724564619 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs @@ -161,6 +161,33 @@ public static MultivariateBatchDetectionResultSummary MultivariateBatchDetection return new MultivariateBatchDetectionResultSummary(status, errors?.ToList(), variableStates?.ToList(), setupInfo, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Error code. + /// Message that explains the error that the service reported. + /// A new instance for mocking. + public static ErrorResponse ErrorResponse(string code = null, string message = null) + { + return new ErrorResponse(code, message, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Variable name in variable states. + /// Proportion of missing values that need to be filled by fillNAMethod. + /// Number of effective data points before fillNAMethod is applied. + /// First valid time stamp with a value of input data. + /// Last valid time stamp with a value of input data. + /// A new instance for mocking. + public static VariableState VariableState(string variable = null, float? filledNARatio = null, int? effectiveCount = null, DateTimeOffset? firstTimestamp = null, DateTimeOffset? lastTimestamp = null) + { + return new VariableState( + variable, + filledNARatio, + effectiveCount, + firstTimestamp, + lastTimestamp, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Time stamp for this anomaly. /// Detailed value of this anomalous time stamp. @@ -261,6 +288,42 @@ public static ModelInfo ModelInfo(Uri dataSource = null, DataSchema? dataSchema serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Model status. + /// Variable status. + /// A new instance for mocking. + public static DiagnosticsInfo DiagnosticsInfo(ModelState modelState = null, IEnumerable variableStates = null) + { + variableStates ??= new List(); + + return new DiagnosticsInfo(modelState, variableStates?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Number of passes of the entire training dataset that the + /// algorithm has completed. + /// + /// + /// List of metrics used to assess how the model fits the training data for each + /// epoch. + /// + /// + /// List of metrics used to assess how the model fits the validation set for each + /// epoch. + /// + /// Latency for each epoch. + /// A new instance for mocking. + public static ModelState ModelState(IEnumerable epochIds = null, IEnumerable trainLosses = null, IEnumerable validationLosses = null, IEnumerable latenciesInSeconds = null) + { + epochIds ??= new List(); + trainLosses ??= new List(); + validationLosses ??= new List(); + latenciesInSeconds ??= new List(); + + return new ModelState(epochIds?.ToList(), trainLosses?.ToList(), validationLosses?.ToList(), latenciesInSeconds?.ToList(), serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Model identifier. /// Date and time (UTC) when the model was created. diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.Serialization.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.Serialization.cs index e4d685a61f78..0c2b85ca8bdd 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.Serialization.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.Serialization.cs @@ -80,7 +80,7 @@ internal static DiagnosticsInfo DeserializeDiagnosticsInfo(JsonElement element, return null; } ModelState modelState = default; - IList variableStates = default; + IReadOnlyList variableStates = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs index 41c14716b5fc..41d720c51357 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/DiagnosticsInfo.cs @@ -46,7 +46,7 @@ public partial class DiagnosticsInfo private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public DiagnosticsInfo() + internal DiagnosticsInfo() { VariableStates = new ChangeTrackingList(); } @@ -55,7 +55,7 @@ public DiagnosticsInfo() /// Model status. /// Variable status. /// Keeps track of any properties unknown to the library. - internal DiagnosticsInfo(ModelState modelState, IList variableStates, IDictionary serializedAdditionalRawData) + internal DiagnosticsInfo(ModelState modelState, IReadOnlyList variableStates, IDictionary serializedAdditionalRawData) { ModelState = modelState; VariableStates = variableStates; @@ -63,8 +63,8 @@ internal DiagnosticsInfo(ModelState modelState, IList variableSta } /// Model status. - public ModelState ModelState { get; set; } + public ModelState ModelState { get; } /// Variable status. - public IList VariableStates { get; } + public IReadOnlyList VariableStates { get; } } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ErrorResponse.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ErrorResponse.cs index 809d6792f7cb..3e04d1378eff 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ErrorResponse.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ErrorResponse.cs @@ -49,7 +49,7 @@ public partial class ErrorResponse /// Error code. /// Message that explains the error that the service reported. /// or is null. - public ErrorResponse(string code, string message) + internal ErrorResponse(string code, string message) { Argument.AssertNotNull(code, nameof(code)); Argument.AssertNotNull(message, nameof(message)); @@ -75,8 +75,8 @@ internal ErrorResponse() } /// Error code. - public string Code { get; set; } + public string Code { get; } /// Message that explains the error that the service reported. - public string Message { get; set; } + public string Message { get; } } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.Serialization.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.Serialization.cs index 3e7fe67d0d00..d95c34119f48 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.Serialization.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.Serialization.cs @@ -104,10 +104,10 @@ internal static ModelState DeserializeModelState(JsonElement element, ModelReade { return null; } - IList epochIds = default; - IList trainLosses = default; - IList validationLosses = default; - IList latenciesInSeconds = default; + IReadOnlyList epochIds = default; + IReadOnlyList trainLosses = default; + IReadOnlyList validationLosses = default; + IReadOnlyList latenciesInSeconds = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs index c14eb505af84..19e0b1ff3fd5 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/ModelState.cs @@ -46,7 +46,7 @@ public partial class ModelState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public ModelState() + internal ModelState() { EpochIds = new ChangeTrackingList(); TrainLosses = new ChangeTrackingList(); @@ -69,7 +69,7 @@ public ModelState() /// /// Latency for each epoch. /// Keeps track of any properties unknown to the library. - internal ModelState(IList epochIds, IList trainLosses, IList validationLosses, IList latenciesInSeconds, IDictionary serializedAdditionalRawData) + internal ModelState(IReadOnlyList epochIds, IReadOnlyList trainLosses, IReadOnlyList validationLosses, IReadOnlyList latenciesInSeconds, IDictionary serializedAdditionalRawData) { EpochIds = epochIds; TrainLosses = trainLosses; @@ -82,18 +82,18 @@ internal ModelState(IList epochIds, IList trainLosses, IList /// Number of passes of the entire training dataset that the /// algorithm has completed. /// - public IList EpochIds { get; } + public IReadOnlyList EpochIds { get; } /// /// List of metrics used to assess how the model fits the training data for each /// epoch. /// - public IList TrainLosses { get; } + public IReadOnlyList TrainLosses { get; } /// /// List of metrics used to assess how the model fits the validation set for each /// epoch. /// - public IList ValidationLosses { get; } + public IReadOnlyList ValidationLosses { get; } /// Latency for each epoch. - public IList LatenciesInSeconds { get; } + public IReadOnlyList LatenciesInSeconds { get; } } } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/VariableState.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/VariableState.cs index 57eb2521bb72..96249297b19a 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/VariableState.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/VariableState.cs @@ -46,7 +46,7 @@ public partial class VariableState private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public VariableState() + internal VariableState() { } @@ -68,14 +68,14 @@ internal VariableState(string variable, float? filledNARatio, int? effectiveCoun } /// Variable name in variable states. - public string Variable { get; set; } + public string Variable { get; } /// Proportion of missing values that need to be filled by fillNAMethod. - public float? FilledNARatio { get; set; } + public float? FilledNARatio { get; } /// Number of effective data points before fillNAMethod is applied. - public int? EffectiveCount { get; set; } + public int? EffectiveCount { get; } /// First valid time stamp with a value of input data. - public DateTimeOffset? FirstTimestamp { get; set; } + public DateTimeOffset? FirstTimestamp { get; } /// Last valid time stamp with a value of input data. - public DateTimeOffset? LastTimestamp { get; set; } + public DateTimeOffset? LastTimestamp { get; } } } diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationInfo.Serialization.cs b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationInfo.Serialization.cs index cec713b131ad..a0166532763e 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationInfo.Serialization.cs +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Generated/Models/AuthorizationProviderOperationInfo.Serialization.cs @@ -49,15 +49,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, } if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("properties"u8); + if (Properties != null) + { + writer.WritePropertyName("properties"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(Properties); #else - using (JsonDocument document = JsonDocument.Parse(Properties)) + using (JsonDocument document = JsonDocument.Parse(Properties)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("properties"); } -#endif } if (Optional.IsDefined(IsDataAction)) { @@ -136,6 +143,7 @@ internal static AuthorizationProviderOperationInfo DeserializeAuthorizationProvi { if (property.Value.ValueKind == JsonValueKind.Null) { + properties = null; continue; } properties = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicySettings.Serialization.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicySettings.Serialization.cs index 95834df485b2..7fb9e8b8e1b3 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicySettings.Serialization.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/WafPolicySettings.Serialization.cs @@ -55,15 +55,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite } if (Optional.IsDefined(DefaultCustomBlockResponseBody)) { - writer.WritePropertyName("defaultCustomBlockResponseBody"u8); + if (DefaultCustomBlockResponseBody != null) + { + writer.WritePropertyName("defaultCustomBlockResponseBody"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(DefaultCustomBlockResponseBody); #else - using (JsonDocument document = JsonDocument.Parse(DefaultCustomBlockResponseBody)) + using (JsonDocument document = JsonDocument.Parse(DefaultCustomBlockResponseBody)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("defaultCustomBlockResponseBody"); } -#endif } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -153,6 +160,7 @@ internal static WafPolicySettings DeserializeWafPolicySettings(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { + defaultCustomBlockResponseBody = null; continue; } defaultCustomBlockResponseBody = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json b/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json index 5d4992b5df08..8dcd67e8d322 100644 --- a/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json +++ b/sdk/communication/Azure.Communication.Messages/src/Generated/tspCodeModel.json @@ -11,8 +11,7 @@ "Name": "CommunicationMessageKind", "ValueType": { "$id": "3", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -37,7 +36,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "The type of message. Supports text, image, template.", "IsExtensible": true, - "IsNullable": false, "Usage": "Input" }, { @@ -46,8 +44,7 @@ "Name": "RepeatabilityResult", "ValueType": { "$id": "8", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -66,7 +63,6 @@ "Namespace": "Azure.Core", "Description": "Repeatability Result header options", "IsExtensible": false, - "IsNullable": false, "Usage": "Output" }, { @@ -75,8 +71,7 @@ "Name": "MessageTemplateStatus", "ValueType": { "$id": "12", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -107,7 +102,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "The aggregated template status.", "IsExtensible": true, - "IsNullable": false, "Usage": "Output" }, { @@ -116,8 +110,7 @@ "Name": "CommunicationMessagesChannel", "ValueType": { "$id": "18", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -130,7 +123,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "The type of the communication messages channel.", "IsExtensible": true, - "IsNullable": false, "Usage": "Output" }, { @@ -139,8 +131,7 @@ "Name": "MessageTemplateValueKind", "ValueType": { "$id": "21", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -183,7 +174,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "The type of the template parameter.", "IsExtensible": true, - "IsNullable": false, "Usage": "Input" }, { @@ -192,8 +182,7 @@ "Name": "MessageTemplateBindingsKind", "ValueType": { "$id": "29", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -206,7 +195,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "The type of the message template.", "IsExtensible": true, - "IsNullable": false, "Usage": "Input" }, { @@ -215,8 +203,7 @@ "Name": "WhatsAppMessageButtonSubType", "ValueType": { "$id": "32", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -235,7 +222,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "The WhatsApp button sub type.", "IsExtensible": true, - "IsNullable": false, "Usage": "Input" }, { @@ -244,8 +230,7 @@ "Name": "Versions", "ValueType": { "$id": "36", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Values": [ { @@ -258,7 +243,6 @@ "Namespace": "Azure.Communication.MessagesService", "Description": "Azure Communication Messages Versions", "IsExtensible": false, - "IsNullable": false, "Usage": "None" } ], @@ -269,7 +253,6 @@ "Name": "NotificationContent", "Namespace": "Azure.Communication.MessagesService", "Description": "Details of the message to send.", - "IsNullable": false, "DiscriminatorPropertyName": "kind", "Usage": "Input", "Properties": [ @@ -281,7 +264,6 @@ "Type": { "$id": "40", "Kind": "uuid", - "IsNullable": false, "Encode": "string" }, "IsRequired": true, @@ -298,10 +280,8 @@ "Name": "Array", "ElementType": { "$id": "43", - "Kind": "string", - "IsNullable": false - }, - "IsNullable": false + "Kind": "string" + } }, "IsRequired": true, "IsReadOnly": false @@ -326,7 +306,6 @@ "Name": "SendMessageResult", "Namespace": "Azure.Communication.MessagesService", "Description": "Result of the send message operation.", - "IsNullable": false, "Usage": "Output", "Properties": [ { @@ -344,7 +323,6 @@ "Name": "MessageReceipt", "Namespace": "Azure.Communication.MessagesService", "Description": "Receipt of the sending one message.", - "IsNullable": false, "Usage": "Output", "Properties": [ { @@ -354,8 +332,7 @@ "Description": "The message id.", "Type": { "$id": "50", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -367,15 +344,13 @@ "Description": "The native external platform user identifier of the recipient.", "Type": { "$id": "52", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false } ] - }, - "IsNullable": false + } }, "IsRequired": true, "IsReadOnly": false @@ -391,7 +366,6 @@ "Name": "PagedMessageTemplateItem", "Namespace": "Azure.Core.Foundations", "Description": "Paged collection of MessageTemplateItem items", - "IsNullable": false, "Usage": "Output", "Properties": [ { @@ -409,7 +383,6 @@ "Name": "MessageTemplateItem", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template as returned from the service.", - "IsNullable": false, "DiscriminatorPropertyName": "kind", "Usage": "Output", "Properties": [ @@ -420,8 +393,7 @@ "Description": "The template's name.", "Type": { "$id": "58", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": true @@ -433,8 +405,7 @@ "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", "Type": { "$id": "60", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -463,8 +434,7 @@ "IsDiscriminator": true } ] - }, - "IsNullable": false + } }, "IsRequired": true, "IsReadOnly": false @@ -476,8 +446,7 @@ "Description": "The link to the next page of items", "Type": { "$id": "64", - "Kind": "url", - "IsNullable": false + "Kind": "url" }, "IsRequired": false, "IsReadOnly": false @@ -493,7 +462,6 @@ "Name": "TextNotificationContent", "Namespace": "Azure.Communication.MessagesService", "Description": "A request to send a text notification.", - "IsNullable": false, "DiscriminatorValue": "text", "Usage": "Input", "BaseModel": { @@ -507,8 +475,7 @@ "Description": "Message content.", "Type": { "$id": "67", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -521,7 +488,6 @@ "Name": "MediaNotificationContent", "Namespace": "Azure.Communication.MessagesService", "Description": "A request to send a media notification.", - "IsNullable": false, "DiscriminatorValue": "image", "Usage": "Input", "BaseModel": { @@ -535,8 +501,7 @@ "Description": "Optional text content.", "Type": { "$id": "70", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -548,8 +513,7 @@ "Description": "A media url for the file. Required if the type is one of the supported media types, e.g. image", "Type": { "$id": "72", - "Kind": "url", - "IsNullable": false + "Kind": "url" }, "IsRequired": true, "IsReadOnly": false @@ -562,7 +526,6 @@ "Name": "TemplateNotificationContent", "Namespace": "Azure.Communication.MessagesService", "Description": "A request to send a template notification.", - "IsNullable": false, "DiscriminatorValue": "template", "Usage": "Input", "BaseModel": { @@ -580,7 +543,6 @@ "Name": "MessageTemplate", "Namespace": "Azure.Communication.MessagesService", "Description": "The template object used to create templates.", - "IsNullable": false, "Usage": "Input", "Properties": [ { @@ -590,8 +552,7 @@ "Description": "Name of the template.", "Type": { "$id": "77", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -603,8 +564,7 @@ "Description": "The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.", "Type": { "$id": "79", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -624,7 +584,6 @@ "Name": "MessageTemplateValue", "Namespace": "Azure.Communication.MessagesService", "Description": "The class describes a parameter of a template.", - "IsNullable": false, "DiscriminatorPropertyName": "kind", "Usage": "Input", "Properties": [ @@ -635,8 +594,7 @@ "Description": "Template binding reference name", "Type": { "$id": "84", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -654,8 +612,7 @@ "IsDiscriminator": true } ] - }, - "IsNullable": false + } }, "IsRequired": false, "IsReadOnly": false @@ -671,7 +628,6 @@ "Name": "MessageTemplateBindings", "Namespace": "Azure.Communication.MessagesService", "Description": "The binding object to link values to the template specific locations", - "IsNullable": false, "DiscriminatorPropertyName": "kind", "Usage": "Input", "Properties": [ @@ -714,7 +670,6 @@ "Name": "MessageTemplateText", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template's text value information.", - "IsNullable": false, "DiscriminatorValue": "text", "Usage": "Input", "BaseModel": { @@ -728,8 +683,7 @@ "Description": "The text value.", "Type": { "$id": "91", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false @@ -742,7 +696,6 @@ "Name": "MessageTemplateImage", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template's image value information.", - "IsNullable": false, "DiscriminatorValue": "image", "Usage": "Input", "BaseModel": { @@ -756,8 +709,7 @@ "Description": "The (public) URL of the media.", "Type": { "$id": "94", - "Kind": "url", - "IsNullable": false + "Kind": "url" }, "IsRequired": true, "IsReadOnly": false @@ -769,8 +721,7 @@ "Description": "The [optional] caption of the media object.", "Type": { "$id": "96", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -782,8 +733,7 @@ "Description": "The [optional] filename of the media file.", "Type": { "$id": "98", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -796,7 +746,6 @@ "Name": "MessageTemplateDocument", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template's document value information.", - "IsNullable": false, "DiscriminatorValue": "document", "Usage": "Input", "BaseModel": { @@ -810,8 +759,7 @@ "Description": "The (public) URL of the media.", "Type": { "$id": "101", - "Kind": "url", - "IsNullable": false + "Kind": "url" }, "IsRequired": true, "IsReadOnly": false @@ -823,8 +771,7 @@ "Description": "The [optional] caption of the media object.", "Type": { "$id": "103", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -836,8 +783,7 @@ "Description": "The [optional] filename of the media file.", "Type": { "$id": "105", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -850,7 +796,6 @@ "Name": "MessageTemplateVideo", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template's video value information.", - "IsNullable": false, "DiscriminatorValue": "video", "Usage": "Input", "BaseModel": { @@ -864,8 +809,7 @@ "Description": "The (public) URL of the media.", "Type": { "$id": "108", - "Kind": "url", - "IsNullable": false + "Kind": "url" }, "IsRequired": true, "IsReadOnly": false @@ -877,8 +821,7 @@ "Description": "The [optional] caption of the media object.", "Type": { "$id": "110", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -890,8 +833,7 @@ "Description": "The [optional] filename of the media file.", "Type": { "$id": "112", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -904,7 +846,6 @@ "Name": "MessageTemplateLocation", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template's location value information.", - "IsNullable": false, "DiscriminatorValue": "location", "Usage": "Input", "BaseModel": { @@ -918,8 +859,7 @@ "Description": "The [Optional] name of the location.", "Type": { "$id": "115", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -931,8 +871,7 @@ "Description": "The [Optional] address of the location.", "Type": { "$id": "117", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -944,8 +883,7 @@ "Description": "The latitude of the location.", "Type": { "$id": "119", - "Kind": "float64", - "IsNullable": false + "Kind": "float64" }, "IsRequired": true, "IsReadOnly": false @@ -957,8 +895,7 @@ "Description": "The longitude of the location.", "Type": { "$id": "121", - "Kind": "float64", - "IsNullable": false + "Kind": "float64" }, "IsRequired": true, "IsReadOnly": false @@ -971,7 +908,6 @@ "Name": "MessageTemplateQuickAction", "Namespace": "Azure.Communication.MessagesService", "Description": "The message template's quick action value information.", - "IsNullable": false, "DiscriminatorValue": "quickAction", "Usage": "Input", "BaseModel": { @@ -985,8 +921,7 @@ "Description": "The [Optional] quick action text", "Type": { "$id": "124", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -998,8 +933,7 @@ "Description": "The [Optional] quick action payload", "Type": { "$id": "126", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": false, "IsReadOnly": false @@ -1012,7 +946,6 @@ "Name": "WhatsAppMessageTemplateBindings", "Namespace": "Azure.Communication.MessagesService", "Description": "The template bindings for WhatsApp", - "IsNullable": false, "DiscriminatorValue": "whatsApp", "Usage": "Input", "BaseModel": { @@ -1034,7 +967,6 @@ "Name": "WhatsAppMessageTemplateBindingsComponent", "Namespace": "Azure.Communication.MessagesService", "Description": "The template bindings component for WhatsApp", - "IsNullable": false, "Usage": "Input", "Properties": [ { @@ -1044,15 +976,13 @@ "Description": "The name of the referenced item in the template values.", "Type": { "$id": "132", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false } ] - }, - "IsNullable": false + } }, "IsRequired": false, "IsReadOnly": false @@ -1068,8 +998,7 @@ "Name": "Array", "ElementType": { "$ref": "130" - }, - "IsNullable": false + } }, "IsRequired": false, "IsReadOnly": false @@ -1085,8 +1014,7 @@ "Name": "Array", "ElementType": { "$ref": "130" - }, - "IsNullable": false + } }, "IsRequired": false, "IsReadOnly": false @@ -1106,7 +1034,6 @@ "Name": "WhatsAppMessageTemplateBindingsButton", "Namespace": "Azure.Communication.MessagesService", "Description": "The template bindings component button for WhatsApp", - "IsNullable": false, "Usage": "Input", "Properties": [ { @@ -1127,15 +1054,13 @@ "Description": "The name of the referenced item in the template values.", "Type": { "$id": "142", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "IsRequired": true, "IsReadOnly": false } ] - }, - "IsNullable": false + } }, "IsRequired": false, "IsReadOnly": false @@ -1154,7 +1079,6 @@ "Name": "WhatsAppMessageTemplateItem", "Namespace": "Azure.Communication.MessagesService", "Description": "The WhatsApp-specific template response contract", - "IsNullable": false, "DiscriminatorValue": "whatsApp", "Usage": "Output", "BaseModel": { @@ -1168,8 +1092,7 @@ "Description": "WhatsApp platform's template content. This is the payload returned from WhatsApp API.", "Type": { "$id": "145", - "Kind": "any", - "IsNullable": false + "Kind": "any" }, "IsRequired": false, "IsReadOnly": false @@ -1188,6 +1111,7 @@ "Name": "send", "ResourceName": "NotificationMessagesClient", "Description": "Sends a notification message from Business to User.", + "Accessibility": "public", "Parameters": [ { "$id": "148", @@ -1216,8 +1140,7 @@ "Description": "The API version to use for this operation.", "Type": { "$id": "151", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Location": "Query", "DefaultValue": { @@ -1245,8 +1168,7 @@ "Description": "An opaque, globally-unique, client-generated string identifier for the request.", "Type": { "$id": "155", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Location": "Header", "IsRequired": false, @@ -1266,12 +1188,10 @@ "Type": { "$id": "157", "Kind": "utcDateTime", - "IsNullable": false, "Encode": "rfc7231", "WireType": { "$id": "158", - "Kind": "string", - "IsNullable": false + "Kind": "string" } }, "Location": "Header", @@ -1292,7 +1212,6 @@ "Type": { "$id": "160", "Kind": "uuid", - "IsNullable": false, "Encode": "string" }, "Location": "Header", @@ -1404,7 +1323,6 @@ "Type": { "$id": "171", "Kind": "uuid", - "IsNullable": false, "Encode": "string" } } @@ -1443,8 +1361,7 @@ "Description": "The API version to use for this operation.", "Type": { "$id": "174", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Location": "Query", "DefaultValue": { @@ -1466,8 +1383,7 @@ "Description": "The stream ID.", "Type": { "$id": "176", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Location": "Path", "IsRequired": true, @@ -1487,7 +1403,6 @@ "Type": { "$id": "178", "Kind": "uuid", - "IsNullable": false, "Encode": "string" }, "Location": "Header", @@ -1536,7 +1451,6 @@ "BodyType": { "$id": "183", "Kind": "bytes", - "IsNullable": false, "Encode": "base64" }, "BodyMediaType": "Json", @@ -1549,7 +1463,6 @@ "Type": { "$id": "185", "Kind": "uuid", - "IsNullable": false, "Encode": "string" } } @@ -1589,6 +1502,7 @@ "Name": "getTemplates", "ResourceName": "MessageTemplateItem", "Description": "List all templates for given Azure Communication Services channel", + "Accessibility": "public", "Parameters": [ { "$ref": "148" @@ -1600,8 +1514,7 @@ "Description": "The API version to use for this operation.", "Type": { "$id": "190", - "Kind": "string", - "IsNullable": false + "Kind": "string" }, "Location": "Query", "DefaultValue": { @@ -1624,7 +1537,6 @@ "Type": { "$id": "192", "Kind": "uuid", - "IsNullable": false, "Encode": "string" }, "Location": "Path", @@ -1644,8 +1556,7 @@ "Description": "Number of objects to return per page.", "Type": { "$id": "194", - "Kind": "int32", - "IsNullable": false + "Kind": "int32" }, "Location": "Query", "IsRequired": false, @@ -1665,7 +1576,6 @@ "Type": { "$id": "196", "Kind": "uuid", - "IsNullable": false, "Encode": "string" }, "Location": "Header", @@ -1724,7 +1634,6 @@ "Type": { "$id": "202", "Kind": "uuid", - "IsNullable": false, "Encode": "string" } } diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs index 379f54b9c4ac..f10211a63202 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceClient.cs @@ -416,7 +416,7 @@ internal HttpMessage CreateAnalyzeDocumentRequest(string modelId, RequestContent } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/json"); + request.Headers.Add("Content-Type", "application/json"); request.Content = content; return message; } @@ -443,7 +443,7 @@ internal HttpMessage CreateClassifyDocumentRequest(string classifierId, RequestC } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/json"); + request.Headers.Add("Content-Type", "application/json"); request.Content = content; return message; } diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs index fe77d69e896c..91bebefbd45f 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AnalyticsDefenderEasmModelFactory.cs @@ -15,7 +15,7 @@ namespace Azure.Analytics.Defender.Easm public static partial class AnalyticsDefenderEasmModelFactory { /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. @@ -98,7 +98,7 @@ public static TaskResource TaskResource(string id = null, DateTimeOffset? starte } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnection. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAssetResource.cs index bd49fd609ce1..4d0233f411c6 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AsAssetResource.cs @@ -25,7 +25,7 @@ internal AsAssetResource(AsAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs index 8ab733b104d4..ded610fc3702 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AssetResource.cs @@ -57,7 +57,7 @@ protected AssetResource() } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. @@ -91,7 +91,7 @@ internal AssetResource(string kind, string id, string name, string displayName, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Discriminator. + /// Discriminator property for AssetResource. internal string Kind { get; set; } /// The system generated unique id for the resource. public string Id { get; } diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs index 6bd1d3d6dd4b..690b1b97f475 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnection.cs @@ -25,7 +25,7 @@ internal AzureDataExplorerDataConnection(AzureDataExplorerDataConnectionProperti } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnection. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs index 6b1425450205..b98a0f227ee5 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/AzureDataExplorerDataConnectionPayload.cs @@ -25,7 +25,7 @@ public AzureDataExplorerDataConnectionPayload(AzureDataExplorerDataConnectionPro } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnectionPayload. /// The name of data connection. /// The type of data the data connection will transfer. /// The rate at which the data connection will receive updates. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAssetResource.cs index 66be8d1a07e4..322f429738fd 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/ContactAssetResource.cs @@ -25,7 +25,7 @@ internal ContactAssetResource(ContactAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs index be44448df15a..f5cd01907046 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnection.cs @@ -55,7 +55,7 @@ protected DataConnection() } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnection. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. @@ -85,7 +85,7 @@ internal DataConnection(string kind, string id, string name, string displayName, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Discriminator. + /// Discriminator property for DataConnection. internal string Kind { get; set; } /// The system generated unique id for the resource. public string Id { get; } diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs index b9dd398dc1e1..a10e83a8ee34 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DataConnectionPayload.cs @@ -55,7 +55,7 @@ protected DataConnectionPayload() } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnectionPayload. /// The name of data connection. /// The type of data the data connection will transfer. /// The rate at which the data connection will receive updates. @@ -71,7 +71,7 @@ internal DataConnectionPayload(string kind, string name, DataConnectionContent? _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Discriminator. + /// Discriminator property for DataConnectionPayload. internal string Kind { get; set; } /// The name of data connection. public string Name { get; set; } diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAssetResource.cs index a61d46fb519e..4615d9e632ef 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/DomainAssetResource.cs @@ -25,7 +25,7 @@ internal DomainAssetResource(DomainAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAssetResource.cs index 3d31dd98fb07..0b7cea71ad37 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/HostAssetResource.cs @@ -25,7 +25,7 @@ internal HostAssetResource(HostAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAssetResource.cs index 4d912e047c06..1ae00623187b 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpAddressAssetResource.cs @@ -25,7 +25,7 @@ internal IpAddressAssetResource(IpAddressAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAssetResource.cs index e03822cda47e..bde0268a5f0c 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/IpBlockAssetResource.cs @@ -25,7 +25,7 @@ internal IpBlockAssetResource(IpBlockAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnection.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnection.cs index 2fe6e37e2737..02d610eaa298 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnection.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnection.cs @@ -25,7 +25,7 @@ internal LogAnalyticsDataConnection(LogAnalyticsDataConnectionProperties propert } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnection. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnectionPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnectionPayload.cs index 70a597b0cd99..8548b2b8e98f 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnectionPayload.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/LogAnalyticsDataConnectionPayload.cs @@ -25,7 +25,7 @@ public LogAnalyticsDataConnectionPayload(LogAnalyticsDataConnectionProperties pr } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnectionPayload. /// The name of data connection. /// The type of data the data connection will transfer. /// The rate at which the data connection will receive updates. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAssetResource.cs index fb4001e35082..619d949c83f0 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/PageAssetResource.cs @@ -25,7 +25,7 @@ internal PageAssetResource(PageAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAssetResource.cs index f8a747c00e52..a05aa744593b 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/SslCertAssetResource.cs @@ -25,7 +25,7 @@ internal SslCertAssetResource(SslCertAsset asset) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownAssetResource.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownAssetResource.cs index 90fad671ecfe..5aa67033d667 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownAssetResource.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownAssetResource.cs @@ -14,7 +14,7 @@ namespace Azure.Analytics.Defender.Easm internal partial class UnknownAssetResource : AssetResource { /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for AssetResource. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnection.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnection.cs index 9d3e7191c850..58f0f96e44a4 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnection.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnection.cs @@ -14,7 +14,7 @@ namespace Azure.Analytics.Defender.Easm internal partial class UnknownDataConnection : DataConnection { /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnection. /// The system generated unique id for the resource. /// The caller provided unique name for the resource. /// The name that can be used for display purposes. diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnectionPayload.cs b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnectionPayload.cs index 5d1ca19c0215..e675efb20269 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnectionPayload.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/UnknownDataConnectionPayload.cs @@ -14,7 +14,7 @@ namespace Azure.Analytics.Defender.Easm internal partial class UnknownDataConnectionPayload : DataConnectionPayload { /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for DataConnectionPayload. /// The name of data connection. /// The type of data the data connection will transfer. /// The rate at which the data connection will receive updates. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs index c15f5c156ae3..1d0b8a0a3d04 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/EventGridSenderClient.cs @@ -283,7 +283,7 @@ internal HttpMessage CreateSendRequest(string topicName, RequestContent content, uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/cloudevents+json; charset=utf-8"); + request.Headers.Add("Content-Type", "application/cloudevents+json; charset=utf-8"); request.Content = content; return message; } @@ -301,7 +301,7 @@ internal HttpMessage CreateSendEventsRequest(string topicName, RequestContent co uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/cloudevents-batch+json; charset=utf-8"); + request.Headers.Add("Content-Type", "application/cloudevents-batch+json; charset=utf-8"); request.Content = content; return message; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.Serialization.cs deleted file mode 100644 index 73f7815fe82e..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.Serialization.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.Namespaces -{ - internal partial class InnerError : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(InnerError)} does not support writing '{format}' format."); - } - - writer.WriteStartObject(); - if (Optional.IsDefined(Code)) - { - writer.WritePropertyName("code"u8); - writer.WriteStringValue(Code); - } - if (Optional.IsDefined(Innererror)) - { - writer.WritePropertyName("innererror"u8); - writer.WriteObjectValue(Innererror, options); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - writer.WriteEndObject(); - } - - InnerError IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(InnerError)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeInnerError(document.RootElement, options); - } - - internal static InnerError DeserializeInnerError(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string code = default; - InnerError innererror = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("code"u8)) - { - code = property.Value.GetString(); - continue; - } - if (property.NameEquals("innererror"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - innererror = DeserializeInnerError(property.Value, options); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new InnerError(code, innererror, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(InnerError)} does not support writing '{options.Format}' format."); - } - } - - InnerError IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeInnerError(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(InnerError)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static InnerError FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeInnerError(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.cs deleted file mode 100644 index 4eed67ba9cad..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces/src/Generated/InnerError.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.Namespaces -{ - /// An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. - internal partial class InnerError - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// 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" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal InnerError() - { - } - - /// Initializes a new instance of . - /// One of a server-defined set of error codes. - /// Inner error. - /// Keeps track of any properties unknown to the library. - internal InnerError(string code, InnerError innererror, IDictionary serializedAdditionalRawData) - { - Code = code; - Innererror = innererror; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// One of a server-defined set of error codes. - public string Code { get; } - /// Inner error. - public InnerError Innererror { get; } - } -} diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs index 17409686c335..1a0b973e9201 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs @@ -891,7 +891,7 @@ internal HttpMessage CreateDetectFromUrlImplRequest(RequestContent content, stri } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/json"); + request.Headers.Add("Content-Type", "application/json"); request.Content = content; return message; } @@ -936,7 +936,7 @@ internal HttpMessage CreateDetectImplRequest(RequestContent content, string dete } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/octet-stream"); + request.Headers.Add("Content-Type", "application/octet-stream"); request.Content = content; return message; } diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs index 1bea35cd8620..f86f2c12ada3 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceSessionClient.cs @@ -1526,7 +1526,7 @@ internal HttpMessage CreateCreateLivenessWithVerifySessionWithVerifyImageRequest uri.AppendPath("/detectLivenessWithVerify/singleModal/sessions", false); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", contentType); + request.Headers.Add("Content-Type", contentType); request.Content = content; return message; } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs index a3487edaa180..2a7d574e0cd5 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.cs @@ -20,7 +20,7 @@ internal AgeMismatchInference() } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. internal AgeMismatchInference(RadiologyInsightsInferenceType kind, IReadOnlyList extension, IDictionary serializedAdditionalRawData) : base(kind, extension, serializedAdditionalRawData) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs index c76f31da8ebc..66a625bdb8f3 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.cs @@ -27,7 +27,7 @@ internal CompleteOrderDiscrepancyInference(FhirR4CodeableConcept orderType) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs index c26c57e94f2e..9bc2476e625e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.cs @@ -25,7 +25,7 @@ internal CriticalResultInference(CriticalResult result) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// The complete Critical Result, as outlined below, will be reused for the recommendation. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs index 0496cde20706..fb83c069ecda 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.cs @@ -25,7 +25,7 @@ internal FindingInference(FhirR4Observation finding) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Finding data : contains extensions, fields and components linked with the finding. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs index c2be69c9099d..bd0464a5f984 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.cs @@ -24,7 +24,7 @@ internal FollowupCommunicationInference(bool wasAcknowledged) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Communication date and time. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs index f62ee38f88e2..904fa3547898 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.cs @@ -38,7 +38,7 @@ internal FollowupRecommendationInference(bool isConditional, bool isOption, bool } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Date and time are displayed when the procedure is recommended to be done at a specific point in time. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs index 849cbe81f617..98a952a3448e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.cs @@ -25,7 +25,7 @@ internal GenericProcedureRecommendation(FhirR4CodeableConcept code) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for ProcedureRecommendation. /// Keeps track of any properties unknown to the library. /// Procedure modality : SNOMED CT code. /// Procedure description : MANAGEMENT PROCEDURE (PROCEDURE) or CONSULTATION (PROCEDURE) based on SNOMED CT. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs index cfb0df8bbc1b..3d83f8f40442 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/HealthInsightsRadiologyInsightsModelFactory.cs @@ -96,7 +96,7 @@ public static RadiologyInsightsPatientResult RadiologyInsightsPatientResult(stri } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// A new instance for mocking. public static RadiologyInsightsInference RadiologyInsightsInference(string kind = null, IEnumerable extension = null) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs index cd5b0223d3b8..061620245d53 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.cs @@ -27,7 +27,7 @@ internal ImagingProcedureRecommendation(IEnumerable imagingPro } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for ProcedureRecommendation. /// Keeps track of any properties unknown to the library. /// LOINC codes for the procedure. /// Imaging procedures. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs index d5ce84b492a5..21606439cd8c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.cs @@ -22,7 +22,7 @@ internal LateralityDiscrepancyInference(LateralityDiscrepancyType discrepancyTyp } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Laterality indication : SNOMED CT code for laterality qualifier value. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs index cdf21f814e55..3fcc65b6c6e4 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.cs @@ -27,7 +27,7 @@ internal LimitedOrderDiscrepancyInference(FhirR4CodeableConcept orderType) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Order type : CPT ultrasound complete code for abdomen, retroperitoneal, pelvis or breast. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs index 85988065dac5..1f90c4fb5a32 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.cs @@ -55,7 +55,7 @@ protected ProcedureRecommendation() } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for ProcedureRecommendation. /// Keeps track of any properties unknown to the library. internal ProcedureRecommendation(string kind, IDictionary serializedAdditionalRawData) { @@ -63,7 +63,7 @@ internal ProcedureRecommendation(string kind, IDictionary se _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Discriminator. + /// Discriminator property for ProcedureRecommendation. internal string Kind { get; set; } } } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs index 75953facf3bc..802adb427731 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.cs @@ -66,7 +66,7 @@ protected RadiologyInsightsInference() } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. internal RadiologyInsightsInference(RadiologyInsightsInferenceType kind, IReadOnlyList extension, IDictionary serializedAdditionalRawData) @@ -76,7 +76,7 @@ internal RadiologyInsightsInference(RadiologyInsightsInferenceType kind, IReadOn _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. internal RadiologyInsightsInferenceType Kind { get; set; } /// Additional Content defined by implementations. public IReadOnlyList Extension { get; } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs index 104c97f964ea..0a29bbc6459f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.cs @@ -30,7 +30,7 @@ internal RadiologyProcedureInference(IEnumerable imagingProced } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// LOINC codes for the procedure. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs index bb111f8e2f9b..ebec99b94a90 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.cs @@ -25,7 +25,7 @@ internal SexMismatchInference(FhirR4CodeableConcept sexIndication) } /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. /// Sex indication : SNOMED CT code for gender finding. diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs index 8a04496d2fbf..f51f7a1dfa1d 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.cs @@ -14,7 +14,7 @@ namespace Azure.Health.Insights.RadiologyInsights internal partial class UnknownProcedureRecommendation : ProcedureRecommendation { /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for ProcedureRecommendation. /// Keeps track of any properties unknown to the library. internal UnknownProcedureRecommendation(string kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) { diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs index 800f9ea9c786..6bf80f6c7d8c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.cs @@ -14,7 +14,7 @@ namespace Azure.Health.Insights.RadiologyInsights internal partial class UnknownRadiologyInsightsInference : RadiologyInsightsInference { /// Initializes a new instance of . - /// Discriminator. + /// Discriminator property for RadiologyInsightsInference. /// Additional Content defined by implementations. /// Keeps track of any properties unknown to the library. internal UnknownRadiologyInsightsInference(RadiologyInsightsInferenceType kind, IReadOnlyList extension, IDictionary serializedAdditionalRawData) : base(kind, extension, serializedAdditionalRawData) diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.Serialization.cs index c2cdc013ec87..169cdce33546 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/AmlComputeProperties.Serialization.cs @@ -169,15 +169,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr } if (Optional.IsDefined(PropertyBag)) { - writer.WritePropertyName("propertyBag"u8); + if (PropertyBag != null) + { + writer.WritePropertyName("propertyBag"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(PropertyBag); #else - using (JsonDocument document = JsonDocument.Parse(PropertyBag)) + using (JsonDocument document = JsonDocument.Parse(PropertyBag)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("propertyBag"); } -#endif } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -395,6 +402,7 @@ internal static AmlComputeProperties DeserializeAmlComputeProperties(JsonElement { if (property.Value.ValueKind == JsonValueKind.Null) { + propertyBag = null; continue; } propertyBag = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.Serialization.cs index 132813356c69..f8d23c20e247 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/ColumnTransformer.Serialization.cs @@ -45,15 +45,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrite } if (Optional.IsDefined(Parameters)) { - writer.WritePropertyName("parameters"u8); + if (Parameters != null) + { + writer.WritePropertyName("parameters"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(Parameters); #else - using (JsonDocument document = JsonDocument.Parse(Parameters)) + using (JsonDocument document = JsonDocument.Parse(Parameters)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("parameters"); } -#endif } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -118,6 +125,7 @@ internal static ColumnTransformer DeserializeColumnTransformer(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { + parameters = null; continue; } parameters = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs index 1fe6b86bf6b6..3b8966066615 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningCommandJob.Serialization.cs @@ -134,15 +134,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea } if (options.Format != "W" && Optional.IsDefined(Parameters)) { - writer.WritePropertyName("parameters"u8); + if (Parameters != null) + { + writer.WritePropertyName("parameters"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(Parameters); #else - using (JsonDocument document = JsonDocument.Parse(Parameters)) + using (JsonDocument document = JsonDocument.Parse(Parameters)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("parameters"); } -#endif } if (Optional.IsDefined(QueueSettings)) { @@ -489,6 +496,7 @@ internal static MachineLearningCommandJob DeserializeMachineLearningCommandJob(J { if (property.Value.ValueKind == JsonValueKind.Null) { + parameters = null; continue; } parameters = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs index 8f56589ad423..67393e125c15 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningComponentVersionProperties.Serialization.cs @@ -28,15 +28,22 @@ void IJsonModel.Write(Utf8JsonWriter writer.WriteStartObject(); if (Optional.IsDefined(ComponentSpec)) { - writer.WritePropertyName("componentSpec"u8); + if (ComponentSpec != null) + { + writer.WritePropertyName("componentSpec"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(ComponentSpec); #else - using (JsonDocument document = JsonDocument.Parse(ComponentSpec)) + using (JsonDocument document = JsonDocument.Parse(ComponentSpec)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("componentSpec"); } -#endif } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { @@ -180,6 +187,7 @@ internal static MachineLearningComponentVersionProperties DeserializeMachineLear { if (property.Value.ValueKind == JsonValueKind.Null) { + componentSpec = null; continue; } componentSpec = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs index 83484c5f54d1..3e5626c71290 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningPipelineJob.Serialization.cs @@ -94,15 +94,22 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe } if (Optional.IsDefined(Settings)) { - writer.WritePropertyName("settings"u8); + if (Settings != null) + { + writer.WritePropertyName("settings"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(Settings); #else - using (JsonDocument document = JsonDocument.Parse(Settings)) + using (JsonDocument document = JsonDocument.Parse(Settings)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("settings"); } -#endif } if (Optional.IsDefined(SourceJobId)) { @@ -394,6 +401,7 @@ internal static MachineLearningPipelineJob DeserializeMachineLearningPipelineJob { if (property.Value.ValueKind == JsonValueKind.Null) { + settings = null; continue; } settings = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningStackEnsembleSettings.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningStackEnsembleSettings.Serialization.cs index 730a3a064377..de3610a49ed7 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningStackEnsembleSettings.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningStackEnsembleSettings.Serialization.cs @@ -28,15 +28,22 @@ void IJsonModel.Write(Utf8JsonWriter write writer.WriteStartObject(); if (Optional.IsDefined(StackMetaLearnerKWargs)) { - writer.WritePropertyName("stackMetaLearnerKWargs"u8); + if (StackMetaLearnerKWargs != null) + { + writer.WritePropertyName("stackMetaLearnerKWargs"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(StackMetaLearnerKWargs); #else - using (JsonDocument document = JsonDocument.Parse(StackMetaLearnerKWargs)) + using (JsonDocument document = JsonDocument.Parse(StackMetaLearnerKWargs)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + else { - JsonSerializer.Serialize(writer, document.RootElement); + writer.WriteNull("stackMetaLearnerKWargs"); } -#endif } if (Optional.IsDefined(StackMetaLearnerTrainPercentage)) { @@ -97,6 +104,7 @@ internal static MachineLearningStackEnsembleSettings DeserializeMachineLearningS { if (property.Value.ValueKind == JsonValueKind.Null) { + stackMetaLearnerKWargs = null; continue; } stackMetaLearnerKWargs = BinaryData.FromString(property.Value.GetRawText()); diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs index 9d68b5b92e99..369c8f7276b6 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Entity.cs @@ -5328,7 +5328,7 @@ internal HttpMessage CreateImportBusinessMetadataRequest(RequestContent content, uri.AppendPath("/atlas/v2/entity/businessmetadata/import", false); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", contentType); + request.Headers.Add("Content-Type", contentType); request.Content = content; return message; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/CHANGELOG.md index 531e90d9b573..0affae06f8b7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/CHANGELOG.md @@ -2,7 +2,7 @@ ## 1.0.0-preview.6 (2022-06-07) -### Changed +### Other Changes - Added `contentType` to requests with multiple media types. ## 1.0.0-preview.5 (2021-08-10) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs index 0d260b51d20a..0727a6b9bc69 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs @@ -32,8 +32,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); if (Optional.IsDefined(Attachments)) { - writer.WritePropertyName("attachments"u8); - writer.WriteObjectValue(Attachments); + if (Attachments != null) + { + writer.WritePropertyName("attachments"u8); + writer.WriteObjectValue(Attachments); + } + else + { + writer.WriteNull("attachments"); + } } if (Optional.IsCollectionDefined(Outputs)) { @@ -92,6 +99,7 @@ internal static NotebookCell DeserializeNotebookCell(JsonElement element) { if (property.Value.ValueKind == JsonValueKind.Null) { + attachments = null; continue; } attachments = property.Value.GetObject(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs index f4a9d4925536..7561efd75c8f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs @@ -20,8 +20,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); if (Optional.IsDefined(Value)) { - writer.WritePropertyName("value"u8); - writer.WriteObjectValue(Value); + if (Value != null) + { + writer.WritePropertyName("value"u8); + writer.WriteObjectValue(Value); + } + else + { + writer.WriteNull("value"); + } } if (Optional.IsDefined(Type)) { @@ -45,6 +52,7 @@ internal static NotebookParameter DeserializeNotebookParameter(JsonElement eleme { if (property.Value.ValueKind == JsonValueKind.Null) { + value = null; continue; } value = property.Value.GetObject(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/CHANGELOG.md index 0c9f3e9592fd..7d05e89fabae 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/CHANGELOG.md @@ -2,6 +2,13 @@ ## 1.0.0-beta.4 (Unreleased) +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes ## 1.0.0-beta.3 (2021-05-11) ### Key Bug Fixes diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs index 2fc39eb28f5d..c2f94f2c8170 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs @@ -301,7 +301,7 @@ internal HttpMessage CreateDocumentTranslateRequest(string targetLanguage, Reque } request.Uri = uri; request.Headers.Add("Accept", "application/octet-stream"); - request.Headers.Add("content-type", contentType); + request.Headers.Add("Content-Type", contentType); request.Content = content; return message; } diff --git a/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs b/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs index 22c9ea7670b4..c2e4d366784d 100644 --- a/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs +++ b/sdk/vision/Azure.AI.Vision.ImageAnalysis/src/Generated/ImageAnalysisClient.cs @@ -573,7 +573,7 @@ internal HttpMessage CreateAnalyzeFromImageDataRequest(IEnumerable } request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("content-type", "application/json"); + request.Headers.Add("Content-Type", "application/json"); request.Content = content; return message; }